Programming, Visualization and Game Development Theory

01Aug Flash: Child Object Event Bubbling

addChildQuick ActionScript 3 Flash tip:
Bubbling events from eventDispatcher will not climb up the hierarchy of objects UNLESS they are “children” in the sense of the children being added to there parents by addChild property (whether it’s done my Flash/Flex in the background or manually using that property). For example, if you have a variable “myMovieClip” inside a container, you will get bubbling events out of it because it’s simply a variable defined in the container and not added as a registered child.

Tags:

01Aug Flash TOTD: inline functions

This is useful when performing a small quick function that perhaps handles an event listener callback.

var onClickNavAway:Function = function(e:Event) {
navigateToURL(new URLRequest("link.html"),"_self");
}
addEventListener(MouseEvent.CLICK, onClickNavAway);

Tags: ,

31Jul Flash Tip of the Day

I am going to try to post something code related everyday (maybe except for the weekend). So today I will cover a super easy tip:

When setting the same property on different objects, you can same time by instead of doing this:

movieClip1.visible = false;
movieClip2.visible = false;
movieClip3.visible = false;

Do This:

movieClip1.visible=movieClip2.visible=movieClip3.visible=false;

Easy, huh?

Tags: ,

31Jul Flash Player 10 Beta 2 Released

Adobe Flash Player 10

Enhanced Audio APIs
This is one that I need to find out exactly what has changed. In the first beta you could dynamically generate audio using the new samples callback function. You can check out the tutorial that I did at gotoAndLearn() for more information on this. I will update this as soon as I know more.

Limited Fullscreen Keyboard Access
This is a huge one for those of you who want to make fullscreen games! You can now receive key events for non-printing keys such as arrows, shift, enter, tab, space, etc.

Loader.unloadAndStop
This new loader method will make garbage collecting SWF files much easier. Grant Skinner has written about the issues extensively and the Player team has listened. This new method adds unload functionality similar to the unload behavior in ActionScript 2.0. After calling unloadAndStop on loaded content it will be immediately removed stopping all audio, removing eventListeners, and becoming inaccessible through ActionScript.

Video4Linux v2 Support
Support for the Video4Linux v2 (V4L2) camera API has been added. I’m not sure what that is, but if you’re on Linux you probably do.

Linux WMODE
Flash Player for Linux now supports windowless mode (transparent and opaque). Windowless mode means proper blending between SWFs and the HTML above and below the SWF content. Windowless mode on Linux requires the latest Firefox 3 to work.

http://theflashblog.com/?p=408

Tags: ,

31Jul Custom 3D engine to rival papervision

If you haven’t heard, Roxik has developed a new 3D engine that also includes physics! Very cool stuff here…


Roxik Engine

http://temp.roxik.com/datas/physics/index.html

Tags: , , , ,




Bad Behavior has blocked 104 access attempts in the last 7 days.