Archive for the ‘Flash’ Category

Flash games on Mobile platforms

Thursday, December 25th, 2008

Adobe and all the mobile companies should be pushing for flash to be more available on the phone devices. Flash right now has a penetration of 99 percent. If developers make games for web, and if a cell phone user comes to the online game. If they don’t have flash they wont be able to play it. Also more and more IT experts are noticing phones are increasingly being more used as game consoles.

Adobe Flash CS4 and 3d

Thursday, December 25th, 2008

I installed few months back Flash CS4 and i realized it looks allot like Premiere and 3d studio max together. Its starting to look like Adobe is trying to make the flash also a game development platform now because if you bring 3d into flash then sky is the limit. Now if they can just use OpenGL or DirectX we will really be talking. :)

Flash onIntervel

Tuesday, April 22nd, 2008

Many years have been using onIntervel and there always is a problem with it. So we have put together this post to help and make your life easier.

Please, note that flash onIntervel is only available from flash 6 player and actionscript 1.

Here is a code i have put together…
//
function funToRun() {
trace(”var1:”+var1);
var1++;
//
if (var1 == 3) {
//
trace(”if cond true”);
clearInterval(intervalItem);
//
}
//
}
//
function stopIntervalFun() {
trace(”stop called!”);
clearInterval(intervalItem);
var1 = 0;
}
//
function startIntervalFun() {
trace(”start called!”);
var1 = 0;
clearInterval(intervalItem);
intervalItem = setInterval(funToRun, 500);
}
//
butt1.onPress = function () {
//
startIntervalFun();
//
}
butt2.onPress = function () {
//
stopIntervalFun();
//
}
//
FLA of onIntervel code

This i have noticed is best way of using the onIntervel method. Be sure to always clearIntervel before moving on. Otherwise there are always problems, where it does not stop and different odd behaviors take place.