Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

Playing a external SWF

Recommended Posts

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

Link to post
Share on other sites

Sure, you can control the externally loaded swf just like a movie clip with the common stop() play() gotoAndPlay() commands.



Link to post
Share on other sites

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

Link to post
Share on other sites

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?

Link to post
Share on other sites

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

Link to post
Share on other sites

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.

Link to post
Share on other sites

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.