Buy Electronic Cigarettes

How to Load External FLV Files Into Flash CS4 And Then Unload Them


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

  1. stop();
  2. /// This piece adds an event listener that listens for the mouse event, CLICK ///
  3. closeBtn.addEventListener (MouseEvent.CLICK, closeme);
  4. function closeme(event:MouseEvent):void {
  5. /// This piece Right Here Pauses FLV Playback. Vid2 is the instance name I used for my movie. Enter your own instance name here. ///
  6. Vid2.stop();
  7. };

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.

Thank You Simply Z

cc 468x60 v1 How to Load External FLV Files Into Flash CS4 And Then Unload Them

Incoming search terms for the article:


 How to Load External FLV Files Into Flash CS4 And Then Unload Them About Me:  Nate Balcom is a web designer and social media guru with over 11 years of experience in the web industry. He specializes in web design and development, SEO and social networking. You can follow him on Twitter here.


2 Comments

  1. GouthamNo Gravatar says:

    Twitter:
    Nice tutorial. Thanks for sharing it with us. :)
    Goutham´s last blog ..Joomlapraise Joomlashack Discount – 25 OFFMy ComLuv Profile

    • Nate BalcomNo Gravatar says:

      Twitter:
      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.

Comments Are Closed

Comments have been disabled for this post. Sorry!

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
Tweet Adder