Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: declaring variables
From: josh on
Date: Fri, 23 Mar 2001 19:37:13 -0000

Hello,

sometimes when I duplicate movieclips and then try and assign them
variables, the variables only seem to stick if I have a text field in them
with that variable name. Is this a problem with declaring variables?
Should I declare them somewhere else first?

Here is the duplication code:

duplicateMovieClip ("_root.errorbox", "error1", 10);
with (_root.error1) {
_x = 350;
_y = 60;
var errormsg = "type dog in here";
var line = "_root.line1";
}

the var errormsg is set fine because there is a textfield with that variable
name
the var line only sticks if there is a text field for it. I tried to preset
the var on load, but that seemed to overwrite its value after thhe one in
the if statement was set...

Apologies if this has been asked before. I have only just subbed, and the
archives don't seem to be searchable. I am collating them in a searchable
space for the future.

josh on




[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]