Pls write "Application.application" instead of "Object(swfLoader.content)" because there is no 'application' property with
"Object(swfLoader.content)" so it will always be null.
Let me know if you have any issue with this.
Shardul Singh Bartwal
thank you for your reply. I still didn't solve it though.
If I type Application in my mainSWF I get a few possibilities:
Here .application gets me a "possible undefined property error"
2. mx.core.Application here I find Application.application though I get a warning:
3608: 'application' has been deprecated since 4.0. Please use 'FlexGlobals.topLevelApplication'
So how do I get to the subSWF property from that?
btw "..it will always be null" is not quiet correct I think.
I have a button with a clickHandler like that:
protected function button_clickHandler(event:MouseEvent):void
When I push the button after the content is fully loaded (after the completeHandler is finished) it works. But adding the EventListener with the push of a button can't be the solution
In the completeHandler, add an event listener to swfLoader.content for applicationComplete, then when that event fires, add your event listener as you have it there.
Flex SDK Developer
Adobe Systems Inc.
Thank you very much!
TypeError: Error #1009: null 객체 참조의 속성이나 메서드에 액세스할 수 없습니다.
how this problem to solve?