Re: [Flashcoders] Having MovieClip behaviours in a class..

2007-06-09 Thread O. Fouad
Oh... fixed it..never mind my last post :D Thanks all! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premie

Re: [Flashcoders] Having MovieClip behaviours in a class..

2007-06-09 Thread O. Fouad
Jesse i got a problem with the static methods u wrote... a second box overrides the first... ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Broug

Re: [Flashcoders] Having MovieClip behaviours in a class..

2007-06-08 Thread O. Fouad
continued... just the same way when in actionsript 1 i write: MovieClip.prototype.myEffect = function () { //some code here } myMC.myEffect(); ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http:

Re: [Flashcoders] Having MovieClip behaviours in a class..

2007-06-08 Thread O. Fouad
thanks :D but why should i use static methods I am trying to create some color effect shortcuti wont need to create new instances. If i have a movieClip on my stage i wouldlike to have it myMC.someEffect(par); ___ Flashcoders@chattyfig.figleaf.c

RE: [Flashcoders] Having MovieClip behaviours in a class..

2007-06-08 Thread Jesse Graupmann
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike Sent: Friday, June 08, 2007 3:58 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Having MovieClip behaviours in a class.. Hi, If you are extending a movie-clip, why can't you just draw in t

Re: [Flashcoders] Having MovieClip behaviours in a class..

2007-06-08 Thread O. Fouad
this is just an example.. u know i wanted to apply some custom effect to a movieClip and using mc.applyFX(bla bla) instead of applyFX(mc, bla bla); Just like mc_tween's mc.alphaTo() for example... -- O.Fouad - Digital Emotions ___ Flashcoders@chattyfig

Re: [Flashcoders] Having MovieClip behaviours in a class..

2007-06-08 Thread Glen Pike
Hi, If you are extending a movie-clip, why can't you just draw in there?? e.g. class DrawBox extends MovieClip { public function drawBox() { beginFill(0xFF,100); moveTo(0,0); lineTo(100,0); lineTo(100,100); lineTo(0,100); lineTo(0,0);

[Flashcoders] Having MovieClip behaviours in a class..

2007-06-08 Thread O. Fouad
Ok, this is just frustrating me... somebody help me please :( i've got this class DrawBox that as it says, draws a box on the stage.. class DrawBox extends MovieClip { var myMC:MovieClip; public function DrawBox(boxName:String) { this.myMC = _root.createEmptyMovieClip(boxName,_root