开发者

How to know in which swf user clicks?

开发者 https://www.devze.com 2023-03-29 14:49 出处:网络
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...

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消