[Flashcoders] Attach sub class to swf which is loaded via attachMovie()?

2006-12-01 Thread Micky Hulse
Just curious if it is possible to extend/apply a sub class to a swf which is loaded via attachMovie()? TIA, Cheers, M -- Wishlist: http://snipurl.com/vrs9 Switch: http://browsehappy.com/ BCC?: http://snipurl.com/w6f8 My: http://del.icio.us/mhulse

Re: [Flashcoders] Attach sub class to swf which is loaded via attachMovie()?

2006-12-01 Thread Yehia Shouman
function Square(){} Square.prototype=new MovieClip(); Square.prototype.changeColorTo=function (clr:Number) { var tempClr:Color=new Color(this); tempClr.setRGB(clr); delete tempClr; } var linkageID_str:String=exportedClip; //associate the linked clip with sub class

Re: [Flashcoders] Attach sub class to swf which is loaded via attachMovie()?

2006-12-01 Thread Micky Hulse
Excellent! Many many many thanks Yehia and EKA... I have not had any luck finding examples on the www... both examples will be great for me to learn from. :D Thanks again! Cheers, Micky -- Wishlist: http://snipurl.com/vrs9 Switch: http://browsehappy.com/ BCC?: http://snipurl.com/w6f8

Re: [Flashcoders] Attach sub class to swf which is loaded via attachMovie()?

2006-12-01 Thread Yehia Shouman
You're welcome Micky EKA, I've been really confused by the garbage collection and how it sometimes sits their coldly not doing the job ! I read somewhere the garbage collection won't fire unless the application is in a still state. In an application, that I had some interval process happening,

Re: [Flashcoders] Attach sub class to swf which is loaded via attachMovie()?

2006-12-01 Thread eka
Hello :) a delete in a function failed to destroy a variable ;) My french article about this subject : http://www.ekameleon.net/blog/index.php?2006/06/10/34--as-ssas-delete-un-peu-capricieux Used google translator or bablefish if you want read my article in english (sorry .. i speak english

Re: [Flashcoders] Attach sub class to swf which is loaded via attachMovie()?

2006-12-01 Thread Yehia Shouman
No don't worry man about your english. Thanks alot eka, Yehia On 12/1/06, eka [EMAIL PROTECTED] wrote: Hello :) a delete in a function failed to destroy a variable ;) My french article about this subject :