Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 17th, 2003, 10:56 AM
Froggy82 Froggy82 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Hamburg(Germany)
Posts: 3 Froggy82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Froggy82 Send a message via AIM to Froggy82 Send a message via Yahoo to Froggy82
Question loadVariables delayed?

could it be that flash delays the loading of an external files data?

the following code produces, that only the second click on the button fills a dynamic textbox (named box) with the data from the file:

----test.fla-----
on (release) {
loadVariables("test.txt",this);
box = testtext;
}
---test.txt----
testtext=hallo

am i doing something wrong? or is the loading performed parallel to the parsing of the script and not through the file yet?
Comments on this post
Gran Roguismo agrees!

Reply With Quote
  #2  
Old January 17th, 2003, 11:12 PM
bambam's Avatar
bambam bambam is offline
macho member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 207 bambam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 40 sec
Reputation Power: 6
this works ...

----test.fla-----

on(press){
loadVariables("test.txt",this);
}


on (release) {
box = testtext;
}

---test.txt----
testtext=hallo

Reply With Quote
  #3  
Old January 19th, 2003, 07:22 PM
freddydoesphp freddydoesphp is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2000
Posts: 669 freddydoesphp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
It works but its not correct. The reason is becasue you can't use the variables until the txt file is actually loaded. The best way is to load the variables into an empty movie clip and then use the onClipEvent (data) handler.


Code:
on(press){
   loadVariables("test.txt",_root.loader);
} 


ON _root.loader

Code:
onClipEvent(data){
   _root.box = this.testtext;
} 



By the way are we using Flash MX or Flash 5?

Reply With Quote
  #4  
Old January 25th, 2003, 07:02 AM
Froggy82 Froggy82 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Hamburg(Germany)
Posts: 3 Froggy82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Froggy82 Send a message via AIM to Froggy82 Send a message via Yahoo to Froggy82
flash5

thx for your help!

Reply With Quote
  #5  
Old April 23rd, 2003, 07:20 PM
srDeveloper srDeveloper is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 2 srDeveloper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question loadVariables delayed / Or limitations

Can you load a dynamic asp page that builds a node navigation using javascript / dhtml or is this only for text, I have tried but the variavble then shows the sorce and not the actual results; I also have made sure the text box is set to dynic text and HTML.

Did I reach a limitation in Flash5.

please email me at URL

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > loadVariables delayed?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway