Hello…
i have an issue in accessing stage objects from class files.
Here is my code
package
{
import flash.display.MovieClip;
import flash.events.*;
import AS3Player;
public class thumbClass extends MovieClip
{
public function thumbClass()
{
trace("helloworld")
var AS3Player1:AS3Player = new AS3Player();
addChild(AS3Player1);
AS3Player1.thumb1.addEventListener(MouseEvent.CLICK,load1);
function load1(e:MouseEvent):void
{
trace("sdadasasd");
}
}
}
}
here i have thumb1 in fla file and i am not able to add a listener on it.
Any help regarding it would be appreciable.
Thanks
Nikhil