Tag: as3

  • Event.MOUSE_LEAVE Implementation

    The Event.MOUSE_LEAVE event is a little confusing as it is not a MouseEvent.But something important about it, is that it is the way to create a “mouseUp” event when the mouse is outside of the stage. It is done with controlling a simple Boolean variable you may set called “dragging” or “mouseDown”, something of that…

  • KeyboardControl AS3 Class

    Keyboard events are finicky, and AS3 is no exception. They work like regular keyboard strokes anywhere else on your system. Press a key once, and it fires once, but keep it held down and after a short delay it fires repeatedly at a system defined interval. This is how keyboard events should work for text…

  • URL AS3 Class

    Custom class dependencies: QueryParameters This class is an attempt to have an object that will automatically parse any string representing a URL. Similar to the way the JavaScript object window.location parses the window’s URL. The URL string is supplied either through the constructor, or through setting the ‘href’ property. What is important to note is that…

  • WindowLocation AS3 Class

    Custom class dependencies: QueryParameters The class works exactly the way you think it would except it has a couple of extras. One extra is that this class caches the value of any JavaScript call made by ExternalInterface. This way, if you need to call this class’s property more than once in a script the ExternalInterface…

  • QueryParameters AS3 Class

    Custom class dependencies: Parameters QueryParameters is a utility that is meant for working with query strings in Actionscript. It extends the extremely versatile Parameters class, and what it does is fairly simple, yet very useful. It is an object which is automatically converted to a query string. All methods which add/remove properties are overridden to…

  • Parameters AS3 Class

    Custom class dependencies: None This class can be described best as an indexed Object. This means that all the properties may also be accessed through an index, as well as directly calling the property name. It is just about as open-ended as a class can get while still maintaining some kind of a structure. It…