I guys,
I am creating a loader for .swf , everything is fine , but i am unable to show the hand cursor. i get an error message :
Scene 1, Layer ‘action’, Frame 1, Line 26 1119: Access of possibly undefined property buttonMode through a reference with static type flash.display:SimpleButton.
Here is the code i use everything works except i am unable to show the hand cursor ( i have disable it for now ):
var swf1:MovieClip;
var loader1:Loader = new Loader();
var defaultSWF1:URLRequest = new URLRequest(“1.swf”);
loader1.load(defaultSWF1);
addChild(loader1);
this.addEventListener(MouseEvent.CLICK, callLink);
/btn.buttonMode=true
btn.useHandCursor = true;/
function callLink(event:MouseEvent) {
//var url:String = stage.loaderInfo.parameters[‘clickTAG’];
var url:String = "http://cnn.com";
var request:URLRequest = new URLRequest(url);
navigateToURL(request, ‘_blank’);
}