Welcome To Snipplr


Everyone's Recent ActionScript 3 Snippets



0 1355 posted 17 years ago by timstepp
Founds this via http://www.flashcomguru.com/index.cfm/2009/2/17/regexp-validate-url
1 1759 posted 17 years ago by allnatural
I just want a simple link, but it takes 8 lines of code?! I like control but they could have made a shortcut of some sort for buttons.
1 1412 posted 17 years ago by ddegner
Simple yet effective way to create a horizontal slider to controll the volume of your sound channel
4 2059 posted 17 years ago by Ktoso
It's not the prettiest piece of code but it works for now
2 1924 posted 17 years ago by ddegner
Extremely simple... just pass in the string you want to ellipse, and the position you want to do it at. The code takes care of the rest.
2 1646 posted 17 years ago by cessnajumpin
dont use spaces around the ":" in CSS its buggy :(
2 3110 posted 17 years ago by antpaw
and DropShadow Filter :)
0 1581 posted 17 years ago by antpaw
6 1567 posted 17 years ago by kungpoo
Usage: formatDecimals(3.1415926, 3); returns: 3.141. Also adds zeros to end if needed.
0 1207 posted 17 years ago by Mijos
This code sets the size of a text field and truncates the text to fit, adding an ellipse if necessary.
2 2748 posted 17 years ago by ghwilson4456
4 1732 posted 17 years ago by SmpleJohn
Removes all children from the specified scopes display list. Straight out of Colin Moock's Essential ActionScript 3 book.
1 1172 posted 17 years ago by jpdevries
1 1080 posted 17 years ago by zeman
Resizes BitmapData objects smoothly, using bilinear algorithm.
1 1381 posted 17 years ago by dain
A simple line of code to apply to attributes that need to be toggled on and off.
0 1240 posted 17 years ago by cessnajumpin
Here's how I was able to capture the HREF of a page using actionscript
3 1513 posted 17 years ago by chrisaiv
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 1656 posted 17 years ago by Winkyboy
0 1182 posted 17 years ago by moonbather
Shown in the source are the actual code, shorthand of the code, and Steven Sacks' simple-but-sweet rendition of getURL done in AS3, which requires the downloadable class from his site.
3 3643 posted 17 years ago by Winkyboy
https://www.chrisjmendez.com/2002/10/23/as3-placing-an-overlay-over-an-image/
0 1513 posted 17 years ago by chrisaiv
1 1209 posted 17 years ago by Paco