Welcome To Snipplr


Everyone's Recent ActionScript Snippets Tagged actionscript



« Prev 1 2 3
  1. FAV

    Save ByteArray to file with PHP

    A short snippet of code to save a ByteArray into any file
    ActionScript saved by 2 people 9 views posted 8 years ago by kiroweb
  2. FAV

    Remove non alpha numeric characters from a string

    Useful for stripping out backslashes, hyphens and other punctuation
    ActionScript 6 views posted 8 years ago by gromitski
  3. FAV

    Remove All Children From a DisplayObjectContainer

    ActionScript 2 views posted 9 years ago by shansun123
  4. FAV

    swfobject and flash ExternalInterface

    ActionScript saved by 2 people 4 views posted 10 years ago by jcprovideo
  5. FAV

    AS random Number

    Get a random Number in AS3
    ActionScript saved by 1 person 4 views posted 10 years ago by petrafull
  6. FAV

    Simple Preloader Setup for Actionscript 2

    ActionScript 5 views posted 10 years ago by adamcoulombe
  7. FAV

    Easy way to Apply Styles to Text fields in Actionscript 2

    ActionScript saved by 2 people 1 views posted 10 years ago by adamcoulombe
  8. FAV

    Kill Button for Flash

    ActionScript 2 views posted 10 years ago by njhamann
  9. FAV

    Pause frame using ActionScript 2

    On a new layer, add the following Actionscript to the frame requiring to be paused. 1000 represents the delay in milliseconds, being 1 second.
    ActionScript 3 views posted 10 years ago by hotdiggity
  10. FAV

    ClickTag using ActionScript 2

    1. Create button that covers the entire ad. 2. Create an instance of the button on the main timeline and name it "buttonClip" in the properties palette. 3. On a new layer add ActionScript to the timeline as follows:
    ActionScript 4 views posted 10 years ago by hotdiggity
  11. FAV

    Button Loop actionscript 2.0

    ActionScript 0 views posted 10 years ago by njhamann
  12. FAV

    Format Number in ActionScript

    This code was adapted from a snippet I found somewhere awhile back... can't claim complete credit
    ActionScript saved by 3 people 1 views posted 10 years ago by iloveitaly
  13. FAV

    actionscript - cuepoint listener for FLV video in flash

    basic structure of the actionscript function to listen for cuepoints embedded in a piece of FLV [flash video]. note: cuepoints need to have been embedded when the video was converted from its original format to FLV - prior to importing it into flash
    ActionScript saved by 3 people 3 views posted 10 years ago by stiobhart
  14. FAV

    actionscript - trace actions to get info about cuepoints in FLV video

    this is a handy snippet to trace the info about any cuepoints actionscript encounters, embedded in a FLV [flash video]. these traces will display the name, type and time of the cuepoint - in a nicely formatted list
    ActionScript saved by 3 people 2 views posted 10 years ago by stiobhart
  15. FAV

    actionscript 3 - button action [listen for a single event. eg. MOUSE_UP]

    actionscript3 version of the basic button action. in actionscript3, button actions can no longer be attached to the buttons themselves or called from the main timeline. you need to put an 'addEventListener' in the timeline to 'listen' for interacti...
    ActionScript saved by 3 people 3 views posted 10 years ago by stiobhart
  16. FAV

    actionscript - button action [to attach directly to button]

    basic actionscript button action that can be attached directly to a button on the stage. this will NOT work in actionscript 3, which does not allow actionscript to be attached directly onto buttons. make sure you're attaching this action to a but...
    ActionScript 3 views posted 10 years ago by stiobhart
  17. FAV

    actionscript - load in XML [with attached stylesheet info]

    load in XML and style the text via CSS
    ActionScript saved by 5 people 5 views posted 10 years ago by stiobhart
  18. FAV

    actionscript - date object

    actionscript date object and some date calculations
    ActionScript saved by 4 people 5 views posted 10 years ago by stiobhart
  19. FAV

    actionscript - paypal button in flash

    code to implement a paypal button in flash
    ActionScript 0 views posted 10 years ago by stiobhart
  20. FAV

    actionscript - sorting [with an external javascript]

    an external javascript sort function, which you can import into flash to help sort arrays of objects. include the script thus: #include "objSort.js"
    ActionScript saved by 8 people 5 views posted 10 years ago by stiobhart
  21. FAV

    actionscript - object introspection

    this will loop through an object and get all its properties
    ActionScript 0 views posted 10 years ago by stiobhart
  22. FAV

    actionscript switch statement

    shows the basic structure of a switch statement. switches are useful when you want to respond to a series of possible values that a variable might have, without having to write a shitload of "if(blah blah){do blah}" code which, as we know soon end...
    ActionScript 0 views posted 10 years ago by stiobhart
  23. FAV

    ActionScript XML Parser

    ActionScript 3 views posted 11 years ago by garretjames
  24. FAV

    AS2 Kerning dynamic text fields

    ActionScript saved by 1 person 0 views posted 11 years ago by Winkyboy
  25. FAV

    AS2 Basic Steam Particles; requires MC Tween

    This is a CS3/AS2 Flash file containing a simple particle system. It requires the use of MC Tween (http://hosted.zeh.com.br/mctween/).
    ActionScript 1 views posted 11 years ago by Winkyboy
  26. FAV

    AS2 onDragOver Functional Replacement

    Because onDragOver in AS2 doesn't really work, here is some script for actually detecting whether the mouse button is held down when rolling over something. NOTE that for ideal usage, you will have to write some actual collision detection between th...
    ActionScript 2 views posted 11 years ago by Winkyboy
  27. FAV

    FadeIn, FadeOut

    ActionScript saved by 4 people 1 views posted 11 years ago by manec
  28. FAV

    Print Recursive

    Recursively trace an array or object in Actionscript.
    ActionScript 2 views posted 11 years ago by mattkenefick
  29. FAV

    Function: Random value between two numbers

    Small function that returns a random rounded value between two given numbers.
    ActionScript 2 views posted 11 years ago by Wiederkehr
  30. FAV

    delay with setTimeOut

    ActionScript saved by 1 person 2 views posted 11 years ago by imhugo
« Prev 1 2 3