开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜