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

首頁 > 網站 > 媒體動畫 > 正文

Director基礎教程:Director疑難解答(7)

2024-09-08 19:27:15
字體:
來源:轉載
供稿:網友
director 疑難解答
01. 我能否在我的director文件中制造一個屏幕保護程序?

   [a] 這是一種方法,但它也許需要一些調整。例如,它實際上并不支持在文件的屏保中使用動畫。不管怎樣,隨著你對程序創造性地增加,你

   至少能夠使這個屏保在屏幕上隨機出現所選擇的文字。你也可以使用一個或幾個精靈在木偶化制成動畫。

--電影腳本的開頭

global gnlastframe, gllastmouseloc

--把以下語句加入你的startmovie()事件處理過程中
set the timeoutlength to 60 * 60 * 5
--這行意思是:一秒分為60個滴答,60個滴答×60=1分鐘,1分鐘×5=5分鐘。(也就是啟動屏保時間為5分鐘)
when timeout then screensaver()

--把以下的語句加入電影腳本中
on screensaver
put the frame into gnlastframe
put the mouseloc into gllastmouseloc
go "loopframe"
end screensaver

--標記“loopframe”處放置的是你想要作為屏保的動畫或隨機出現的文字
--請注意,將以下語句放置在標記"loopframe" 處的幀腳本中

on exitframe
   checkuserevent()
end

--把以下的語句加入電影腳本中

on checkuserevent
   when keydown then exitsaver()
if the mouseloc <> gllastmouseloc then exitsaver()
go the frame
end checkuserevent

--把以下的語句加入電影腳本中

on exitsaver
go gnlastframe
   when keydown then nothing
abort
end exitsaver

02. 當顯示分辨率比我的director文件所制定的舞臺大時,我該怎樣用指定的背景顏色把顯示器空白部分填滿?

   [a] 有兩種解決的方法。一種是在創建你的放映機時,選中option中full screen。這樣做的優點是很容易就能做到,但是,它最明顯的缺點就是不一定是在你的客戶的屏幕中間。此外,可以看來是你的發展文件里的“屏幕”的事情能在如果他們是對權利和底部的“屏幕”出現于編輯的放開上好好地結束了。

   另外一種方法是使用movie in a window(miaw)從窗口中調用外部文件。這需要在一些地方編程序而且也更難;但是結果將更令人滿意。

   這里是一種一般的處理方法。帶新局長的開始做成文件,新建一個新的director文件,并且將它的舞臺顏色設置為你所喜歡的背景顏色。

   接著,在分鏡表的幀1中,定義下列腳本:

on exitframe
pause
end

   之后,把下列語句加入電影腳本。

global gofilewindow, gswindowname, gafilewindowrect, gswindowpath, gssizeofwindow

on startmovie
   setupwindowspecs()
   launchmiaw()
end startmovie

on stopmovie
   purgemiaw()
unload
end stopmovie

on setupwindowspecs
-- inits dimensions and origins for miaw object over splash screen
-- plug in your own names below
-- note you do not have to specify ".dxr" or ".dir" for the path to the external file
-- this can really be any name you want; it』s an internal reference
set gswindowname to "intro"

-- this is the actual miaw file you want opened by the stub
set gswindowpath to ( the pathname & "intro" )

put ( the stageright / 2 ) into nhorizontalcenterofmonitor
put ( the stagebottom / 2 ) into nverticalcenterofmonitor

-- set dims for location of window relative to screen size
set nwindowwidth = nhorizontalcenterofmonitor + 320
set nwindowheight = nverticalcenterofmonitor + 240
set nhorizorigin = nwindowwidth - 640
set nvertorigin = nwindowheight - 480

set gafilewindowrect = rect ( nhorizorigin, nvertorigin, nwindowwidth, nwindowheight )

end setupwindowspecs

on launchmiaw
if objectp ( gofilewindow ) then forget gofilewindow
set gofilewindow to window gswindowname
set the rect of gofilewindow to gafilewindowrect
set the filename of gofilewindow to gswindowpath
set the title of window "intro" = "my presentation"
set the titlevisible of gofilewindow to true

-- windowtype 5 is draggable on macs; might need tweaking on pcs. experiment.
-- take care not to allow the pc version to have a close box in its bar or you might
-- run into beaucoup problems later
set the windowtype of

[1] [2] 下一頁  

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 二连浩特市| 大渡口区| 东明县| 大理市| 阳春市| 定兴县| 湖南省| 竹溪县| 准格尔旗| 嘉定区| 忻州市| 博爱县| 武强县| 平阴县| 措勤县| 如皋市| 瑞昌市| 潢川县| 洞口县| 五峰| 黑河市| 肥西县| 明溪县| 安国市| 荥经县| 务川| 昌邑市| 西丰县| 泸水县| 盘山县| 吴川市| 南岸区| 元谋县| 亚东县| 陕西省| 门头沟区| 湛江市| 德保县| 栾城县| 张掖市| 峡江县|