[Flashcoders] DuplicateMovieClip - type mismatch error

2006-04-18 Thread David Farrell
Hi all, I'm trying to duplicate a clip and I'm getting a type mismatch error. Undoubtedly it's something silly but I'm not getting anywhere fast. I have a flash movie with a .as file attached. In the .as file, I want to copy a movie clip. Inside the _customerArt array are two MovieClips

Re: [Flashcoders] DuplicateMovieClip - type mismatch error

2006-04-18 Thread David Farrell
Hi all, I'm looking into this further and although I don't have a solution - I have a bit more info. The following code creates a duplicate of my movie clip: *var testClip:MovieClip; var david:MovieClip = _customerArt[0]; testClip = david.duplicateMovieClip(testClip,

Re: [Flashcoders] DuplicateMovieClip - type mismatch error

2006-04-18 Thread p G
Try doing this .. var testClip:MovieClip; var david:MovieClip = _customerArt[0]; testClip = david.duplicateMovieClip(testClip, this.getNextHighestDepth()); On 4/18/06, David Farrell [EMAIL PROTECTED] wrote: Hi all, I'm looking into this further and although I don't have a solution - I

Re: [Flashcoders] DuplicateMovieClip - type mismatch error

2006-04-18 Thread David Farrell
It does nothing. I don't see what you suggested differently to what I was already doing? The asterix in my code was my email client's way of demonstrating bold. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search

Re: [Flashcoders] duplicateMovieClip() ?

2006-03-15 Thread zikey Han
I can invoke this function in my Scene. function alot(max) { var basename:String = circle_mc; for (var i = 0; imax; i++) { _root.it_mc.duplicateMovieClip(basename+i, this.getNextHighestDepth ()); _root[basename+i]._x = 100+i*5; _root[basename+i]._y = 100+i*5; }

[Flashcoders] duplicateMovieClip() ?

2006-03-14 Thread Edward Hotchkiss
hmm ... // begin code function alot(max) { var basename:String = circle_mc; for(var i = 0; i max; i++) { _root.it_mc.duplicateMovieClip(basename+i, this.getNextHighestDepth() ); _root[basename+i]._x = 100 + i*5; _root[basename+i]._y = 100 + i*5; } } the trace returns 0. why are my

[Flashcoders] duplicateMovieClip question

2006-01-04 Thread Johan Lopes
The snippet below takes one clip and duplicate it in rows and columns - simple stuff. _root.attachMovie(seat,seat_mc,_root.getNextHighestDepth(),{_x:-1000,_y:0}); function createSeats (xSpacing:Number,ySpacing:Number,rows:Number,cols:Number) { var xSpacing:Number = xSpacing; var

Re: [Flashcoders] duplicateMovieClip question

2006-01-04 Thread Marc Hoffman
Johan, The list does not accept attachments, so your gifs didn't come through. It isn't clear to me what kind of rotation you're looking for -- the same applied to every clip, or something else. Please post the gifs to a URL, or send a more thorough description of what you need to happen.