Welcome To Snipplr
Everyone's Recent ActionScript 3 Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Get a filename part from a NSURLRequest. Optionally remove extension
0
619
posted 14 years ago by gfazioli
This code uses Senocular SWFReader class to get the modification (publish) date of the SWF, and then displays it as a right-click menu item. You need to make sure that your SWF includes the XMP metadata. In the Flash IDE you can turn this on by going...
2
1209
posted 14 years ago by adrianparr
see demo at http://adamcoulombe.info/lab/as3/stripes.html.
This demonstrates the use of k-lib, Kuler API library for AS3. As well as Traer Physics for to handle the springiness.
1
828
posted 14 years ago by adamcoulombe
Basic usage of GreenSock\'s LoaderMax class for AS3. A simple slideshow controlled via XML.\r\n\r\nGo to http://adamcoulombe.info/lab/as3/loadermaxslideshow/ for demo and downloads.
3
1088
posted 14 years ago by adamcoulombe
Here's a very VERY rough but working implementation of a multi-line ToggleButtonBar component in Flex
0
674
posted 14 years ago by ria-coder
Useful for event dates - looks at the computers clock and tells the user when something will be available (e.g. this friday, tomorrow, etc). In this example I'm just using the day of a month, but you can use any part/the full date if you desire....
0
722
posted 14 years ago by IsoJon
Always need one of these on hand. Feed it a minimum number and a maximum number and it returns a random within that range. Super useful.
1
885
posted 14 years ago by IsoJon
Permet d'appliquer un lissage à la video, lue dans un composant FLVPlayback.
Ne pas oublier d'importer la classe :
import fl.video.*;
0
605
posted 14 years ago by ions
Description & download at http://adamcoulombe.info/lab/as3/jellybox.html
2
1010
posted 14 years ago by adamcoulombe
Permet d'ajuster la taille d'une image ou swf en fonction de son ratio et de celui de son conteneur.
1
681
posted 14 years ago by ions
Get the FireQuery (http://firequery.binaryage.com/) extension for firefox and then use this snippet to auto set prices for the merchandise tab.
0
587
posted 14 years ago by chetmac
A simple demo that shows how to pan from one side of an object to another dynamically in actionscript 3.
demo at: http://www.adamcoulombe.info/lab/as3/sliderbox.html
6
940
posted 14 years ago by adamcoulombe
This is a demo of a halftone effect for AS3. It requires a halftone filter file. You can download all the files required for this at http://www.adamcoulombe.info/lab/as3/halftone/
2
1000
posted 14 years ago by adamcoulombe
This code separates out the Flash Player Platform, Major Version number and Minor Version numbers.
0
956
posted 14 years ago by adrianparr
From the Big Spaceship Labs website.
This is a useful workaround for the following error message ...
SecurityError: Error #2142: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property.
7
1204
posted 14 years ago by adrianparr
This requires the [RGB](http://snipplr.com/view/34818/as3--rgb-class-for-rgb-to-hex/) class I posted as well
0
1205
posted 14 years ago by rivaledsouls
To style the text in a TextArea component, create a TextFormat object and pass it to the TextArea's setStyle method.
0
1162
posted 14 years ago by adrianparr
This code removes all the spaces and then inserts a single space so that the there are only 3 characters on the right-hand side (the inward code).
0
894
posted 14 years ago by adrianparr
This returns a string with a single space after the fifth character.
Useful for displaying a UK mobile number which is easy to read.
0
972
posted 14 years ago by adrianparr
A quick and easy function to convert seconds into easily readable time.
(90 seconds = 01:30)
1
864
posted 14 years ago by cessnajumpin