Apologies, I messed up my code in the original email (used "new
element" instead of the correct "new embed"). Corrected code here:

package {

       import flash.display.*

       public class Test extends MovieClip {

               [Embed(source="embed.swf")]
               public var embed:Class;

               public function Test():void {
                       var m:MovieClip = MovieClip(addChild(new embed()));
                       m.stop(); // fails
                       m.y=100; // works
               }

       }

}


On Thu, Mar 26, 2009 at 2:50 PM, Eric Costello <[email protected]> wrote:
> Hello flashcoders,
>
> Consider the following as3 file, built for flash 10 with mxmlc; it
> embeds a swf built with Flash CS4 which contains a simple motion
> tween:
>
> package {
>
>        import flash.display.*
>
>        public class Test extends MovieClip {
>
>                [Embed(source="embed.swf")]
>                public var embed:Class;
>
>                public function Test():void {
>                        var m:MovieClip = MovieClip(addChild(new element()));
>                        m.stop(); // fails
>                        m.y=100; // works
>                }
>
>        }
>
> }
>
> Why is m.stop() ignored? No errors generated, it just does not stop
> the embedded swf's timeline from advancing. (All timeline methods fail
> silently: stop, gotoAndStop, etc.)
>
> Any pointers on what I'm doing wrong?
>
> TIA,
> Eric
>



-- 
Eric Costello

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to