Expand my Community achievements bar.

Elevate your expertise and be recognized as a true influencer! Nominations for the exclusive Adobe Community Advisor program 2023 are now OPEN.
SOLVED

Workspace URL inside Flex form

Avatar

Not applicable

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

0 Replies

Avatar

Level 10

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

Avatar

Correct answer by
Level 10

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