The core of that is navigateToURL().

 

But I have to ask, why are you doing that, implementing the two "pages"
as separate applications?  I hope you are not using Flex to build an
html app.  Typical Flex apps never navigate the browser, but remain
continually resident.  Keeping state on the client is one of the huge
benefits of a Flex app.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of valdhor
Sent: Friday, May 09, 2008 9:10 AM
To: [email protected]
Subject: [flexcoders] Re: Traversing between pages

 

This may not all be required (Does that make sense?) but this is what I
do:

var browserManager:IBrowserManager = BrowserManager.getInstance();
browserManager = BrowserManager.getInstance();
browserManager.init("", Application.application.pageTitle);
var url:String = browserManager.url;
var baseURL:String = browserManager.base;
var baseURLArray:Array = baseURL.split("/");
var baseURLArrayLength:int = baseURLArray.length;
baseURL = "";
for(var i:int = 0 ; i < baseURLArrayLength - 1 ; i++)
{
   baseURL += baseURLArray[i] + "/";
}
var newURL:String = baseURL + "mynewpage.php?var=value";
navigateToURL(new URLRequest(newURL),"_top");


--- In [email protected], "Ram Bhardwaj" <[EMAIL PROTECTED]>
wrote:
>
> Hi All,
> 
> I have created 2 different MXML applications (essentially... 2 
> different pages of a website built on flex) in in flex builder 3.
> Now, i want to navigate to the second application from the the 
> first "on-click" of a button. (somethng like a response.redirect() 
> method in JSP's)..... can anyone provide me any help regarding the 
> problem??? 
> 
> P.S : both the applications are in the SRC folder of Flex 3
> 
> Thanks in advance
> rAmmy :)
>

 

Reply via email to