Welcome To Snipplr


Everyone's Recent ActionScript 3 Snippets



These two classes demonstrate how to create an external font SWF that contains embedded fonts, and how to then load that external font SWF and access and use the fonts inside it.
0 1680 posted 13 years ago by adrianparr
This font SWF was created using the handy tool FontSwffer (http://blog.madebypi.co.uk/2011/02/28/fontswffer-1-1/)
0 1196 posted 13 years ago by adrianparr
If you don't deal with namespaces in XML correctly they can break your parsing in AS3. One way of getting around this is to remove the namespace from the XML a using regular expression.
0 1398 posted 13 years ago by adrianparr
An example of a Flex Mobile button skin using PNG assets and the Flash drawing API
0 1046 posted 14 years ago by ryanstewart
I always have trouble preparing JSON to work nicely with as3corelib. Here's an example of what I do whenever the array I'm looking for is nested within more JSON. This really isn't for anyone other than myself.
0 996 posted 14 years ago by chrisaiv
I was working on a project where the timestamp string I was getting from the backend developer was pretty dirty in the way it was formatted. For example, it looked like "/Date(1310127448000+0100)/". I needed to get a nicely formatted time from it in...
0 1473 posted 14 years ago by adrianparr
For this to work you need the as3corelib classes from here ... https://github.com/mikechambers/as3corelib
0 3229 posted 14 years ago by adrianparr
This example expects there to be a dynamic textfield on the stage with the instance name of 'myTextFieldOnStage'. Remember to embed the fonts (Numerals and Colon).
0 1845 posted 14 years ago by adrianparr
All credit for this class goes to Ben Kanizay (http://bk4d.com)
0 1116 posted 14 years ago by adrianparr
This layout manager doesn't support virtualization.
0 1172 posted 14 years ago by mcorlan
0 893 posted 14 years ago by russdogg
0 1046 posted 14 years ago by adrianparr
0 1043 posted 14 years ago by tpryan
All credit for this goes to Rob at calypso88.
0 1189 posted 14 years ago by adrianparr
embeded multiple fonts
0 1184 posted 14 years ago by Praimen
Arrondir un chiffre, à n chiffre après la virgule
0 908 posted 14 years ago by ions
Remplacer le code Hexadécimal d'une couleur (provenant d'un xml par exemple) pour une utilisation en AS.
0 872 posted 14 years ago by ions
Utile pour formater l'affichage d'un compteur de temps (player video, player mp3, …)
0 868 posted 14 years ago by ions