Flasher Archive

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


Subject: Re: FLASH: How to change the name of textfield object?
From: John Croteau
Date: Sat, 13 Nov 1999 15:59:12 GMT

Hi Guys,

> >I want change the name of a textfield object.
> >I try to modify it with the command --> Set property("TextField1",Name) =
> >"newName", but its not work
There is no property for the name of a text field, there is no way to
dynamically change the variable associated with a text field and there
is absolutely no need to have either.

If your text field has the variable set to Display you can easily set
the variable Display to equal another variable or series of variables.
In the following we assume you have a series of text variables with
names Text1, Text2 etc.

Set Variable: "Display" = Text1

Or set the Text display based on what Button you press
by placing a set variable in each button such as:
Set Variable: "Button" = "3"

Then call the text to be displayed with:
Set Variable: "Display" = Eval("Text" & Button)

The Eval function combines strings and then returns the value of that
string.
So it substitute Button with its value 3 and concatenates that with Text
and then that will be equal to:
Set Variable: "Display" = Text3


--
Coming Soon Flash 4 Web Animation F/X and Design
http://www.amazon.com/exec/obidos/ASIN/1576105555/flashcentral
----------- -----------------------
John Croteau croteauaterols [dot] com (mailto:croteauaterols [dot] com)
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Load Variables question, Andrea Rizzi

Replies
  Re: FLASH: How to change the name of tex, Mr Cooper

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