|
From: | jean-michel voicechat_fan |
Subject: | Re: [Swftools-common] Really basic AS3 question |
Date: | Sat, 17 Oct 2009 10:04:51 +0200 |
On Fri, Oct 16, 2009 at 09:09:36PM +0100, Richard Humphreys <address@hidden> wrote:addChild() only works with a class derived from Sprite or MovieClip.
> First question, how does one add a sprite to the stage using script? I
> am well aware of how to use '.put ...', but for an arbitrary (and
> possibly large) number of objects I would naturally use addChild();.
Try wrapping a
class MyMovie extends flash.display.MovieClip
{
...
}
around your ActionScript.
Matthias
[Prev in Thread] | Current Thread | [Next in Thread] |