站点首页 | 实用文章 | 考试相关 | 论文中心 | 故事小说 | 教程中心
热门文章
搜索
您现在的位置: hglm >> 教程中心 >> 图形图像 >> Director >> 教程正文
如何在flash中制作按钮使其可以告诉Director离开Flash movie跳到其他的Frame去?
 

QUESTION:

如果在Director movie 中引入flash movie, 而且需要全屏幕play,如何在flash 中制作按钮使其可以告诉Director离开Flash movie跳到其他的Frame去?

Answer:

这是一个有趣的问题,首先我要假定你使用D6.5和 Flash 3.0或更高版本, 事 实 上 Flash 与 Director 可以很好地沟通, 你可以在Flash中的按钮上加上Action Script,让这些按钮在Director里送出信息由LINGO来接受并执行。下面是几个例子:

1.在Flash中选择一个按钮,然后在菜单栏选Modify>Instance, 在Instance属性对话框里选择Action栏,然后加上Get URL见下图

保存后Export为.swf文件。

2.在Director中Import进swf文件, 然后在你需要的位置设定marker 命名为"start", 在movie script里写如下的Script

on getURL me, stringFromFlash

go to frame stringFromFlash

end

3.Download and play the sample movie.

4.再提供两个例子,

A. Action in Flash: Get URL ("lingo:clickThis")

B. Action in Flash: Get URL ("lingo:go to frame "start"")

想一想在Director里Lingo 怎么写?

你可以download 上面两个例子的sample movies文件A和文件B,供你参考。

Copyright(c) hglm.com All rights reserved. 浙ICP备06001730号