LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-28-2003, 08:35 AM
kenisswell kenisswell is offline
Registered User
 
Join Date: Jul 2003
Posts: 10
Rep Power: 0
kenisswell is on a distinguished road
???Dynamic Text - change text box variable on click

Help.
I need to have a text box display text from a txt file based on which item is clicked. One text box but multiple strings in the txt file (same text box with a changing VARIABLE based on a click.) How do I set the variable on the Dynamic Text instance so it displays the correct string from the text file. Or is there a totally better way to do this?

(heres an example)
Code:
 names.txt
 &firstname1=bob
 &firstname2=Fred
 &firstname3=joe

loadVariablesNum("names.txt", 0);
on (release, releaseOutside) {i = 2;}

User clicks box 2 and some how I set my Dynamic Text var to firstname1 (i.e. firstname+i) Result: Hi my name is Fred
How do I set up my text box to get or change its variable dynamically?

(also seems like the same question)
Quote:
Hello,
Is it possible to change the name of the variable in a text field dynamically?

I have a movie named "Box" which is loaded after a button is pressed on the main timeline. "Box" has a text field with the variable name "text". I am loading the variables to populate the text field from a text file.
Can I change the name of the text field variable according to which selection has been made? For example. When I click one button on the main timeline in my Flash movie, it loads my movie named "Box" with a text field populated by the variable "bios". When I click another button in the same timeline it loads the same movie "Box", only this time the text field variable needs to be "people".

Is this possible?
Thanks all,
Damien
__________________
Ken S
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
dynamic text box appearing before called and not fading in 47rickym Flash CS3 / Flash 9 3 02-01-2009 02:21 PM
Get the text from a dynamic text box redneon Actionscript 2.0 1 10-31-2006 06:21 PM
Dynamic text rendering vs. static text nullptr General Flash 2 03-10-2005 06:07 PM
Creting input textfield denizci2000 Flash MX 5 12-15-2004 08:58 PM
can't load external text file into dynamic text box Darkware Flash MX ActionScript 4 04-11-2004 01:47 AM




All times are GMT. The time now is 07:20 AM.