hide side navigation
    5 most recent
    Web Services
    Library's
    Component's
    Applications
    Articles
  Flex form by email  Hello Remoting with AS3  AS3 Saving data from Flash  AS3 Loading data into Flash  Fire Effect  Contact form  Dragable buttons  Hello World with openamf  Loading helper classes  Upload with Flash 8  Transitions effects  Snapshot with Flash 8  Hello World Remoting AS2  Flash AS2 Remoting Connector  Saving data from Flash  Loading data into Flash  FlashCom & Remoting login  Cell Renderer API  Editing a table using remoting components  Flash MX2004 web service classes  Browsing a catalog  amfphp Documentation  Hello World Remoting  Online Store with AMFPHP  Flash clients for Web Services  Web Service Walk Though with NuSoap  Popup windows in flash with javascript  Installing Apache/PHP  MoreOver News Feeds  Load Edit Save Text Files via CGI  Save Movie Clip Postion via PHP and MySQL
 Read Full Documentation >>

Dragable buttons (Flash 7 or above for the example)

Because of a recent question on the boards, I decided to make this quick tutorial. This example covers some basic aspects of Actionscript. It includes Arrays, for loops, basic functions, and some simple buttons. There are no requirements for this tutorial. I've used components because they do a good job of displaying the actions. Feel free to use any button or movieClip you want. If you don't use components, then you won't easily see the disabled state of the buttons but it will have no effect on the functionality.

As for the usage, it's very simple, just click and drag a button. You will see that the button you drag stays above the others and the others deactivate. I thought this might be a useful script for games or online applications that deal with draggable movieClips. It is very simple, but with a basic array and some simple functions, we can create a powerful script. Not only can you use this "as is", but it can be modified quite easily. Thank you and enjoy.

Here are the example files >> and here is our working movie.

If you have further questions, ask please on Boards

Authored by: Nothinggrinder