xmao’s blog

Tag: adobe Director

Adobe Director 新手上路

by xmao on Mar.27, 2009, under Multimedia

抱着帮助文档和GOOLE,两天时间做了个公司演示的DEMO,这里做些记录。

1 全屏问题
发布设置里有全屏的选项,不过有边框问题,在display template中全勾掉才行。

2 屏蔽ESC键问题
发布设置有屏蔽的选项,不过加上如下代码可以使用自定的退出动画。

1
2
3
4
5
on keydown()
    if (_key.keycode = 53) then
        go to frame 20
    end if
end

3. 停留某帧问题

1
2
3
on exitFrame
  go to the frame
end

4. 行为库
Director中的行为库有些很好用,比如替换光标的Rollover Cursor Change和替换演员的Rollover Cursor Change,还有Play Frame X,我稍微改下,改成 Go to Frame X..

5 filter的问题
filter的出现,对于做菜单非常的有用,不必为了某些效果做演员的替换,直接使用filter就好了

1
2
3
4
5
6
7
8
on MouseEnter me
  MyFilter = filter(#GlowFilter, [#BlurX:5, #BlurY:5,#strength:1,#quality:15])
  sprite (me.spriteNum).filterlist.append(MyFilter)
end
 
on MouseLeave me
  sprite (me.spriteNum).filterlist.deleteall()
end

6 Quicktime影片的自动播放
不知道为什么,加了控制的Quicktime文件不能自动播放,勾掉暂停参数也没用,只好加上段代码

1
2
3
on beginSprite me
  sprite(me.spriteNum).movieRate = 1
end
Leave a Comment :, more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...