Hello all hoping someone can help out here.
I’m trying to setup a WYSIWYG text editor for a flash text CMS.
the first bit I’m stuck on is loading a saved text file here is the current actionscript that loads the text into the editor
// import FlashArea class
import FlashArea.FlashAreaClass;
//FlashArea instance
var area : FlashAreaClass;
//create instance of FlashArea
area = FlashAreaClass.create(this, "flashArea", 2000);// be sure that on level 2000 you have not other movie!
//set coordinates for FlashArea object
area._x = 10;
area._y = 80;
//set size for FlashArea object
area.setSize(430, 350);
//load options
area.loadOptions("resources/FlashArea/options/default.xml");
//set text
area.setHtmlText('<P ALIGN="LEFT"><FONT FACE="Arial" style="font-size:14px" COLOR="#000000"><B>Flash area:</B></FONT></P><P ALIGN="LEFT"><FONT FACE="Arial" style="font-size:14px" COLOR="#000000">Type some more text into it.</FONT></P><P ALIGN="LEFT"><FONT FACE="Arial" style="font-size:14px" COLOR="#000000"></FONT></P><P ALIGN="LEFT"><FONT FACE="Arial" style="font-size:14px" COLOR="#000000"></FONT></P>');
stop();
How can I change this line to load in my text file?
area.setHtmlText('myText.txt');
Any help would be appreciated as I’ve purchased this script but there is absolutely no support that goes with it.
Cheers