RE: [Flashcoders] Question on attachMovie

2006-04-02 Thread Steven Sacks
lashcoders mailing list > Subject: Re: [Flashcoders] Question on attachMovie > > Thanks for the suggestions everyone. > > >>Use the most basic of OOP principles and let the movieclip > call its own > >>init rather than making an interval for every single clip. >

Re: [Flashcoders] Question on attachMovie

2006-04-02 Thread Dave Mennenoh
Thanks for the suggestions everyone. Use the most basic of OOP principles and let the movieclip call its own init rather than making an interval for every single clip. Well, I had just one interval that, when finished, called 'init' on all my thumbnail clips... But either way, I like how you

RE: [Flashcoders] Question on attachMovie

2006-04-02 Thread Steven Sacks
> var mc = holder.attachMovieClip("SYM_Clip", "item", 10); > mc.controller = this; > mc.foo = "something"; > mc.bar = 15; > > Inside the SYM_Clip movieclip in the library: > > function init() { > FooTextField.text = foo; > BarTextField.text = bar; > } > init(); This isn't the best exampl

RE: [Flashcoders] Question on attachMovie

2006-04-02 Thread Steven Sacks
This behavior is very easy to manage. Here's how I do it. You can set properties of a clip even though you cannot call methods of a clip. This is how Flash works. So, what I do is this. I have the movieclip itself call its own method. I have the attacher set its initial properties when it att

Re: [Flashcoders] Question on attachMovie

2006-04-02 Thread Helen Triolo
Why not take the function out of the clip altogether, put it in a class file, and have it be available immediately after the attachMovie without all that wait-a-frame-for-function-to-be-available stuff? Or even call a function on the main timeline instead? Unless it's for Flash 5, I can't thi

Re: [Flashcoders] Question on attachMovie

2006-04-02 Thread Dave Mennenoh
Have you tried attachedMC.onLoad? Oh, I see what you mean. Place the onLoad within the clip.. No, I didn't try that. It might work, but I'd rather do it like I have it - calling the method from the code that attaches the clip. Dave - Adobe Community Expert www.blurredistinction.com www.macr

Re: [Flashcoders] Question on attachMovie

2006-04-02 Thread Dave Mennenoh
Yes, there are functions within the attached clip. I don' believe there's an onLoad even generated for an attached clip. And I'm pretty sure having to wait for a frame redraw, before calling a method of an attached clip, is standard procedure. I have everything working fine. I am simply curious

Re: [Flashcoders] Question on attachMovie

2006-04-02 Thread Ramon Miguel M. Tayag
You mean there are functions in the attached movie? AFAIK, it's supposed to be initialized as soon as it gets on the stage. Have you tried attachedMC.onLoad? On 4/2/06, Dave Mennenoh <[EMAIL PROTECTED]> wrote: > I am attaching some thumb clips from the library into a holder clip on > stage, usin