Sorry to respond to my own thread here, but maybe the lack of response
is due to my lack of a good example.  

In my MXML I have a linkButton that I would like to pop the system
browser pointed to a particular URL.  My code looks like this:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml";
layout="vertical" viewSourceURL="srcview/index.html">
    <mx:Script>
        <![CDATA[
            import flash.net.navigateToURL;
            public function goToURL():void
            {
                var url:URLRequest = new
URLRequest("http://www.example.com/";);
                navigateToURL(url);
            }
        ]]>
    </mx:Script>
    
    <mx:LinkButton label="LinkButton" enabled="true" click="goToURL()"/>
    
</mx:WindowedApplication>


Well, this ends up popping my default text editor with the raw HTML.

This has got to be doable.  What am I missing here?


Thanks,

Mike

Reply via email to