dominick100
04-29-2002, 05:05 PM
Easy Question:
I've been through a couple of Flash books (How to do everything.. & Foundation ActionScript), so I at least have a limited background, and thought I had the basics down.
However, in the 1st chapter of Moock's Definitive Guide, he's expressing variables as "var x = 1".
I've always just expressed this as "x = 1"
I looked up "var" in Flash's reference section, and it looks to do the same thing. is there any difference in expressing variables in these 2 ways? Is is just to make all lines that set variables easily recognizable?
I tried searching the forum, but I didn't really see anything explaining this. I'm just starting to get into the meat of Flash here, and don't want to start off setting things up incorrectly.
Thank you.
I've been through a couple of Flash books (How to do everything.. & Foundation ActionScript), so I at least have a limited background, and thought I had the basics down.
However, in the 1st chapter of Moock's Definitive Guide, he's expressing variables as "var x = 1".
I've always just expressed this as "x = 1"
I looked up "var" in Flash's reference section, and it looks to do the same thing. is there any difference in expressing variables in these 2 ways? Is is just to make all lines that set variables easily recognizable?
I tried searching the forum, but I didn't really see anything explaining this. I'm just starting to get into the meat of Flash here, and don't want to start off setting things up incorrectly.
Thank you.