Hello, I'm trying to create a button on-the-fly within a class declaration, but am running into this error:
"There is no method with the name 'createClassObject'." ------------------------------ Contents of Hint.as: import mx.controls.Button; class Hint extends MovieClip { var hintTextBox:MovieClip; function Hint() { } function init() { var mBox:Button=createClassObject(Button,"myButton",1,{label:"howdy"}); } } ------------------------------ Contents of hintTest.fla: var myBut:Hint = new Hint(); ------------------------------ Am I missing an import statement or am I extending the incorrect class? _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com