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.


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!


Page chargée en 0.001 sec.

Dernière Modification : Jeu 12 Mai 2022 10:33
Copyright © 1999-2022 Jean-Paul Molina Tous droits réservés.


to Google