You can get the frameCount from the swfLoader.content if it is a movieClip.  
The framerate I believe is dictated by the loading SWF.  What you can’t know is 
how it will take because if it has any logic in it, it might double back on 
itself and take “forever”.


On 4/16/10 9:55 AM, "Robert VanCuren Jr" <[email protected]> wrote:






You can parse this information from the swf file it self when you load it. I 
did this once and it was pretty easy. I needed to know the version and frame 
rate so my flex app could slow down to display as2 swfs.

Anyways if you dont want to write it your self there are several libraries. 
Here is a link to one but others exist.

http://segfaultlabs.com/swfutils

On Fri, Apr 16, 2010 at 11:43 AM, markflex2007 <[email protected]> wrote:





Hi,

I have a problem and need fix ,I need help.

I use swfloader load swf file and I need to know how long the swf will play 
,how many frames it have and frame rate.

Please give me a idea ,Thanks for help

Mark S










--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to