Hi all,
I'm having trouble with using "onClipEvent(load)" from the timeline. If I put the following on a movie clip (instance name is "newOffers") directly, it works:
But from the timeline, I get the error "Expected a field name after '.' operator" with both of the following:Code:onClipEvent (load) { trace(this._name); }
Code:_root.newOffers.onClipEvent (load) { trace(this._name); }The following does not produce an error, but the trace doesn't run either:Code:_root.newOffers.onClipEvent (load) = function() { trace(this._name); };
I have a basic understanding of the differences in onLoad, onClipEvent(load), the movieClipLoader class, and the loader component, and I'm pretty sure onClipEvent(load) is what I want. I just want to run some AS on that MC one time, at the start of the movie, without running into timing issues where the code is executed before the MC is ready to receive it.Code:_root.newOffers.onLoad = function() { trace(this._name); };
Any help greatly appreciated - this is a frustrating one.![]()




).


Bookmarks