Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > General > Best Practices

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-14-2007, 05:50 PM   #1
trymedo
um... what?
 
trymedo's Avatar
 
Join Date: Aug 2006
Location: Somerset, England
Posts: 118
Unhappy Project Planning

Can some people point me in thr direction for a good write up on project planning with flash actionscripting?

I have a project that involves dealing with one fairly large xml document, and using the data in this to generate nearly everything in the scene dynamicaly.

I think I have a rough idea about how to create this but I keep running into problems about half way through.
My code isn't that neat, and I think here lies my main problem. I need a way of structuring the code before I even start writing it...

does that make sense? Does anybody have any valueable tips for me?

Im certain Im not the only one who has problems with large projects...

fyi - the project is flash 6, AS 2.0 (in case anyone was going to point me towards AS 3 tutorials etc)

many thanks in advance.

Tom
__________________
Web Design & Various Studio Work...
www.animediastudios.com

UK Football League perfect gifts for fans
www.myteamselection.com
trymedo is offline   Reply With Quote
Old 12-05-2007, 01:06 PM   #2
jsebrech
Joeri Sebrechts
 
Join Date: Apr 2005
Location: Antwerp, Belgium
Posts: 1,462
Default

When a problem is too complex, subdivide it into smaller problems. In this case, see if you can subdivide the parsing task into smaller parse jobs that you can ship off to functions.
jsebrech is offline   Reply With Quote
Old 12-05-2007, 08:48 PM   #3
typeguy
Registered User
 
Join Date: Sep 2007
Location: Long Beach, CA
Posts: 9
Default Project Planning

I had the same question.

For what it's worth, You may not have the time but I have read these 2 books from Friends of Ed.
ActionScript for Flash 8:
http://www.friendsofed.com/book.html?isbn=1590596188
and
Object Oriented ActionScript for Flash 8
http://www.friendsofed.com/book.html?isbn=1590596196

Good reads and tell ALOT about planning up front and abstraction.

Enjoy.
typeguy is offline   Reply With Quote
Old 02-22-2008, 10:11 AM   #4
kalvin82
Registered User
 
Join Date: Nov 2006
Posts: 6
Default

I think the phrase you are looking for is how to "plan the architecture of your program"

in addition to the 2 books that have been recomended, I recomend that you real up on UML.

even if you dont use UML to do the actual planning, understanding the principles and values that shape uml, will help you make better decisions in regards of how to build your program
kalvin82 is offline   Reply With Quote
Old 02-22-2008, 05:21 PM   #5
rpoy
Member
 
Join Date: Nov 2007
Location: Minnesota, USA
Posts: 91
Default Uml

For what its worth, there are some open source UML programs that you can download.
http://staruml.sourceforge.net/en/

But then a good ol piece of paper works too. AS is pretty new to me but Ive been writing code for quite a while and the principles are the same.

Adding to what jsebrech said, start out looking at the top level. What are the inputs(your xml file)/outputs?
Without getting into the details try and figure out what the steps are and list them. Then figure out what the inputs/outputs of each step are.

Before you know it each step will represent all the basic functions of your program.
__________________
Thanks!

Padora.com ROCKS!!
rpoy is offline   Reply With Quote
Old 02-22-2008, 05:41 PM   #6
ASWC
Site Contributor
 
Join Date: Dec 2007
Location: Vermont, USA
Posts: 3,178
Default

I personnaly like working with external as files which helps m structuring the whole application. I often use a main loader which acts as a main central console, it has no graphics and just #include statements. For example it would have that:
#include "loadingTheXml.as";
#include "createcontentfromXML.as";
#include "positioningcontentandanimation.as";
#include "functionality.as";

these are obvious names so you understand what I mean. I also structure my code as modules, for example one module would load and parse the XML and the second module will load the content but only when the first module says it's ready and so on. That makes everything easy to debug but also I really think this helps me on not having too much bugs.
__________________
aswebcreations
ASWC is offline   Reply With Quote
Old 03-11-2008, 10:21 AM   #7
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,000
Default

For a larger software (and not just flash...this stuff if universal), you need to come up with:
  • use cases - this will walk you through how the application will be used
  • requirements - a list of requirements that the software needs as determined by your use cases
  • a rough UML diagram - before you begin programming have an idea of how it will fit together
  • Analyze what you've done and look for places to encapsulate.

With these steps done, now you've just got to implement the code!
__________________
I'm old enough to know better and young enough to do it anyway. -- maskedman
Flash Gordon is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CMS Project: ActionScript2-PHP-MySQL-XML Experienced Support Required drallstars Projects and Positions 0 06-29-2007 01:35 PM
Importing flex project into flash project in flex builder 2 devboy Flex 2 & 3 1 05-14-2007 11:28 AM
Project Fallen Heroes jor133d General Chat 1 08-22-2006 03:10 AM
[Flex Builder 2] Adding Project References doesn't affect classpath? astgtciv Flex 2 & 3 8 08-11-2006 11:57 PM
Project Management, Design, Planning... FFighter General Chat 3 12-12-2005 09:38 AM


All times are GMT. The time now is 06:48 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.