Buttons...

  • Arlene
  • Born
  • Born
  • Arlene
  • Posts: 3
  • Loc: Kent, UK

Post 3+ Months Ago

Hi,
I have a load of simple movie clips with buttons inside, on the same layer. When each is pressed, the movie clip begins.

How can I apply the action to allow only one of these to be pressed at a time, ie; if one is playing, the others wont work?

Thanks
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • phpSelectah
  • Student
  • Student
  • User avatar
  • Posts: 97

Post 3+ Months Ago

IMO, probably the easiest way would be to have the button press call a function that sets/checks a variable which will be used to determine if something is playing or not.

And you can have it reset this variable in the last frame of the currently loaded movie.


There may be a slicker way to do this, which I would like to know also ;)
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

There is a Button and MovieClip property called "enabled" that allows you to enable or disable a buttons actions (accepts a boolean value of true or false).

Useage would go something like this for disabling...
Code: [ Select ]
clipInstanceName.enabled = false;


Then to re-enabled
Code: [ Select ]
clipInstanceName.enabled = true;

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 11 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.