A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Getting to grips with MVC

  1. #1

    Post Getting to grips with MVC

    Hi, I am implementing a MVC (Model View Controller) set up for the first time in FlashBuilder and I'm trying to get my head round it.

    Say I have a website that loads in XML, and has 4 pages with a main navigation at the top.

    I have created 3 packages: model, view, controller

    In model, I would store the data XML and variables
    in view, I would create all the pages, add graphics from the library, and add MouseEvents onto the buttons etc..
    In controller, this would deal with the MouseEvents or user interaction and action the appropriate animation etc..

    Is this correct?

  2. #2
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    That is the correct mentality yes. We had a pretty lengthy discussion about the basics you might find interesting. http://board.flashkit.com/board/show...hp?t=824626#15

  3. #3
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    I recommend you to use the Presentation Model and the MATE or some other framework. I found the MATE framework easy to learn and apply in Flash builder. Basically the AS in the mxml file is reduced to an absolute minimum. The Presentation Model has its origin in the MVC.
    - The right of the People to create Flash movies shall not be infringed. -

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center