button only works once?

  • one2one
  • Novice
  • Novice
  • No Avatar
  • Joined: Nov 20, 2007
  • Posts: 24
  • Loc: Lancaster, PA
  • Status: Offline

Post January 25th, 2008, 7:21 am

weird issue. not a huge flash/action script expert here.

Made a flash movie in Flash Pro 8. it loads and then displays some movie clips that contain buttons.

I added the AS

Code: [ Select ]
on (release){
_root.gotoAndStop("Button1");
}
  1. on (release){
  2. _root.gotoAndStop("Button1");
  3. }


"Button1" being the Frame Label I want this movieclip/button to advance/return to if the movieclip/button is clicked.

It works... 1 time. after that you can click on the movieclip/button all you want and nothing happens.

What did I miss?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 25th, 2008, 7:21 am

  • zhaojany
  • Student
  • Student
  • User avatar
  • Joined: Aug 03, 2006
  • Posts: 78
  • Status: Offline

Post February 14th, 2008, 7:16 am

If u can put ur file on somewhere , and if we get the file. maybe we can help u .
  • one2one
  • Novice
  • Novice
  • No Avatar
  • Joined: Nov 20, 2007
  • Posts: 24
  • Loc: Lancaster, PA
  • Status: Offline

Post February 14th, 2008, 7:20 am

I figured it out with help from another forum.

basically, I needed to use

gotoAndPlay instead of gotoAndStop and make a few other tweaks. it all works great now.

thanks though :)
  • zhaojany
  • Student
  • Student
  • User avatar
  • Joined: Aug 03, 2006
  • Posts: 78
  • Status: Offline

Post February 14th, 2008, 10:58 pm

:)

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 37 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.