Send data from Flash to Starling class

后端 未结 2 833
情书的邮戳
情书的邮戳 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)

提交回复
热议问题