-
Depths
Yep, I'm still suck. So I need t have MC's stack on top of one another, throught out the building of the avatar. First is the body then the head then the eyes, etc. Well I came up with a plan to make other movieclips that they are dragged into. these are stacked on top of on another. So to clear up you enter the site you pick a body drag and drop it into an area, then click a button that takes you to a new frame where you pick a head drag and drop it then next eyes but the MC from the head frame disappears when the button is clicked. Also later in the movie. Any thoughts? Here is the one action frame that is causing me isuues I can't attach the whole thing or I would If you have help you can e-mail me @ saltmediaandproductions@gmail.com
stop();
var iconDepth:Number = 3;
var down:Boolean = false;
_root.onMouseDown =function(){
if (_root.canvas3_mc.hitTest(_root._xmouse,_root._ymouse)){
var x:Number = _root._xmouse;
var y:Number = _root._ymouse;
_root.holder3_mc.moveTo(x,y);
down = true;
}
};
_root.onMouseUp = function(){
down = false;
};
var currentColor:String = "F7E7D9";
_root.createEmptyMovieClip("holder3_mc",300);
function draw() {
_root.holder3_mc.lineStyle(0, parseInt(currentColor, 16), 100);
var x:Number = _root._xmouse;
var y:Number = _root._ymouse;
_root.holder3_mc.lineTo(x, y);
}
_root.onMouseMove = function() {
updateAfterEvent();
if (down && _root.canvas3_mc.hitTest(_root._xmouse, _root._ymouse)) {
draw();
}
};
window1_mc.gotoAndStop("color");
window2_mc.gotoAndStop("admin");
var topClip:MovieClip = window1_mc;
function swap(clip:MovieClip){
clip.swapDepths(topClip);
topClip = clip;
};
function changeColor(color_index:Number){
_root.currentColor = colors[colors_index];
}
function buildIconList(){
var spacing:Number = 24;
var iconY:Number = 365;
var iconX:Number = 14;
for (var i = 0; i < _root.icon3_mc._totalframes; ++i) {
var newName:String = "icon3_mc" + i;
var clip:MovieClip = _root.icon3_mc.duplicateMovieClip(newName, 10000 + i);
clip.gotoAndStop(i + 1);
clip._x = iconX + i * spacing;
clip._y = iconY;
clip.homeX = clip._x;
clip.homeY = clip._y;
clip.icon3_btn.onPress = function(){
startDrag(this._parent);
};
clip.icon3_btn.onRelease = function(){
stopDrag();
_root.iconReleased(this._parent.child);
if (this.dropTarget == "canvas3_mc") {
_root.canvas3_mc.gotoAndStop();
};
}
}
}
buildIconList();
function iconReleased(icon:MovieClip){
if(_root.canvas3_mc.hitTest(_root._xmouse, _root._ymouse)){
++iconDepth;
var newName:String = "object" + iconDepth + "_mc";
var clip:MovieClip = icon.duplicateMovieClip(newName,iconDepth);
clip.gotoAndStop(icon._currentFrame);
clip.icon3_btn.enabled = false;
clip._xscale = 150;
clip._yscale = 150;
}
icon._x = icon.homeX;
icon._y = icon.homeY;
}
function clearContent() {
_root.holder3_mc.clear();
for (var i = 0; i <= iconDepth; ++i) {
var name:String = "object" + i + "_mc";
_root[name].removeMovieClip();
}
iconDepth = 3;
}
next_mc.onRelease = function(){
gotoAndStop("nose");
}
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks