RE: [Flashcoders] SWF wrapping Class

2005-11-07 Thread Fruber Malcome
27;t understand the purpose of registering a class to an object being loaded.. Thanks - Fruber. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kyle Ward Sent: Monday, November 07, 2005 2:25 AM To: Flashcoders mailing list Subject: Re: [Flashc

Re: [Flashcoders] SWF wrapping Class

2005-11-07 Thread Kyle Ward
Hey >From what i can see registerClass works only on MC already in the libary. Anyway i think i am gonna just put all my SWFs stuff into a MC within the SWF and wrap the Class around that.should get the job done. Cheers Kyle On 11/7/05, Liam Morley <[EMAIL PROTECTED]> wrote: > >

Re: [Flashcoders] SWF wrapping Class

2005-11-07 Thread Liam Morley
I think you can use Object.registerClass in this case. The thing is, registerClass takes a string argument for the mc name, but not the class name (which would make it too easy for you). I'm not sure how to obtain a class prototype from a string, however- perhaps eval() will do that? I'm not sure.

[Flashcoders] SWF wrapping Class

2005-11-07 Thread Kyle Ward
Hi all! I want to wrap Class around a loaded SWF [similar to how you would attach a Class to an MC in the Libary] But i am loading the Class name from an XML file. EG: 1. var mc:MovieClip= loadMovieClip('my.swf'); 2. var className:String = 'Path.To.MyClass'; var help:Object = new [className](m