Welcome To Snipplr


Everyone's Recent ActionScript 3 Snippets Tagged 3



« Prev 1 Next »
It's very useful if you build a FLV player for example, and want to convert the time into minutes:seconds (example: 6:13) //apply it to your project like this (and don't forget to import the class): time.text = TimeUtil.getTimecode(timeValue);
0 792 posted 12 years ago by vamapaull
An easy way to detect shakes on mobile devices with equipped accelerometer.
0 877 posted 12 years ago by vamapaull
This is a sound manager class for a small project I've been working on for the past two days. Nothing really major or new, but just some simple functionality including play/stop/forward/previous functions that may help prove useful to someone. If you...
1 730 posted 14 years ago by alvincrespo
0 463 posted 14 years ago by n8gk
This is a snippet that will animate in a circle in a clockwise fashion based on the parameters the function is passed. It can be used to create a circular or clock wipe when used as a mask.
2 798 posted 14 years ago by sottenad
On a new actions layer, add the following script to frames requiring to be paused. 10000 represents the delay milliseconds (10 seconds).
1 959 posted 14 years ago by hotdiggity
1. Create button that covers the entire ad. 2. Create an instance of the button on the main timeline and name it "clickTag_bn" in the properties palette. 3. On a new layer add ActionScript to the timeline as follows:
2 704 posted 14 years ago by hotdiggity
This snippet uses the as3corelib which you can download on this page: http://code.google.com/p/as3corelib/
3 658 posted 15 years ago by publicbroadcast
4 743 posted 15 years ago by benwasilewski
Simple yet effective way to create a horizontal slider to controll the volume of your sound channel
4 977 posted 15 years ago by Ktoso
I copied this from my working example and tweaked some lines to make it generic. Thus there MAY be a typo which I haven't checked for, but probably not. This is what's needed to have something change upon selection of an item in a ComboBox.
0 796 posted 15 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 1328 posted 15 years ago by benwasilewski
1 707 posted 15 years ago by jrutter
This code will show you how to write Mouse Events using AS3 and also some simple Drawing API as well.
3 1149 posted 16 years ago by mswallace
This code shows you how to load large files using as3. This is good for loading in large files. Flash Player will fire events as the data becomes available.
7 1159 posted 16 years ago by mswallace
Found this code. It is an example of loading and reading different file types with ActionScript 3
5 1087 posted 16 years ago by mswallace
Just some code that shows you how to set up the Drawing API and draw a line and also use the dropshadow filter.
4 936 posted 16 years ago by mswallace
« Prev 1 Next »