How to know in which swf user clicks?
I use Flex 4 for writing 开发者_如何转开发swf part of my application... So I have some swf files loaded in container, and what I need is allow to change that swf by clicking in it...
How can I detect in which swf user clicks?
The display component that you're using to load the swfs will trigger events that you can listen for. Try mySwfLoader.addEventListener(MouseEvent.CLICK, onMySwfLoaderClick);
Alternately, you can add your listener to the container that contains all the loaded swfs and check the current target of the event when it's triggered.
精彩评论