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
ADOBE FLASH:HomeFlash ForumFlash TutorialsFlash Video TutorialsWeb Streaming ForumAdobe FlashPodcast

Re: Flash Video help please.

COW Forums : Adobe Flash

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


DaveTrepRe: Flash Video help please.
by on May 9, 2007 at 3:43:20 pm

Hi ilegal31

if I have understood you right you need to add a listener to your flash file that looks for when the video has completed playing. Try attaching the following code to the frame where the video is placed (put the video in the _root layer and name the player "player"). This will work if you are using the flv playback component for your video.

import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject) {
gotoAndStop(_root._currentframe+1);
trace(player.playheadTime);
};
player.addEventListener("complete", listenerObject);
stop();

that should do it!

cheers

Dave


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]