if(flash.system.Capabilities.version == "WIN 9,0,16,0"){
flash.net.sendToURL(new URLRequest("_javascript_:" + strJavaScript));
}else{
ExternalInterface.call(strJavaScript)
}
Anybody have any better solutions?
Rogerio
hello again,
Here is a example of the problem that I´m having.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import flash.external.ExternalInterface;
private function doAlert():void{
var strJavaScript:String = 'alert("blablabla")'
ExternalInterface.call(strJavaScript);
}
]]>
</mx:Script>
<mx:VBox width="100%" height="100%">
<mx:Accordion width="100%" height="100%">
<mx:Canvas label="Test 1">
<mx:VBox>
<mx:Button label="Button"/>
<mx:CheckBox label="Checkbox"/>
</mx:VBox>
</mx:Canvas>
<mx:Canvas label="Test 2">
<mx:VBox>
<mx:TextArea/>
<mx:Button label="Button"/>
</mx:VBox>
</mx:Canvas>
</mx:Accordion>
<mx:Button click="doAlert()" label="Test ExternalInterface"/>
</mx:VBox>
</mx:Application>
Regards,
Rogerio
--- In [email protected], "Rogerio Gonzalez"
<[EMAIL PROTECTED]> wrote:
>
> Hello people,
>
> I am having a problem with Firefox. I do a _javascript_ (window.open) by
> an ExternalInterface.
> Something like this:
>
> var strJavaScript:String = 'window.open("test.html","Test","width="+
> screen.width +",height="+ (screen.height - 30)
> +",left=0,top=0,status=0")'
> ExternalInterface.call(strJavaScript);
>
> in IE, everything work just fine. But in Firefox (1.5.0.7) the browser
> execute the _javascript_ code right, but the FlashPlayer goes funny.
> Some things work, others don´t. ViewStacks, for example. Simple
> doesn´t work after perform an ExternalInterface.call
>
> Anybody have any ideias?
>
> Thanks
>
> Rogerio
>
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
![]()
SPONSORED LINKS
Software development tool Software development Software development services Home design software Software development company
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
Reply via email to

