Ragazzi come faccio ad inserire tramite actionscript 3.0 un'immagine all'interno del mio SimpleButton e farlo diventare cliccabile??
Supponiamo che la mia classe è questa:
codice:
package{
	import flash.events.MouseEvent;
	import flash.net.URLRequest;
	import flash.display.*;
	import flash.display.SimpleButton;
	public class imageSmall_btn extends SimpleButton{
		
		var imgMiniUrl:URLRequest;
		var x_:Number;
		var y_:Number;
		
		public function imageSmall_btn(img_miniUrl:URLRequest,xx_:Number,yy_:Number){

			imgMiniUrl = img_miniUrl;
			x_ =  xx_;
			y_ =  yy_;
			this.x = xx_;
			this.y = yy_;
		}
		public function setPosition(x_,y_){
			this.x = x_;
			this.y = y_;
			}
	}
}
E' possibile??
In poche parole devo creare delle miniature che al click, vengono ingrandire.
L'url delle immagini viene preso tramite xml.