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

Build name based on parameter 1

Status
Not open for further replies.

ksbigfoot

Programmer
Apr 15, 2002
856
CA
Is there a way to pass in a value and use it in a movie clip?
Eg.

Code:
function playMovie(nPic:Number) {
	
	this.pic + nPic + _mc._alpha = 0;
// Which would be translated to something like:
        this.pic1_mc._alpha = 0;
}

Thanks
 
function playMovie(nPic:Number) {
this["pic" + nPic+"_mc"]._alpha = 0;
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top