eingko weblog

a web developer’s thoughts and musings

Archive for the ‘Flash’ Category

Why I Love ActionScript 3.0

When ActionScript 2.0 was released - and later Flash 8 - it was exciting to see the new capabilities of the Flash player. But, the improvements of ActionScript 3.0 over ActionScript 2.0 are incredible. When I jumped in and started playing around with ActionScript 3.0 I discovered many significant changes, all for the […]

Partigen

I’m really excited about the upcoming release of Partigen, check it out here: http://www.desuade.com/.

Three days ago (April 11) Microsoft released an Internet Explorer update in response to the patent battle between Microsoft and Eolas. After installing the update, Internet Explorer (not other browsers, fortunately) users will be required to “activate” embedded objects and plug-ins before they can interact with them. Here’s what sucks, most users will receive this […]

In Optimizing Flash Buttons (Part 1) and (Part 2) I talked about improving the efficiency of creating movieclip buttons; although the methods/approaches discussed therein are valuable (but that’s for you to decide), sometimes a more powerful or abstract solution is required. In the text that follows I’ll dissect a class that I’ve created that […]

Optimizing Flash Buttons (Part 2)

Last week I shared the method I use to optimize (movieclip) buttons within Flash. Now, I’m going to take it one step further, by putting the following on the first frame of the topmost layer:
_global.path = “/index.php”;
_global.pg_1 = _global.path + “?id=1″;

function eventListener(my_mc, mcInstance){
my_mc.onRollOver = function(){
this.gotoAndPlay(”over”);
}
my_mc.onRollOut = function(){
this.gotoAndPlay(”out”);
}
my_mc.onRelease = function(){
getPage(mcInstance);
}
}

function getPage(mcInstance){
var newPage = _global[”pg_” + […]

Optimizing Flash Buttons (Part 1)

In the past, whenever I needed buttons within Flash (whether movieclip or actual button instances) I would select the instance (_mc_opt01) on the stage open up the Actions panel and paste in the following code:
on(rollOver){
_root._mc_opt01.gotoAndPlay(”rollover”);
}
on(rollOut){
_root._mc_opt01.gotoAndPlay(”rollout”);
}
on(release){
getURL(”mypage.php”);
}
Being one who likes to modularize, I decided to try and modify my code/approach and make it more portable and easier […]