麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

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

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

2024-09-08 19:27:15
字體:
供稿:網(wǎng)友
director 疑難解答
01. 我能否在我的director文件中制造一個(gè)屏幕保護(hù)程序?

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

   至少能夠使這個(gè)屏保在屏幕上隨機(jī)出現(xiàn)所選擇的文字。你也可以使用一個(gè)或幾個(gè)精靈在木偶化制成動(dòng)畫。

--電影腳本的開頭

global gnlastframe, gllastmouseloc

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

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

--標(biāo)記“l(fā)oopframe”處放置的是你想要作為屏保的動(dòng)畫或隨機(jī)出現(xiàn)的文字
--請(qǐng)注意,將以下語句放置在標(biāo)記"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. 當(dāng)顯示分辨率比我的director文件所制定的舞臺(tái)大時(shí),我該怎樣用指定的背景顏色把顯示器空白部分填滿?

   [a] 有兩種解決的方法。一種是在創(chuàng)建你的放映機(jī)時(shí),選中option中full screen。這樣做的優(yōu)點(diǎn)是很容易就能做到,但是,它最明顯的缺點(diǎn)就是不一定是在你的客戶的屏幕中間。此外,可以看來是你的發(fā)展文件里的“屏幕”的事情能在如果他們是對(duì)權(quán)利和底部的“屏幕”出現(xiàn)于編輯的放開上好好地結(jié)束了。

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

   這里是一種一般的處理方法。帶新局長(zhǎng)的開始做成文件,新建一個(gè)新的director文件,并且將它的舞臺(tái)顏色設(shè)置為你所喜歡的背景顏色。

   接著,在分鏡表的幀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] 下一頁(yè)  

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 免费国产一级特黄久久 | 久久久精品福利 | 伊人99在线| 久久精品视频黄色 | 久久一区二区三区av | 国产一区二区三区四区五区在线 | 免费观看视频网站 | 国产精品av久久久久久网址 | 人成久久| av中文字幕免费在线观看 | 一区二区久久精品66国产精品 | 久久久成人一区二区免费影院 | 视频一区二区三区在线播放 | 久久综合爱 | 热@国产 | 国产伦精品一区二区三区在线 | 成人国产免费观看 | 国产一级二级在线播放 | 精品国产一区二区亚洲人成毛片 | 日韩精品久久久久久 | 久久精品23 | 免费观看黄色一级视频 | 久草导航 | av不卡免费在线 | 久久久久久久久久美女 | 成人一级黄色大片 | 成人国产精品久久久 | 日本a大片| 亚洲精品日韩色噜噜久久五月 | 日韩欧美电影在线观看 | 久久久成人精品 | 国产精品九九久久一区hh | 欧美一级做一级爱a做片性 久久久资源网 | 久久蜜臀一区二区三区av | 久国产| 老师你怎么会在这第2季出现 | 亚洲第一页在线观看 | 成人资源在线 | 日韩毛片免费观看 | 91精品国产乱码久久久久 | 国产毛毛片一区二区三区四区 |