Welcome To Snipplr
Everyone's Recent ActionScript 3 Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
note t0 self - place inside class declaration with vars
- include Flex SDK swc (flash CS4)
2
861
posted 15 years ago by obsessivejosh
note to self - Basic settings for clean text in as3 flash project assuming fonts are embedded.
0
665
posted 15 years ago by obsessivejosh
This is a sample application to demonstrate how to create and modify remote shared objects in a flex client application
0
754
posted 15 years ago by mprabhuram
This is an incomplete color spectrum because cos waves will not reach all the colors. For a proper graph refer to this wiki page http://en.wikipedia.org/wiki/HSL_color_space
1
685
posted 15 years ago by forchid
Simplifies a button to use only one function for URL navigation.
1
628
posted 15 years ago by MacEvelly
An ActionScript3 video player placed on the stage, configurable by FlashVars. It displays a spinning loader until the video loads.
Also see http://snipplr.com/view/11606/ for another AS3 video code template
Read about AS3 video in this in-depth t...
0
987
posted 15 years ago by Winkyboy
On a new actions layer, add the following script to frames requiring to be paused.
10000 represents the delay milliseconds (10 seconds).
1
1181
posted 15 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
910
posted 15 years ago by hotdiggity
ActionScript 3
actionscript 3 - button action [listen for multiple events. eg. MOUSE_OVER, MOUSE_OUT, MOUSE_UP]
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
1026
posted 15 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
0
839
posted 15 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
909
posted 15 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
951
posted 15 years ago by stiobhart