[Flashcoders] Load/export Symbol in ActionScript

2005-11-28 Thread de-hack SWF
Dear all, I am new to flash programming, so my question may be silly. In the first frame of new flash document, I have the code like this. trace("hello"); var rmc = _root.attachMovie("RMCSymbol", "rmc_1", 2); trace(rmc); RMC(rmc).init(100, 200); Where RMC is a subclass of MovieClip. I created a

Re: [Flashcoders] Load/export Symbol in ActionScript

2005-11-29 Thread de-hack SWF
> > > Creating a fake named linkage'd run-time symbol is done another way. > But I don't remember it by hearth. Maybe someone else can feed on this > one. Yes. Thanks. You identify my problem. This is the point that I want to know. Anyone any ideas? :-) Juguang _

Re: [Flashcoders] Load/export Symbol in ActionScript

2005-11-29 Thread de-hack SWF
n; > > var button:MyButton=MyButton(myTimeline.attachMovie(MyButton.symbolName, > "someRandomButton", > myTimeline.getNextHighestDepth())); > > Where myTimeline is whatever parent movie clip you're trying to attach to. > > HTH, > Ian

Re: [Flashcoders] Load/export Symbol in ActionScript

2005-11-29 Thread de-hack SWF
On 11/30/05, Ian Thomas <[EMAIL PROTECTED]> wrote: > > Hi Juguang, > Try replacing the line: > public static var symbolName:String="RMC"; > with: > public static var symbolName:String="__Packages.RMC"; > > HTH, YTH! (Yes, that helps) My week-lasting exhaust is breezed away. Many thanks. :-)