开发者

Actionscript 2- Multiple event handlers

I have recently bought a template that came with a flash header. I want to implement JavaScript based drop down menus; for this, I will need Flash to communicate with JavaScript. The Flash was written in ActionScript 2. I cannot find the code where the hover handlers are taking place. (Any ideas on this?) OR... how to a开发者_StackOverflow社区dd multiple event handlers in ActionScript 2. In ActionScript 3, I understand (Or think I do), however, converting breaks the application. Can someone please show me how to add another event handler without overriding existing ones in ActionScript 2? Specifically one pertaining to onMouseOver onRollOver. Thank-you!


In AS2, you can't. Only one handler at a time can exist for onClick/onRollover/onEnterFrame/onAnythingElse. This was one of the main reasons that AS3 is so much better suited to a certain class of applications, and one of many reasons why developers (as opposed to designers who code) were so eager to jump to AS3.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜