Erik - 
Thanks, that worked in a much nicer cross-platform way then using 
fscommand.

--- In flexcoders@yahoogroups.com, "Erik Westra" <[EMAIL PROTECTED]> wrote:
> Why don't u try to use getURL?
> 
> U can use it like this: 
> getURL("javascript:functionName('arg1', 'arg2')");
> 
> Internally fscommand is converted to something like:
> 
> getURL("fscommand:functionName..."), I don't know exactly, but 
there was
> a thread about it on flexcoders a month or so ago.
> 
> Greetz Erik
> 
> 
> -----Original Message-----
> From: jeff tapper [mailto:[EMAIL PROTECTED] 
> Sent: donderdag 3 maart 2005 16:21
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] fscommand and flex
> 
> 
> 
> 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
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Links





Reply via email to