4.对着按钮“enter button”点击右键,在弹出的选项中选“properties”,在“instance properties”的actions选项中设置按钮的脚本为:
On(Press) If("user1" eq username and "enter" eq pswd)
Go to and Stop (2)
Else If("user2" eq username and "abracadabra" eq pswd)
Go to and Stop(3)
Else Go to and Stop(4)
End If
End On
如图2所示;
图2
5.选择“文字”工具(Text Tools),并点选“文本框”属性按钮 。在“username”和“ password”两行文字后面分别用鼠 隙唇ㄒ桓龉潭ǹ矶鹊奈谋究颍╰ext
field),然 后分别对着两个文本框点击右键,在弹出的选项中选“properties”,接着修改“Text Field Properties”对话框中的参数。其中文字“username”对应的文字框属性如图3所示
;文字“password”对应的文字框属性如图4所示;
7.将在第一帧所做的空心方框copy到第二帧,用文字工具(text Tools)在框内输入文字“ Hello User#1”。选择菜单命令“window>Library”,在弹出的历史库中将第一步制作的按
钮“back button”拖到方框内,置于文字下面。对着按钮“back button”点击右键,在弹 出的选项中选“properties”,在“instance
properties”的actions选项中设置按钮的脚本为:
On (Press)
Go to and Stop (1)
End On
如图5所示;
图5
8.第三、第四帧的制作与第二帧基本相同,只是第三帧输入文字“Hello User#2”,第四帧输入“Wrong Username or Password”;