Send data from Flash to Starling class

后端 未结 2 834
情书的邮戳
情书的邮戳 2021-01-21 02:45

I want to send data from mainClass (Flash class) to my Starling class. Here is the code of two classes. I need to pass data between them.

package
{
import flash.         


        
相关标签:
2条回答
  • 2021-01-21 02:53

    Fast solution , useful in some cases: make static function in mainClass and call it when your Main instance is ready (in addToStage for example)

    0 讨论(0)
  • 2021-01-21 03:09

    definately we can't write any event or class to interact with flash and starling for this issue we can use CALL_BACK Function. so that you can interact or send data from core flash to starling and starling to core flash. Function call won't give any error.

    0 讨论(0)
提交回复
热议问题