Why do you need the "/" ?
Anyway, try this.

var urlRequest:URLRequest = new URLRequest("file://sameer/");
navigateToURL(urlRequest,"_blank");

It'll most probably work.

-- Jeethu Karthik J
  http://jeethukarthik.com



On Tue, Jan 27, 2009 at 4:19 PM, Sameer <samjai...@gmail.com> wrote:

>
> Hello
>
> I am having a weird problem in Flex 3.0.
>
> I want simply open an url in same window with the following code upon
> clicking on a button. This is what i am trying to do upon clicking on
> the button
>
> var urlRequest:URLRequest = new URLRequest("/sameer/");
> navigateToURL(urlRequest,"_blank");
>
> and it doesn't work and if i remove the first "/" from the url for
> example
>
> var urlRequest:URLRequest = new URLRequest("sameer/");
> navigateToURL(urlRequest,"_blank");
>
> and it starts working. This is really weird. I cant get rid of "/" as
> we need it.
>
> Please advice asap
>
> Thanks
>
> >
>

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