I had to take a quick minute to post this, “How To”, as I’ve been wracking my brain for the past few hours stumbling my way through Flash CS4 and Actionscript 3. Flash CS4 or more to the point AS3 have changed sooooo much since back in the day. From 1999 to about 2003 I was primarily a flash programmer. I knew the program like the back of my hand. Working with this newer version had me feeling like a total NUBE. And I really am as the newer incarnation of Actioncsript is an entirely different language.
So At any rate, with the video above you can see how to load progressive video into your Flash document. That part was really easy. The bit of code right here is what I used to stop the progressive download from playing.
The Code
-
stop();
-
/// This piece adds an event listener that listens for the mouse event, CLICK ///
-
closeBtn.addEventListener (MouseEvent.CLICK, closeme);
-
function closeme(event:MouseEvent):void {
-
/// This piece Right Here Pauses FLV Playback. Vid2 is the instance name I used for my movie. Enter your own instance name here. ///
-
Vid2.stop();
-
};
That’s all I wanted to post for now. I spent a long time searching the net for this tiny bit of code to make my movie do what I wanted. There are probably other ways of doing this as well, but my project is now up and running. WooHoo!
I’d love to hear from Flash programmers out there that have a better way to do this if there is indeed one. Usually there are many means to an end when it comes to Flash programming.
Incoming search terms for the article:
- how to load external flv in as3 tutorial video
- flash load flv
- load external flv
- as3 load external flv
- load external flv as3
- load external flv as2
- load flv as2
- load flv flash
- load flv in flash
- as3 load flv external
























Twitter: G0utham

Nice tutorial. Thanks for sharing it with us.
Goutham´s last blog ..Joomlapraise Joomlashack Discount – 25 OFF
Twitter: lukeslytalker
Thanks Goutham! I had to put a quick tute together as I really couldn’t find this info anywhere on the web. I wanted to make it easier to find the correct code as AS3 is new or Greek to a lot of folks out there. Hope it helped.