ProgressBar Component
No commentsI have always wondered how the progress component worked.. seems easy enough.
Here is the document class
package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.events.ProgressEvent;
import flash.text.TextFieldAutoSize;
import fl.containers.UILoader;
import fl.controls.Label;
import fl.controls.ProgressBar;
public class ProgressBarDemo extends Sprite
{
private var url:String = “http://manewc.com/projects/flash/i/gahlord.jpg”;
private var myLabel:Label;
private var myProgressBar:ProgressBar;
private var myUILoader:UILoader;
public function ProgressBarDemo()
{
myUILoader = new UILoader();
myUILoader.autoLoad = false;
myUILoader.source = url;
myUILoader.move(10, 10);
myUILoader.scaleContent = false;
myUILoader.load();
myProgressBar = new [...]
Video Player with XML and the FLVPlayback and DataGrid Components
2 comments so farI just created a simple video player. I wanted the data grid component to hold a description of the videos in the xml file as well as display the thumbnail image for the movies. In addition to this there is the ability to link to a specified Skin movie to apply to the video [...]
[AS 3] Color Picker with the ColorPicker Component
No commentsOf course to begin don’t forget to drop this component in your library. A simple demonstration of assigning a color to an object being added to the stage.
Here is the Document Class file ColorPickerComponent.as:
package
{
import flash.display.Sprite;
import flash.display.Shape;
import fl.controls.ColorPicker;
import fl.events.ColorPickerEvent;
import flash.geom.ColorTransform;
public class ColorPickerComponent extends Sprite
{
private var bg:Shape; // for the background
private var tf:ColorTransform;
private [...]
[AS 3] TileList Component
No commentsA simple example of loading in some images in the TileList component. Make sure you add the TileList component to your library in or for this to work.
Here is the document class TileListDemo.as:
/*
Reference
http://www.adobe.com/devnet/flash/quickstart/tilelist_component_as3/
*/
package
{
import flash.display.Sprite;
import fl.controls.TileList;
import fl.controls.ScrollBarDirection;
import flash.text.TextFormat;
public class TileListDemo extends Sprite
{
private var tlc:TileList;
public function TileListDemo()
{
// create TileList instance
var tlc:TileList = new [...]
[AS 3] DataGrid Component
4 comments so farI was never a huge fan of Flash Components back in the day, now I find that they are essential in building flash applications. Here is an example of using the Data Grid Component. In this example we add data to the grid by applying the addItem method. You can also add data via an [...]