2010-04-20

"Pixar Intro Parody" Is Nominated For A Webby!!!

Pixar Intro Parody - Pre Viz from Gloo Studios on Vimeo.

Flash常用ActionScript常用的影片操控指令

指令
應用方式
說明
Stop()
Stop();
停在目前的影格位置
Play()
Play();
從目前的位置開始播放
gotoAndStop()
gotoAndStop(5);
跳到影格5然後停止
gotoAndStop(5,”scene 2”);
跳到scene 2的影格5然後停止
gotoAndPlay()
gotoAndPlay(5);
跳到影格5然後播放
gotoAndPlay(5,”scene 2”);
跳到scene 2的影格5然後播放
nextFrame()
nextFrame();
移到下一個影格,然後停止播放
prevFrame()
prevFrame();
移到上一個影格,然後停止播放
nextScene()
nextScene();
移到下一個影格,然後從頭開始播放
prevScene()
prevScene();
移到上一個影格,然後從頭開始播放

*要宣告變數時,必須使用"var" 指令後面加上自訂的變數名稱,
 ex:
     var myCount;

用":" 指定變數的類型,若要指定變數的值,則可使用"=" 運算子來指定。
 ex:
     var myCount:int=10000;

Flash常用ActionScript控制語句基本用法

1)
Goto:跳到一個指定的影格(Frame)
Scene: 指定 Scene
Frame:Number,Label,Expression,Next Frame,Previous Frame 可以選擇 Frame 的編號,標號,通過表達式,下一影格,前一影格
Expression: 定義表達式
Control:Go to and Play,Go to and Stop 通過選擇這個項目來確定到達指定的影格以後是繼續播放還是停止

例子:
Go to and Play (1) 跳到第一影格播放
Go to Next Frame 跳到下一影格播放
Go to and Stop ("intro") 跳到標號為 intro 的影格播放

2)
Play:播放
Stop:停止

Toggle High Quality:切換畫面的細節程度
Stop All Sounds:停止所有聲音

Get URL:打開指定的網址
URL: 網址
Windows:_self,_blank,_parent,_top 打開網址 時使用的目標
Variables on’t Send,Send use GET,Send use POST 變量的傳遞方式

例子:
Get URL ("next.asp", window="_blank", vars=POST) 在新窗口中打開 next.asp,並且傳遞參數

3)
FScommand:調用命令
Command: 命令
Arguments: 參數
For standalone player:fullscreen,allowscale,showmenu,exec,quit 播放器使用的固定命令和參數

例子:
FS Command ("fullscreen", "true") 設置全屏幕播放

4)
Load/Unload Movie: 調入/釋放外部的影片
Action:Load movie into location,Unload movie from location,Load variables into location: 可以選擇是否調入新影片,釋放已經調入的影片,調入變量
URL:影片的網址
Location:Level,Target: 調入的層,或者是某一目標對象的位置
Variables  on’t Send,Send use GET,Send use POST: 變量的傳遞方式

例子:
Load Movie ("test.swf", 1): 把 test.swf 調入到第一層
Load Movie ("test.swf", "loadit", vars=GET): 把 test.swf 調入到 loadit 目標對象的位置
Unload Movie ("loadit"): 把 loadit 目標對像處的影片釋放
Load Variables ("makeit.asp", 2, vars=GET): 調用 makeit.asp 並接收返回的變量

5)
Tell Target: 指定目標對像
Target: 目標對像

例子:
Begin Tell Target ("obj") 指定目標對像 obj

End Tell Target

6)
If Frame is Loaded: 判斷某影格是否調入
Scene: 指定場景
Frame:Number,Label,Expression: 指定影格,標號或者表達式
Expression:表達式

例子:
If Frame Is Loaded (Scene 1, "end")
End Frame Loaded:判斷場景一的標號為 end 的影格是否調入

7)
On MouseEvent 鼠標時間響應
Event ress,Release,Release Outside,Roll Over,Roll Out,Drag Over,Drag Out,Key Press 各種事件:按下,放開,在外面放開,焦點移入,移出,拖過,拖出,按鍵按下

例子:
On (Press) 鼠標按下的時候
End On
On (Key: s) 鍵盤上 s 按下的時候
End On

8)
If 判斷條件是否成立
Condition: 條件
Add Else/Else If clause: 加入 Else 再次判斷

例子:
If (a=10) 如果 a=10 那麼……
End If
If (a=10) 如果 a=10 那麼……不然……
Else
End If

9)
Loop 循環
Condition: 條件

例子:
Loop While (a=10) 如果 a=10 那麼循環
End Loop

10)
Call 調用函數影格或對像
Frame: 函數影格

例子:
Call ("make") 調用 make 影格程序

11)
Set Property 設置屬性
Set:Y Positon,X Position,Y Scale,X Scale,Alpha,Visibility,Rotation,Name,High quality,Show focus rectangle,Sound buffer time  設置 y 坐標,x坐標,y 放大倍數,x 放大倍數,透明度,可視否,旋轉角度,名稱,精細度,焦點矩形框是否顯示,聲音緩衝時間(默認5秒)
Target:   目標對像
value: 值

例子:
Set Property ("aoe", X Position) = "12" 設置目標對像 aoe 的 x 坐標為 12
Set Property (Show focus rectangle) = "0" 取消焦點框

12)
Set Variable 設置變量
Variable: 變量
value: 值

例子:
Set Variable: "test" = 10 設置 test=10

13)
 Duplicate/Remove Movie Clip 複製對像
Action uplicate movie clip,Remove duplicate movie clip 可選擇是複製還是刪除
Target: 目標對像
New name: 新目標對象的名字
Depth: 深度

例子:
Duplicate Movie Clip ("aoe", "aoe2", 1) 複製 aoe 一個新的動畫,名字叫 aoe2
Remove Movie Clip ("aoe2") 刪除目標對像 aoe2

14)
Drag Movie Clip  拖動影片片段
Start drag operation: 開始拖動
Target: 目標對像
Constrain to rectangle:Left,Top,Right,Bottom 鼠標的位置,左上右下
Lock mouse to center:  鼠標放置在中心
Stop drag operation  停止拖動

例子:
Start Drag ("aoe", L=2, T=3, R=4, B=5)  拖動目標對像 aoe,位置在 L=2, T=3, R=4, B=5
Start Drag ("aoe", lockcenter)  拖動目標對像 aoe,位置在中心
Stop Drag  停止拖動

15)
Trace  跟蹤
Message: 信息

例子:
Trace ("aoe") 顯示 aoe
Trace (aoe) 顯示 aoe 的值

16)
Comment 註釋
Comment: 註釋

例子:
Comment ("計算") 註釋:計算 


2010-04-18

18歲時,你該知道的 50件事

1) "If you are buying something that you will use often and for a long time,never go cheap. You'll end up replacing it sooner or paying more inmaintenance costs than if you had spent more on good quality in thebeginning. Plus, you'll enjoy the nicer product throughout its lifetime,rather than cringing every time you use something that is falling apart." --bretts
如果你要買個 常用而要用比較久的東西,不要買便宜的。因為很快就要換新或要支付額外的維修的費用,那還不如一開始就選好一點的。而且你還會因為好的產品而享受到比較好 的生活品質,而不會老是用的時候壞掉而生氣。

2) Don't spend money on a credit card that you can't afford to pay back. Theinterest and late payments can put you in a hole that can take you years topay back.

不要用信用卡 支付你付不起的費用,利息及分期付款會把你拖進一個好幾年才能還完的大洞裡。

2010-04-15

intro pop-up book retro style