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 2645 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 2200 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 840 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 619 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 439 posted 14 years ago by aphex
Have fun with flash as 3.0. Don't forget to show me the result.
0 463 posted 14 years ago by winlwin
0 603 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 986 posted 14 years ago by adrianparr
This is the file reference class ive been using for one of my projects
2 986 posted 14 years ago by alvincrespo
Here is a template button class, ive been using for my projects. Cheers!
0 845 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 733 posted 14 years ago by kaptnkill
Allows easy usage of Fonts and TextField/TextFormat creation.
1 603 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 756 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 793 posted 14 years ago by eddequincey
This is a dynamic label generator for a project I'm working on. (Source files coming soon)
0 597 posted 14 years ago by alvincrespo
Check the URL to see image examples
1 616 posted 14 years ago by Flanture
Notes to self: re-use this for other projects
0 1165 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 892 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 1468 posted 14 years ago by adrianparr
1 ... 10 11 12 13 14 ... 19