Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Flash Development
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 05-13-2007, 10:29 PM
  #1
tomyknoker
Paladin (Level 15)
 
Join Date: Mar 2006
Posts: 403
iTrader: (0)
tomyknoker has a little shameless behaviour in the past
Flash Won't Load HTML Text

Hi all... I can't get my text to render as HTML no matter what I do, maybe I'm just missing something simple... Here is my code:

Code:
function loadTxt(theTxt){
    var lv:LoadVars = new LoadVars();
    lv.onLoad = function(success:Boolean){
        
        if (success){
            my_text.html = true;
            my_text.htmlText = lv.txt;
			my_text.mouseWheelEnabled = true;
			my_text.selectable = true;
			my_text.multiline = true;
        }else{
            trace ("cannot load text!");
        }
    };
    lv.load(theTxt);
}
And then on frame 20 I have this:

Code:
loadTxt("text/file.txt")
It loads fine but if I add any HTML say for instance <b> the text displays up until it gets to that point and then stops... I made sure that "render Text As HTML" was also checked... But no luck
tomyknoker is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 05-16-2007, 03:56 PM
  #2
bsxiong
Warning: hawt hawt
 
bsxiong's Avatar
 
Join Date: Jul 2004
Location: Twin Cities
Posts: 1,271
iTrader: (0)
bsxiong will become famous soon enough
i'll get back to you on this, there is an easier way to do this. at work right now. don't loose hope yet.


But man, you sure are asking LOTS of questions! what kind of projects are you working on anways if you don't mind me asking?
__________________
bsxiong is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 05-17-2007, 11:11 AM
  #3
bsxiong
Warning: hawt hawt
 
bsxiong's Avatar
 
Join Date: Jul 2004
Location: Twin Cities
Posts: 1,271
iTrader: (0)
bsxiong will become famous soon enough
oh, if you have flash 8, then there is a text enhancement that uses html. you can use that, it's a lot easier. find it under the sample folder
__________________
bsxiong is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart



 
 


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



 
  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
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 09:25 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.