Welcome To Snipplr


Everyone's Recent ActionScript 3 Snippets



1 ... 10 11 12 13 14 ... 19
I always forget which method does what. This is just as a quick reminder.
4 2871 posted 14 years ago by adrianparr
If the item cannot be found then the return value is NaN. This function only returns the index of the first occurence found, so it's not very good if you have multiple occurrences of the same value in the array.
0 2519 posted 14 years ago by adrianparr
In AS2 forward slashes got url-encoded to %2F when you escaped them. But in AS3 they get ignored and left as they are. In some situations I have found that this can cause problems. So you can do it manually using this regular expression.
0 1003 posted 14 years ago by adrianparr
You can replace the library item with whatever you want, or draw a shape in actionscript to use. TweenMax is used in this snippet, get it here: http://www.greensock.com/tweenmax/ and thank Jack Doyle for being great by donating.
0 788 posted 14 years ago by IsoJon
As of revision 11031 of the Flex 4 SDK compression is supported inline with the embed metadata tag.
0 555 posted 14 years ago by aphex
Have fun with flash as 3.0. Don't forget to show me the result.
0 568 posted 14 years ago by winlwin
0 714 posted 14 years ago by adrianparr
I'm not sure whether I should be using == (Equality) or === (Strict equality) here. I haven't been able to create a situation where it makes much difference. If you know better, feel free to leave me a comment.
0 1154 posted 14 years ago by adrianparr
This is the file reference class ive been using for one of my projects
2 1169 posted 14 years ago by alvincrespo
Here is a template button class, ive been using for my projects. Cheers!
0 1012 posted 14 years ago by alvincrespo
Usage: <code> var newDimensions:Object = resize(800,600,320,200); </code> This can be adapted to pretty much any language...
1 878 posted 14 years ago by kaptnkill
Allows easy usage of Fonts and TextField/TextFormat creation.
1 760 posted 14 years ago by edwardhotchkiss
Based on the following references: http://not-equal.blogspot.com/2006/08/upload-file-as3-php.html http://www.thedanosphere.com/?p=76 I created a simple file manager class that I will be extending in the near future for an AIR App I...
0 924 posted 14 years ago by alvincrespo
Need to download the ActionScript 3.0 library http://code.google.com/p/as3corelib/ and extract the "com" folder into the same folder as your .fla file.
1 959 posted 14 years ago by eddequincey
This is a dynamic label generator for a project I'm working on. (Source files coming soon)
0 713 posted 14 years ago by alvincrespo
Check the URL to see image examples
1 755 posted 14 years ago by Flanture
Notes to self: re-use this for other projects
0 1353 posted 14 years ago by abbey
The ByteArray class is part of the flash.utils package and supports the reading and writing of binary data. The FileReference class is part of the flash.net package and is used to upload and download files from a local computer to a server. In t...
2 1029 posted 14 years ago by BoNzO
Grant Skinner's RegExr: Online Regular Expression Testing Tool is very handy for checking your regular expressions. http://www.gskinner.com/RegExr/
0 1704 posted 14 years ago by adrianparr
1 ... 10 11 12 13 14 ... 19