PDA

View Full Version : Are Arrays only shown with CGI?


rgerrets
01-04-2002, 10:01 AM
Hi all,

Another question from a complete newbie :(

Is it my imagination or is the result of an array not shown in Flash 5?

to be more precise I will explain the following; I have created an array and I want to have one of the values in this array shown in a (dynamic text) TextField. However, when I do CTRL+ENTER it never happens.

Am I correct in saying that the result of an array is not shown online and only via a cgi bin? If so, please tell me so as I have already wasted five days on nothing.

Oh, yeah, by the way this is my script in frame 1 on a button:

on (release) {
stop ();
bands = ["AEROSMITH","DIRE STRAITS","QUEEN"]
var bandname = bands;
bandname[2]._root.name.scrollname;
}

Many thanks in advance.

sfa
01-04-2002, 12:36 PM
an array value can be displayed in a textbox. Just name a text box to for example "textbox" and just put a piece of script -

ex. _root.textbox = bands[2];

the textbox will display the value of the variable "textbox".

SFA

tg
01-04-2002, 03:24 PM
you will run into problems, if your dynamic textbox is behind a mask, and you have not imbedded the fonts(i believe they need to be imbedded if behind a mask).
a really simple thing to check also (i am really embarassed to admit this), but check the font color in your text box and make sure it is not the same color as your back ground color(it only happened to me once...honest).