all groups > flash (macromedia) > september 2007 >
You're in the

flash (macromedia)

group:

Use _level0 function in _level1


Use _level0 function in _level1 IaguCool
9/21/2007 6:41:46 PM
flash (macromedia):
Hello.
I've got a question:
I have a moveiclip loaded, and Frame 1 contains a function that looks like
this:
function returnValue () {
return _root.main.intRank;
}
And with VB, I've loaded another clip on level1.
When I use _level0.main.intRank; from the level1 clip it works fine. But the
question is: how do I execute this function from the level1 clip?
I've tried _level0.returnValue() but it returned as undefined...

Any solution?
Re: Use _level0 function in _level1 IaguCool
9/21/2007 8:18:11 PM
Re: Use _level0 function in _level1 Rothrock
9/22/2007 3:18:25 AM
what is your problem? Some times it might take more than an hour and half for
some volunteer to answer your question - nobody owes you anything.

If it is such a big deal, what did you come up with?

My guess is that when you call the function from _level1 your _root is going
to be _level1. So the peoperty won't be found. The way to check that would be
to add the following to you function:

trace("the scope is "+this);
AddThis Social Bookmark Button