Skip navigation
Sign in
0
Search forums only
Search forums only
Cancel
Adobe
Support Home
Forums Home
News
People
Product
Menu begins
Adobe Creative Cloud
Downloading, Installing, Setting Up
Adobe Experience Cloud
Adobe Flash Player
Acrobat Reader
Adobe Acrobat
Adobe Photoshop
Adobe Photoshop Lightroom
Adobe Photoshop Elements
Adobe Dreamweaver
Adobe Muse
Adobe Animate CC
Adobe Premiere Pro
Adobe After Effects
Adobe Illustrator
Adobe InDesign
View all communities
Explore
Menu begins
Meet the experts
Learn our products
Get inspired in the lounge
Read the blog
Error: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page.
Please enter a title.
You can not post a blank message. Please type your message and try again.
More discussions
in
ActionScript 1 and 2
All Communities
Adobe Animate CC - Home
ActionScript 1 and 2
2 Replies
Latest reply
on Nov 23, 2008 5:12 AM by twistedpancreas
add number to global variable?
twistedpancreas
Nov 23, 2008 4:53 AM
Hey there all,
just a quickie.
If I have
_global.gCost = 0;
on the main timeline
and then later on i want to increase gCost by a number (say 5), how do I do that, cause
_global.gCost +5;
doesn't work.
Thanks in advance.
I have the same question
Show 0 Likes
(0)
This content has been marked as final.
Show 2 replies
1.
Re: add number to global variable?
Ned Murphy
Nov 23, 2008 5:09 AM
(
in response to twistedpancreas
)
_global.gCost += 5;
which is a shorthand way of saying
_global.gCost = _global.gCost +5;
2.
Re: add number to global variable?
twistedpancreas
Nov 23, 2008 5:12 AM
(
in response to twistedpancreas
)
thx NedWebs
you're a champ
Actions
More Like This
Retrieving data ...
Legend
Correct Answers
- 10 points