Hey sindu, u can give "second.html or second.swf" instedof second.mxml.
See the following code.

<?xml version="1.0"?>
<!-- first.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
 <mx:Script><![CDATA[
    import flash.net.*;
    public function openNewMXML(event:MouseEvent):void {

>        var u:URLRequest = new URLRequest("second.html");
>        navigateToURL(u,"_blank");
>     }
>  ]]>

</mx:Script>
>


>  <mx:Button label="Open New MXML file" click="openNewMXML(event)"/>
>


> </mx:Application>


Thanks & Regards,
Srinivas.


On Sat, Apr 11, 2009 at 9:33 AM, Sindhu <[email protected]> wrote:

>
> Hi,
> ViewStack is working is just fine. I tried the below code for
> navigating from one mxml to another but it didn't work.
> <?xml version="1.0"?>
> <!-- first.mxml -->
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
>  <mx:Script><![CDATA[
>     import flash.net.*;
>     public function openNewMXML(event:MouseEvent):void {
>        var u:URLRequest = new URLRequest("second.mxml");
>        navigateToURL(u,"_blank");
>     }
>  ]]></mx:Script>
>  <mx:Button label="Open New MXML file" click="openNewMXML(event)"/>
> </mx:Application>
>
> Tried giving the entire path for the "second.mxml" too.
> Whereas,
> var u:URLRequest = new URLRequest("http://www.google.com";); just
> works
> fine.
> Hoping someone can help..
> Thanks,
> Sindhu.
>
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to