new Tiny.Transition(stage, scene, duration)
Name | Type | Description |
---|---|---|
stage |
Tiny.DisplayObject | |
scene |
Tiny.DisplayObject | |
duration |
number |
Example
var app = new Tiny.Application()
app.replaceScene(sceneName, 'MoveInL', 300);
Methods
-
FadeColor()
-
Example
var app = new Tiny.Application() app.replaceScene(sceneName, 'FadeColor', 500, 0xFF0000);
-
FadeWhite()
-
-
MoveInB()
-
-
MoveInL()
-
-
MoveInR()
-
-
MoveInT()
-
-
ProgressH()
-
-
ProgressInOut()
-
-
ProgressOutIn()
-
-
ProgressRadialCCW()
-
-
ProgressRadialCW()
-
-
ProgressV()
-
-
SlideInB()
-
-
SlideInL()
-
-
SlideInR()
-
-
SlideInT()
-
Events
-
transitionend
-
Fired when Transition is end.
Name Type Description Container
Tiny.Container 进行转场的场景
Example
// 为了保证性能,转场时会进行舞台中显示对象的销毁和重新创建,故场景中的 Action 需要监听 transitionend 后执行 sceneName.on('transitionend', function(){ sprite.runAction(Tiny.RepeatForever(action)); }); app.replaceScene(sceneName, 'SlideInR');