sorry another AS Q :E
- Started
- Last post
- 25 Responses
- Mojo0
NT removes some code that is after that coma:
{ _x:newx2,_y:newy2 }
when I use getnexthighestdepth it does exactly that - it finds the next highest depth and puts the content there.
when I use i, it keeps using the same depth as if i is not increasing..
- Mojo0
i = i + 1;
_root.eagle.duplicateMovieClip... + i, i);^ that code overwrites the the same MC
i = i + 1;
_root.eagle.duplicateMovieClip... + i, getNextHighestDepth() );^ this code works perfect. But it wont let me specify a max amount of dupes at one time.
hmm.. there must be a solution..
- joyride0
could you post the fla or all the code your working with right now.
First things: You never set i = x so i is NaN from the beginning.
But you might have set that elsewhere so I would like to see the fla is I could
- weestu0
I got this working in MX:
mouseClick = new Object();
Mouse.addListener(mouseClick);
i=0;
mouseClick.onMouseDown = function () {
newx2 = _root._xmouse;
newy2 = _root._ymouse;if (i>3){
i = 0;
_root.attachMovie("eagle","eagle... + i, i ) ;
_root["eagle"+i]._x=newx2;
_root["eagle"+i]._y=newy2;
} else {
i++;
_root.attachMovie("eagle","eagle... + i, i ) ;
_root["eagle"+i]._x=newx2;
_root["eagle"+i]._y=newy2;
}
}To use attachMovie you need to set up linkage from the library.
- Mojo0
wow! I was just about to give up! Thank you so much weestu!
wow.. works perfect.. thank you .. I will learn from your code!
you people are so frigging awesome!