What am I doing wrong here? I'm trying to create a popupmenubutton in pure actionscript.
var network:PopUpMenuButton; var networkDP:Object = new Object(); networkDP[0] = '<menuitem label="Phone Model" index="0"/>'; networkDP[1] ='<menuitem label="App Load" index="1"/>'; networkDP[2] ='<menuitem label="Boot Load" index="2"/>'; networkDP[3] ='<menuitem label="Version" index="3"/>'; network = new PopUpMenuButton(); network.label = "Phipz"; network.dataProvider = networkDP; network.visible = true; network.setActualSize(75,20); network.move(10,10);