


Using ES1 still.
Does anyone know an easy way to gain access to the Workspace URL from within a Flex form? I tried using the BrowserManager, but since the Flex form is actually loaded inside another Flex application and not the browser, it didn't seem to work for me.
My goal is to use the URL to do some internal configuration in the Flex form to respond to DEV, TEST and PROD servers.
Views
Replies
Total Likes
I have misread your post. Sorry.
The answer is
var workspaceURL:String = Application(application).url;
application refers the top-level Application. Since the applciation is a property of type Object, you will have to cast is using Application class.
I hope this is what you are looking for!
Nith
Views
Replies
Sign in to like this content
Total Likes
You can try to following option.
navigateToURL(new URLRequest("http://localhost:8080/workspace"),"_blank"); // This code will open your workspace in a new browser window.
Nith
Views
Replies
Sign in to like this content
Total Likes
I have misread your post. Sorry.
The answer is
var workspaceURL:String = Application(application).url;
application refers the top-level Application. Since the applciation is a property of type Object, you will have to cast is using Application class.
I hope this is what you are looking for!
Nith
Views
Replies
Sign in to like this content
Total Likes
yeah yeah, why didn't that I think of that!
Views
Replies
Total Likes