On Wed, May 13, 2009 at 8:34 PM, ACE Flash <[email protected]> wrote: > hi there, I'd like to use pure actionscript 3 to embed my assets in flash. > and use addChild() to add them on the stage.
> [Embed(source="/assets/img1.gif" , mimeType="image/gif")] > public var newImage:Class; [...] > var img1:Shape= new newImage() as Shape;; > addChild( img1 ); It should be Bitmap instead of Shape. If you just want to add it, it shouldn't matter so long as you cast it to DisplayObject. Manish _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

