Welcome To Snipplr


Everyone's Recent ActionScript 3 Snippets



« Prev 1 2 3 4 5 ... 19
  1. FAV

    Post Text Box Text Into Text File

    This code shows how not only to create a text file onto the local computer desktop, but also how to post the contents of a 'text box' object into the file.
    ActionScript 3 2 views posted 4 years ago by SinVerguenzaGames
  2. FAV

    Flash Professional CC JSFL listeners on Document Saved and Post Publish processing

    In this script you also removing unused listener.
    ActionScript 3 6 views posted 5 years ago by TheRabbitFlash
  3. FAV

    Copy current photoshop selection bounds to x,y,width,height to As3 code

    This script allow you copy to the clipboard current layer properties in format: &selectionBounds.x = &layerx; &selectionBounds.y = &layery; // &selectionBounds.width = &layerwidth; // &selectionBounds.height = &layerheight;
    ActionScript 3 6 views posted 5 years ago by TheRabbitFlash
  4. FAV

    Copy current photoshop layer x,y,width,height to As3 code

    This script allow you copy to the clipboard current layer properties in format: &layer_name.x = &layer_x; &layer_name.y = &layer_y; // &layer_name.width = &layer_width; // &layer_name.height = &layer_height;
    ActionScript 3 4 views posted 5 years ago by TheRabbitFlash
  5. FAV

    Mobile Device BACK KEY PRESS Exit

    Allows for EXIT function on mobile device via mobile device BACK key button.
    ActionScript 3 8 views posted 5 years ago by RiveraEraGames
  6. FAV

    IntelliJ template - Event

    File > Settings... > File and Code Templates
    ActionScript 3 4 views posted 6 years ago by hejaaa
  7. FAV

    Color Value To Hexadecimal

    A simple utility class that will help you convert a color value (from numbers) to hexadecimal color value.
    ActionScript 3 7 views posted 6 years ago by vamapaull
  8. FAV

    distriqt NativeMaps AS3 API - populating multiple markers example

    Just a simple example script for populating a bunch of MapMarker objects on a Map using the distriqt NativeMaps ANE
    ActionScript 3 5 views posted 6 years ago by koriner
  9. FAV

    Create a Preloader class in Actionscript 3

    A complete example of how we can create a Preloader in actionscript3 to load an external .swf file. STRUCTURE ------------------ Source Swf |_ Main.fla |_ Main.as |_ Main.swf Preloader Swf |_
    ActionScript 3 10 views posted 7 years ago by jquery404
  10. FAV

    AS3 Drawing Shapes (ARC, BURST, DASHED-LINE, GEAR, POLYGON, STAR, WEDGE, LINE)

    Credit for this goes to Adobe, Ric Ewing, Kevin Williams, Aden Forshaw and Sidney de Koning.
    ActionScript 3 16 views posted 7 years ago by adrianparr
  11. FAV

    Return trimmed bounding box of bitmap

    This function returns the trimmed bounding box of a bitmap which contains all non-transparent pixel which color values are higher than the specified treshold (default 0xFF333333 in ARGB notation).
    ActionScript 3 7 views posted 7 years ago by tinytiger
  12. FAV

    Limita un numero entre un mínimo y un máximo

    Algunas veces se quiere comprobar si un numero esta entre un rango de otro número menor y otro mayor.
    ActionScript 3 2 views posted 7 years ago by fenixkim
  13. FAV

    AS3 MathUtils static class

    Credit goes to Bruno Imbrizi.
    ActionScript 3 9 views posted 7 years ago by adrianparr
  14. FAV

    AS3 Map a Number within one range to another range

    Credit goes to Bruno Imbrizi.
    ActionScript 3 7 views posted 7 years ago by adrianparr
  15. FAV

    Remove duplicating Points from Array

    Removes duplicating elements from Array, containing only objects of Point class
    ActionScript 3 9 views posted 7 years ago by romech
  16. FAV

    Split string into Array

    Easily breaks a string into an array of words. *If your string has special characters such as latin, add those characters to the r var. Just like var r:RegExp = /[^\wçàáâãèéêìíîòóôõùúûüÀÁÇÂÃÈÉÊÌÍÎÒÓÔÕÙÚÛÜ¡]+/...
    ActionScript 3 7 views posted 7 years ago by izaiasdotcom
  17. FAV

    Sort a object array

    Sorts an array of objects using the native sortOn method
    ActionScript 3 9 views posted 7 years ago by Narayon
  18. FAV

    Convert values within a range to values within another range

    I’m sharing with you a little utility that I find myself using a lot lately. This utility is a value convertor that you can use in those times when you need to make a volume slider or something similar where you’ll need to change a value and a va...
    ActionScript 3 6 views posted 8 years ago by vamapaull
  19. FAV

    Python: Last.fm Simple API Example

    Recently I needed to capture a JSON feed of the top artists from Last.fm. The script makes a request for a JSON response which I later treat as a dictionary object. You'll probably need to sign up for an API Key before using this script
    ActionScript 3 10 views posted 8 years ago by chrisaiv
  20. FAV

    Simple Facebook Using GraphAPI_Web.Swc In As3

    a handy class to manage facebook connections using as3
    ActionScript 3 18 views posted 8 years ago by Matias
  21. FAV

    AS3 - trim text for specific width and heigh

    Hi; Sometimes you need to "trim" textifield for specific height... This solves just this, perfect for news, news-readers, rss etc
    ActionScript 3 saved by 1 person 5 views posted 8 years ago by burnandbass
  22. FAV

    Tweening to a Relative Position using a Variable in TweenMax

    If you want to tween an object relatively, but the new value changes and needs to be a variable, just cast it as a string.
    ActionScript 3 10 views posted 8 years ago by yannxou
  23. FAV

    Birth date validation

    Validate Birth day.
    ActionScript 3 saved by 1 person 11 views posted 8 years ago by steppannws
  24. FAV

    AS3 Parse TimedText (TT) XML Captions File

    TimedText (TT) XML captions files can have namespaces that cause problems when parsing them in AS3. To get around this you can use this code to remove the namespace from the root XML node using Regex. This example uses
    ActionScript 3 4 views posted 8 years ago by adrianparr
  25. FAV

    AS3 Convert TextField LineBreaks to CRLF for Display as Plain Text (Notepad) on Windows

    Linebreaks differ between Flash TextField and a plain text file like Notepad. In this example we convert the html linebreaks in Flash to \r\n
    ActionScript 3 9 views posted 8 years ago by adrianparr
  26. FAV

    Timecode Utility

    It's very useful if you build a FLV player for example, and want to convert the time into minutes:seconds (example: 6:13) //apply it to your project like this (and don't forget to import the class): time.text = TimeUtil.getTimecode(timeValue);
    ActionScript 3 8 views posted 8 years ago by vamapaull
  27. FAV

    Flash As3 AddMouseEvent Class

    simple as3 class that help you to avoid repeat add MouseEvent each time
    ActionScript 3 8 views posted 8 years ago by mgraph
  28. FAV

    AS3 - Cached image from URL

    Retrieve remote image from an URL and store it locally. Use this class for managing offline mode.
    ActionScript 3 saved by 8 people 16 views posted 8 years ago by spawnrider
  29. FAV

    Device Shake – Accelerometer

    An easy way to detect shakes on mobile devices with equipped accelerometer.
    ActionScript 3 10 views posted 8 years ago by vamapaull
  30. FAV

    Timeline Manipulation

    Class version of TimelineManipulation.
    ActionScript 3 9 views posted 8 years ago by okhy
« Prev 1 2 3 4 5 ... 19