Posts

Actionscript 3.0 Tween Class Issue

Tween class in Actionscript 3.0 does not work the way it works in AS 2.0. In AS 2.0 we could create tween class variables inside a function and do a tween animation without worrying about garbage collection of the variable (declared using var) after the scope of the function is over. However this was not the case in Actionscript 3.0. Though it works, sometimes or rather most of the times the animation tends to halt in between or does not complete. This is a serious trouble since any TweenEvent.MOTION_FINISHED even does not get handled if any. The only solution to this problem was to define a Tween class member variable or a global static one. And if you try using the same static variable for more than one tween animation then you are still in soup. It is not guaranteed to work. In AS 3.0 you might have to overcome this using an array of variables of type Tween. This is the workaround to the problem. But since we have the garbage collector doing a timely sweep and clean we need not worr...

ActionSript 3.0 children and mouse issues

If you have a movie clip in the form of a button say a graphic in the background and a text in the foreground then in AS 3.0 you might find that myClip.buttonMode=true enables the button mode for the parent of the movieclip but not its children. I.e. on focussing the children or the text in our case the hand cursor turns to a mouse pointer. To handle this problem just set the mouseChildren property to false. myClip.mouseChildren = false;

ActionScript 3.0 TransitionManager

If TransitionManager.start(screen, {type:Fade, direction:Transition.IN, duration:trans_duration, easing:None.easeNone}); on a particular class extending movie clip fails or throws an exception while compiling or running then make the class dynamic as in public dynamic class Superb extends Movieclip.

ActionScript 3.0 - Varying Movieclip framerates

I needed a situation where a single movieclip could be played at different frame rates. Though action script 3.0 has this neat way of dynamically varying the frame rate of the entire stage using stage.frameRate I found it not suiting enough to my requirement. And hence tries using the updateAfterEvent instead. The only fear I had was with it working fine in the player but not so in firefox and IE. And to my surprise it seems ok. So to have your movieclip work at different framerates just do this. 1) Create a timer as shown below var lTimer:Timer=new Timer(200,0); lTimer.addEventListener(TimerEvent.TIMER,triggerUpdateClip) 2) Add a listener to this function triggerUpdateClip(event:TimerEvent) { myClip.nextFrame(); event.updateAfterEvent(); } Thats it. Now vary the delay of the timer to increase or decrease the speed of the animation. Make sure you test it in different browsers as they all worked and handle timers differently.

Flash Actionscript 3.0 MovieClips and GotoFrames and listeners

Doh! It was neat with Actionscript 2.0 but not so in 3.0. Again the same old dirty tricks. I had an issue with a particular movie clip containing two frames. A particular layer had a small close button movieclip available in frame 1 but not in frame 2. I.e. frame 2 had an empty key frame. When I initiate a gotoAndStop(2) from the AS file, the graphic does appears but the listeners just disappear. And in some occasions the graphic itself does not appear. AS 2.0 did not have such issues. I presume this is because of the reason that the whole chunk of information of a movie clip was preloaded. And hence everything remained in the memory. But in AS 3.0 graphics are loaded and initiated frame by frame. I came across an document from Adobe which said that listeners would be made available only if the objects in the frame the pointer moves to completely loads. And to do this we need to listen to the RENDER event. And then proceed with adding any listeners. Something like this... myButton.addE...

Masters in Interactive Technology

http://www.techlivez.com/2007/07/masters-degree-in-video-games-for-the-game-addicts/ Follow this link for a masters degree in interactive technology in Trinity College, Dublin

Gears of Wars - Facts....

Image
Three million copies in just Ten Weeks Fast selling video game of 2006 And more at Wikipedia - Gears of War

For all Sudoku Fans - No more Papers pls...

Image
Sudoku Play this fantastic puzzle game that is taking the world by storm!! Play this free game now!!

Halo - Microsoft - Bungie Studios

Image
If you had wondered why "Two heads are better than one", the answer to his is history and knowledge transfer. Microsoft, Apple , Google, Bungie Studios, Infosys all started with TWO HEADS. Here Its about Microsoft planning on trapping a BIG FISH called Bungie Studios. The credit goes to Alex Seropian and Jason Jones and not entirely to Microsoft when it comes to HALO 3. Here is a snippet from Wiki on Bungie Studios. "Bungie is an American video game developer founded in May 1991 under the name Bungie Software Products Corporation (more popularly shortened to Bungie Software) by two undergraduate students at the University of Chicago, Alex Seropian and Jason Jones. The company concentrated primarily on Macintosh games during its first nine years of existence. Bungie was acquired by Microsoft in 2000, becoming part of Microsoft Game Studios, until the two separated on October 1, 2007[1] (officially announced on October 5, 2007). Bungie is now a second-party developer, base...

Moto Madness - Man Its cool

Image
All games in this website are really coool. Motocross Urban Fever Perform awesome stunts and race your motorcycle to victory. Play this free game now!! Miniclip.com

Pressure shot from Miniclip - SImple cute...

Image
Check out this game called the Pressure Shot a variant of the Golf game and enjoy. Pressure Shot Can Europe hold up under the pressure in the 2004 Ryder Cup? Play this free game now!! Miniclip.com

ID Software

Image
Founded in : 1991 Location: Texas Specialization: Developing Computer and Video games Key People: John Carmack John Romero Games Developed: Wolfenstein 3D DOOM Quake etc. Click here to visit the official website

Expansion of the Oblivion - Shivering Isles

Image
Check the new expansion of the Elder Scrolls IV - Oblivion - The Elder Scrolls IV - Shivering Isle. Click here for more info

Bethesda Softworks

Founded in: 1986 Specialization: Developing and publishing computer and video games. Location (HQ): Rockville Games Developed : Oblivion - The Elder Scrolls IV High rollers casino Sea dogs and lots. Platforms developed for : Xbox Playstation Windows Mobile Devices Genres of games developed : Simulation Sports Strategy Action RPG Racing Adventure Click here to go to the mail website

Rendering trees in terrain or games - Just like that!

Image
Ever wondered what went behind the AWESOME scenery in Oblivion , or the Guild II? If you are caught with the impression that these were designed by professionals who developed the games, then you better think again. Speed Tree is the mantra. Interactive Data Visualization is the name of the company. SpeedTreeRT is the name of the developed C++-based library designed to provide access to SpeedTree data for real-time applications. Even I can do it, even you can do it, but hey! this works so fine with ease even in a cheap machine. It has an easy to use API and is cross platform. And could also be customized to your requirement in the game you design. 2D, 3D or whatever. Click here for more.