Profile
Achievement
adrianparr's Recent Snippets
- All /
Full credit for this code goes to Scratchbrain (http://www.scratchbrain.net/blog/ver2/)
0
1869
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
2323
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
3076
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
3543
posted 15 years ago by adrianparr
Taken from Christian Cantrell's Adobe article called 'Authoring mobile Flash content for multiple screen sizes'.
0
1991
posted 15 years ago by adrianparr
Taken from Christian Cantrell's Adobe article called 'Authoring mobile Flash content for multiple screen sizes'.
0
1924
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
2102
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
2587
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
3158
posted 15 years ago by adrianparr
This can be used to help load, play and monitor playback of external video.
1
2305
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
2206
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
2443
posted 16 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
3822
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
1947
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
2823
posted 16 years ago by adrianparr
This code separates out the Flash Player Platform, Major Version number and Minor Version numbers.
0
2206
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
2635
posted 16 years ago by adrianparr