|
-
Senior Member
Also if you want to reuse the same function without having to redifine it in every mc or frame you can make a variable to point to it. Such as:
function sayHi(){
trace("Hi")
}
And in a MC that's inside the one with this function you can do:
var hi=_parent.sayHi;
And then call hi() inside the MC instead of _parent.sayHi().
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
|