Archive for February, 2008

So little time

February 27th, 2008 | Category: New Technology, AS3, CS3

I miss experimenting with Flash. I’m always working on projects and other stuff that needs to get done. I am going to make it a point to start fiddling with some of the new physics Technologies that are out. I have some ideas that could be pretty kool. WOW and APE, here I come!

No comments

looking for interns and applicants at ichameleon/group/

February 20th, 2008 | Category: Interactive Business

Whether you are a seasoned veteran or new to the Interactive game, you may have a home at ICG. We are especially looking for interns. You don’t need to know a whole lot about Flash, you just have to be very interested in growing in Interactive, be likable, hardworking and willing to learn alot. Either apply thru the website or reply to this post.

No comments

AS3 - MovieClipUtil.getFrame() - get frame number by passing frame label

February 14th, 2008 | Category: AS3, CS3

Download Class
Very easy to use:
MovieClipUtil.getFrame(clip, “FRAME_LABEL_1″)

 

This is a handy tool we had in AS2 but is much more efficient to implement in AS3. In AS2 we had to duplicate the MovieClip, go to that specific frame label, return the current frame, then remove that MovieClip. It was a true ghetto work-around, but it worked. The AS3 is much more clean.

 

/*
Returns a frame number. Returns MovieClip current frame if nonexistent.
*/
function getFrame($clip:MovieClip, $label:String):Number
{
var arr:Array = $clip.currentLabels
for(var i:Number = 0; i < arr.length; i++ ){
if($label == arr[i].name){
return (arr[i].frame);
}
}
return ($clip.currentFrame);
}

 

2 comments

Problems using the MovieClip’s “enabled” property - AS3

February 09th, 2008 | Category: AS3

UPDATED: This is a more in depth look at mouseEnabled and mouseChildren.

I’ve racked my brain and scoured the internet for 2 days now wondering why I’m having so much trouble getting the enabled property of a MovieClip to work correctly. It should be as easy as saying:

mcClip.enabled = false;

All Button functionality should be disabled right?! Not so in AS3 my friend. The situation goes awry when using event listeners. But the thing is that AS3 is completely event based, so I’m not even sure what use the enabled property is, but that could be my bias. Here is what was really going on. Instead of using enabled = false, you need to use mouseEnabled = false. But here is the kicker: if you have any MovieClips inside of the MovieClip that you are applying events to (regardless if there are instance named or not), that container MovieClip will continue to receive events (CLICK, ROLL_OVER, etc). You need to use mouseChildren = false on that container clip, and THEN the disable/enable toggle will work. Place the following code on the timeline with aMovieClip containing another MovieClip inside it on stage.

// Importsimport flash.events.MouseEvent

// MovieClip on the timeline with other MovieClip inside

this.mcContainer.buttonMode = true ;

this.mcContainer.mouseChildren = false ;

this.mcContainer.addEventListener(MouseEvent.CLICK, this.run)

// Event handler

function run ($event:MouseEvent) {

trace(”RUN”)

}

// Toggle enabling

function manageButtonState ($clip:MovieClip, $state:String = “ON”):void {

switch ($state.toUpperCase()) {

case “ON” :

$clip.mouseEnabled= true;

break;

case “OFF” :

$clip.mouseEnabled = false;

break;

default :

$clip.mouseEnabled= true;

}

}

// Call toggle

this.manageButtonState (this.mcContainer, “OFF”);

Download Example

No comments

Logging Project hours - experiment

Personal Task Manager
This is a software that we are testing out at work to log our actual productivity. It asks you what project you are currently working on every predetermined interval. We just started using it and it seems pretty detailed and helpful. I’ll document my experience. If you want to try it out download it here:
Software download
IF you don’t have the .net 2.0 framework installed, download and install from here:
.net 2.0 framework download

No comments