Tagged: root

AS3 access root from loaded swf 0

AS3 access root from loaded swf

In the root path of your external swf file, defined an object that represent the root path of the container swf. var rootObj:Object=this.parent.parent.parent as Object;

Flash AS3 Target Root Path 4

Flash AS3 Target Root Path

In ActionScript 2, it was easy to access root, parents, and grandparents. However, in ActionScript 3, we are in for a big surprise when trying to access root the old way like trace(_root.myVar). The...