/ Published in: ActionScript
Creating and using my Accordion Menu
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
package { import flash.display.MovieClip; import flash.events.Event; /** * ... * @author Jeff Nehlsen */ public class Main extends MovieClip { private var loader:XMLLoader; private var menu:AccordionMenu; public function Main() { loader = new XMLLoader(); loader.addEventListener(Event.COMPLETE, xmlLoaded); loader.loadXML("test.xml"); } private function xmlLoaded(e:Event):void { trace("Creating menu"); menu = new AccordionMenu(loader.xml); addChild(menu); } } }
URL: http://www.jeffnehlsen.com/