Hi,
what i meant was:

If you do:
this.test_mc.onLoad = function(){
trace("onLoad");
}

Then the test_mc is either there or not. If it's there, it has been loaded
already and you are overwriting the function after the fact. If it's not
there.. well it's not there...

At least that is how I think it works. I never use it myself so i might be
wrong :)

greetz
JC



On 7/11/07, Dennis - I Sioux <[EMAIL PROTECTED]> wrote:

In the small test i'm setting an onLoad from the frame script where the mc
appears.
If i'm not mistaken frame script is run first before the mc appears then.

Anyway.. the onLoad will give a trace when i put script (even just "//")
on
the mc itself .. otherwise it won't call the onLoad.

----- Original Message -----
From: "Hans Wichman" <[EMAIL PROTECTED]>
To: <flashcoders@chattyfig.figleaf.com>
Sent: Wednesday, July 11, 2007 4:25 PM
Subject: Re: [Flashcoders] Movieclip.onLoad and onClipEvent :S


> Hi,
>
> am I right in thinking you are putting a movieclip on the stage and try
to
> overwrite its onLoad function?
>
> By the time the object is available for you to act upon, its onLoad is
> already executed, so overwriting it is no use.
>
> greetz
> JC
>
>
> On 7/11/07, Dennis - I Sioux <[EMAIL PROTECTED]> wrote:
>>
>> Hey List,
>>
>> This one is making me nuts :-D .. while it is so easy.
>>
>> i'm extending the textfield constructor and it needs to set an onLoad
on
>> his parent mc.
>> Because i had some trouble and it was a big file i've made a small
test..
>>
>> But asfar as i can see.. when i put an onLoad on a mc.. it will only be
>> called if i put script on the mc itself.. even if it is just comment.
>> Can anyone explain this? Or is this an old subject?
>>
>> the Script (if there is any:-D) .. :
>>
>> this.test_mc.onLoad = function(){
>> trace("onLoad");
>> }
>>
>> set a test_mc movieclip on the stage
>> then run it.. .. nothing happens.
>> Select the test_mc ..  put "//" on it in the action panel..
>> And.. you get a trace.
>>
>> Anyone? Or is there a way to dynamically put the onClipEvent(load) on
it?
>>
>> Greetz,
>>
>>
>> Dennis
>> I Sioux
>> _______________________________________________
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
>>
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to