Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
FORUMS:listlist (w/ descriptions)archivetagssearchhall of famerecent posts

Flash Videos for the Web Using Adobe CS3

COW Forums : Adobe After Effects basics

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Share on Facebook
Respond to this post   •   Return to posts index   •   Read entire thread


Abraham ChaffinFlash Videos for the Web Using Adobe CS3
by on Apr 4, 2009 at 7:40:42 am

Hello Randall,

Appreciate the feedback, must have been an over site on my part.

If you would like your FLV to loop you need to add a little action script inside of Flash.

After importing your FLV into Adobe Flash you will need to give the flash player an instance name by clicking on the player and then typing an instance name in the parameters window. A name such as my_player is good and used in this example.

Then click on the first frame in the time line to add some action script in the Actions Window. This example is as3 so be sure you're using an as3 document.

Add this action script code to have the movie loop:

<pre>
//import the necessary functionality
import fl.video.*;

//add a listener for when the movie ends
my_player.addEventListener("complete", the_end);

//this will execute when movie ends
function the_end(event:VideoEvent):void {
//go to first frame
my_player.seek(0);
//and play
my_player.play();
}
</pre>


Posts IndexRead Thread
Reply   Like  
Share on Facebook


Current Message Thread:




LOGIN TO REPLY



FORUMSTUTORIALSMAGAZINESTOCKYARDVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2013 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]