Is it possible to send data to a starling object after instantiating it?
var mStarling:Starling = new Starling(StarlingClass, stage);
Or by dispatching events from main class and then listen for these events in the starling class?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I dont think you can pass events between a normal display object and a starling display object. The main reason behind this being the fact that all Starling Display Objects are drawn on the GPU or rather stage3d .
A normal event in Flash travels through the whole display list. Since stage3d is not part of the display list, I dont think stage3d objects can listen to your events.
I would suggest you to explore options like as3 signals to achieve the same. This should work since an as3 signal is independent of the display list hierarchy.