Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-02-2007, 10:40 AM   #1
jockmahon
Registered User
 
Join Date: Jul 2006
Posts: 18
Default dynamic mc prob

Hi
i have an array of mc's created at runtime, each mc has textin puts after the mc is created i want to set the text of the inputs to a value

mcArray[i].time1TextInput.text = 1;

the value seams to be get set ie if i do a trace on
mcArray[i].time1TextInput.text i get "1"

but the mc is not displaying / updating the visual i have tryed

redraw on the input but to no avail

any ideas
jockmahon is offline   Reply With Quote
Old 10-02-2007, 11:28 AM   #2
seejee
Logic Seeker
 
Join Date: Oct 2003
Posts: 64
Send a message via MSN to seejee Send a message via Yahoo to seejee Send a message via Skype™ to seejee
Default

when you get any string value as mc name or variable name. when you get back his value as mcname or var name then you use eval() function for the changing of string type. try to use below code and let me know it is workable for you or not:

Code:
mcArray[i].time1TextInput.text = 1;

//trace mcArray[i].time1TextInput.text
trace(eval(mcArray[i]+".time1TextInput").text);
seejee is offline   Reply With Quote
Old 10-02-2007, 11:46 AM   #3
jockmahon
Registered User
 
Join Date: Jul 2006
Posts: 18
Default

well this is not really the problem cause if i do

trace(mcArray[i].time1TextInput.text),
i get "1" printed in the output

its just the textinput does not display this
jockmahon is offline   Reply With Quote
Old 10-02-2007, 11:48 AM   #4
jockmahon
Registered User
 
Join Date: Jul 2006
Posts: 18
Default

here is the creation of the mc's

for(var i = 0; i < 5; i++)
{

mcArray[i] = this.attachMovie("marTimings", "marTimings_mc"+i, this.getNextHighestDepth(), {_x:10, _y:180 + (i * 60)});
}
jockmahon 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
XML Dynamic Text Prob 73minstrel ActionScript 2.0 1 12-02-2006 03:57 AM
PC/Mac font friendly dynamic HTML text help needed! ironchefmoto ActionScript 2.0 2 09-16-2006 12:27 AM
Text in MC not displayed when put to Dynamic? SebCH Simple Stuff (Newbies) 4 01-13-2006 03:34 PM
Dynamic text under dynamic mask w/ MS+ scroller....... G-Rard B Other Flash General Questions 0 12-22-2004 11:13 PM
prob. w/ external dynamic text loader hognav2t ActionScript 1.0 (and below) 3 08-15-2004 02:13 PM


All times are GMT. The time now is 07:44 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.