Access flex application through the SWFLoader component
As you know, I’m a web developer and I love learning new stuff and blogging about it here. My blog post for today is about access flex application through the SWFLoader component.
Often you load flex applications through another flex application using the SWFLoader component. It’s not that common knowledge that you can actually access all of that application exactly the same way you are accessing your own application.
What does that mean?It means you can access that application components, get the children and get a good knowledge on how this application is build. You can also access it’s component and dispatch events.
OK, how?Let’s start doing it. We will create a simple application, put a SWFLoader on stage and create a listener for the complete event. Lets’s also add 2 global variables - one for SystemManager, another for IUIComponent (I will explain later).
This is what the application code should look like: