Profile
Achievement
adrianparr's Recent Snippets
- All /
Full credit for this code goes to Scratchbrain (http://www.scratchbrain.net/blog/ver2/)
0
1727
posted 15 years ago by adrianparr
The docs for the Sekati SWC are here: http://docs.sekati.com/sekati/sekati/utils/ColorUtil.html
Another useful blog post: http://blog.soulwire.co.uk/code/actionscript-3/extract-average-colours-from-bitmapdata
0
2144
posted 15 years ago by adrianparr
Here is an example of a sound that is in a library with the class field set to MySound.
0
2865
posted 15 years ago by adrianparr
Use this static class to encode and decode HTML Entity Names. For some reason Snipplr doesn't display all the code, so download the ZIP file for a full working demo and source code.
0
3328
posted 15 years ago by adrianparr
Taken from Christian Cantrell's Adobe article called 'Authoring mobile Flash content for multiple screen sizes'.
0
1843
posted 15 years ago by adrianparr
Taken from Christian Cantrell's Adobe article called 'Authoring mobile Flash content for multiple screen sizes'.
0
1764
posted 15 years ago by adrianparr
All credit for this class goes to Mark Walters (www.yourpalmark.com)
This class needs to be put in the package structure "com/yourpalmark/utils"
0
1954
posted 15 years ago by adrianparr
These five characters should be replaced with their HTML entity names before being used in XML, otherwise they may cause the XML to be invalid.
0
2434
posted 15 years ago by adrianparr
This makes use of http://www.minimalcomps.com, https://github.com/mikechambers/as3corelib and http://alivepdf.bytearray.org
2
2991
posted 15 years ago by adrianparr
This can be used to help load, play and monitor playback of external video.
1
2124
posted 15 years ago by adrianparr
Note: This example uses Arthropod Debugger (AIR App) which can be downloaded from here http://arthropod.stopp.se/
1
2061
posted 15 years ago by adrianparr
ActionScript 3
AS3 Trim a Comma Delimited String (e.g. a list of comma separated keywords entered by a user)
This function trims a string and removes empty entries in a comma delimited list, removes extra commas from the beginning and end and also remove extra space characters between words.
1
2263
posted 15 years ago by adrianparr
A handy little function to dynamically draw a black dot on the stage (or displayObject). This can be useful if you want to see where 0,0 is located.
2
3594
posted 16 years ago by adrianparr
This code traces out the name (and display list path) of the object that currently has focus. This handy when you are testing the tab order and you can't see a yellow rectangle anywhere.
2
1781
posted 16 years ago by adrianparr
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
2621
posted 16 years ago by adrianparr
This code separates out the Flash Player Platform, Major Version number and Minor Version numbers.
0
2034
posted 16 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
2447
posted 16 years ago by adrianparr