国产探花免费观看_亚洲丰满少妇自慰呻吟_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] 下一頁  

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 叙永县| 福贡县| 洞头县| 凤山市| 兴安县| 鹿泉市| 三门县| 依安县| 嘉定区| 江孜县| 博爱县| 沾化县| 灵山县| 额济纳旗| 铜梁县| 麟游县| 巩义市| 建德市| 宣武区| 澄江县| 平阳县| 布拖县| 宁南县| 丹东市| 铜鼓县| 扶风县| 黄龙县| 肇州县| 登封市| 铜梁县| 方城县| 宜城市| 汉川市| 平安县| 原平市| 凤冈县| 彭阳县| 余江县| 河北区| 田林县| 栖霞市|