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.
>
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
> 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
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
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
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
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
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
8 matches
Mail list logo