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

setting duplicated MC textbox values! 1

Status
Not open for further replies.

MJB3K

Programmer
Jul 16, 2004
524
GB
Hi, i have this code so far:
Code:
on (press) {
	yPos = 0;
	for (var i = 0; i<10; i++) {
		duplicateMovieClip(_root.sData, "sDataMC"+i, i);
		setProperty("sDataMC"+i, _y, yPos);
		yPos += 42;
		//_root.sData._y+=41.6;
	}
}
how do i go about setting sData's textbox values??

it has 2 dynamic textboxes: theTitle & theDesc... how do i set these values??


Regards,

Martin

Gaming Help And Info:
 
Code:
on (release) {
    yPos = 0;
    for (var i = 0; i<10; i++) {
        duplicateMovieClip(_root.sData, "sDataMC"+i, i);
        setProperty("sDataMC"+i, _y, yPos);
        yPos += 42;
        //_root.sData._y+=41.6;
        this["sDataMC"+i].theTitle.text = "Title"+i;
        this["sDataMC"+i].theDesc.text = "Desc"+i;
    }
}



this["butmc"+i].butnum.text = "BUTTON 0"+i;
 
just one more question, how would i make the movieclip clickable??

like say i clicked duplicate number 5, how would i make it trace 5 for example?


Regards,

Martin

Gaming Help And Info:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top