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 843 posted 11 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 556 posted 11 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 679 posted 11 years ago by adrianparr
An example of a Flex Mobile button skin using PNG assets and the Flash drawing API
0 465 posted 11 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 398 posted 11 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 735 posted 11 years ago by adrianparr
For this to work you need the as3corelib classes from here ... https://github.com/mikechambers/as3corelib
0 1723 posted 11 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 1014 posted 11 years ago by adrianparr
All credit for this class goes to Ben Kanizay (http://bk4d.com)
0 521 posted 11 years ago by adrianparr
This layout manager doesn't support virtualization.
0 549 posted 11 years ago by mcorlan
0 359 posted 11 years ago by russdogg
All credit for this goes to Rob at calypso88.
0 529 posted 11 years ago by adrianparr
embeded multiple fonts
0 519 posted 11 years ago by Praimen
Arrondir un chiffre, à n chiffre après la virgule
0 371 posted 11 years ago by ions
Remplacer le code Hexadécimal d'une couleur (provenant d'un xml par exemple) pour une utilisation en AS.
0 364 posted 11 years ago by ions
Utile pour formater l'affichage d'un compteur de temps (player video, player mp3, …)
0 347 posted 11 years ago by ions