Skip to main content
Participating Frequently
April 27, 2020
Question

strange behavior of alert message JSFL Actionscript

  • April 27, 2020
  • 0 replies
  • 227 views

I have an SWF extension panel and the issue appears when I try to show an alert if the user selects another document in Animate. It shows many many times, and I can't figure out why..
jsfl code:

 

var docChangedID = fl.addEventListener( "documentChanged", onDocumentChangedHandler );
function onDocumentChangedHandler(){
     var panelChange = fl.getSwfPanel("mySWFpanel", false );
	panelChange.call( "changeDoc" );
}

 

 AS code:

 

ExternalInterface.addCallback('changeDoc', this.enabledList );
function enabledList() : void {	
		list.dataProvider.removeAll();
	MMExecute("fl.trace(\"you are change FLA file\");");
	MMExecute('alert("you are change FLA file");');
	//MMExecute('fl.runScript(fl.configURI + "/WindowSWF/mySWFpanel.jsfl", "showAlert");');
}

 

    This topic has been closed for replies.