A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Parallax Scrolling

  1. #1
    Senior Member
    Join Date
    Mar 2006
    Posts
    139

    Parallax Scrolling

    The answer is probably a resounding 'NO', but worth a shot...

    i'm using

    Code:
    _root.bannerwith = getProperty(_root.rear, _width);
    _root.bannerheight = getProperty(_root.rear, _height);
    _root.frontwith = getProperty(_root.front, _width);
    _root.frontheight = getProperty(_root.front, _height);
    _root.middlewith = getProperty(_root.middle, _width);
    _root.middleheight = getProperty(_root.middle, _height);
    _root.rearwith = getProperty(_root.rear, _width);
    _root.rearheight = getProperty(_root.rear, _height);
    
    _root.windowSizeX = getProperty(_root.mouser, _width);
    _root.windowSizeY = getProperty(_root.mouser, _height);
    
    // x pos
    _root.Diff_frontX = (_root.frontwith - _root.windowSizeX)/-11;
    _root.Diff_middleX = (_root.middlewith - _root.windowSizeX)/-9;
    _root.Diff_bannerX = (_root.bannerwith - _root.windowSizeX)/-7;
    _root.Diff_rearX = (_root.rearwith - _root.windowSizeX)/-6;
    
    // y pos
    _root.Diff_bannerY = (_root.bannerheight - _root.windowSizeY)/-9;
    _root.Diff_frontY = (_root.frontheight - _root.windowSizeY)/-9;
    _root.Diff_middleY = (_root.middleheight - _root.windowSizeY)/-9;
    _root.Diff_rearY = (_root.rearheight - _root.windowSizeY)/-9;
    to create a parallax scrolling effect when the mouse is moved.
    Just wondered if there was a simple way to make it ease between positions rather than uniformly move?

    Thanks!

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    This is a tough one without any file to see and scrutinise, perhaps this might help you http://www.freeactionscript.com/2009...vement-effect/

  3. #3
    Senior Member
    Join Date
    Mar 2006
    Posts
    139
    Thanks Fruitbeard,

    i'll take a look at that link!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center