• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 246
  • Last Modified:

Using LoadVars to load large text data values from within flash

HI,

I currently am using a text file to load vars into flash. The text file contains many values and a lot of text. This works fine but I want to secure this text file by having its' contents already existing in Flash to use, is this possible?

for instance one of the variables in the text file is used for a html field in flash, eg:  f030txt="<ol><li>Place bcrossways under chest</li><li>Prop up on elbows</li><li>Sag chest down</li><li>Look straight ahead</li></ol>";

f030 gets loaded into a html field. But when I retrieve this variable (f030txt) by other means apart from load vars in text file it will only display the first bullet point.

I hope this is clear enough.

Thanks
0
Chris_Granger
Asked:
Chris_Granger
  • 2
  • 2
1 Solution
 
sokhodomCommented:
hi chris,

Try to enable the "Render Text as HTML" property for the text field.

Sokhodom
0
 
Chris_GrangerAuthor Commented:
Yes, render as html is on which is why this part is displayed and rendered correctly: ="<ol><li>Place bcrossways under chest</li>"  the rest of the string isn't though. But if I load this text into a loadvars object from a text file I can access all the variable strings in the object and they display correctly. I really need to stop people from getting easily to this text, is there another way for me to secure this file, both on mac and pc?  Such as Flash encryption?

Thanks
0
 
sokhodomCommented:
>> But when I retrieve this variable (f030txt) by other means apart from load vars in text file it will only display the first >>bullet point.

What is other means apart from load vars?
Sometimes, we choose "single line" instead of "Mulitple Lines". May be you could try the "Multiple Lines" property of the text field?

Sokhodom
0
 
Chris_GrangerAuthor Commented:
The other means I use which works is with the object:

      loadVarsText = new LoadVars();
      loadVarsText.load(assetdir + "data");
      loadVarsText.onLoad = function(success) {
            if (success) {
                    exfield.html = true;
                    mufield.html = true;
                    exfield.autoSize = true;
                    mufield.autoSize = true;
                    var exdescription = "<b>Instructions</b><br>" + eval("this." + ex);
                    myexfield = exdescription;
                    if(eval("this." + mu) == VOID){  // if no associated clip
                          mymufield = "";
                    }else{
                          mymufield = eval("loadVarsText." + mu);
                    }
            } else {
                      trace("not loaded");
            }
      };


The only other method for this to work would be to set every variable as globals at the start of movie and relate to them without an object..

This will be what i must do....   :-(

Thanks for the help
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now