Welcome To Snipplr


Everyone's Recent ActionScript 3 Snippets



This code gets the current caretIndex in the textfield and then inserts the specified string at that point. The caretIndex position is then updated using setSelection, ready for the next insertion. This was developed to be used with an on-screen keyb...
0 2280 posted 14 years ago by adrianparr
Use this class to create a simple upload-to-flash button. Select image from your local harddrive and upload it in flash, later you can get is as Bitmap() object All images are stored in static array, so you can retrive it anywhere you want in your c...
1 3026 posted 14 years ago by burnandbass
0 1194 posted 14 years ago by burnandbass
0 2318 posted 14 years ago by adrianparr
ComScore previously had a BrightCove plugin which now no longer works with the updated BrightCove players. Here I used the GoogleAnalytics plugin code BrightCove provided and piggy-backed the ComScore code onto it. Using the Advertising Module API in...
0 1142 posted 14 years ago by leongaban
A custom class for formatting dates, similar to PHP bult-in function "date". The class also has some other date utils functions, like: dayOfYear, numberOfDaysInMonth, etc..
1 2071 posted 14 years ago by TimoZachi
0 1163 posted 14 years ago by okhy
0 1051 posted 14 years ago by okhy
I was struggling to find a way to restart an Adobe Air application programmed using flex 4.5 and AS3, this is a modification of code found around the web.
1 1830 posted 14 years ago by CreativeAddiction
I create this recursive function to remove and null all children inside a display object container.
0 1730 posted 14 years ago by radykal
Authenticating against Twitter within a Flex Mobile View. I do all of it within a StageWebView window so I can have them type the pin into the app while seeing it.
0 1322 posted 14 years ago by ryanstewart
Examples of different ways to truncate/round a decimal number.
0 1894 posted 14 years ago by adrianparr
0 1016 posted 14 years ago by zackattack27