how to control a embedded multiframe swf file?
Posted
by liuliu
on Stack Overflow
See other posts from Stack Overflow
or by liuliu
Published on 2010-01-12T23:46:25Z
Indexed on
2010/04/08
18:03 UTC
Read the original article
Hit count: 257
[Embed(source="data/fire.swf")] static public var movieFire:Class;
I have some multiframe swf file and I want to have control of them. For example, I can use gotoandplay and gotoandstop functionality.
I tried something like:
var m:MovieClip = new movieFire() as MovieClip;
but it turns out when I tried to get totalFrames, m.totalFrames
, it gives me zero, and gotoand* functions don't work either. How can I correctly control the swf file embedded in actionsript 3.0 (No Flex component)?
© Stack Overflow or respective owner