Posted By

heathbo on 10/05/10


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

alptugan
scottwatkins


How to access parent variables and functions


 / Published in: ActionScript 3
 

(this.parent) can be altered depending on how far back you want to go. (this.parent.parent.parent) for example.

  1. To access a parent variable: MovieClip(this.parent).variableName;
  2.  
  3. To access a parent function: MovieClip(this.parent).functionName();

Report this snippet  

You need to login to post a comment.