john_yourspace
asked on
AS3 parent function
Hi guys,
I am trying to access a function in my class file (.as file)
I am using this code which isnt working
the trace displays [object Game]
Game is the name of my file Game.as
Here is my function
Suggestions please :D
J
I am trying to access a function in my class file (.as file)
I am using this code which isnt working
the trace displays [object Game]
Game is the name of my file Game.as
trace(this.parent);
if (this.parent != null)
{
var p:MovieClip = this.parent as MovieClip;
p.goToLeaderBoard();
}
Here is my function
public function goToLeaderBoard() : void
{
trace("hit function");
}
Suggestions please :D
J
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i traced it and found was too deep
if you want assistance could you please be a bit more specific. Please describe your setup.
Tx.