khosrwb Active Member Licensed User Longtime User Aug 8, 2015 #1 I want the text to be shown when the animation is finished. What should I do? Attachments AN1.zip 7 KB · Views: 107
LucaMs Expert Licensed User Longtime User Aug 9, 2015 #2 You created a wrong event routine, or more precisely, you used a wrong event name: B4X: Sub myAnimation_AnimationEnd The event name is what you have set in the initialization of the animation: B4X: an1.InitializeScaleCenter("btn",1.35,1.35,0,0,Button1) Then it is "btn" and then the name of the event routine should be: B4X: Sub btn_AnimationEnd or you should set: B4X: an1.InitializeScaleCenter("myAnimation",1.35,1.35,0,0,Button1) Upvote 0
You created a wrong event routine, or more precisely, you used a wrong event name: B4X: Sub myAnimation_AnimationEnd The event name is what you have set in the initialization of the animation: B4X: an1.InitializeScaleCenter("btn",1.35,1.35,0,0,Button1) Then it is "btn" and then the name of the event routine should be: B4X: Sub btn_AnimationEnd or you should set: B4X: an1.InitializeScaleCenter("myAnimation",1.35,1.35,0,0,Button1)
khosrwb Active Member Licensed User Longtime User Aug 9, 2015 #3 I change them but yet , Do not work properly. Attachments AN1.zip 7 KB · Views: 122 Upvote 0
LucaMs Expert Licensed User Longtime User Aug 9, 2015 #4 I changed only the times (1000 instead of 6000) and deleted your direct calls to btn_AnimationEnd. Attachments lm AN1.zip 7.1 KB · Views: 122 Upvote 0