Welcome To Snipplr


Everyone's Recent Snippets Tagged actionscript



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:
0 3661 posted 16 years ago by hotdiggity
On a new actions layer, add the following script to frames requiring to be paused. 10000 represents the delay milliseconds (10 seconds).
1 2266 posted 16 years ago by hotdiggity
1. Create button that covers the entire ad. 2. Create an instance of the button on the main timeline and name it "clickTag_bn" in the properties palette. 3. On a new layer add ActionScript to the timeline as follows:
2 2001 posted 16 years ago by hotdiggity
Use this code to handle keypress/keyboard events
1 2129 posted 16 years ago by mprabhuram
This code was adapted from a snippet I found somewhere awhile back... can't claim complete credit
1 1984 posted 16 years ago by iloveitaly
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
1 2248 posted 16 years ago by stiobhart
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
1 2043 posted 16 years ago by stiobhart
actionscript3 version of a more complex button action, which responds to rollover, rollout and clicking. this method uses one single 'buttonstuff' function with a 'switch' inside which causes the function to respond differently, depending on what...
1 2137 posted 16 years ago by stiobhart
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...
1 2193 posted 16 years ago by stiobhart
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...
0 1484 posted 16 years ago by stiobhart
load in XML and style the text via CSS
1 1994 posted 16 years ago by stiobhart
actionscript date object and some date calculations
1 1596 posted 16 years ago by stiobhart
code to implement a paypal button in flash
0 1613 posted 16 years ago by stiobhart
an external javascript sort function, which you can import into flash to help sort arrays of objects. include the script thus: #include "objSort.js"
2 1840 posted 16 years ago by stiobhart
this will loop through an object and get all its properties
0 1405 posted 16 years ago by stiobhart
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...
0 1706 posted 16 years ago by stiobhart
this code loads in the necessary actionscript classes for dealing with FLV [flash video] and metadata [in this case cuepoints]. this needs to be loaded right at the beginning of your code, so flash knows how to handle cuepoints embedded in FLV [flas...
0 1732 posted 16 years ago by stiobhart
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
0 1825 posted 16 years ago by stiobhart
This snippet uses the as3corelib which you can download on this page: http://code.google.com/p/as3corelib/
3 1864 posted 17 years ago by publicbroadcast
0 1370 posted 17 years ago by badabam
I copied this from my working example and tweaked some lines to make it generic. Thus there MAY be a typo which I haven't checked for, but probably not. This is what's needed to have something change upon selection of an item in a ComboBox.
0 1771 posted 17 years ago by Winkyboy
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/).
0 1691 posted 17 years ago by Winkyboy