Flasher Archive

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


Subject: FLASH: naming and retrieving variables
From: Olga
Date: Wed, 19 Apr 2000 20:56:08 +0100

I'm trying to dynamically duplicate mcs that retrieve variables from CGI.
My mc consists of a variable text field that receives category name, and
then a variable text field that receives a subcategory name which is
duplicated according to the number that the CGI returns. So I have:

Category:
-subcategory1:
-subcategory2:

and so forth. I cannot duplicate text fields, obviously, without putting
them each in their own mc, so the subcategory fields are each housed in an
mc which are named according to the following: header&"_subcategory_"&n,
header being the Category it is under, and n being the number given to the
mc when it is duplicated. (copy #1, copy #2, etc).

The CGI is returning values like:
Category=Arts&Arts_subcategory_01=Ceramics&Arts_subcategory_02=Painting&Arts
_subcategory_03=Sculpture

My problem comes in when I try to set the value of the text field within the
named subcategory mc to the value of the header&"_subcategory_"&n
(Arts_subcategory_01, etc)-- instead of printing the value of that variable
(ceramics, painting, etc) the text field actually prints the name
(header&"_subcategory_"&n ) in the text field. So instead of:

Arts
-Ceramics
-Painting
-Sculpture

I am getting:
Arts
-Arts_subcategory_01
-Arts_subcategory_02
-Arts_subcategory_03

I've tried loading my variables at the main timeline and from within the
subcategory mc with the same result. I've tried to be as clear as
possible-- can anyone see a flaw in my logic patterns here? :) The
subcategory text fields are named "text", and I've tried the following: Set
Variable: "text" = (header&"_subcategory_"&n) and that, like I said, prints
the name only. Is there way to rename a text field to an expression or..?
This seems like it should be terribly easy but I can't seem to get it to
work!

pleaseplease
olga
On Programing: "I gave it a specific set of commands with a specific set of
parameters, which I suppose must have been too much for it because they were
all blatantly and maliciously disregarded."


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: naming and retrieving variabl, Helen Triolo

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