[Flashcoders] Q:Dynamically REMOVE a class linkage

2007-01-10 Thread moveup
Hi Can anyone tell me what's the BEST way to REMOVE a class linkage at runtime? Thanks! Jim Bachalo [e] jbach at bitstream.ca [c] 416.668.0034 [w] www.bitstream.ca ...all improvisation is life in search of a style. - Bruce Mau,'LifeStyle'

Re: [Flashcoders] Q:Dynamically REMOVE a class linkage

2007-01-10 Thread Ian Thomas
Jim, Do you mean attach a movie clip while ignoring it's Linkage settings? In which case, at a guess you should be able to do something like this: Object.registerClass(MySymbol,MovieClip); before attaching the class. That ought to do it. If you're trying to unload a class (so, for example,

[Flashcoders] Q:Dynamically REMOVE a class linkage

2007-01-10 Thread moveup
Thanks Ian! I think delete _global.com.mycompany.mypackage.MyClass; is close to what I need bascially I have some movieclips manually place on the stage with class linkages defnied in the library. the MC's when instantiated perform the following initialize action: get their inital _y

Re: [Flashcoders] Q:Dynamically REMOVE a class linkage

2007-01-10 Thread T. Michael Keesey
On 1/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: the problem is these movieclips are one after the other on the timeline so the associated class is constantly instantiated. On the same timeline layer? If they are keyframes of the same movieclip all on the same layer, than you just need

RE: [Flashcoders] Q:Dynamically REMOVE a class linkage

2007-01-10 Thread Steven Sacks | BLITZ
Does this make sense? No it doesn't. I surmise that you are making the variable static, either by declaring it as static variable or by setting it to a value when you declare it. Thus, it ends up shared across all instances of the class (static variables are class variables, dynamic variables

Re: [Flashcoders] Q:Dynamically REMOVE a class linkage

2007-01-10 Thread Ian Thomas
On 1/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: the problem is these movieclips are one after the other on the timeline so the associated class is constantly instantiated. Does this make sense? Not really, I'm afraid - I can't quite work out what you're up to. However, it sounds