Re: [Flashcoders] AS3 : Flash IDE Base Class question ...

2008-05-19 Thread John McCormack

Hi Stephen,

On the Export for Actionscript dialog there is a pencil which brings up 
your class if you click it. But if you haven't written a class yet then the 
dialog says it will create one for you (when compiled), based on MovieClip. 
If you have written a class then you get what you want instead. I suppose 
they take the generic case since a MovieClip (an extended Sprite) can do 
anything a Sprite can.


John

//Is the compiler now using Sprite as the Base Class for my Box class (as 
per the Class definition) or is it still using MovieClip (as per the IDE)?




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS3 : Flash IDE Base Class question ...

2008-05-18 Thread Stephen Ford
Example: I've drawn a 50x50 red square in the Flash IDE, and converted it to a 
new MovieClip, giving it a name of Box. I've then selected Export for 
Actionscript, at which point said clip is given the default Base Class of: 
flash.display.MovieClip

So I then create a Class file, Box.as. Within this Class definition, I use the 
following: public class Box extends Sprite

So my question: Is the compiler now using Sprite as the Base Class for my Box 
class (as per the Class definition) or is it still using MovieClip (as per the 
IDE)?

So the short version: What is the correlation between a clip's Base Class 
within the IDE and the Class which it extends (if any) within it's Class 
definition (if defined/created).

Cheers,
Stephen.___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders