1 Reply Latest reply on Aug 13, 2009 6:39 PM by FlexAppsStore.com

    Flex URL

    Travis Lazar

      I need to find out what URL is calling my .swf in Flex 3.3. I've found various posts on using the root class but I keep getting a null pointer when I try to use that. Any ideas?

        • 1. Re: Flex URL
          FlexAppsStore.com Level 1



               Here's what we do. Change the html file to a php file. Use the $_REQUEST[URI] or some other function to get the domain.


               1.) Add a parameter to the SWF embed statement.


               2.) In your init function of your program add the following:


                    Example: ip_addr = Application.application.parameters.ip_addr;


          Kind regards,


          Ivan Alexander