Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-23-2006, 04:42 PM   #1
Registered User
Join Date: Apr 2006
Posts: 1
Question Differences with LoadVars in Flash 8?

I am trying to load text from a text file using LoadVars. The text has HTML tags in it for formating, and I am assigning a CSS to it as well to ease some of the formating. Pretty standard. If I publish my flash project as Flash 8, LoadVars seems to pick up the carriage returns in the text file, and add those carriage returns to the HTML formating. The result is the loaded text with a lot of extra whitespace in it. If I then publish the same project as Flash 7, it works as I would expect and doesn't pick up the carriage returns in the text file.

What has changed in Flash 8 to cause this? Anyone know? Is there an easy way around this problem besides stripping out all the carriage returns in the text file? I would hate to do that since it makes maintaining the text files much more cumbersome.

Here is the code I am using for those that want to know:
var loadText:LoadVars = new LoadVars();

loadText.onLoad = function(success) {
if (success) {
content_txt.htmlText = this.contentText;

var contentStyle = new TextField.StyleSheet();
content_txt.styleSheet = contentStyle;
Any help or guidance would be appreciated.
Thank you.
vanboke is offline   Reply With Quote

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Optimizing Flash Web Sites for Search Engines rockcoastmedia General Chat 19 03-29-2009 09:31 PM
loadvars <-> flash php TRPlace ActionScript 2.0 0 03-19-2006 11:54 PM
scrollBar on Flash Exchange cdeg Components 5 05-03-2004 07:13 PM
loadVars in flash player 6 for pocketpc 2003 question? ryran ActionScript 2.0 3 04-01-2004 11:30 AM

All times are GMT. The time now is 04:43 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.