Archive for the ‘ActionScript 3.0’ Category

Timecode Utility

Today I’m sharing simple utility that I use from time to time when I need to convert time (see what I did there? ) It’s very useful if you build a FLV player for example, and want to convert the time into minutes:seconds Example of how to apply it to your project: import com.vamapaull.utils.TimeUtil;   [...]

Read the rest of this entry »

Device Shake – Accelerometer

Here you have an easy way to detect shakes on mobile devices with equipped accelerometer: var lastShake:Number = 0; var shakeWait:Number = 600;   var acc:Accelerometer = new Accelerometer(); acc.addEventListener(AccelerometerEvent.UPDATE, onAccUpdate);   function onAccUpdate(e:AccelerometerEvent):void { if(getTimer() – lastShake > shakeWait && (e.accelerationX >= 1.5 || e.accelerationY >= 1.5 || e.accelerationZ >= 1.5)) { shakeIt(); lastShake [...]

Read the rest of this entry »

Shuffle text menu

This is text shuffle class that will help you make a nice flash menu for your site or your applications. I got inspired from a similar class made by Lee Brimelow. You can use it for open source or commercial projects (do anything you want). Share

Read the rest of this entry »

Simple AS3 mp3 player

Last night I was browsing around 365psd.com and I found a very interesting design for an mp3 player. Then I thought it would be a good idea to make it functional with Flash and ActionScript 3.0 and then share it for free on my blog Source files: Share

Read the rest of this entry »

YouTube Playlist Reader

Just wanted to let you guys know that I’ve been working on a YouTube playlist reader (based on the ActionScript 3 YouTube API). With this custom player you can send a YouTube playlist ID and the player will generate the list of videos with thumbnails and other info about the videos. Just check it out [...]

Read the rest of this entry »

Password protected content in Flash with ActionScript 3 and PHP

This morning I was browsing through the gotoAndLearn forum and I saw a question about how to make a password protected section in a Flash site. So, I made a quick example and I thought I should share it with all my readers too You can download the source files from here: Here you can [...]

Read the rest of this entry »

ActionScript 3 YouTube feed application

A few days ago I made a little application based on the new ActionScript 3 YouTube API and I thought I should share it with those who want to get started with this type of players. In the future I plan to make some more complex applications based on this API so I can sell [...]

Read the rest of this entry »

UserBooth (beta) – Flash Webcam Application – Photo maker

A few weeks ago I made a little Flash application named “Photo Booth”. Then I started to work with a friend of mine on a bigger project that will be very useful for those site owners who want to easily integrate a webcam application into their sites. The project name is UserBooth. Right now we [...]

Read the rest of this entry »

Photo Booth – Flash Webcam Image Capture

EDIT 04/12/2011: I just got the approval notice from ActiveDen for a much better version of this PhotoBooth app. This new version includes lot of options to customize it through XML and it includes both ASP and PHP files for the server-side part of the code. If you have any suggestions to improve it, please [...]

Read the rest of this entry »

Drawing app

Right now I’m still reading “Learning ActionScript 3.0” book so I can improve my AS 3 skills. In the “Draving with pixels” chapter there is a great example of a little drawing application that I like. Here you can see the code for that little application: var mouseIsDown:Boolean; var erasing:Boolean;   var canvas:Sprite = new [...]

Read the rest of this entry »

Random number except number 7

Today I had this little problem. I needed to generate a random number from 1 to 30 and the result had to except a specific number (as in this example, any number from 1 to 30 except the number 7 ) The code is done now, it’s working as it should and I posted it [...]

Read the rest of this entry »