Jump to content
Search Community

Recommended Posts

eisaias2000
Posted

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")?

Posted

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

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});

Posted

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

I'll have many swfs and don't know how many frames each one has.

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...