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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input text 1

Status
Not open for further replies.

valladares

Technical User
Jun 25, 2007
2
AE
I need help with input text box.
I want to load a movie from Library into main stage.
if input box = 1 or dynamic text box = 1
loadMyMovie
is this possible?
 
Hello, first click left-mouse button on the movieclip icon in the library panel, then choose linkage, then you see an windows box, make the first and third checkboxes true, and
write in the Identifier textbox = mc , and click ok.
And make to your stage a textBox, make the textbox instance name = txt , and make a new button, make the button instance name = btn . and write this code below:

//When We click btn.
btn.onRelease = function(){
//If txt text = "Hello".
if(txt.text = "Hello"){
//Show the movie on the stage.
attachMovie("mc", "mc1", 0);
mc1._y = 100;
}
}

Hope this helped you.
 

Thankx Khoshaba for you help. I improved the code a bit but it works great, thanks a lot.

Btn.onRelease = function() {
//If txt text = "1".
if (txt.text == "1") {
//Show the movie on the stage.
attachMovie("01_mc", "01", 4);
tab1._y = 0;
tab1._x = 0;
} else {
(txt.text="00");
unloadMovie(01);
}
};
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top