30Jul

Checkbox Component

No comments

A little piece that utilized the Checkbox component, Button component, and Yahoo!’s Alert Manager component. Things like this are probably more appropriate for Flex and MXML, but for now I will stick with CS3.

package
{
// Components Used:
// ——————–
// Yahoo! Alert Manager
// Button
// CheckBox

import flash.display.Sprite;
import flash.events.MouseEvent;
import com.yahoo.astra.fl.managers.AlertManager;
import fl.controls.Button;
import fl.controls.CheckBox;

public class Main extends Sprite
{
private [...]

21Jul

Label Component

No comments

The Label Component is described as: A Label component displays one or more lines of plain or HTML-formatted text that can be formatted for alignment and size.

package
{
import flash.display.MovieClip;
import flash.text.TextFieldAutoSize;
import fl.controls.Label;

public class LabelComponent extends MovieClip
{

public function LabelComponent()
{
var myStr:String = “This is a test of the Label Component - This is a test [...]

15Jul

Focus Events

No comments

So I found this little demo within the Adobe docs, so I decided to add it to my site for future reference. ( I wish I saved the link to the original files, when I find it I will post it)

package {
import flash.display.Sprite;
import [...]

14Jul

DataGrid Styles

No comments

I recently had an inquiry about the ability to change the row font color of the datagrid component on rollover - with this in mind, I wanted to explore more with the styling of the component. So far, we have the ability to change the background color on rollover, but not the font color - [...]

09May

ProgressBar Component

No comments

I 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 [...]