Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 12-01-2005, 09:49 AM   #1
mparmpedas
Registered User
 
Join Date: Jun 2005
Posts: 8
Default Textbox variable referring to array

I want a textbox variable to refer to a certain member of an array. I.e. i have a people[...] array and i want the name textbox variable to refer to people[i]. Any ideas? Entering people[i] in the variable field on textbox properties doesn`t work. Any ideas?
mparmpedas is offline   Reply With Quote
Old 12-01-2005, 09:52 AM   #2
finchou
not working
 
finchou's Avatar
 
Join Date: May 2005
Location: Paris
Posts: 514
Default

ActionScript Code:
_level0.yourTextField.text=people[i];
if you want it to follow the value of the array element you have to put a movieclip somewhere with that on it :
ActionScript Code:
onClipEvent(enterFrame){ _level0.yourTextField.text=people[i]; }
finchou is offline   Reply With Quote
Old 12-01-2005, 09:53 AM   #3
mparmpedas
Registered User
 
Join Date: Jun 2005
Posts: 8
Thumbs up

thx finchou
mparmpedas is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
variable in array brendanww ActionScript 1.0 (and below) 1 07-30-2005 03:47 AM
Array index variable not stored in dynamically created buttons --onRelease() problem? bittman ActionScript 2.0 3 12-17-2004 03:00 PM
problem creating mc instance names inside a function jasonyen ActionScript 2.0 10 12-08-2004 12:01 AM
Changing a variable in an array. Beirut ActionScript 1.0 (and below) 4 05-01-2003 03:25 PM
Displaying an array in textbox victorysshadow ActionScript 1.0 (and below) 10 03-12-2003 03:53 PM


All times are GMT. The time now is 02:30 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.