I had a problem with Firefox with this example.
As it turns out, opening a window with the ExternalInterface for
firefox doesn't work. The work around is to use
var request:URLRequest = new URLRequest(strURL);
try {
navigateToURL(request);
}
catch (e:Error) {
// handle error here
}
The above code seems to work well for opening a window and is less
affected by browsers incompatibility.
-Tim
--- In [email protected], "wi1df1ower" <[EMAIL PROTECTED]> wrote:
>
> Can anyone tell me why the following is not working?
> --in the actionscript:
>
> public function openWindow():void {
> var strFunction:String = "openWindow";
> var strURL:String = "http://www.yahoo.com";
> var strCall:String =
> ExternalInterface.call(strFunction,strURL);
> }
>
> --called from my linkbutton:
> <mx:LinkButton label="Homework" enabled="true" click="openWindow()"/>
>
> --in my .html wrapper. I have the "generate html" functionality
> turned off.
>
> <script type="text/javascript">
> var WindowObjectReference = null; // global variable
>
> function openWindow(strUrl)
> {
> if (WindowObjectReference == null || WindowObjectReference.closed)
> {
> WindowObjectReference = window.open(strUrl,null,
> "resizable=yes,scrollbars=yes,status=yes");
> } else {
> WindowObjectReference.focus();
> };
> }
> </script>
>
> I am using this from a tip used on CFLEX...its just about verbatim,
> but it wont work.
>
> i feel silly....please tell me if you see anything please.
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/