Welcome To Snipplr
Everyone's Recent Snippets Tagged actionscript
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Because onDragOver in AS2 doesn't really work, here is some script for actually detecting whether the mouse button is held down when rolling over something. NOTE that for ideal usage, you will have to write some actual collision detection between th...
0
719
posted 16 years ago by Winkyboy
This takes whatever object you want (called YOUR_OBJECT in the source) and traces out each child of that object. Pretty useful for debugging an add/removeChild issue.
1
1621
posted 16 years ago by benwasilewski
A working example that uses BlaszDS in order to serialize Java object into AMF (this code should be cleaned up a bit), in order for it to compile and work it is required to add flex-messaging-core.jar and flex-messaging-common.jar to the classpath.
0
914
posted 16 years ago by narkisr
This snippet shows how to serialize action script object to strings, the serialization method is AMF based, note also that each object must meet three basic rules in order to be serialized properly:
¨1. The constructor must take no arguments...
1
1112
posted 16 years ago by narkisr
Small function that returns a random rounded value between two given numbers.
0
898
posted 16 years ago by Wiederkehr
I use these main import statements for the begaining of all my Actionscript 3 projects. The last two are custom classes that I use for tweening. One class is called Tweener and the other is called TweenLite.
2
881
posted 16 years ago by mswallace
This is a handy little function that takes the htmlText value of a TextField and ads a specified tag at the beginning and end of the string. Handy for quick formatting tags such as bold, italic, underline, but could be used to add complex style data...
0
791
posted 16 years ago by discorax
Using a string built at runtime to reference objects in Flex. From the help docs.
1
1202
posted 17 years ago by justcaldwell