Classical dropdown menu (script)

 

The goal is to build dropdown menus only using a script.

⇒ animation ⇐

We gonna describe the stages right now.

Main movie

Stage 640x480. Frame rate = 30. Background color #336600.

Script

You need a fair good understanding of POO despite the limitations of SwishMax.

I was stuck when I wished to close a menu while a previous one was opened.
I knew how to do this in POO C++ and with SwishMax IDE controling the timeline.
I was seeking for an elegant programing solution without success, so I feel ashamed of my tricky solution.

The principle is quite simple : every item is an object with filled rectangle, title, menu (and submenu if you want)

In Scene_1, enter :

Et voilà! It's up to you to improve that script!

 


Si vous aimez le site

 

Select a language if you need :


Page chargée en 0.004 sec.

Dernière Modification : Mer 25 Janvier 2017 8:56
Copyright © 1999-2017 Jean-Paul Molina Tous droits réservés.

to Google