国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 網(wǎng)站 > 媒體動(dòng)畫(huà) > 正文

Director基礎(chǔ)教程:Director 疑難解答(1)

2024-09-08 19:27:13
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友
director 疑難解答
01. 如何制作一個(gè)放映機(jī)(projector)可以在不同分辨率下播放?

   [a] 加入下列語(yǔ)句:

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

   注意,這個(gè)語(yǔ)句是通過(guò)放大或縮小舞臺(tái)來(lái)達(dá)到效果的,所以會(huì)有變形。

02. 如何導(dǎo)入photoshop的圖層?

   [a] director7.0以后的版本你可以通過(guò)medialab公司的photocaster xtra來(lái)實(shí)現(xiàn)。

03. 在程序中如何導(dǎo)入圖片而不失去圖片周?chē)陌咨糠荩?

   [a] 通過(guò)指定圖片的trim whitespace屬性可以實(shí)現(xiàn):

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

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

   [a] 在messages的窗口中,你可以輸入showglobals來(lái)顯示所有的全局變量。以下的代碼也可以顯示所有的全局變量:

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

05. 如何播放mpeg文件?

   [a] 有一系列的方法,不能說(shuō)哪一種更好,并且在pc機(jī)和mac機(jī)上是不一樣的,下面是四種常見(jiàn)的方法:

   1. 用一個(gè)xtra。這種方法用起來(lái)簡(jiǎn)單,且也有好的產(chǎn)品支持,但大多不能跨平臺(tái)使用。當(dāng)然,這是需要購(gòu)買(mǎi)的。
   2. 使用activex控件。這只能在pc機(jī)上用,相對(duì)xtra而言會(huì)有更多的限制,但它是免費(fèi)的,且與標(biāo)準(zhǔn)playback能夠很好的集成。
   3. 使用quicktime。但這只能在mac的機(jī)子上用(不過(guò)5.0好像也可以支持pc)。
   4. 用mac來(lái)調(diào)用。這是另一種只支持pc機(jī)的方式,但與d集成不好,不建議采用。

   選取一種最適合你的方法,但要記住多在不同的平臺(tái)上做測(cè)試,mpeg文件在每種平臺(tái)上的效果都是不同的。

06. 如何才能更改project的圖標(biāo)?

   [a] 可以通過(guò)第三方工具來(lái)實(shí)現(xiàn),比如hoolicon。

07. 如何制作光盤(pán)的自動(dòng)運(yùn)行程序?

   [a] 在mac上可以選上自動(dòng)運(yùn)行選擇“in toast for the hfs volume”。toast是mac上的燒錄軟件。hfs是mac上硬盤(pán)的文件制式,相當(dāng)于pc上的fat或ntfs。

   在pc上,可以制作一個(gè)包含以下內(nèi)容的txt文件,文件名為autorun.inf

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

   更改projectorname使之與你的exe名一樣,并可加上路徑如open=stuffprojector.exe,圖標(biāo)可以是任何的圖標(biāo)文件。

08. 如何關(guān)閉一個(gè)miaw?

   [a] 最安全的關(guān)閉一個(gè)miaw的方法是在這個(gè)miaw中設(shè)置一個(gè)為true的全局變量,在這個(gè)miaw的影片中通過(guò)這個(gè)變量關(guān)閉miaw,而不要讓miaw自己來(lái)關(guān)閉。同樣,你可以向舞臺(tái)(stage)發(fā)送命令來(lái)關(guān)閉它。

09. 如何得到系統(tǒng)的打開(kāi)和保存文件的對(duì)話框?

   [a] 在director中有好幾種方法可以得到。下列是常用的四種方法。注意對(duì)話框并不能打開(kāi)文件,它只是返回文件的完整路徑(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)
  

[1] [2] 下一頁(yè)  

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 丰镇市| 永修县| 洞头县| 哈尔滨市| 广东省| 奎屯市| 东港市| 平乡县| 绍兴市| 类乌齐县| 曲阳县| 肇州县| 襄城县| 成武县| 兰溪市| 陇西县| 河池市| 金沙县| 绥棱县| 丘北县| 高阳县| 凤翔县| 阿拉尔市| 宿松县| 乐都县| 绥中县| 益阳市| 宜宾市| 庄浪县| 宽甸| 巨鹿县| 宁南县| 沁水县| 丰原市| 东兴市| 福安市| 确山县| 纳雍县| 乡城县| 南漳县| 南部县|