LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-11-2005, 09:43 AM
merkin51 merkin51 is offline
Registered User
 
Join Date: May 2005
Posts: 2
Rep Power: 0
merkin51 is on a distinguished road
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
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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




All times are GMT. The time now is 09:44 PM.