通行证: 用户 密码 域名空间  下载中心 社区论坛 信息公告 my小屋
联系我们
设为首页
加入收藏

 

qq,asp,php,jsp,xml,sql,.net,编程 程序 网页图象 建站经验 私服
首页 | 新闻资讯 | 编程开发 | 网页设计 | 图形图象 | 网络媒体 | 网站模板 | 数 据 库 | 投稿
论坛 | 操作系统 | 系统优化 | 网络安全 | 黑客技术 | 硬件学堂 | 硬件报价 | 服 务 器 | 地图
专题 | 应用软件 | 聊天通讯 | q q 专栏 | 建站经验 | 在线工具 | 站长club | 注 册 表 | 旧版
社会 | 游戏娱乐 | 设计欣赏 | 疑难解答 | 社区论坛 | 韩国素材 | 素材图库 | 广告服务 | 服务
当前位置:首页>>网络媒体>>director>>正文 新版上线![旧版]
注:打开慢时请稍等

director 疑难解答(1)

http://www.iyit.net  日期:2006-5-29 8:56:21  来源:网络转载   点击:
参加讨论】director 疑难解答
01. 如何制作一个放映机(projector)可以在不同分辨率下播放?

   [a] 加入下列语句:

   on preparemovie
     (the stage).rect = (the desktoprectlist)[1]
     (the stage).drawrect = (the desktoprectlist)[1]
   end

   注意,这个语句是通过放大或缩小舞台来达到效果的,所以会有变形。

02. 如何导入photoshop的图层?

   [a] director7.0以后的版本你可以通过medialab公司的photocaster xtra来实现。

03. 在程序中如何导入图片而不失去图片周围的白色部份?

   [a] 通过指定图片的trim whitespace属性可以实现:

   m = new(#bitmap)
   m.trimwhitespace = 0
   m.filename = the moviepath & ‘‘file.bmp‘‘
   m.media = m.media

04. 如何得到全局变量列表?

   [a] 在messages的窗口中,你可以输入showglobals来显示所有的全局变量。以下的代码也可以显示所有的全局变量:

   repeat with x = 1 to (the globals).count
     put (the globals).getpropat(x) & ‘‘ = ‘‘ & (the globals)[x]
   end repeat

05. 如何播放mpeg文件?

   [a] 有一系列的方法,不能说哪一种更好,并且在pc机和mac机上是不一样的,下面是四种常见的方法:

   1. 用一个xtra。这种方法用起来简单,且也有好的产品支持,但大多不能跨平台使用。当然,这是需要购买的。
   2. 使用activex控件。这只能在pc机上用,相对xtra而言会有更多的限制,但它是免费的,且与标准playback能够很好的集成。
   3. 使用quicktime。但这只能在mac的机子上用(不过5.0好像也可以支持pc)。
   4. 用mac来调用。这是另一种只支持pc机的方式,但与d集成不好,不建议采用。

   选取一种最适合你的方法,但要记住多在不同的平台上做测试,mpeg文件在每种平台上的效果都是不同的。

06. 如何才能更改project的图标?

   [a] 可以通过第三方工具来实现,比如hoolicon。

07. 如何制作光盘的自动运行程序?

   [a] 在mac上可以选上自动运行选择“in toast for the hfs volume”。toast是mac上的烧录软件。hfs是mac上硬盘的文件制式,相当于pc上的fat或ntfs。

   在pc上,可以制作一个包含以下内容的txt文件,文件名为autorun.inf

   [autorun]
   open=projectorname.exe
   icon=icon.ico

   更改projectorname使之与你的exe名一样,并可加上路径如open=stuffprojector.exe,图标可以是任何的图标文件。

08. 如何关闭一个miaw?

   [a] 最安全的关闭一个miaw的方法是在这个miaw中设置一个为true的全局变量,在这个miaw的影片中通过这个变量关闭miaw,而不要让miaw自己来关闭。同样,你可以向舞台(stage)发送命令来关闭它。

09. 如何得到系统的打开和保存文件的对话框?

   [a] 在director中有好几种方法可以得到。下列是常用的四种方法。注意对话框并不能打开文件,它只是返回文件的完整路径(file path)和文件名称(file name)。

   1. fileio:

   open -
     set myfile = new(xtra ‘‘fileio‘‘)
     set thefile = displayopen( myfile )
     set myfile = 0
   save -
     set myfile = new(xtra ‘‘fileio‘‘)
     set thefile = displaysave( myfile, ‘‘title‘‘, ‘‘default file name‘‘)
     set myfile = 0

   2. buddy api:

   open -
     set thefile = bagetfilename(‘‘open‘‘, ‘‘c:‘‘, ‘‘filename‘‘, ‘‘filters│*.*‘‘, flags, ‘‘instruction‘‘, allow folder selection, x-location, y-location )
   save -
     set thefile = bagetfilename( ‘‘save‘‘, ‘‘c:‘‘, ‘‘filename‘‘, ‘‘filters│*.*‘‘, flags, ‘‘instruction‘‘, allow folder selection, x-location, y-location )

   3. filextra:

   open -
     set thefile = fileopendialog(initialdirectory, filterstring, dlogtitle, createprompt, filemustexist)
     --on the mac, only the initial directory and filterstring are valid
   save-
     set thefile = filesaveasdialog(initialdirectory, filename, dialogtitle, overwriteprompt)
     --on the mac, only the initial directory and filename, and prompt are valid.

   4. mui xtra:

   open -
     set amuiobj = new (xtra ‘‘mui‘‘)
     set filestring = ‘‘open this file‘‘
     set thefile = fileopen(amuiobj, filestring)
   save -
     set amuiobj = new (xtra ‘‘mui‘‘)
     set filestring = ‘‘save this file‘‘
     set thefile = filesave( amuiobj, filestring, ‘‘with this prompt‘‘ )

10. flash可以向director中传递变量吗?

   [a] 你可以用geturl的三种方式来实现:

   geturl ‘‘event:directorhandler‘‘
   geturl ‘‘lingo:directorcode‘‘
   geturl ‘‘string‘‘

编辑:黑鹰 [发送给好友] [打印本页] [关闭窗口] [返回顶部]
上一篇:director 疑难解答(2)
下一篇:director 3d 基础(7)
转载请注明来源:www.iyit.net
特别声明: 本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。

 相关文章
director 疑难解答(2) director 疑难解答(3) director 疑难解答(4)
director 疑难解答(5) director 疑难解答(6) director疑难解答(7)
windows优化大师 疑难解答 [疑难解答]2k/xp 故障恢复控制台小记 exeplorer.exe错误的问题的总结、解决方
最新更新 热点排行 推荐新闻
发布director mx 2004
directmedia xtra 在 director 中的应
speech xtra 应用(director mx 新增 
谈谈director作品的发布模式
关于多媒体程序运行速度的研究
博客网总裁辞职
发布director mx 2004
directmedia xtra 在 director 中的应
speech xtra 应用(director mx 新增 
谈谈director作品的发布模式
关于多媒体程序运行速度的研究
director mx 2004教程--哪些人适合使用
director mx 2004教程--常用多媒体编著
director mx 2004教程--为什么选择dir
director mx 2004教程--director与fla
发布director mx 2004
directmedia xtra 在 director 中的应
speech xtra 应用(director mx 新增 
谈谈director作品的发布模式
关于多媒体程序运行速度的研究
优秀公益广告作品欣赏(8)
java数据类型转换
windows xp专业版iis连接数的更改
新开放qq免费挂级网站
优秀公益广告作品欣赏(7)
免费在qq上看在线电影电视听音乐
qq最新版下载 2006 beta2 体验新感受 
office2007简体中文版浮出水面 美图抢
qq珊瑚虫外挂4.0版本发布!
免费把qq炫铃设为本机qq的系统提示音
dreamweaver mx 2004从零开始(1)
利用css改善网站可访问性
如何让mm的脸通透可人
msn8.0下载
asp 五大高效提速技巧
如何在win20003中更好的玩游戏
qq收费头像免费使用的方法 
微软将在华推分期付款,充值卡pc 可低价
 amd处理器am2测试 风扇竟运行7分钟
exeplorer.exe错误的问题的总结、解决
 友情链接
设置首 页 - 版权声明 - 广告服务 - 关于我们 - 联系我们 - 友情连接
copyrights © 2004-2006 iyit.net all rights reserved.
网站合作、广告联系qq:147007642、466949678
易特网络技术 点击这里给我发消息