Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim a As AnimationMultiple
Private Button1 As Button
Private Button2 As Button
Dim q As Panel
Dim qq As Panel
Dim qq3 As Panel
Dim qq2 As Panel
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("L1")
Button1.Initialize("Button1")
Activity.AddView(Button1,0,100%y-40dip,150dip,40dip)
Button1.Text="START ALL"
Button1.Initialize("Button2")
Activity.AddView(Button1,155dip,100%y-40dip,150dip,40dip)
Button1.Text="START #2"
a.Initialize(Me,"a")
q.Initialize("")
Activity.AddView(q,100,100,100,100)
q.Color=Colors.Red
qq.Initialize("")
Activity.AddView(qq,200,200,100,100)
qq.Color=Colors.Yellow
qq2.Initialize("")
Activity.AddView(qq2,300,300,100,100)
qq2.Color=Colors.Cyan
qq3.Initialize("")
Activity.AddView(qq3,400,100,100,100)
qq3.Color=Colors.Gray
a.AddRotate (q, 10,155,3000,0,a.REPEAT_NULL)
a.AddTranslate(qq,200,200,10,10,7000,0,a.REPEAT_NULL)
a.AddScale(qq2,0,0,1,1,6000,0,a.REPEAT_NULL)
a.AddAlpha(qq3,0.1,0.9,5000,0,a.REPEAT_NULL)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub a_AnimationMultipleEnd(WorkedView As View,Coord() As Float)
'Sub a_AnimationMultipleEnd(WorkedView As View)
Log("Complate:"&DateTime.Time(DateTime.Now))
WorkedView.Color=Colors.Blue
Log(Coord.Length)
Log(Coord(0))
Log(Coord(1))
Log(Coord(2))
Log(Coord(3))
End Sub
Sub a_AnimationMultipleError
Log("ERROR : Cant find your view in Own list")
End Sub
Sub Button2_Click
a.StartAt(qq)
End Sub
Sub Button1_Click
a.StartAll(true)
DoEvents
DoEvents
DoEvents
DoEvents
a.DeleteAt(q)