i created dynamic clips and attached a movieClip to them:
i added a button to each clip:Code:for (i=0; i<6; i++) { this.createEmptyMovieClip("targetClip"+i, this.getNextHighestDepth()); _root["targetClip"+i]._x = i*20; _root["targetClip"+i].attachMovie("btnM"+i, squere, this.getNextHighestDepth()); }
and it doesnt recognize :_root["targetClip"+storedName]._yCode:for (var m:Number = 0; m<11; m++) { this["targetClip"+m] = addBehaviour(m); } function addBehaviour(m) { this["targetClip"+m].onRelease = function() { pressed(this._name); }; } function pressed(storedName) { storedName = storedName.slice(10, 12); _root["targetClip"+storedName]._y = 400; }
i dont understand what i am doing wrang?





Bookmarks