Welcome! 登入 註冊
專區首頁 專區百科 專區論壇 專區部落格 專區地圖

Advanced

Change History

Message: [語法] Flash as3 按鈕語法《製做選單功能表》

Changed By: JinJin
Change Date: December 02, 2010 12:53PM

[語法] Flash as3 按鈕語法《製做選單功能表》
第一個影格的語法:

====================
[color=#333399]stop();

function [color=#000000]showMenu[/color](event:MouseEvent):void {
on showMenu(event:MouseEvent):void {
seEvent):void {
gotoAndPlay([color=#000000]hideMenu[/color](event:MouseEvent):void {
hideMenu(event:MouseEvent):void {
seEvent):void {
gotoAndPlay(1);
}

b1.addEventListener(MouseE[color=#000000]vent.MOU[/color]SE_OVER,showMenu);
b1.addEventListener(M[color=#000000]ouseEven[/color]t.C[/color]

ICK,hideMenu);


====================

第四個影格的語法:

====================

stop();

b2.addEventListener(MouseEvent.CLICK,hideMenu);
b3.addEventListener(MouseEvent.CLICK,hideMenu);
b4.addEventListener(MouseEvent.CLICK,hideMenu);

====================

Original Message

作者: JinJin
Date: December 02, 2010 12:51PM

[語法] Flash as3 按鈕語法《製做選單功能表》
第一個影格的語法:

====================
[color=#333399]stop();

function [color=#000000]showMenu[/color](event:MouseEvent):void {
seEvent):void {
gotoAndPlay([color=#000000]hideMenu[/color](event:MouseEvent):void {
seEvent):void {
gotoAndPlay(1);
}

b1.addEventListener(MouseE[color=#000000]vent.MOU[/color]SE_OVER,showMenu);
b1.addEventListener(M[color=#000000]ouseEven[/color]t.C[/color]
ICK,hideMenu);


====================

第四個影格的語法:

====================

stop();

b2.addEventListener(MouseEvent.CLICK,hideMenu);
b3.addEventListener(MouseEvent.CLICK,hideMenu);
b4.addEventListener(MouseEvent.CLICK,hideMenu);

====================