Go Back   CodingForums.com > :: Client side development > Flash & ActionScript > Adobe Flex

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-28-2011, 09:16 PM   PM User | #1
bon_t
New Coder

 
Join Date: Jul 2010
Posts: 32
Thanks: 1
Thanked 0 Times in 0 Posts
bon_t is an unknown quantity at this point
How to access url

Hello,

I'm using Flex 4, ActionScript 3.

In my application, I have a Help menu bar item, with Documentation as a sub-item.

My documentation is an html file, and it is deployed as part of the application, and hence will have a relative path to the application.

I want to display the content of this html file when you choose Help -> Documentation.

I tried Googling "flex access url" but the links are about accessing variables in url fragments.

How can I just access the url itself to display the contents of the file?

Thanks!
Bon :-D
bon_t is offline   Reply With Quote
Old 11-28-2011, 10:25 PM   PM User | #2
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,601
Thanks: 2
Thanked 397 Times in 390 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
Code:
var url:String = ExternalInterface.call("window.location.href.toString");
Edit: Whoops. I think I misread your request

Last edited by Inigoesdr; 11-28-2011 at 10:48 PM..
Inigoesdr is offline   Reply With Quote
Old 11-28-2011, 10:28 PM   PM User | #3
bon_t
New Coder

 
Join Date: Jul 2010
Posts: 32
Thanks: 1
Thanked 0 Times in 0 Posts
bon_t is an unknown quantity at this point
Thanks, Inisgoesdr, for your quick reply.
I came across the navigateToURL command, so I'm going to try using that first.
bon_t is offline   Reply With Quote
Reply

Bookmarks

Tags
access url, display html, flex4

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:39 PM.


Advertisement
Log in to turn off these ads.