Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > Simple Stuff (Newbies)

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-09-2001, 12:45 PM   #1
Kahrax
Registered User
 
Join Date: Jun 2001
Location: Tromsų, norway. Waaaay up norht.
Posts: 1
Default

I have a textfile named "welcome.txt". Inside the text file it says: Message=Hello world

Inside my flash animation I have a textbox with variable set to "text". Then I have this code in my first frame of the scene (the scene is one frame long):

loadVariables ("Welcome.txt","0");
text = Message:

But it does NOT show up when I test my movie! My textbox i BLANK?? Why? What did I do wrong?
Kahrax is offline   Reply With Quote
Old 06-10-2001, 05:03 AM   #2
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

hmmm see yesterday I posted an aanouncement, which is still up today, and entitled -everyone read. in that announcement I said that this question is asked so often I thought I'd show everyone. obviouslyl you missed that bit
load actions are performed last in a sequence of code and as such your variables aren't loaded yet, so you can't set another variable to the value of Message on the same frame/button.
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why everyone hates (or should hate!) mircosoft stealthelephant General Chat 100 01-07-2005 01:17 PM
XML File Corruption?? chrisemersonnc General Chat 11 10-11-2004 12:36 PM
Variables in Externally Loaded SWF files btagalen ActionScript 1.0 (and below) 1 07-21-2004 05:45 PM
Dynamic Loading of MPEG files baburaj ActionScript 1.0 (and below) 0 01-31-2003 09:30 AM


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