-
Registered User
loadMovie kills method?
Code:
_root.createEmptyMovieClip("newMc", 1);
_root.newMc.loadMovie("01.swf");
//_root.newMc.attachMovie("mc", "mc", 1);
_root.newMc.onEnterFrame = function() {
trace(getTimer());
};
After loading an external swf into the instance newMc, the method onEnterFrame, apllied to the very same instance, isn't called anymore.
Why does this happen?
But instead of loading, if I attach it from the library, there is no problem...
-
When you load "into" a mc, the loaded clip "replaces" the container clip. That could be the cause. that enterFrame could be triggered by an on(data) . In other terms come after loading is complete.
gparis
-
half as fun, double the price
lol I hit reply and I see gparis's post with almost the EXACT wording I was going to use
-
Registered User
Code:
_root.newMc.onData = function() {
trace("onData called");
};
the problem is that this doesn't work... for the same reason...
Last edited by nunomira; 12-04-2002 at 07:40 PM.
-
Registered User
And enven after I'm sure that the movie has loaded, and by clicking a button, I can't attach any method to the instace newMc, although it exists, acording to the trace action...
Code:
on (release) {
_root.newMc.onPress = function() {
startDrag(this);
};
trace(_root.newMc);
}
how to explain this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|