myHTMLdata= This is a bold text And this text is in Italic This is a href="linkhttp://desigm.yesky.com">link> to the bbc website. Here is a little list of colors : RedGreenBlueHere is a little image that links to the bbc site href="linkhttp://desigm.yesky.com"> src="bird.jpg">
把上面内容存为myHTML.txt。 3、新添加图层,选择第一帧,按F9输入如下指令:
myLoadVars = new LoadVars(); myLoadVars.onLoad = function() { // the data is loaded in the myLoadVars object as a property of the object myText.htmlText = myLoadVars.myHTMLdata; } myLoadVars.load("myHTML.txt");