eisaias2000 Posted May 4, 2012 Posted May 4, 2012 I'm using autoplay=false to load a swf using SWFLoader. As expected, the swf is stopped during the timeline. Is there a way to make it play without knowing how many frames it has(without using the plugin "frame")?
Carl Posted May 5, 2012 Posted May 5, 2012 Sure, you can control the externally loaded swf just like a movie clip with the common stop() play() gotoAndPlay() commands. theNameOfYourSWFLoader.rawContent.play();
eisaias2000 Posted May 5, 2012 Author Posted May 5, 2012 Thank you Carl. I think I not expressed myself correctly. Is there a way to use TweenLite to tween the Play (). ex.: TweenLite.to (ball, 1, {play: 1});
Carl Posted May 5, 2012 Posted May 5, 2012 I am a bit confused by what you are asking. It sounds like the frame plugin is what you need to use. What exactly is preventing you from using it?
eisaias2000 Posted May 10, 2012 Author Posted May 10, 2012 I'll have many swfs and don't know how many frames each one has.
Carl Posted May 10, 2012 Posted May 10, 2012 oh ok, I understand. Good news for you. you can use action script to determine how many frames your loaded swfs have. trace( myVideoLoader.rawContent.totalFrames ) you can then use that value in your frame tween.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now