ndmccormack
02-29-2008, 05:11 PM
Hi there,
I've been learning AS3 for a month or so now - reading Advanced AS3 by Collin Moock and AS3 with Design Patterns, doing some small projects - and, more or less, it all sorta makes sense.
I'm now going to embark on creating a website for a friend/client on the cheap and I just want to make sure I'm using the correct method for outlining the site.
The site is a standard folio site - Homepage, News, Work, About, Contact. I'll go into a little detail as how the site animates/is constructed.
- The pages are 'stacked' on top of each other, and scroll vertically to the required section when the user interacts with the nav.
- The nav has some fancy interactive wires on it that correspond to each nav option, these animate between sections.
- the work section scrolls horizontally through all the projects - similar to how spin.co.uk works.
- the site is updated via xml.
- I'd like to create a proxy image loader so that the work images load in the bg after the main swf/site has loaded.
Now, I presume that I create a main controller that then loads in the following
Main Controller
- DataLoader ( loads XML, stores data)
- - ImageProxy ( sequentially loads all work images )
- Main View ( stacks other views vertically )
- - progressBarController ( get's loading proogress of site, XML, bg image )
- - - progressBarView ( shows loading progress )
- - Navigation controller
- - - Nav Vie
- - - - Fancy Wires
- - Homepage Controller
- - - Homepage View
- - News Controller
- - - News View
- - Work Controller
- - - Work Model/Data ( pulls images from image proxy )
- - - Work View
- - About Us Controller
- - - About Us View
- - Contact Controller
- - - Contact View
I'm confused as to whether I should have more Models/Data classes, is one enough? once the XML has loaded should I parse the data out into other Data classes - one for each section? I realised that it would be best to have a Work Model class as it is relatively complex.
Am I missing the point of MVC, can I simplify it in other ways?
Any help is much appreciated
Cheers
Niall
I've been learning AS3 for a month or so now - reading Advanced AS3 by Collin Moock and AS3 with Design Patterns, doing some small projects - and, more or less, it all sorta makes sense.
I'm now going to embark on creating a website for a friend/client on the cheap and I just want to make sure I'm using the correct method for outlining the site.
The site is a standard folio site - Homepage, News, Work, About, Contact. I'll go into a little detail as how the site animates/is constructed.
- The pages are 'stacked' on top of each other, and scroll vertically to the required section when the user interacts with the nav.
- The nav has some fancy interactive wires on it that correspond to each nav option, these animate between sections.
- the work section scrolls horizontally through all the projects - similar to how spin.co.uk works.
- the site is updated via xml.
- I'd like to create a proxy image loader so that the work images load in the bg after the main swf/site has loaded.
Now, I presume that I create a main controller that then loads in the following
Main Controller
- DataLoader ( loads XML, stores data)
- - ImageProxy ( sequentially loads all work images )
- Main View ( stacks other views vertically )
- - progressBarController ( get's loading proogress of site, XML, bg image )
- - - progressBarView ( shows loading progress )
- - Navigation controller
- - - Nav Vie
- - - - Fancy Wires
- - Homepage Controller
- - - Homepage View
- - News Controller
- - - News View
- - Work Controller
- - - Work Model/Data ( pulls images from image proxy )
- - - Work View
- - About Us Controller
- - - About Us View
- - Contact Controller
- - - Contact View
I'm confused as to whether I should have more Models/Data classes, is one enough? once the XML has loaded should I parse the data out into other Data classes - one for each section? I realised that it would be best to have a Work Model class as it is relatively complex.
Am I missing the point of MVC, can I simplify it in other ways?
Any help is much appreciated
Cheers
Niall