Re: [Flashcoders] Architecture opinion...

2006-03-28 Thread Scott Mathieson
as bit manip. class(es), kwik n durty... http://flashmx2004.com/forums/index.php?showtopic=2440 old one of mine, 'scuse any incorporated guff/lack of features... a lot has happened in 2 yrs :P On Tuesday 28 March 2006 23:31, Eric E. Dolecki wrote: > Thanks about the bitwise stuff... > > thing i

Re: [Flashcoders] Architecture opinion...

2006-03-28 Thread elibol
To answer having switch statements and if/else statements galore, options behaviors that're determined by other options being active or inactive should be combined into a single option. This should account to a collection of options absolutey decoupled from one another. If this is already the case,

Re: [Flashcoders] Architecture opinion...

2006-03-28 Thread Eric E. Dolecki
Thanks about the bitwise stuff... thing is this app is kinda like a PPT - except I have 7 config states that need checked every step. So the "next" depends on the config state... i guess I'll just need to get the bitwise number and then check that against some function that returns t/f or s

Re: [Flashcoders] Architecture opinion...

2006-03-28 Thread Dave Mennenoh
Here's another tutorial on using bitmasks that I think is a nice one: http://www.vipan.com/htdocs/bitwisehelp.html Dave - Adobe Community Expert www.blurredistinction.com www.macromedia.com/support/forums/team_macromedia/ ___ Flashcoders@chattyfig.figl

Re: [Flashcoders] Architecture opinion...

2006-03-28 Thread John Mark Hawley
You want to use bit flags for your constants... http://java.sun.com/docs/books/tutorial/java/nutsandbolts/bitwise.html (plenty of other tutorials floating around as well, if that don't float yer boat...) -Mark Hawley > From: "eric dolecki" <[EMAIL PROTECTED]> > Date: 2006/03/28 Tue PM 01:44:2

Re: [Flashcoders] Architecture opinion...

2006-03-28 Thread Daniel Cascais
I think you could use something like the example I had posted some time ago. It uses the technique Scott is mentioning. ___ Flashcoders@chattyfig.figleaf.com To change your sub

RE: [Flashcoders] Architecture opinion...

2006-03-28 Thread Scott Hyndman
iguration. :) Scott -Original Message- From: [EMAIL PROTECTED] on behalf of eric dolecki Sent: Tue 3/28/2006 2:57 PM To: Flashcoders mailing list Cc: Subject: Re: [Flashcoders] Architecture opinion... would that work with combinations of 3 or 4? aAndCAndDAndE = A | C | D | E

Re: [Flashcoders] Architecture opinion...

2006-03-28 Thread eric dolecki
would that work with combinations of 3 or 4? aAndCAndDAndE = A | C | D | E ? On 3/28/06, Scott Hyndman <[EMAIL PROTECTED]> wrote: > > Bitwise arithmentic would be much more appropriate (if I understand > correctly) > > var CONFIG_A:Number = 1; > var CONFIG_B:Number = 2; > var CONFIG_C:Number = 4;

RE: [Flashcoders] Architecture opinion...

2006-03-28 Thread Scott Hyndman
rs mailing list Cc: Subject: RE: [Flashcoders] Architecture opinion... Bitwise arithmentic would be much more appropriate (if I understand correctly) var CONFIG_A:Number = 1; var CONFIG_B:Number = 2; var CONFIG_C:Number = 4; var CONFIG_D:Number = 8; So a configuration of A and C woul

RE: [Flashcoders] Architecture opinion...

2006-03-28 Thread Merrill, Jason
This is how I like to organize that type of thing - I would do an array of objects - then just set properties on those objects, some of which can be arrays if you want - or anything else. Like this: var numObjects:Number = 15; var Config:Array = new Array(); for(var i=0; i>-Original Message--

RE: [Flashcoders] Architecture opinion...

2006-03-28 Thread Scott Hyndman
Bitwise arithmentic would be much more appropriate (if I understand correctly) var CONFIG_A:Number = 1; var CONFIG_B:Number = 2; var CONFIG_C:Number = 4; var CONFIG_D:Number = 8; So a configuration of A and C would be. var aAndC:Number = A | C; To detect config numbers, do the following: if (c