Application.application is always the first SWF loaded. If you get loaded by another SWF, you can't use Application.application. Using parentDocument will probably work better.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of tj.vaccaro Sent: Thursday, September 27, 2007 9:51 AM To: [email protected] Subject: [flexcoders] Accessing a Function from an Embedded Application I have loaded an application using SWFLoader and need to access a function (myFunction) in the loaded application's .mxml file. When I run the loaded application standalone the Application.application.myfunction() reference works fine. However, when I embed the application in another application (TestProgram) and load it with SWFLoader the Application.application.myFunction() call results in a "ReferenceError: Error #1069: Property myFunction not found on TestProgram and there is no default value." Any and all advice would be greatly appreciated.

