PDA

View Full Version : Need Help with Movie clip Values


ralba1998
01-03-2003, 09:34 PM
I am duplicating a movie with ..



rowDivide = 550/10;

for (i =0; i < 4; i++) {
duplicateMovieClip(_root.fillCat.theCategory, "mc" + i,i);
clipName = _root.fillcat["mc" + i];
trace(clipName+ "\n");
if (i == 0) {
_root.fillcat["mc" + i].category = newName;

setProperty(_root.fillcat["mc" + i], _x, _root.fillCat.theCategory._x);

clipname.onMouseDown = function() {
trace(clipname+".onpress");
trace("this button works");
}

}else{

newCoord = rowDivide * i;

setProperty(clipName, _x, _root.fillCat.theCategory_x);
clipName.category = newName;
clipName.counter = clipName._x;
clipName.limiter = clipname.counter + newCoord;
//trace(clipName.counter);

clipName.onEnterFrame = function() {//used to slide animate

if (this.counter < this.limiter) {
this.counter= this.counter + 10;
this._x = this._x + 10;
//trace (this._x);
} else {
delete this.onEnterFrame;
}

};

clipname.onMouseDown = function() {
trace(clipname+".onpress");
trace("this button works");
}


}



for some reason .. all the buttons that appear have the same value.. is not the i on duplicate movie clip supposed to change the level?

what can I do to make them all independent values?

What am I doing wrong? I read up on levels and duplicate movies a million times and read all the post I can and I am still frillin confused.

here is what I get on output for all the buttons..

_level0.fillCat.mc3

Thanks..

Ray

ralba1998
01-03-2003, 11:38 PM
Are my questions that hard that no one visiting this site can answer? Do my questions make any sense at all? I mean, I have posted a several questions online already and I have yet to get any answers... I know this is a free service, however, when I code in PHP and other languages, the forums I take part in usually give a very fast response... Does a donation help? and if so, what is the suggested donation..


Ray

annexion
01-04-2003, 06:14 AM
Post the FLA, it's hard to tell what you are working with.

Thanks.