Where is the difference? Sorry for my question but I learn AS3 .0 only few days. Thanks.
- Has been a member for 4-5 years
- Item was Featured
- Exclusive Author
- Sold between 5 000 and 10 000 dollars
- Bought between 10 and 49 items
- Netherlands
- Referred between 10 and 49 users
its adding or removing a certain amount from a variable. x += 3 will add 3 to x. x -= 2 will subtract 2 from x. Same as x = x – 2 
- Has been a member for 4-5 years
- Won a Competition
- Contributed a Tutorial to a Tuts+ Site
- Contributed a Blog Post
- Grew a moustache for the Envato Movember competition
- Community Moderator
- Beta Tester
- Exclusive Author
- Sold between 1 000 and 5 000 dollars
- Bought between 50 and 99 items
- United Kingdom
- Referred between 10 and 49 users
also…
i++
is the same as
i = i + 1
is the same as
i += 1
and subtracting is similiar syntax…
i—
is the same as
i = i – 1
is the same as
i -= 1

- Has been a member for 3-4 years
- Item was Featured
- Author was Featured
- Exclusive Author
- Sold between 100 000 and 250 000 dollars
- Bought between 100 and 499 items
- United States
You might want to keep this cheat sheet handy
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/operators.html
- Has been a member for 5-6 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Contributed a Tutorial to a Tuts+ Site
- Contributed a Blog Post
- Author had a Free File of the Month
- Item was Featured
- Author was Featured
- Beta Tester
- Exclusive Author
- Sold between 10 000 and 50 000 dollars
- Bought between 100 and 499 items
- United Kingdom
- Referred between 200 and 499 users
You might want to keep this cheat sheet handyhttp://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/operators.html
nice one! bookmarked! 
- Has been a member for 4-5 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Item was Featured
- Beta Tester
- Exclusive Author
- Sold between 100 and 1 000 dollars
- Bought between 1 and 9 items
- United States
- Referred between 10 and 49 users
also…i++
is the same as
i = i + 1
is the same as
i += 1
Strictly speaking that is not quite true.
It is true in terms of the resulting value of the variable i but all of these statements return a result which can be used in other expressions and the returned results are not the same; ( i += 1 ) and ( i = i + 1 ) return the value of i after incrementing but the post-increment operator ( i++ ) returns the value of i before incrementing.
However, if you do ever have cause to use the value returned by the statement, and need the value after incrementing, and want to keep the code as concise as possible, then the pre-increment operator ( ++i ) can be used to get the desired result.
- Has been a member for 3-4 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Contributed a Tutorial to a Tuts+ Site
- Contributed a Blog Post
- Interviewed on the Envato Notes blog
- Grew a moustache for the Envato Movember competition
- Community Moderator
- Item was Featured
- Author was Featured
- Beta Tester
- Exclusive Author
- Sold between 1 000 and 5 000 dollars
- Bought between 10 and 49 items
- United Kingdom
- Referred between 1 and 9 users
You might want to keep this cheat sheet handynice one! bookmarked!http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/operators.html
![]()
+1 Bookmarked!
- Has been a member for 3-4 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Contributed a Tutorial to a Tuts+ Site
- Contributed a Blog Post
- Interviewed on the Envato Notes blog
- Grew a moustache for the Envato Movember competition
- Community Moderator
- Item was Featured
- Author was Featured
- Beta Tester
- Exclusive Author
- Sold between 1 000 and 5 000 dollars
- Bought between 10 and 49 items
- United Kingdom
- Referred between 1 and 9 users
also…i++
is the same as
i = i + 1
is the same as
i += 1Strictly speaking that is not quite true. It is true in terms of the resulting value of the variable
However, if you do ever have cause to use the value returned by the statement, and need the value after incrementing, and want to keep the code as concise as possible, then the pre-increment operatoribut all of these statements return a result which can be used in other expressions and the returned results are not the same;( i += 1 ) and ( i = i + 1 )return the value ofiafter incrementing but the post-increment operator( i++ )returns the value ofibefore incrementing.( ++i )can be used to get the desired result.
The words of a true flash guru, tinman you rock!!!
- Has been a member for 4-5 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Item was Featured
- Beta Tester
- Exclusive Author
- Sold between 100 and 1 000 dollars
- Bought between 1 and 9 items
- United States
- Referred between 10 and 49 users
The words of a true flash guru, tinman you rock!!!
Lol … actually that knowledge comes from my status as a c++ guru, and it just happens to apply in AS3 … but I’ll accept a “Flash Guru” badge if anyone is handing them out 
