Archive for February, 2008

22Feb

[AS 3] Yahoo! TabBar Component

No comments

I was just wondering at the ease of the Yahoo! component, so I modified their code to output simple tab data (just the page id).
You can grab the component here: http://developer.yahoo.com/flash/


Here is the document class:

package
{
import flash.display.Sprite;
import flash.events.Event;
import fl.data.DataProvider;
import com.yahoo.astra.fl.controls.TabBar;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFieldType;
[...]

21Feb

[AS 3] TileList Component

No comments

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

20Feb

[AS 3] Fullscreen Mode with Actionscript

2 comments so far

Today I thought I would play around with the Fullscreen functionality of Actionscript. I found this great article over at Adobe which will further explain things.
To set this up, a few extra items were needed outside of the normal document class .as file.

There needs to be a movie clip in the library bound to a [...]

Categories: Actionscript 3
19Feb

[AS 3] Blur Filter Animation

1 comment so far

Since I just worked with the BevelFilter class, I thought I would easily turn it over to the BlurFilter class. Don’t forget that these filters may also be applied to movieclips and textfields, not just images.


Here is the document class, named BlurFilterDemo.as:

package
{
import flash.display.Sprite;
import flash.display.Loader;
import flash.display.LoaderInfo;

import flash.net.URLRequest;

import flash.display.Sprite;
import flash.filters.BitmapFilterQuality;
import [...]

19Feb

[AS 3] Bevel Filter Animation

No comments

A simple animation that will load in an external image and by pressing your mouse over the image it will apply the a bevel using the BevelFilter class.


Here is the document class:

package
{
import flash.display.Sprite;
import flash.display.Loader;
import flash.display.LoaderInfo;

import flash.net.URLRequest;

import flash.filters.BevelFilter;
import flash.filters.BitmapFilterQuality;
import flash.filters.BitmapFilterType;

import flash.events.Event;
import flash.events.ProgressEvent;
import flash.events.MouseEvent;

import [...]