主题:  用flash制作的多媒体和用director制作的没有分别?

mabone_5d

职务:普通成员
等级:1
金币:0.0
发贴:10
#12001/2/21 14:17:06
请大师们指教,有时好像用flash更出效果



xuyi_5d

职务:普通成员
等级:2
金币:1.0
发贴:179
#22001/2/21 14:39:55
flash用的矢量图形,只能制作简单的动画和演示,文件小,适合网上传输
director 是一个真正的多媒体整合工具,支持几乎所有的图像,声音,动画格式
有强大的lingo语言,适合制作多媒体软件。



改将

职务:普通成员
等级:1
金币:0.0
发贴:102
#32001/2/21 14:44:20
请问flash和director之间如何传递消息呢?



Call Me Simon

职务:普通成员
等级:2
金币:2.0
发贴:646
#42001/2/21 15:02:47
简单的方式有三种, pass text string, Lingo statement, and event.

详细的帮助文件里有, Director 的showme movie里也有。



改将

职务:普通成员
等级:1
金币:0.0
发贴:102
#52001/2/21 17:29:21
关于pass text string, Lingo statement, and event这三种方式,我进行了一下的实验却还是很迷惑。
有文说使用geturl lingo.
#1 Must have a Flash movie containing 'setVariable' and 'GetURL:lingo ' actions
#2 Must have a Director movie handler of the same name as and a place holder for the variable passed.
#3 Can only pass integers.
而使用geturl:event.说是和上面的原理差不多。
#1: Implement essentially the same as above.
#2: Can only pass integers.
而使用get url:(any string)有一下四点要求:
#1:Requires the Director movie to have a behavior called 'on GetURL me, stringVariable'
#2: When using a movie script instead of a behavior the 'me' is not needed in the above handler.
#3:The 'stringVariable' value will be the holder for the passed value from Flash(i.e. stringVariable = ).
#4: This method is executed every time a 'GetURL' event is issued in the Flash movie.
然后我又去看了一下show me,不看不要紧可是一看我又给搞糊涂了,请看:
-----------------------------------------------
语句:
在flash中:
set variable:"junk1"=10

on (release)
get url ("lingo:foo",&junk1)
end

在director中:
on foo junk
member(2).text=string(junk)
end
----------------------------------------------
上面的语句是可以传递消息的。我想问的是它是不是属于上面说的geturl lingo的那种情况。如果是的话,我可以让它变为用event传递吗?如果能改,怎么改,能改为getrul:(any string)的方式吗?如果能改,又怎么改了,如果它们都是互通的,那它们的优缺点呢?
而且我还发现上面的E文还有些问题,(我是在macromedia的top technotes上面看到的),它是说使用get url :lingo 的方式:"Must have a Director movie handler of the same name" ,可是我发现在director自带的show me 下面的一个列子:flash_event.dir却是在get url:lingo的情况下并不需要在director下面再写语句呀!
如下:
on (release)
get url ("lingo:puppetsound:"ping")
end
在director下没有任何的语句。只有一个'Ping"的声音文件罢了。
以为我的E文水平有限,如有理解不正确的地方,请指正。Thank you very very very much!



编辑历史:[这消息被flyingbird编辑过(编辑时间2001-02-22 10:15:42)]


Call Me Simon

职务:普通成员
等级:2
金币:2.0
发贴:646
#62001/2/22 10:14:21
不知道你是从哪里看到的文章, 的却有些问题, 起码就我的理解而言, 很多描述不准确。

上面三种传递参数的方法其实很简单。

1. string, 在Flash里用GetURL, 传递任何一个字符串, 这个字符串需要特定的lingo 句柄来接收。

例如:
Flash -
on Release
GetURL (string)
end

在Director里用下面的句柄(attach it to the flash sprite)

on getURL me, flashString
go to frame flashString
end getURL
来导引Director 跳到相应的marker 位置。

2. Lingo statement

这个就更简单了, GetURL 的参数就是lingo语句。

上面的例子可以写成:
on Release
GetURL(Lingo: go to frame 10)
end
在director 里你什么都不必要写。

3. Event

这个是最好的用法, 符合程序员的习惯, 强烈推荐, 这种方法传递的不是一个具体的字符串, 也不是一句具体的lingo 语句, 相反它传递的是一个事件(event), 而lingo 本身是由事件驱动的, 所以你有充分的自由利用Flash里传递过来的事件信息(message)来完成你想要实现的工作, 如果你要改变什么, 不必回到flash修改actionScript, 只要在Director里就可以了。另外它也可以传递事件相关参数。
showme 里有类似的介绍。我就不多说了。 希望这个解释没让你更迷惑



改将

职务:普通成员
等级:1
金币:0.0
发贴:102
#72001/2/22 10:43:08
Thank you very much! 我再去研究以下,有问题再请教! ;)