This is the case:
I have a layer of Away3D under a Starling layer.
In my Away3D I have a mesh and in the Starling I have a colored Sprite square.
I want that the Starling sprite follows the mouse while I´m hovering over a specific mesh in the Away3D layer.
To achieve this, I followed the tutorial http://away3d.com/tutorials/Away3D_and_Starling_Interoperation and modified to work with an AWD object.
The mesh appears and the label appears, but I don´t know how to make an instance of the label to take over control. When I tried to instantiate like
private var myLabel:My_Slabel;
and then tried to create a new object I get an error.
In my initStarling() I have:
private function initStarling() : void{
starlingLabel = new Starling(My_Slabel, stage, stage3DProxy.viewPort, stage3DProxy.stage3D);
}
What is the best approach on this?
I really appreciate any help.
Regards!