Category Archives: Actionscript

Code snippets and (in?)significant mussing on Actionscript

ZigoEngine: Missing Targets Error 8

![Adobe Flash](/blog/wp-content/uploads/icons/Flash.jpg)

[fusekit]: http://www.mosessupposes.com/Fuse/ “http://www.mosessupposes.com/Fuse/”
I’ve been using the ZigoEngine which is now part of [FuseKit][fusekit] for some time now, and suddenly I started getting the following error:
** ZigoEngine.doTween – missing targets[undefined] and/or props[_x,_y] **
I immediately ensured that my target DID exist, and that its properties were accessible. I then copied the entire code structure to my [...]

Flash Skills Assessment Exercise 3

![Adobe Flash](/blog/wp-content/uploads/icons/Flash.jpg)

[lambesis]: http://www.lambesis.com/ “The Lambesis Agency”
[craigslist]: http://sandiego.craigslist.org/art/241761310.html “Interactive Flash Developer for International Brands”
[monster]: http://jobsearch.monster.com/getjob.asp?JobID=49718863&WT.mc_n=MKT000152 “Flash Developer”
Among my duties at [Lambesis][lambesis], I am now acting as the hiring manager for the Interactive Department. It’s been a great learning experience, and it’s always fun to meet new developers. I’ve posted the job description to both [Craigslist][craigslist] and [...]

Detecting an Idle User 0

![Adobe Flex](/blog/wp-content/uploads/icons/Flash.jpg)

I wrote a very simple AS2 class which monitors mouse movement. If the mouse is idle for the defined duration, then a message is broadcast and a callback function is fired.
I call it ActivityMonitor… because it monitors activity.

Fundamental Flash Features 0

![Adobe Flash](/blog/wp-content/uploads/icons/Flash.jpg)

Detection
[SWF Object](http://blog.deconcept.com/swfobject/ “http://blog.deconcept.com/swfobject/”)
[Unobtrusive Flash Objects (UFO)](http://www.bobbyvandersluis.com/ufo/ “http://www.bobbyvandersluis.com/ufo/”)
Browser Integration
[Mac ScrollWheel Support](http://blog.pixelbreaker.com/2006/11/08/flash/swfmacmousewheel/ “http://blog.pixelbreaker.com/2006/11/08/flash/swfmacmousewheel/”)
[Text Resizing](http://reefscape.net/?p=7 “http://reefscape.net/?p=7″)
Bookmarking & Deep Linking
[Asual's SWF Address](http://www.asual.com/swfaddress/ “http://www.asual.com/swfaddress/”)
[Reefscape's History Bridge](http://reefscape.net/?p=10 “http://reefscape.net/?p=10″)

Using AsBroadcaster with buttons on the stage 0

![Adobe Flash](/blog/wp-content/uploads/icons/Flash.jpg)

The following technique is a quick and easy way of triggering methods of a class from a physical button on the stage.
[as]
import mx.events.EventDispatcher;
import mx.utils.Delegate;
class SampleClass extends MovieClip {
// Declare objects on stage
var navigation_mc:MovieClip;
function SampleClass()
{
AsBroadcaster.initialize(this.navigation_mc);
this.navigation_mc.addListener(this);
this.navigation_mc.item1_btn.onRelease = function (){ this._parent.broadcastMessage(”NavItemRelease”,”item1″); }
this.navigation_mc.item2_btn.onRelease = function (){ this._parent.broadcastMessage(”NavItemRelease”,”item2″); }
this.navigation_mc.item3_btn.onRelease = function (){ this._parent.broadcastMessage(”NavItemRelease”,”item3″); }
}
function NavItemRelease(itemID){
trace(”Navigation Item “+itemID+” was selected.”);
}
}
[/as]