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, using
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
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
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
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 example since you could
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
: [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.
Well, I had just one interval that, when finished, called
'init' on all my
7 matches
Mail list logo