Hey folks, im trying to call fscommand from flex, but without much
luck, i was wondering if anyone can help me.
Heres a simple POC of what im trying:
Test.jsp
<%@ taglib uri="FlexTagLib" prefix="mm" %>
<html>
<head>
<script language="javascript">
function myMovie_doFSCommand(arg1,arg2){
alert("fscommand called");
alert("arg1" + arg1);
alert("arg2" + arg2);
}
</script>
</head>
<body>
<mm:mxml source="TestApp.mxml" id="myMovie" name="myMovie"/>
</body>
</html>
TestApp.mxml
====
<mx:Application width="200" height="200"
xmlns:mx="http://www.macromedia.com/2003/mxml">
<mx:Button label="MXML Button" click="doClick()"/>
<mx:Script>
function doClick(){
fscommand("arg1","arg2");
}
</mx:Script>
</mx:Applicaiton>
Needless to say, the javascript alerts are never showing. i suspect
im missing something basic, but even back in my heydays of flash, i
rarely if ever used fscommand.
can someone point me in the right direction?
thanks.
jeff