Welcome To Snipplr


Everyone's Recent ActionScript 3 Snippets



1 ... 4 5 6 7 8 ... 19
The docs for the Sekati SWC are here: http://docs.sekati.com/sekati/sekati/utils/ColorUtil.html Another useful blog post: http://blog.soulwire.co.uk/code/actionscript-3/extract-average-colours-from-bitmapdata
0 1446 posted 14 years ago by adrianparr
Returns a circle filled with textfields with your text. fully customizable. See the actionscript comments for usage
2 1307 posted 14 years ago by withinmedianl
Here is an example of a sound that is in a library with the class field set to MySound.
0 2099 posted 14 years ago by adrianparr
Credit for this goes to Terry Paton
3 1345 posted 14 years ago by adrianparr
see http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/statements.html?filter_flex=4.1&filter_flashplayer=10.1&filter_air=2#for..in for details
1 2024 posted 14 years ago by martin9999uk
This is based on http://www.snipplr.com/view/46082/as3-html-color-keywords-colorname-class/ I found that link really useful, but it's more complex than I needed. I just wanted a simple list of consts. So I ran the above through a regexp and extrac...
0 1001 posted 14 years ago by mgeduld
This simple construct allows you to replace parts of a string with items in a hash table (e.g. and Object). Example: var replacements : Object = { SPEED : "slow", ADJECTIVE : "green", VERB: "slithers" }; var template: String = "The %{SPEED}...
0 1744 posted 14 years ago by mgeduld
This can be useful when you retrieve strings from an XML or script that have whitespaces at the beginning or the end.
0 1470 posted 14 years ago by gandreini
1 1254 posted 14 years ago by hejaaa
Just add a method like this in a Class that needs to call methods dynamically, without a prior knowledge of whether they exist or not.
0 1198 posted 14 years ago by jayarjo
Use this static class to encode and decode HTML Entity Names. For some reason Snipplr doesn't display all the code, so download the ZIP file for a full working demo and source code.
0 2544 posted 14 years ago by adrianparr
Taken from Christian Cantrell's Adobe article called 'Authoring mobile Flash content for multiple screen sizes'.
0 1243 posted 14 years ago by adrianparr
Taken from Christian Cantrell's Adobe article called 'Authoring mobile Flash content for multiple screen sizes'.
0 1189 posted 14 years ago by adrianparr
From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)
1 1719 posted 14 years ago by Activetuts
From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)
1 1519 posted 14 years ago by Activetuts
From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)
0 1359 posted 14 years ago by Activetuts
From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)
1 1553 posted 14 years ago by Activetuts
From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)
1 1840 posted 14 years ago by Activetuts
From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)
2 1672 posted 14 years ago by Activetuts
From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)
1 1588 posted 14 years ago by Activetuts
1 ... 4 5 6 7 8 ... 19