Flash Player 10 Code Name Astro

[kml_flashembed movie=”/labs/swf/iHold.swf” height=”150″ width=”450″ quality=”best” fvars=”fs=/imgs/adobe/flashplayer10.jpg” /]
The name is out! Emmy Huang, product manager for Adobe Flash Player released the code name for the Flash Player 10 “Astro” and for those lucky ones that will be able to make it to MAX this year they will be able to see what “Astro” can do first hand.
Continue reading Flash Player 10 Code Name Astro

MVC (Model-View-Controller) – Essential ActionScript 2.0

MVC Design Pattern

I had a few hours to spare the other day and I created the diagram (sketch) above trying to understand Colin Moock’s take in the subject. One post won’t cover all the ins and outs of this Design Pattern but its more of a review and study of the author’s view.

Continue reading MVC (Model-View-Controller) – Essential ActionScript 2.0

Trace selected text with TextMate

That is right, thanks to the guys from TextMate and their help I was able to get a small Macro that will trace the selected word in Flash.

What I mean is this:

1. Select a word
2. Run the Macro
3. the word you selected will appear in the next line as follows:

trace(“the Word You Selected = ” + the Word You Selected);

Neat uh?

Bind that to a short cut (in my case CMD-E) and anytime you need to trace a variable or an object you are set to go.

Interested in the macro?

Continue reading Trace selected text with TextMate

Complex Array combo

I haven’t tested this kind of array usage against the processor so I am not sure how intensive it is but it definitely helps in case you want to keep your arrays very descriptive and you don’t want to do a search on the array every-time you need a certain node.

So the regular way of using arrays is:

var myArray:Array = new Array();
myArray.push (“this”, “this one”, “this two”);
myArray.push (“that”, “that one”, “that two”);

so lets say you do a simple trace

trace( myArray);

you get a nice long list with all the items you have pushed into the array (“this,this one,this two,that,that one,that two”). So you want to organize the arrays in a way that you want to access “this one”, well you can certainly do


now lets try to get “that one”…

trace (myArray[4]);

That is because we know that the position of “that one” is the 4th position in the array. But all of the sudden you are running down your scripts trying to figure out the best way to access the information in your array without having to memorize the position of each of them. So then what do you do? You can create an array for each one of the items you need. like this:

var thisA:Array = new Array();
thisA = [“this one”, “this two”];

var thatA:Array = new Array();
thatB = [“that one”, “that two”];

Now lets say we need “this one” we can access that value by doing the following:


That is an easier way to know what we want and now we can refer to each array by their name. But lets pause for a second and think that maybe… MAYBE 3000 lines down your code you find yourself stranded trying to figure out if thisA[0] was “that one” or if it was thisA[1]… so what if we could name each one of those arrays with a specific name that we could remember later….

Hummmm… now we are talking.

lets do the following

var thisA:Array = new Array();
thisA = [{positionone: “this one”, positiontwo: “this two”}];

eh?… lets taste it…


and it works! So do I mean that if I want to access position two all i have to do is remember the name of the array “thisA” and the name of the value I am trying to access? of course… lets try the secnd one


Sweet! there you have it, go wild! go crazy in the mean time I will find out how much processor we are eating with this approach.

Continue reading Complex Array combo

Password protected flash site Class

After seeing so many people requesting help with the easy Username and Password method for Flash I decided to write a small class.

Granted UserName and Password verification shouldn’t be taken slightly, but many times you just want to make a section of your site “Pass Protected with flash”, and in reality this is a very simple verification that should be used against the average joe, not the average geek-joe who knows about flash-deconstruction and such.

So have your Password-Protected flash site in 3 steps;

1. Download the class from here:

2. unzip the files in the directory where you are building your flash movie, so the file structure should look like this:

-root directory
3. on the root timeline of your flash movie write the following:

[as] import com.helmutgranda.PasswordProtect;
//(timeline, depth, x position, y position, username, password, gotoAndPlay what? # or label)
PasswordProtect.main(this, 10, 25, 25, “helmut”, “granda”, 5);


Please do not write telling me geek-joe was able to break into my site! because this is not a bullet proof password verification, this is just a quick way of keeping the average joe from looking into any “secure” section of your site. I might write a more robust version with some PHP/mySQL/flash combo but for now this will do.

Welcome FABridge – A combination of Flash and AJAX

Adobe makes peace with Ajax

9th March 2006
By CBR Staff Writer

Seeking to ride the Ajax wave, Adobe Systems is to announce that it wants to make friends, rather than compete with, the increasingly popular grassroots rich internet client framework.

Adobe will release FABridge, which stands for Flash-Ajax bridge. Specifically, FABridge will allow JavaScript routines to call rich graphic objects supported in the Adobe Flash player. Later this year, it will also make available a client for data services in its Flex framework to which Ajax clients can connect.

Read More