关于Director与Flash之间的通讯!

Flash To Director的信息传递:
一般来说,Flash给Director传递消息有下面三个方法:
(1)在flash中可以通过Geturl函数直接调用Director的Lingo命令,

on (rollover)
{ geturl (“lingo : cursor 280”);}
on (rollout)
{ geturl (“lingo : cursor 0”);}
将上面的actionscript加在flash按钮上,然后将其导入到Director中就能实现光标的变换了。


注:当然也可以用linggotonetpage来打开超级连接。

(2)使用flash中的event命令,如:
geturl (“event:readtxt,” aa.txt" ," dairy"")
上面的actionscript可以执行director中的影片脚本中的readtxt函数,并传递“aa.txt”和“dairy”两个参数给readtxt函数。

(3)在Flash中通过Geturl传送参数给Director,在Director中接受Flash传递的参数,然后执行相应的lingo命令,如:
在flash的按钮上加入下面的ctionscript
On (Release)
Get URL (“botton1”)
End On
然后在DR的moviescript中,使用geturl函数执行相应的lingo命令:
on geturl me,kk –kk为geturl函数的参数
case kk of
“botton1”: go to frame “Mark1”

  • 5
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值