Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-06-2004, 05:43 PM   #1
rogerandout
Registered User
 
Join Date: Sep 2002
Posts: 9
Default loading external variables into text field

This is probably easy but I can't see it -
On the main timeline I've got a text field and I want the content to be loaded from an external text file. The text in the text file is the value of a variable. I use loadVariablesNum to load the variable and use the text method to assign the variable to the text field instance.
The problem is - when I test the movie the play head runs through the movie once before the text appears, instead of straight away. Why is this ?
rogerandout is offline   Reply With Quote
Old 01-06-2004, 05:48 PM   #2
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,106
Default

your probably trying to assign the text its value before the external file is loaded... with mx, its preferable to use LoadVars() object instead of loadVariablesNum/loadVariables.
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Old 01-08-2004, 06:31 PM   #3
rogerandout
Registered User
 
Join Date: Sep 2002
Posts: 9
Default

Thanks for the nod in that direction - got it working now using LoadVars
rogerandout 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 Off
HTML code is Off

Forum Jump


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