
Welcome Guest
|
#1
|
|||
|
|||
|
Loading external txt file to dynamic text box...
Hi,
I'm using the following actionscript to load an external txt file into a dynamic text box: Actionscript:
//create new instance of LoadVars object
myData = new LoadVars();
//define callback for onLoad event
myData.onLoad = function(success){
if (success) {
//target the window1_mc clip's text fields
//and inform Flash that data will be html
content_txt.htmlText = this.content;
} else {
//what to do in case of data error
content_txt.htmlText = "<b>error loading variables</b>";
}
}
//now load the text file
myData.load("y3/spring/content.txt");
stop();Everything works fine, apart from a problem I'm having with some simple html in the txt file. I'm just using a simple <a href> tag to create a link, however the link is: http://www.domain.net/webdav/servlet...s7ag596PwI&POS This simply doesn't want to work... the imported text when I run the swf just stops where the link should be. If I trim the link down to just http://www.domain.net, it works fine, so obviously Flash doesn't link all the extra stuff after that! The text box is set to render html, and all other html formatting in the txt file works fine. Anyone got any bright ideas? Last edited by Scottae : 05-12-2005 at 03:15 AM Reason: Format with AS tags |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Loading HTML into a dynamic text box? | sah302 | Flash MX ActionScript |
3 | 02-02-2006 11:51 AM |
| Loading external txt files into Flash text scroll boxes | Doug | Flash MX |
3 | 06-03-2005 06:52 PM |
| Preloading external text file | Mack Irony | Flash MX ActionScript |
1 | 11-21-2004 01:06 PM |
| Dynamic Text file | mvrbabu | Flash MX ActionScript |
22 | 11-15-2002 02:35 AM |
| loading variables from an external text file | stereomike | Flash 5 Actionscript |
6 | 09-05-2000 09:34 PM |




