PDA

View Full Version : Any Flash / AS3 Pros out there?


NoahFence
10th August 2011, 09:55 AM
I'm trying to determine the best way to go about a project and was wondering if someone could impart some knowledge / best practices ....

Arus808
10th August 2011, 02:03 PM
What specifically did you need to know?

while we get to that, you also may want to be pro-active and have your content served via HTML 5/AJAX as well to compensate for those devices (cough:ipad:iphone:cough) that do not have Flash support. This is starting to become a "Best Practice" as well.

NoahFence
10th August 2011, 03:37 PM
Specifically, I'd like to create a sort of soundboard, where you'd click on an image, and it would play a .mp3 clip. I got that far....

But if you click it again, I want it to stop playing. Also, if the user clicks on another image on the page, it stops playing the first song, and starts playing the other.

I suck at A3.

Not sure if it would be better to make the whole page in photoshop, importing the entire kit-and-kaboodle to the stage and use the coordinates to play the .mp3 files, or build my page on the stage and use each individual jpeg as a button. I'm sure the A3 for each choice is much different.

Arus808
10th August 2011, 06:40 PM
So a simple "audio" player pretty much.

Here is are some Flash Examples:
http://www.gotoandlearn.com/
=== middle of page look for "Flash MP3 Player: Part 1"

Some pre-made ones with a little customization on your part:
http://savedelete.com/top-25-best-free-online-music-players-for-your-websites-or-blogs.html

http://www.brianhadaway.com/html5-audio-player-with-flash-fallback/




Here are HTML 5/JQUERY alternatives that are lightweight, and cross platform/device friendly:

http://www.jplayer.org/
http://neutroncreations.com/blog/building-a-custom-html5-audio-player-with-jquery/

Unabogie
11th August 2011, 01:15 PM
If you don't need rollovers, you can just create a blank button in Flash (only put the box on that very last frame). The just toggle the play/stop on every click. But this isn't very flexible, so I would suggest you export the background as a single jpeg, then arrange your song icons either on the stage or by using code. Make them buttonMode=true, add listeners, then toggle a flag on each button as "state=idle, state=playing". That sort of thing. You need to be able to turn off a sound that is playing when another sound is clicked.