Hii Alll -

Not sure if my question is directly related to this thread.. Thought I can
post my question here

I am working on a AIR application and trying to open a help file from my
install location.  Here is the code that i am using


*var* fGetStartPage:String = File.applicationDirectory.resolvePath(*
'assets/FlashHelp/TriGeoHelp.htm'*).url.toString();

*var* fPath:String = *new* File(*new* File(fGetStartPage).nativePath).url;

fPath = fPath + *
"#Rule_Builder_Desktop/About/About_the_Rule_Builder_Desktop.htm"*;

Alert.show(*"Fpath : "* + fPath);  // gives my expected output

Alert.show(*new* URLRequest(fPath).url.toString()); // gives my expected
output

navigateToURL(*new* URLRequest(fPath));
file:///C:/workspace/SIMConsole/bin/assets/FlashHelp/TriGeoHelp.htm*
#Rule_Builder_Desktop/About/About_the_Rule_Builder_Desktop.htm*<file:///C:/workspace/SIMConsole/bin/assets/FlashHelp/TriGeoHelp.htm#Console/Managers/Using_the_Manager_menu.htm>
Looks like this works as fine for the first time when no window is opened.
When the same command is invoked for another link, IE/Firefox is trying to
open the link in a new tab and it messes up on what I needed. It doesnt work
as expected.. the url which it tries to open is something like

C:/workspace/SIMConsole/bin/assets/FlashHelp/TriGeoHelp.htm

So, somehow, the first ";" is converted into "|" and this is causing a wrong
URl to be interpreted by the browser. How can this be prevented? Any help is
greatly appreciated!!!


Thank you!!






On Mon, Apr 27, 2009 at 9:57 PM, Linuxpham <thaiho...@gmail.com> wrote:

>
> Using :
>
> navigateToURL(new URLRequest('page.html'),'_self') ;
>
> Thanks !
>
> On Apr 28, 1:19 am, Shaleen Jain <shaleenkumarj...@gmail.com> wrote:
> > if you meant with the page navigation, give a try to States and states
> > continer like tabnavigaror.
> >
> > Thanks,
> > Shaleen Jainhttp://shaleenjain.blogspot.com
>  >
> > On Apr 25, 3:39 pm, kamlesh vaghela <kamlesh2...@gmail.com> wrote:
> >
> > > U can point the page by taking any mxml file to the html file
> > > Like test.mxml is pionted thru test.html
> >
> > > the rendered file , in bin fldr is html file
> >
> > > if this will run then mail me
> >
> > > thx
> >
> > > On Fri, Apr 24, 2009 at 11:29 PM, rame <ramesa...@gmail.com> wrote:
> >
> > > > Hi all,
> >
> > > > How to traverse through different pages in flex???
> >
> > > > regards
> > > > rame
>
> >
>

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

Reply via email to