Are there any good resources for starting Flex 3 UI programming in ActionScript? I am having some issues with the following if anyone has any ideas. It gets the right size, but my buttons are not showing up. Anyone have any ideas?
package
{
import flash.display.*;
import mx.controls.Button;
import mx.controls.TileList;
import mx.controls.sliderClasses.Slider;
import mx.controls.ProgressBar;
import flash.net.FileReferenceList;
[SWF(width="720", height="480", backgroundColor="#ffffff", framerate="30")]
public class PhotoUploader extends Sprite
{
var AddPhotosButton:Button;
var RemovePhotoButton:Button;
var UploadPhotosButton:Button;
public function PhotoUploader():void
{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
AddPhotosButton = new Button();
AddPhotosButton.x = 10;
AddPhotosButton.y = 10;
AddPhotosButton.width = 100;
AddPhotosButton.height = 20;
RemovePhotoButton = new Button();
UploadPhotosButton = new Button();
addChild(AddPhotosButton);
addChild(RemovePhotoButton);
addChild(UploadPhotosButton);
}
}
}