Good lord!

Why do you say that?

It's an extra 2 lines of code and it allows you to reparent any of the
children of any of the movie clipse.

I'd be more inclined to say it's awesome!

Spike

On 10/28/05, Andreas Rønning <[EMAIL PROTECTED]> wrote:
>
> Shaw, Matt wrote:
>
> >Assuming the Game class is your root/stage class:
> >
> >....
> >Public class Game extends MovieClip {
> >public function Game(){
> > var gameworld:MovieClip = new MovieClip(); //new GameWorld()?
> > this.addChild( gameworld );
> >
> > var game_bg:MovieClip = new MovieClip();
> > gameworld.addChild( game_bg );
> >}
> >
> >
> >
> >-----Original Message-----
> >From: [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] On Behalf Of Andreas Rønning
> >Sent: Friday, October 28, 2005 1:08 PM
> >To: Flashcoders mailing list
> >Subject: [Flashcoders] Newbie AS3 question
> >
> >AS3 noob question ahoy!
> >
> >I'm reading the AS3 reference trying to get accustomed to the idea, but
> some things (though they look better) i don't really get right away :) Hence
> my feeling of incredible stupidity.
> >
> >I realise the AS3 in the reference is Flex-related, but in Flash IDE
> terms, how would i do something like this in AS3:
> >
> >var baseClip = _root.createEmptyMovieClip("gameworld",1);
> >var backGround = baseClip.createEmptyMovieClip("game_bg",1);
> >
> >I get how much more practical myClip = new MovieClip(); looks, but i
> don't get how i connect a clip created this way with the traditional clip
> hierarchy. Is that out the window as well?
> >The reference describes |DisplayObjectContainer.addChild(), but i'm
> guessing this doesnt really count for how it'll work in the Flash IDE?
> >
> >Any helpful hints at what the future holds? :)
> >|
> >- Andreas
> >_______________________________________________
> >Flashcoders mailing list
> >Flashcoders@chattyfig.figleaf.com
> >http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >_______________________________________________
> >Flashcoders mailing list
> >Flashcoders@chattyfig.figleaf.com
> >http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> >
> .... That's horrifying.
>
> - Andreas
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



--
--------------------------------------------
Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to