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
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”;