While reading this back, I think my answer had nothing to do with your question. But heck, might do some gooed somewhere ;)
Ben -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Smeets, Ben Sent: donderdag 12 april 2007 11:51 To: [EMAIL PROTECTED] Subject: RE: [Flashcoders] creating MovieClip frames via code? You can use e.g. the technique described below in conjunction with the onEnterFrame method of the movieclip object. It is not possible to "create" frames through AS, but it is possible to react on a frame change (a 1 framed mc also animates. It just sits on the same frame conceptually). Try something like this in frame 1 of your Movieclip to get the picture: (make sure you draw something in it to see the effect) this.onEnterFrame = function() { this._x += 1; } You see? It will animate across the screen. Hope this helps you enough to get the bigger picture. Ben -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of dr.ache Sent: donderdag 12 april 2007 0:49 To: [EMAIL PROTECTED] Subject: Re: [Flashcoders] creating MovieClip frames via code? try the following. load your grid bitmap (jpg) into an mc and mask it with a movieclip with exactly the dimensions your single sprite on your grid bitmap has. now let the movieclip under your mask change position in a way that your wanted animation bitmap looks through. got it? Newsdee schrieb: > Hi all, > > I would like to import sprites using a single source image... in other > words, take an image containing my animation in a grid, cut it up in > single bitmaps, and create an animation with it. > > I have most of the code done, but I'm not sure how on the best way to > go in order to animate the bitmaps. > > I figure the best performing solution would be to use Flash's internal > MovieClip engine, but for this I would need to find a way to add a > bitmap to different frames, on a movieclip created via code. Another > option would be to use the BitmapData copy method (from a source > array) but I get the feeling it would be too slow. > > Can this be done? I don't think in AS2, but maybe AS3 has more options... > Either way, I would be interested in knowing if anybody has attempted > something similar. > > > Thanks and regards, > Newsdee. > _______________________________________________ > [EMAIL PROTECTED] > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com http://training.figleaf.com > _______________________________________________ [EMAIL PROTECTED] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. _______________________________________________ [EMAIL PROTECTED] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ [EMAIL PROTECTED] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com