> How do YOU work in Flash? > > -Timeline - I try to create the graphics that don't need to be dynamic in the IDE. - Those that need to be highly dynamic are made using AS - I animate what I can using the IDE, but if it'll be dynamic and might be controlled at any time, I use AS to animate.
> > -Scripting (OOP, scope, frames) I love delegate and eventdispatcher. I avoid onEnterFrame, I try to use Intervals instead > > -Tools (external scripting, other external tools) FlashDevelop, MTASC > > -Built in behaviors and objects (Use / don´t use) I use a lot of these - I use all that I can. This is a bit vague :o > -Putting it all together (multiple cooks?) I recently tried having a main class that puts everything together. It makes error checking hell of a lot easier. > > How do YOU structure a project? > > Let´s say i´m making a custom video interface. Pretty straightforward. > > and i´ve got 1 dynamicaly loading videoclip. > > 1 set of player buttons (Play, Pause, Stop, FFW, REW) > > 1 volume control > > 1 animated playhead (with the posibility to drag it to any spot in the video) I've made classes for these already. - VideoStreamer is made of a bunch of classes that take care of loading, the sound, etc. - VideoStreamer uses VideoLoader that has it's own smart buffer - To instantiate VideoStreamer, I just pass as an arg an embedded video object that is on stage. - ProgressBar class, of which I pass the needed movieclips that become the played progress bar, the downloaded progress bar, and the background bar. - The progress bar is the one that takes care of dragging the playhead only in the region of the downloaded progress bar has achieved. - Then, to put it neatly together, I made a VideoPlayer classes that uses the VideoStreamer and the Progress bar (and a volume slider, but it's not part of the question), listens to the their events and puts it together in such a way that it works super neat. So, if I was gonna make ur project now, I'd do something like this on the timeline: import ...VideoPlayer; var vp:VideoPlayer = new VideoPlayer(video, playProgBar, dlProgBar); //then for the extra buttons if I need any: buStop.onRelease = Delegate.create(vp, vp.stop); buPause.onRelease = Delegate.create(vp, vp.pause); buPlay.onRelease = Delegate.create(vp, vp.play); Gosh here I am pressed for time with two deadlines tomorrow and I'm answering this! Well, I gotta go! Goodluck! -- Ramon Miguel M. Tayag Managing Director Quirkworks _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

