Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

createTextField Load on Main stage out side movie

Status
Not open for further replies.

wrighterb

Programmer
Feb 20, 2007
80
US

I have this in actions on a movieclip



function displayImage() {

if(targetRotation>=1453 and targetRotation<=1482) {
createTextField("dynamic_txt", 4, 100, 100, 150, 30);
dynamic_txt.text = "Here's some text";
loadMovieNum(txtImageURL6.text,2);
}

The text will not load on the main stage, the image comes in fine!!!!

I also want to load a var Bio1=Heres some text
Instead of hard coding the text

ANy Ideas



 


I put this on the main time line

createTextField("dynamic_txt", 4, 100, 100, 150, 30);
dynamic_txt.text = "Here's some text";

I need it on the Movie
 
Did you get it?

Also I have been trying this

_root.createTextField("myTextBox", 1, 1,1,400,400);
myTextBox.autoSize = "left";
myTextBox.border = true;
myTextBox.multiline = true;
myTextBox.wordWrap = true;
myLoadVars = new LoadVars ();
myLoadVars.load ("myLoadVars.onLoad = function(success) {
if (success){
trace ("your file loaded correctly");
var Bio1 = unescape(myLoadVars);
var fixedText = allText.substring(0, allText.lastIndexOf("&"));
myTextBox.text = fixedText;
}else {
trace ("error loading document");
}
};

in the main time line.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top