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