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 derfloh 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
Joined
Apr 15, 2002
Messages
856
Location
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;
}
 
Thanks Bill,
Star to you.
ksbigfoot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top