Painkiller
08-28-2009, 07:13 AM
In learning about the various ways to make dynamically controlled websites with actionscript, I wanted to ask all you flash developers out there how you do it and what your preferred methods are, and what you find the advantages to be. For instance do you like to cut your website up into sections making separate swf's for each section and using the Loader class to bring them in? Or do you like to just make dynamically linked movie clips within one main swf and call them to the stage as needed? Or do you do something else really cool that I've never even heard about?
*unnecessary reading below*
If it helps some new guys out there (I still consider myself one) this has been my progression in learning Flash and my approach to developing websites: my first few websites were entirely timeline based where I'd attach frame labels to the timeline and have the website divided into sections by linking the menu buttons to these labeled frames. That's how you would navigate to different sections.
Then I learned about loading movie clips dynamically with actionscript. So instead of having to attach frame labels, I would have essentially a one frame flash movie for the whole site with just a menu bar on top. I would link each menu button to a moviclip (using the "export for actionscript" option) that I'd load and unload with the addChild method. This was the new way to navigate to different sections of the site. This was a big milestone because frame-based movies got to be very clunky after a while.
I then discovered the Loader class where I could make each section of the website it's own separate swf file entirely and they would only be called as needed, instead of having to load the whole site all at once at run time. I am now getting my feet wet with custom classes and trying to make everything reusable so that I can tackle new projects even faster and more efficiently than before.
*unnecessary reading below*
If it helps some new guys out there (I still consider myself one) this has been my progression in learning Flash and my approach to developing websites: my first few websites were entirely timeline based where I'd attach frame labels to the timeline and have the website divided into sections by linking the menu buttons to these labeled frames. That's how you would navigate to different sections.
Then I learned about loading movie clips dynamically with actionscript. So instead of having to attach frame labels, I would have essentially a one frame flash movie for the whole site with just a menu bar on top. I would link each menu button to a moviclip (using the "export for actionscript" option) that I'd load and unload with the addChild method. This was the new way to navigate to different sections of the site. This was a big milestone because frame-based movies got to be very clunky after a while.
I then discovered the Loader class where I could make each section of the website it's own separate swf file entirely and they would only be called as needed, instead of having to load the whole site all at once at run time. I am now getting my feet wet with custom classes and trying to make everything reusable so that I can tackle new projects even faster and more efficiently than before.