PDA

View Full Version : Variables


manan
08-01-2001, 06:28 PM
I got a problem with variables its like what will "box" + 2;
be .box is a movie clip instance its used often like this in duplicatemovie clip and its damn confusing .

Hollywood_Dave
08-01-2001, 06:44 PM
My recommendation is to check out the tutorials. Try this one for starters:

http://www.actionscripts.org/tutorials/beginner/variables/index.shtml

This site has several useful tutorials on the subject of variables. I guarantee if you look at these for a bit, things will fall into place.

There is one thing for certain with Flash: everything is within the realm of possibility. The question is, do you have the will to learn it.

Jesse
08-02-2001, 01:11 AM
flash has datatype like any other language but it's not very strict about them. "box" is a string and 2 is a number but Flash knows it can't convert "box" into a number so it goes the other way, converting 2 into a string ("2") which is then concatenated (added to the end of) to "box".
thus: "box" + 2 = "box2"