![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Jan 2005
Location: Albany, NY
Posts: 43
Rep Power: 0
![]() |
How should I tackle this problem (Flash / Action Script)?
I'm coding a small application in Flash and I don't know exactly how I should organize it. For all of those of you who are familiar with Action Script I'll scarcely go over the details of the projects.
The project will consist only of one frame, with all the Action Script residing in that one frame. There isn't going to be any graphics on the stage, so I'm creating the U.I. class objects, positioning them, and working with them only through code. The application is going to have several different financial calculators inside (ones that determine annuity, compound / interest, mortgage dues, retirement savings, ect), and each calculator is going to have it's own "page", so to speak. The user will use built-in U.I. MenuBar component (flash mx pro 2004) to navigate to whichever calculator he wants. Once he clicks the menu item, I want it to take him to the "page" where that specific calculator is on. Now, like I said, I can only have one frame in the entire document. My solution: I was thinking about making each calculator it's own function. Inside these functions I will create the class objects for all the components I need to use, position them, and then make nested functions that find the calculations. These functions will be called upon whenever the user picks a calculator from the MenuBar, and will be replaced by another whenever he/she picks a new one. I'm a little skeptical because this isn't really the traditional use of a function. What do you guys think of the approach? I was recommended by some to make a separate class for each calculator, but others told me the function idea was better. help is appreciated
__________________
meh... |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Action Script Problem? | quadra-tec | Other Scripting Languages | 1 | Nov 1st, 2006 12:56 PM |
| Odd problem with login script | SlickTheNick | PHP | 5 | Oct 22nd, 2006 7:29 PM |
| cgi/perl script + IE problem | joyceshee | Perl | 2 | Jan 24th, 2006 11:10 AM |
| Problem with Perl script | eclipsed4utoo | Perl | 1 | Dec 2nd, 2005 1:33 PM |
| Java script problem | zeotrex | JavaScript and Client-Side Browser Scripting | 5 | Sep 2nd, 2005 5:30 AM |