views:

320

answers:

5

Are most flash video players created all programmatically? Or they done using static buttons that are referenced in classes? Is it better to create all your buttons on the fly or does it not really matter?

+1  A: 

Most video players aren't using AS3 yet, but different ones do it differently. It depends on what level of configurability you want. Personally I mostly do it programmatically so that I can configure everything with an XML config file or FlashVars.

Gerald
+1 Gerald as a good point its very good to have a XML config file. That way you can change what ever you like just by going to the config file without having to change it in the source and compiling again.
Fábio Antunes
A: 

Do you know of a good tutorial on FlashVars?

jrutter
+1  A: 

I've found the easiest way was to use AS3 video components and customize them as needed. For example, the play head does all the scrubbing for you automatically, but you can control placement and design.

Here's a great tutorial: http://www.adobe.com/devnet/flash/articles/skinning_as3_flvcomp_03.html

+1. It would take a pretty good reason for me to build an AS3 video player, instead of skinning the standard ones and decorating on whatever extra functionality I need.
fenomas
A: 

I don't think there is much difference internally if you use static buttons or programmed ones. Its more a personal preference. If my buttons have been complexly designed then I would import them, then reference them in classes; but if they are simple boxes and text, for example, then I would program them as it gives better control. I personally prefer all things being in classes not on the stage, but sometimes its easier not to.

here is a good video tutorial http://www.thetechlabs.com/tutorials/audionvideo/how-to-build-a-as3-videoplayer/

daidai
A: 

check out the swfobject documentation for good flashvar implementation http://code.google.com/p/swfobject/wiki/documentation

daidai