|
Post by ynnadje on May 8, 2014 21:39:46 GMT
Hello, I want to create a startpage with 6 buttons. Clicking should open a webpage Hovering over the button should start a different animation. Leaving the button should stop the animation. You'll find the page on www.legehaven.be/index.php/voorpaginaThe problem I have is with the button Energy port. (top right) On hovering over the button, a windmill should apear On leaving the button, the windmill should fly away direction bottom corner right. See screenshot. On position 60 I have introduced a timeline with the windmill just spinning. On hovering over the button, this works fine. Between position 62 and 77, the windmill becomes bigger and flies to the bottom right corner. I tried to do this with the folowing code on "on out" GotoAndPlay(62); ---> start the movie where the windmill flies away. GotoAndStop(0); ---> Goto position '0' when the windmill has disapeared from the screen. But I the windmill isn't flying away or it starts playing all parts, wich shouldn't be played (animations on position 80 ...) Can somebody please help me with this beginner question? I searched for hours, but didn't find a solution. (I'am an absolute Java Newbe ...) Thanks enshot:
|
|
|
Post by Hippani on May 9, 2014 8:02:29 GMT
Is there any chance you could post the .hani file for us to look at?
GotoAndPlay(62); GotoAndStop(0);
This won't work by the way, it won't wait for the first function to finish.
Try placing GotoAndStop(0); directly into the timeline.
|
|
|
Post by ynnadje on May 9, 2014 9:07:43 GMT
|
|
|
Post by ynnadje on May 9, 2014 9:08:35 GMT
|
|
|
Post by Hippani on May 9, 2014 9:45:34 GMT
yes, it's basically what I said. Remove GotoAndStop(0); from the on mouse out event. Create a new script frame at 77 and add GotoAndStop(0);
|
|
|
Post by ynnadje on May 9, 2014 10:19:32 GMT
Hi, I think you lost me, and it's probably a stupid question, but what do you mean by "creating a script frame"? How do I add a script frame?
Danny
|
|
|
Post by Hippani on May 12, 2014 12:28:56 GMT
The top layer of the main timeline is called script. You can add script that runs at a certain time. Double click that layer so add a new frame. You can then set script in the properties of that frame.
|
|
|
Post by ynnadje on May 15, 2014 21:38:42 GMT
thanks, I try that
|
|