I oringally wrote this in Flash 8, and ported to Flash 8.5. There is no reason it couldn't go back.
http://www.jessewarden.com/archives/2006/01/diesel_battlefi.html ----- Original Message ----- From: "Dimitrios Bendilas" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, February 14, 2006 4:55 PM 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

