@Eric, I try to follow this, but it throws an error:
TypeError: Error #1007: Instantiation attempted on a non-constructor. at Test() What am I doing wrong? -----Original Message----- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric Costello Sent: donderdag 26 maart 2009 20:01 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Re: timeline methods fail on embedded swf 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 <e...@schwa.com> 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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.28/2022 - Release Date: 03/26/09 07:12:00 _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders