RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-13 Thread Mike Keesey
PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of JOR Sent: Tuesday, October 10, 2006 1:19 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Moving to AS2, array always undefined Actually, the need is dependent on the implementation. It was my understanding

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Ash Warren
:[EMAIL PROTECTED] On Behalf Of JOR Sent: Tuesday, October 10, 2006 5:52 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Moving to AS2, array always undefined A bad practice most likely, but not technically wrong. I do see it in text books from time to time. I was just mentioning

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Steven Sacks | BLITZ
A bad practice most likely, but not technically wrong. I do see it in text books from time to time. When I was in 10th grade, I had a French teacher who marked a question on a test wrong because the test came from the teacher's version of the text book and her book had a different (wrong)

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Dave Watts
The question was to provide the French word for the opposite of now. The correct answer is then but the text book said it was after. This is way OT, but then is not the opposite of now in English or French any more than after is. The expression now and then is common in English, but that

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Glen Pike
There's more than one way to skin a cat is another common expression, but it does not mean we all go around doing it :) Dave Watts wrote: The question was to provide the French word for the opposite of now. The correct answer is then but the text book said it was after. This is way OT,

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Paul Venton
Says who? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike Sent: 12 October 2006 21:20 To: Flashcoders mailing list Subject: Re: [Flashcoders] Moving to AS2, array always undefined There's more than one way to skin a cat is another common

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Steven Sacks | BLITZ
then is not the opposite of now Now means at the present time. Then means at any other time other than now. They are opposite. The phrase now and then has no bearing on the denotation of the words. Then is the antonym of now. If you disagree, what do you think is the opposite of now? It

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Troy Rollins
On Oct 12, 2006, at 5:38 PM, Steven Sacks | BLITZ wrote: If you disagree, what do you think is the opposite of now? It certainly isn't after because after is the opposite of before. !now -- Troy RPSystems, Ltd. http://www.rpsystems.net ___

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Merrill, Jason
!now LOL Troy - excellent way to get us back on topic. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Weaver Hickerson
PROTECTED] Behalf Of Steven Sacks | BLITZ Sent: Thursday, October 12, 2006 5:38 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Moving to AS2, array always undefined then is not the opposite of now Now means at the present time. Then means at any other time other than now

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Muzak
' flashcoders@chattyfig.figleaf.com Sent: Friday, October 13, 2006 12:10 AM Subject: RE: [Flashcoders] Moving to AS2, array always undefined Opposite denotes more of a polar difference (hot/cold, black/white, up/down) then can refer to any point, for example 1 second ago, along a time continuum

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Steven Sacks | BLITZ
So you're saying Now refers to this SINGLE point in time, and Then refers to ANY point other than Now. Definite vs indefinite. If you put it in code the opposite of now is !now or not now, and when is not now? Then. The plaintiff rests. ___

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Corey Knafelz
This aftenoon I subscribed to this list once again. And now I remember why I unsubscribed from the list so many months ago. Goodbye again. On 10/12/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: The plaintiff rests. ___

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Steven Sacks | BLITZ
This aftenoon I subscribed to this list once again. And now I remember why I unsubscribed from the list so many months ago. Goodbye again. You'll be missed. Again. ;) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Corey Knafelz
get fucked jerk. On 10/12/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: This aftenoon I subscribed to this list once again. And now I remember why I unsubscribed from the list so many months ago. Goodbye again. You'll be missed. Again. ;)

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Jim Kremens
Steven, There is a better place for your really strong opinions... your blog! Please limit contributions to this list to code. There's a reason for the list etiquette guidelines: quote Keep it coding There are plenty of other places to talk about general Flash topics, and even more places to

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Dave Watts
Of Jim Kremens Sent: Thursday, October 12, 2006 7:00 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Moving to AS2, array always undefined Steven, There is a better place for your really strong opinions... your blog! Please limit contributions to this list to code. There's

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Steven Sacks | BLITZ
get fucked jerk. What happened to that whole unsubscribing thing you mentioned? How did you even receive this message if you unsubscribed? And if it indeed was not an honest statement and instead a sarcastic comment, why are you surprised by a sarcastic comment in return? I did get f**ked.

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Reuben Stanton
Can you boys take it off list please? On 13/10/2006, at 10:54 AM, Steven Sacks | BLITZ wrote: get fucked jerk. What happened to that whole unsubscribing thing you mentioned? How did you even receive this message if you unsubscribed? And if it indeed was not an honest statement and

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread Steven Sacks | BLITZ
fin. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-12 Thread JOR
will suffice just fine? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JOR Sent: Tuesday, October 10, 2006 5:52 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Moving to AS2, array always undefined A bad practice most likely, but not technically wrong. I

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Merrill, Jason
You have to initialize (create) the array. Same as in AS 1.0. myArray = new Array(); This: public var items_arr:Array; Doesn't create the array, it only typecasts the variable. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Jon Bennett
You have to initialize (create) the array. Same as in AS 1.0. myArray = new Array(); This: public var items_arr:Array; Doesn't create the array, it only typecasts the variable. hah, wicked - thought it'd be s basic error but didn't think it would be _that_ basic ;) thanks! jon -- jon

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Naicu Octavian
Its teh same when you create an Object; :) On 10/10/06, Jon Bennett [EMAIL PROTECTED] wrote: You have to initialize (create) the array. Same as in AS 1.0. myArray = new Array(); This: public var items_arr:Array; Doesn't create the array, it only typecasts the variable. hah, wicked

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
I prefer myArray = []; and myObject = {}; But that's just me. :) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Doug Coning
: [Flashcoders] Moving to AS2, array always undefined I prefer myArray = []; and myObject = {}; But that's just me. :) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
It's neither AS2 or AS1 centric. Substituting [] for new Array() or {} for new Object() is universal across many languages. Personally, I prefer the visual [] and {} to the wordy new Array() and new Object(). It's quicker to write, and it's easier to read. [] {} Plenty of research has

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Hans Wichman
Hi, and one other note, don't do: class ArrayTest { public var items_arr:Array = []; } becoz that will be the same as : class ArrayTest { public static var items_arr:Array = []; } initialize the array in your constructor instead. greetz JC ps flash bug On 10/10/06, Jon Bennett

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Merrill, Jason
To: Flashcoders mailing list Subject: RE: [Flashcoders] Moving to AS2, array always undefined It's neither AS2 or AS1 centric. Substituting [] for new Array() or {} for new Object() is universal across many languages. Personally, I prefer the visual [] and {} to the wordy new Array() and new Object(). It's

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Ian Thomas
On 10/10/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: Plenty of research has been done on the subject of icons versus words but suffice to say we don't write 100 dollars and 0 cents, we write $100.00. When you write music you don't write QUARTER NOTE C. You just draw a quarter note symbol

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread JOR
In AS2 typecasting helps uncover bugs at compile time, so its a good idea to use them. Typecasting also enables class insight through popup menus when you type a period after your variable name. In AS3 typecasting is a much cooler as it directly affects the amount of memory allocated for the

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Ian Thomas
On 10/10/06, Hans Wichman [EMAIL PROTECTED] wrote: Hi, and one other note, don't do: class ArrayTest { public var items_arr:Array = []; } becoz that will be the same as : class ArrayTest { public static var items_arr:Array = []; } initialize the array in your constructor

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Victor Gaudioso
mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, October 10, 2006 11:56 AM Subject: RE: [Flashcoders] Moving to AS2, array always undefined It's neither AS2 or AS1 centric. Substituting [] for new Array() or {} for new Object() is universal across many languages. Personally, I prefer

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Victor Gaudioso
Haha, ain't it the truth - Original Message - From: Merrill, Jason [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, October 10, 2006 12:03 PM Subject: RE: [Flashcoders] Moving to AS2, array always undefined Y'all are nerds. Jason

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
Sorry for the confusion. I wasn't referring to the typecasting just the instantiation. You should still use myArray:Array = []; and myObject:Object = {}; BLITZ | Steven Sacks - 310-551-0200 x209 ___ Flashcoders@chattyfig.figleaf.com To change

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Merrill, Jason
mailing list Subject: RE: [Flashcoders] Moving to AS2, array always undefined Sorry for the confusion. I wasn't referring to the typecasting just the instantiation. You should still use myArray:Array = []; and myObject:Object = {}; BLITZ | Steven Sacks - 310-551-0200 x209

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Jon Bennett
Or you can do it in the class' constructor: class ArrayTest { public var aryItems:Array; public function ArrayTest () { this.aryItems = new Array(); } public function test (str:String):Void { this.aryItems.push (str); trace (this.aryItems); } } I like this

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
Subject: Re: [Flashcoders] Moving to AS2, array always undefined Or you can do it in the class' constructor: class ArrayTest { public var aryItems:Array; public function ArrayTest () { this.aryItems = new Array(); } public function test (str:String):Void

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Prakaz
Hi, talking about square brackets, dunno how relevant this would be in the post but you could also use it to make function calls: function foo(param1:String,param2:String):void{ trace(param1+ +param2); } this function can be called by using: foo(hello,world!); or *this[foo](hello,world);

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
talking about square brackets, dunno how relevant this would be Bracket access is a separate discussion, yes. :) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread JOR
x209 -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Jon Bennett Sent: Tuesday, October 10, 2006 12:44 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Moving to AS2, array always undefined Or you can do it in the class

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of JOR Sent: Tuesday, October 10, 2006 1:19 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Moving to AS2, array always undefined Actually, the need is dependent on the implementation

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread ryanm
Plenty of research has been done on the subject of icons versus words but suffice to say we don't write 100 dollars and 0 cents, we write $100.00. When you write music you don't write QUARTER NOTE C. You just draw a quarter note symbol on the C line. That's how I look at writing code. :)

RE: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Steven Sacks | BLITZ
Assembly/machine languages are iconic, programming languages are supposed to be verbose. ;-) Your mom is verbose! ;) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread JOR
] On Behalf Of JOR Sent: Tuesday, October 10, 2006 1:19 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Moving to AS2, array always undefined Actually, the need is dependent on the implementation. It was my understanding that AS first looks to the local scope for the existence of a variable

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Jon Bennett
A bad practice most likely, but not technically wrong. I do see it in text books from time to time. I was just mentioning it as a case where this *would* be needed as opposed to speaking in absolutes. In practice, you're right and I try not to name any parameters the same as a field name to

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread Muzak
://muzakdeezign.com/flashcoders/?q=OOP%20best%20practices Muzak - Original Message - From: Jon Bennett [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, October 11, 2006 1:53 AM Subject: Re: [Flashcoders] Moving to AS2, array always undefined A bad

Re: [Flashcoders] Moving to AS2, array always undefined

2006-10-10 Thread JOR
Muzak wrote: http://www.adobe.com/devnet/flash/articles/as_bestpractices.html Cool find. Thanks for the link James ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: