|
I'm not sure my question deserves it's own thread but figure there are bound to be some more flash questions. I'm trying to make a little intro video for a page on our site. I've been given a intro.flv and a menuloop.flv already. However no matter what I do in trying to import them into a new movie it won't loop. I've set the frame that has the looping flv to gotandplay(2); which is the frame it's in but that's not working. So just how the hell do I get it to play the first flv, then goto the looping flv and continue to loop that over and over?
|
| # ? Mar 19, 2007 14:08 |
|
|
| # ? May 23, 2013 11:40 |
|
I don't have any questions at the moment, but I second the sentiment for a flash questions megathread. Because everytime I do flash, I want to kill something small and furry.
|
| # ? Mar 19, 2007 15:17 |
|
Grr my frustrations continue. I've looked online about using cue-points in my FLV file but they aren't very clear. This is what I'm using atm.code:Only it doesn't loop. It'll play, but it just goes through once and doesn't loop back to loop-begin after hitting loop-end. Anyone know what I'm doing wrong?
|
| # ? Mar 19, 2007 16:13 |
|
real_scud posted:I'm not sure my question deserves it's own thread but figure there are bound to be some more flash questions. Why don't you create a listener to listen for the "complete" event and when it fires just start the video again. http://livedocs.adobe.com/flash/8/m...e=00003510.html
|
| # ? Mar 19, 2007 16:54 |
|
Isn't there a "loop" option in the FLV properties box?
|
| # ? Mar 19, 2007 18:15 |
|
leedo posted:Isn't there a "loop" option in the FLV properties box? In the end I got it working by directly importing the QT file into the timeline and then simply using a gotoandplay(x); on the last frame. It's a little dirtier than what I wanted, but the filesize isn't that bad since the movie is only played at 255x109px.
|
| # ? Mar 19, 2007 18:24 |
|
How did you add the cue points, via AS or with the encoder ?
|
| # ? Mar 19, 2007 20:09 |
|
exzer0 posted:How did you add the cue points, via AS or with the encoder ? code:You can also add extra data to the cPt object that will be passed when the cue point is fired. code:PrObLeM fucked around with this message at Mar 19, 2007 around 20:18 |
| # ? Mar 19, 2007 20:15 |
|
I was asking how to do it, I was asking how he did it. I have had trouble with the Flash 8 Video encoder loving up cue points, and always add them via the AS as you have shown, which could have been his issue.
|
| # ? Mar 19, 2007 20:18 |
|
exzer0 posted:How did you add the cue points, via AS or with the encoder ?
|
| # ? Mar 19, 2007 20:18 |
|
Try it with the Actionscript PrOblem posted. I couldn't get the cuepoints to work from the encoder ever.
|
| # ? Mar 19, 2007 20:20 |
|
I've tried quite a few tutorials on how to make preloaders and on every single one the preloader won't show up until it's 100%, then flashes breifly and goes to the movie. When I play it in bandwidth simulator in Flash it works just fine. How do I go about fixing this? I'm using a simple % bar found in example 2 on this page: http://www.senocular.com/flash/tutorials/preloading/
|
| # ? Mar 26, 2007 14:53 |
|
Got any audio in your actionscript? Exporting it in the first frame? If so, that's your problem. Google something like 'flash preloader audio "first frame"' for some different ways around it.
|
| # ? Mar 26, 2007 15:48 |
|
What am I doing wrong here? If I use a moviecliploader, nothing happens.code:If I do this: code:
|
| # ? Mar 26, 2007 16:50 |
|
-JS- posted:Got any audio in your actionscript? Exporting it in the first frame? If so, that's your problem. Google something like 'flash preloader audio "first frame"' for some different ways around it. No audio, no components in the library. I do have 21 buttons, is that a lot? Do buttons load at the very beginning?
|
| # ? Mar 26, 2007 16:58 |
|
rotor posted:What am I doing wrong here? If I use a moviecliploader, nothing happens. You're calling loadClip on bgimg, change it to img.
|
| # ? Mar 26, 2007 17:04 |
|
ODC posted:You're calling loadClip on bgimg, change it to img. that doesn't work either, that was the first thing I tried. There's some advice on the mm site that says to load it into a blank mc if you have an image, something about loading an image wiping out the movieclips timeline.
|
| # ? Mar 26, 2007 17:07 |
|
I need to stream some flvs on a website I'm creating and I can't for the live of me find a swf wrapper that will just let me give it a flv file as a parameter and play it on the drat website. Ideally, I'd like to find something open source where I can change the interface to my liking. What am I supposed to search for if I'm trying to find something like that?
|
| # ? Mar 26, 2007 17:51 |
|
Scarboy posted:I need to stream some flvs on a website I'm creating and I can't for the live of me find a swf wrapper that will just let me give it a flv file as a parameter and play it on the drat website. Ideally, I'd like to find something open source where I can change the interface to my liking. I'm not at work right now or I'd copy some of his code but I'll try to do it tomorrow.
|
| # ? Mar 26, 2007 18:20 |
|
real_scud posted:Before he left my boss created something like that. Basically it's a SWF file that in the actionscript looks for a flv file to be fed to it. It then loads that FLV within the SWF wrapper and plays it without a hitch. Exactly what I need, but shouldn't something like this be stupid easy to find on the net already? I mean, what are all of these current websites using to play their flv files?
|
| # ? Mar 26, 2007 18:43 |
|
Scarboy posted:Exactly what I need, but shouldn't something like this be stupid easy to find on the net already? I mean, what are all of these current websites using to play their flv files?
|
| # ? Mar 26, 2007 21:26 |
|
Question I've been dying to know forever. I just kinda assumed I was right. Do professional Flash devs actually use the Macromedia/Adobe client to do their work? I mean, to an extent, they do, of course. But there are certain things where I swear to god it's not even possible. I myself am not a Flash developer and I don't have faith in anyone who claims to be. It's always amateurish crap that couldn't get them hired, except for maybe your local church's website. With that, I don't know any Flash professionals, or any of their work. Things like crazy animations and spinning 3D models and all this wacky stuff, there's no way I believe that any of that was created inside of Flash. I think they import it somehow. But I don't know anything of how Flash works with stuff lke that.
|
| # ? Mar 26, 2007 21:34 |
|
Triple Tech posted:Question I've been dying to know forever. I just kinda assumed I was right. I don't know anything about spinning 3D models, and while I'm a professional Flash developer in that I'm being paid to make a flash app, I'm basically learning as I go. Those caveats aside, I use the Flash IDE as little as possible. I use Flashdevelop, which is a little actionscript editor and frontend to MTASC, which is an open-sores actionscript compiler. I draw all the graphic symbols I need in the Flash IDE, then write the actionscript that manipulates these symbols in flashdevelop. It provides the division between resources (symbols, gifs) and code that I find the lack of so maddening in the Flash IDE. Also, with the Macromedia compiler, this happens: code:
|
| # ? Mar 26, 2007 22:08 |
|
After enough search I've found one that suits my needs exactly. http://www.jeroenwijering.com/?item=Flash_Video_Player Creative Commons License, provides the source, what more could I want.
|
| # ? Mar 26, 2007 22:13 |
|
rotor posted:Also, with the Macromedia compiler, this happens: As a recovering Flash user, wouldn't an actually rational language throw some kind of exception and abort execution here? I don't think the arbitrary decision to promote the constant '1' to something that can be +='ed with a string is invalid. You could probably make an argument for the output to be "1", using the logic that taking "butts" as a number would equal 0. This is why I don't miss working in ActionScript.
|
| # ? Mar 26, 2007 22:18 |
|
rotor posted:What am I doing wrong here? If I use a moviecliploader, nothing happens. The only difference between the two is using the var bgimg for the first and the path bg.img for the second. Try using bg.img for the first instead of bgimg. quote:that doesn't work either, that was the first thing I tried. There's some advice on the mm site that says to load it into a blank mc if you have an image, something about loading an image wiping out the movieclips timeline. True. The timeline of the object (movieclip, image, flv) supersedes the timeline of the mc that's used as a holder. This is why putting any code on the holder is a bad idea, because that code will disappear once you're loading poo poo in it. Also, the bg img bg imgimg bg is driving me nuts. use the name "holder" for every empty mc you're using as a, well, holder for loading things. Also avoid compound names because they complicate poo poo. Make it distinctive so you don't end up with bg.img and bgimg. ![]() Triple Tech posted:Question I've been dying to know forever. I just kinda assumed I was right. There exist many external apps that are better suited for writing complecated actionscript. There's even an open source compiler out there that turns AS2 (wait, let me hold my barf in...... ok I'm good) into an swf. This makes writing complex pieces of code a lot easier, safer and better than with the original program. Animation is a different story. Flash started out as an animation tool (quick question: what was it called?) and all the old, crappy tools from back when still exists with us today. It might be a bit hard to draw The Neverending Story, but animators are a bunch of self-loathing perfectionists so it's doable to do so in flash. However, you can easily write some code that would move a button to the righthand corner while simultaneously make a ball realistically bounce off walls, so it's very hard to say if something is hard to do based on the fact that it's animated. If we are talking about 3d, that is in 99% of the cases pre-rendered in programs like 3dsmax and added later. And so on and so forth. Butt (hah I made myself laugh there because it's getting pretty late and I need to get some sleep) this is all moot since you never provided an example of something you find "crazy poo poo". You also don't know a lot about making things in flash so if I pressed the magic "pour rainbows and puppies and twelve naked scarlett johanssons at the visitor in full 3d" button thats there so you would go "man thats some crazy poo poo" I would know it took me about three seconds since I know where that button is, you would be blissfully ignorant of the complete and utter mind tricks we people in the industry like to call "magic" to make you post a message on the internet and buy our poo poo so we can exiture our dream of chartering a plane to bolivia, loving three whores while simoultaniously kickstarting a drugring with your money. That button doesn't exist, unfortunately. But if it did I would press that magic button so hard so fast and so much that i would go through keyboards like a piercing scream through eardrums because scarlett johansson is the salt to the icesculpture of my hart. What i'm saying is without any explanation of what you find hard to do in flash, I cannot give you an answer to your question.
|
| # ? Mar 26, 2007 22:42 |
|
rotor posted:Those caveats aside, I use the Flash IDE as little as possible. I use Flashdevelop, which is a little actionscript editor and frontend to MTASC, which is an open-sores actionscript compiler. I draw all the graphic symbols I need in the Flash IDE, then write the actionscript that manipulates these symbols in flashdevelop. It provides the division between resources (symbols, gifs) and code that I find the lack of so maddening in the Flash IDE. Also, with the Macromedia compiler, this happens: Tell me how. i've never been able to make mtasc work for me. ![]() rotor posted:The output isn't "butts," like in every rational language I've ever used, but is rather "butts1." Even more shocking, many built-in Macromedia classes rely on this stupid behavior. MTASC fixes that. I can tell you why this is, but you probably already know why and hate it or you, in all probability, don't give a poo poo. And rightfully so.
|
| # ? Mar 26, 2007 22:46 |
|
mantaworks posted:Animation is a different story. Flash started out as an animation tool (quick question: what was it called?) Future Splash Animator or something like that. Anyways to answer TTs question, I'm a designer/flash developer and I use flash almost exclusively. Sometimes I use SE|PY but usually only if there's going to be crazy amounts of code. I am not a hardcore AS developer, since my background isn't in programming. I came from an ad agency where 90% of my workload was banner ad campaigns and full flash sites. I cut my teeth on the banner ads where we mostly used simple scripting to add dynamic movement. We also worked on the occasional flash game, such as banana barrage but even on games like that we still just used flash. It's been my experience that designers who start using flash just stick with flash usually, and programmers who start using flash usually end up going with some kind of 3rd party stuff since the IDE is so much different from .net or whatever other dev tools they usually use.
|
| # ? Mar 26, 2007 23:50 |
|
[chavez posted:] You win a cookie! [chavez posted:] It's been my experience that designers who start using flash just stick with flash usually, and programmers who start using flash usually end up going with some kind of 3rd party stuff since the IDE is so much different from .net or whatever other dev tools they usually use. Absolutely agreed. As a programmer/developper, you don't get to tackle complex projects in an ad agency. Something like http://www.joukoosterhof.com/ is about the toughest website you'll get to build and after that the complexity of the code increases exponentially. Flash just doesn't have the right kind of options or tools to make it easier to work with multiple programmers and designers on a deadline.
|
| # ? Mar 27, 2007 00:23 |
|
rotor posted:Also, with the Macromedia compiler, this happens: This would work in the Macromedia compiler if you set a type for the variable. The old way Flash handled variables, it allowed type changes on the fly. I loving hated it and I think AS 2.0 was a fantastic step in the right direction.
|
| # ? Mar 27, 2007 06:15 |
|
mantaworks posted:The only difference between the two is using the var bgimg for the first and the path bg.img for the second. Try using bg.img for the first instead of bgimg. ![]() I've tried adding it to bg, to holder, to bg.holder, and even to _root. Nothing works. The URL is valid, because simply using holder.loadMovie(imgUrl) works fine.
|
| # ? Mar 27, 2007 16:23 |
|
mantaworks posted:Tell me how. i've never been able to make mtasc work for me. Since there's such a huge popular outcry for a Flash IDE Alternative HOWTO, and because something like this would have saved me weeks of work a few months ago, I'll go ahead and write one up. Step Zero: Own Flash 8. Step One: Download flashdevelop. The flashdevelop site is pretty weird - it's entirely configured as a messageboard. Whatever. Is it downloaded yet? Ok, then install it. It will also install MTASC and SWFMill. Step Two: Configure it properly - point it at your flash install so it knows where the classes are, stuff like that. There's some sample projects here you can use to make sure all is well. Aside: I use the Flash IDE to draw my graphics and use MTASC to insert the actionscript into it. There are other workflows that may work for you, but this writeup isn't about those workflows, so shut up, you. So here's how to do that: Step Three: Create a new .fla in flash. Draw your little rainbows and unicorns and disco dancing elves and compile it to a swf. Let's call it main.swf. Make an empty flashdevelop project somewhere, and copy main.swf into it. Step Four: Go to project properties. Under "output swf file" specify the name of the output swf. Don't use main.swf. Specify the target flash version, and tell it to open the swf in a new tab for testing. Go to the classpath tab and point it at your flash classes (probably c:\programfiles\macromedia\flash8\en\firstrun\classes or some poo poo like that), and if you have any other code, point it there too. Now, under the 'injection' tab, choose "enable code injection" and specify main.swf as your input swf. Press ok. Step Five: Create a Main.as file in the root of your project dir. This will (obviously) contain a class called "Main", which must have at least one static function named main(). This will be called on the first frame of your movie, and is the entry point for all your code. I am dogmatic about not placing ANY actionscript ANYWHERE else other than .as files. You may choose to be less dogmatic, but whatever. Step Six: Try making your own hello world app. Create some movieclips and load symbols into them. Step Seven, In Which We Patch Stuff: Remember that function-local nonsense in the macromedia classes? MTASC hates it, and for good reason. Unfortunately, it's all over the mx code. Fortunately, there exists a patch. Go to that site and apply both the core8 and the mx patches. At this point, I'm just going to cut & paste the 'how to patch your mx code' doc I've already written. quote:How To Patch Macromedias Actionscript To Compile with MTASC Step Eight: Phew, you've worked hard. Take a break and enjoy this picture of a baby donkey. ![]() Step Nine: Try a hello world with an Alert. Go back to the Flash IDE and add the "Alert" component to the library, save & recompile. Now go back to flashdevelop and adjust the classpath under project properties to point to your patched classes. Then call Alert.show(...whatever...) somewhere in your code. Big Fun! Step Ten: Look back on this post and say "wow, rotor spent way too much time writing this, I should send him something nice for his efforts" and then just forget about it and ignore me, you jerk.
rotor fucked around with this message at Mar 27, 2007 around 17:34 |
| # ? Mar 27, 2007 17:12 |
|
Twon posted:As a recovering Flash user, wouldn't an actually rational language throw some kind of exception and abort execution here? I don't think the arbitrary decision to promote the constant '1' to something that can be +='ed with a string is invalid. You could probably make an argument for the output to be "1", using the logic that taking "butts" as a number would equal 0. no, that behavior is expected from an untyped language. Javascript does the same thing. The weirdness is that the scope for the variable x is the function, not the block. So the second 'var x' declaration, which would normally be treated as a new local variable named x in the scope of the block, is simply treated as a reference to the var x declared at the start of the function. I'm sure there's an actual computer sciencey name for this behavior, but I just call it "stupid."
|
| # ? Mar 27, 2007 18:20 |
|
Hello. New to this particular section. Inadvertantly posted this in the general "code" thread then I noticed this one. Heres the deal. Made a function that draws a particular shape(a folder), to my size/loc specifications, whenever I want. Now I'm trying to make a function that moves and/or sizes it as need be(while keeping the tap the same size). the trick is I can't seem to get the name of it to pass. I assume this is some retarded "I should have put it in quotes" thing but no matter what I try I can't seem to get it to work. Folder Creator: code:code:code:
|
| # ? Mar 27, 2007 20:30 |
|
rotor posted:no, that behavior is expected from an untyped language. Javascript does the same thing. Whoa, ok, that is weird. I totally missed the second "var" -- but then again, I'd also expect the interpreter/JIT/whatever the hell it uses to bitch about the fact that you have a variable of the same name in an enclosing scope.
|
| # ? Mar 27, 2007 22:34 |
|
Does anyone know why a flash video that I'm having displayed via swfobject looks fine in FF, but in IE7 the video isn't being stretched properly? Here's a screenshot to show what's happening. ![]() ![]() It looks to be something with the integration with swfobject but I haven't been able to find any reason why ff and IE would render the same file differently.
|
| # ? Mar 28, 2007 13:59 |
|
real_scud posted:Does anyone know why a flash video that I'm having displayed via swfobject looks fine in FF, but in IE7 the video isn't being stretched properly? The only difference where flash is concerned is the html in wich is resides. IE uses an embed element and all the rest uses an object element to place flash content inside a page. Or the other way around, I can never remember. So the only thing I can think of is that there's a difference with the values given to one.
|
| # ? Mar 28, 2007 14:10 |
|
Here's one that should be easy for someone who knows what they're doing (not me). I've got an array of cards I want to shuffle but it doesn't seem to be random enough. I swear card 1 doesn't get shuffled all the time and remains as cards[0] in the array too frequently. It doesn't happen every time, but enough that it makes me suspicious. Am I screwing up that splice stuff? code:
|
| # ? Mar 28, 2007 15:21 |
|
StolenMerch posted:Am I screwing up that splice stuff? Probably. I ran your code a few times and repectively speaking, the number 1 appeared almost 3x and 2 appeared almost 2x as all the other numbers. I don't know exactly why it did that, bit herer's code I know will give you correct results. code:
|
| # ? Mar 29, 2007 20:53 |
|
|
| # ? May 23, 2013 11:40 |
|
Here's a problem I've run into a bunch of times. Hopefully somebody can explain it to me:code:code:code:Can anybody tell me where I'm going wrong with the 'with' action? Dicky B fucked around with this message at Mar 30, 2007 around 22:21 |
| # ? Mar 30, 2007 22:15 |























