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 01-23-2008, 04:58 AM   #1
asscripter
Member
 
Join Date: Dec 2007
Posts: 85
Thumbs up Industry standard for project code file structure..?

Hi, I have a project in flash, which is based upon MVC design pattern. This is required to have about 12-15 classes with different functionalities and purposes. I've decided to categorize them into the following folder structure.

FLA, SWF, HTML (files)
XML (folder)
com (stands for commercial)
|
|- Util (stands for utility)
|- Controller,
|- View,
|- Data

Now i'm wanted to discuss where should the js (javascript) files be placed.

As these are supposed to be deployed with the html and SWFs so these are an open source code kind of code. So this can be placed on the root folder (along with FLA, SWF, html, etc).

Or in a separate folder on the root folder.

Otherwise in the com folder in the Util folder.

Please tell me what do u guys follow? What does the industry standard/best practices say about that? Or is it entirely an individuals choice!
asscripter is offline   Reply With Quote
Old 01-23-2008, 03:05 PM   #2
jsebrech
Joeri Sebrechts
 
Join Date: Apr 2005
Location: Antwerp, Belgium
Posts: 1,462
Default

I don't know if there are any industry standard practices about this. If there are, they're overbearing. File layout changes from project to project and team to team, so use whatever works best for you.
jsebrech is offline   Reply With Quote
Old 01-24-2008, 04:05 AM   #3
asscripter
Member
 
Join Date: Dec 2007
Posts: 85
Default

Thanks for the opinion. Sure, there cannot be hard-and-fast rules about file structuring.

Then I invite more practitioners to share what works best for them. Perhaps a project example which worked best for them will work! What kind of grouping they follow!

thanks.
asscripter is offline   Reply With Quote
Old 01-24-2008, 11:55 AM   #4
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

we tend to follow
-controllers
-models
-events
-services
-views
-itemrenderers
-components
-skins
-errors
__________________
oi poloi
http://www.memorphic.com/news/
hangalot 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
flash file not shown in php file Manou Other Flash General Questions 0 02-18-2007 02:25 AM
Flash to PHP & PHP to Flash awdio ActionScript 2.0 2 11-08-2006 05:09 PM
MP3 player / file defined in HTML code Asparagus ActionScript 2.0 2 11-08-2006 01:20 PM
dynamic text .txt file code cyann ActionScript 2.0 2 12-14-2005 04:55 PM
What's wrong with this code? (projector file) moglie ActionScript 1.0 (and below) 13 11-12-2001 06:02 PM


All times are GMT. The time now is 05:44 AM.


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.