Paul,
You are perfectly right. The case of Beno's piece:
if (e.target.currentFrame == 40) TweenMax.to(mcHandInstance2, 2, {x:200,
startAt:{totalProgress:1}}).reverse();
...is clearly a proof of what you say, because it already produced
confusion.
Greg
Wednesday, December 09, 2009 (1:30:22
BTW, what is the point of braces if you dont need them, except the
separation of your code part.
Are they needed in some situations over others?
Braces let you build a code block containing multiple statements. If
you want to run multiple statements in the body of a loop, or
conditional, or
yep - same in as2 and as3
On Wed, Dec 9, 2009 at 5:21 PM, Dave Watts dwa...@figleaf.com wrote:
BTW, what is the point of braces if you dont need them, except the
separation of your code part.
Are they needed in some situations over others?
Braces let you build a code block containing
Good to know. Thanks for all the responses. I learn a little more each
day. :))
Best,
Karl
Sent from losPhone
On Dec 9, 2009, at 1:09 PM, allandt bik-elliott (thefieldcomic.com) alla...@gmail.com
wrote:
yep - same in as2 and as3
On Wed, Dec 9, 2009 at 5:21 PM, Dave Watts
Karl,
That is perfectly valid for AS2, for example:
for(var k in myArray) trace(val: + myArray[k]);
...works both AS2 and AS3.
Even a combo...
if(someBoolean) for(var k in myArray) myClass(myArray[k]).doSomething();
Just one line and the semicolon ; (required).
Man can save a pair of
Yes, your correct.
I always use braces.
It looks aesthetically pleasing to me and helps me separate things.
BTW, what is the point of braces if you dont need them, except the
separation of your code part.
Are they needed in some situations over others?
Karl
On Dec 8, 2009, at 5:25 PM, Greg
6 matches
Mail list logo