Jump to content

Codepen Notification

You didn't provide a codepen sample that illustrates the problem. It really helps us quickly identify problems. This isn't mandatory, but it will get you better/faster results. Would you like to add one?

Accessing a normal variable or function from child swf

Started by user8429, Apr 20 2017 08:19 AM

1 reply to this topic
user8429

Post #1 by user8429 , 20 April 2017 - 08:19 AM

Is it possible to access variables or functions belonging to the parent swf from child swf, which are not assigned to _root, withouth changing code of the parent swf? For example in parent swf there is not-root variable called 'x' in 'SomeClass' class. Now I'm loading second swf through 'loadMovie' function and I want to print value of this variable in child swf. I can't just write 'trace(_root.SomeClass.x)' because this is not _root variable.
  • Back to top

GreenSock

Post #2 by GreenSock , 22 April 2017 - 08:24 AM

It has been several years since I dealt with this kind of thing, and I don't think what you're asking is possible, but I could be wrong. I wish I had a better answer for you. 


  • Back to top




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

3rd Party Advertisement