You want to use bitmap caching in combination with scrollRect. Use movieclip.cacheAsBitmap = true
Also any bitmaps you use should be smoothed. So make sure your jpg is set to allow smoothing in the library. If you are dynamically loading jpg's read this. If not read it anyway :) http://www.kaourantin.net/2005/12/dynamically-loading-bitmaps-with.html Good Luck. -Thomas -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Bendilas Sent: Tuesday, February 14, 2006 1:55 PM To: [email protected] Subject: [FlashCoders] scrollRect Hi all, I'm trying to make a very basic prototype to test parallax movement with Flash 8. Is movieclip.scrollRect what I should be using? I tried this: var bg:MovieClip = _root.attachMovie("bg", "bg", 2); var y:Number = 0; _root.onEnterFrame = function():Void { bg.scrollRect = {x:0, y:y--, width:635, height:540}; } The movieclip "bg" contains only a jpg 635x540. The movement is pretty jumpy. Should I be using BitmapData instead? I'm a bit lost! I've been searching for code samples online for the past 2 hours and I haven't found anything useful. Does anyone have a useful link for parallax or tile-based games using Flash 8 features? Performance is the key issue here, since this is going for a very big and complex game and I want to optimize it as much as possible. Thanks a lot! Dimitrios _______________________________________________ [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

