I am writing a Flash app in Flex Builder 3. I have a problem. I need the URL of the place where the Flash app has been embedded.
mx.core.Application.application.url
This gives me the address of the original swf file, but I actually need the URL of the HTML file where this SWF has been embedded. is there a way ??? thanks! Ali
You have 2 options. in flex:
and the listener
That code works both on the server and on Local host.
if that does not work for you (upload the error here first) but you can also create a JS function that will return the URL and have flex call this function.