Flex 2 RollOverButton Examples
[lang_en]
You can make really simple image/button rollover’s in Flash. But in Flex, when you want to go beyond the default button roll-over skin implementation you have many different choices. I have compiled a few using ActionScript and a Custom class. There are many more ways of creating image rollover functionality. Even CSS can be used, but they all come back to manually setting the rollOver, rollOut, and mouseDown events.
To see the application run go to http://renaun.com/flex2/RollOverButtons/
To see the application’s source code go to http://renaun.com/flex2/RollOverButtons/srcview/
[/lang_en]
[lang_zh]
在Flashä½ å¯ä»¥åˆ¶é€ 简å•å›¾ç‰‡/按纽滑动。但是在Flex, 超过缺çœæŒ‰çº½æ»‘动skin贯彻, ä½ æœ‰å¾ˆå¤šçš„é€‰æ‹©ã€‚æˆ‘æœ‰ç¼–è¾‘ä¸€äº›ç”¨åŠ¨ä½œè„šæœ¬è¯è¨€(Action Script)å’ŒCustom Classã€‚åˆ¶é€ å›¾ç‰‡æ»‘åŠ¨ä½¿ç”¨çš„æ–¹æ³•å¾ˆå¤šã€‚è¿žCSS也å¯ä»¥ç”¨, 但是都需è¦è‡ªå·±å®‰æŽ’é¼ æ ‡åœ¨æŒ‰é’®ä¸Šæ»‘åŠ¨(rollOver),é¼ æ ‡æ»‘å‡ºæŒ‰é’®(rollOut)å’Œé¼ æ ‡æŒ‰ä¸‹æ—¶è§¦å‘事件(MouseDown)。
想看应用按这儿
To see the application run go to http://renaun.com/flex2/RollOverButtons/
想看应用的代ç 按这儿
To see the application’s source code go to http://renaun.com/flex2/RollOverButtons/srcview/
[/lang_zh]