|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
||||
|
||||
|
this works ...
----test.fla----- on(press){ loadVariables("test.txt",this); } on (release) { box = testtext; } ---test.txt---- testtext=hallo |
|
#3
|
|||
|
|||
|
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? |
|
#4
|
|||
|
|||
|
flash5
thx for your help! |
|
#5
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > loadVariables delayed? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|