swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Really basic AS3 question .....


From: jean-michel.voicechat_fan
Subject: Re: [Swftools-common] Really basic AS3 question .....
Date: Mon, 19 Oct 2009 08:40:02 +0200
User-agent: Thunderbird 2.0.0.23 (X11/20090812)

jean-michel.voicechat_fan a écrit :
hello matthias
i have tried to put a class syntax on the top of .action: statement
but i have a syntax error
i have just wrapped a small piece of working code

the syntax error pointer points on the class name

it seems like class statement  is not taken into account
is something missing  ?

Matthias Kramm a écrit :
On Fri, Oct 16, 2009 at 09:09:36PM +0100, Richard Humphreys <address@hidden> wrote:
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();.

addChild() only works with a class derived from Sprite or MovieClip.
Try wrapping a
    class MyMovie extends flash.display.MovieClip
    {
    ...
    }
around your ActionScript.

Matthias







Attachment: jeanmichel_gens.vcf
Description: Vcard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]