Welcome To Snipplr
Everyone's Recent ActionScript 3 Snippets Tagged 3
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« 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
799
posted 12 years ago by vamapaull
An easy way to detect shakes on mobile devices with equipped accelerometer.
0
882
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
743
posted 14 years ago by alvincrespo
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
806
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
976
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
715
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
669
posted 15 years ago by publicbroadcast
Simple yet effective way to create a horizontal slider to controll the volume of your sound channel
4
986
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
812
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
1347
posted 15 years ago by benwasilewski
This code will show you how to write Mouse Events using AS3 and also some simple Drawing API as well.
3
1158
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
1170
posted 16 years ago by mswallace
Found this code. It is an example of loading and reading different file types with ActionScript 3
5
1093
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
951
posted 16 years ago by mswallace
« Prev 1 Next »