![]() Increase the x position for the next button. This critically-acclaimed interactive training program from Adobe Press offers exceptional quality high-definition video to teach the fundamentals of Adobe Flash Professional CC. Label.y = (button.height/2) - (label.height/2) īutton.addEventListener(MouseEvent.MOUSE_OVER,īutton.addEventListener(MouseEvent.MOUSE_OUT,īutton.addEventListener(MouseEvent.CLICK, Label.x = (button.width/2) - (label.width/2) Position the text in the center of the button. Adder the states and label to the button. Create the label for the down button state. Var format:TextFormat = new TextFormat() ![]() Create text formatting for the text fields in the menu. Create a holder that will contain the menu. This variable will hold the x position Private var _MenuArray:Array = new Array("Button 0", ![]() ![]() 1.2 Example Adobe flash CS5 -Actionscript 3.0 -Basic Menu using ActionScriptĢ) File ->New->ActionScript 3.0 Class, type class: BasicMenu, type following code: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |