Hi all

I need some help on this:
Open a new java window in Flex like we do in Flash

I have a html page with this javascript code

<SCRIPT LANGUAGE="JavaScript"> var javascript_version = 1.0;</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.1">  javascript_version = 1.1;</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">

var newwin;
function launchwin(winurl,winname,winfeatures){

     newwin = window.open(winurl,winname,winfeatures);
     if(javascript_version > 1.0){
          
          setTimeout('newwin.focus();',250);
     }
}


And have this code in Flex, azulej7.htm is the html page.

public function executEmail(event:MouseEvent):void{
        var u:URLRequest = new URLRequest("javascript:launchwin
('azulej7.htm', 'newwindow', 'height=450, width=550')");
navigateToURL(u);
        } 

<mx:Button  click="executEmail(event)">


Ok this open a new window but not the java script window with 550 by 
the450 height.

If anyone can help me I say thanks and many thanks to all.

jf.sal







--
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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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/
 



Reply via email to