I've taken some time to search these archives, as well as other resources on
the web, but cannot come to a definitive conclusion:

1) When a .swf is accessed directly, through a browser, what is the correct
way to access the fully qualified URL? (i.e.
http://www.mydomain.com/files/flexapp.swf). There are a number of posts
about using mx.core.Application.application._url, but this is undefined for
me.

2) When a .swf is accessed by being embedded in an html page, what is the
correct way to access the fully qualified URL? Again, a number of resources
point me to using a javascript solution, but I'm surprised I can't gain
access to this information directly from Flash/Flex and have to rely on an
external dependency.

Why do I need this information? My Flex application could be served from any
hostname, and I need to establish a socket connection (requiring an absolute
url) back to the server hosting the .swf to do some RPC.

Many thanks for any response!

--
Jesse Hallam
University of Waterloo Junior

"For scarcely for a righteous man will one die: yet peradventure for a good
man some would even dare to die. But God commendeth his love toward us, in
that, *while we were yet sinners*, Christ died for us. " (Romans 5:7, 8)

Reply via email to