2010-01-23 16 views
0

後功能激活我有2個功能將在AS3:AS3 3秒

function blueDownBounce (e:MouseEvent):void { 
    var blueDownY:Tween = new Tween(blue, "y", Regular.easeOut, -49, -19, 1, true); 
} 
blue.addEventListener(MouseEvent.MOUSE_OVER, blueDownBounce); 

function blueUpBounce (e:MouseEvent):void { 
    var blueUpY:Tween = new Tween(blue, "y", Bounce.easeOut, -19, -49, 1, true); 
} 
blue.addEventListener(MouseEvent.MOUSE_OUT, blueUpBounce); 

我試圖讓這個功能有效,則在3秒鐘後,他們保持活躍整個時間是3秒後停在那幀。我知道你必須制定一個計時器,並使其依賴於該計時器,但它不能很好地工作。

謝謝, 瓦德

+0

您是否試圖在鼠標懸停三秒後調用'blueDownBounce'? – Amarghosh 2010-01-24 13:07:37

回答

0

所需的定時器,並在該定時器所需要的事件監聽上述被定義的功能。