Skip to main content
Participant
February 27, 2013
Question

how to send data in between two different as 3.0 classess

  • February 27, 2013
  • 1 reply
  • 485 views

i have two action script classess ,one is parent and another is child child is  called from parent  but how childclass send  its variable to parent for use means all type of data like number or string ..please any body with example

i have two classes but cant communicate

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
February 27, 2013

The parent should be able to get the data from the child.  The child should be able to dispatch an event that the parent can listen for.

Nabren
Inspiring
February 27, 2013

In addition to Events you can also do:

this.parent.function(); // to call a function (replacing function with the proper function name of course)

this.parent.someVariable = someValue; // to set a variable

biswapujaAuthor
Participant
February 27, 2013

thanx NABREN   i got some idea ..