images for AxButton

Got a question? Need help? Post here!

images for AxButton

Postby papaRobot » Thu Jan 02, 2014 7:38 am

Hello everyone. I just started to programming games with Flash and Axel. I have problem with creating buttons. I cant understand what I need to put in AxButton class constructor for graphic parameter. I need to put 3 imaged of the button (normal, over and clicked states). How can I do it?
papaRobot
Corporal
 
Posts: 12
Joined: Thu Jan 02, 2014 7:27 am

Re: images for AxButton

Postby Arkeus » Thu Jan 02, 2014 9:24 pm

Instead of passing 3 images, you need an image with 3 frames. The best example is the built in one:

Image

Then you also pass the frame width and the frame height of each frame in the image.
Image
User avatar
Arkeus
Site Admin
 
Posts: 363
Joined: Mon Mar 26, 2012 12:43 am

Re: images for AxButton

Postby papaRobot » Fri Jan 03, 2014 3:15 am

Thanks you very much! Its very helpful.
papaRobot
Corporal
 
Posts: 12
Joined: Thu Jan 02, 2014 7:27 am


Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron