1 Reply Latest reply on Jul 6, 2006 8:09 AM by samdl1

    Sliding Pages

    Westside London Level 1
      Hi anyone, just trying to get this sliding windows tutorial to work
      I can get it all working but I want to change the scripting so instead of when you click the button and the pages slide in I want it to happen when you rollover the buttons any ideas on what to change (is it the scripting- i have tried changing it to on rollOver) but this isnt working

      Thanks For any help (the code is below)

      onClipEvent (load) {
      _x = 0;
      _y = 0;
      spd = 8;
      onClipEvent (enterFrame) {
      _x += (endX-_x)/spd;
      _y += (endY-_y)/spd;

      _root.page1.onRelease = function() {
      endX = 0;
      endY = 0;
      _root.page2.onRelease = function() {
      endX = -220;
      endY = 0;
      _root.page3.onRelease = function() {
      endX = -440;
      endY = 0;
      _root.page4.onRelease = function() {
      endX = -660;
      endY = 0;

        • 1. Re: Sliding Pages
          for a start you should use relative not absolute references...believe me having just dealt with someone who now faces hours of arduous code searching its well worth it!.

          onRollOver should work fine...place a trace in one of the functions and see if it is called if it is I have no idea other than to change the setup from an onEnterFrame to a setInterval method.

          If it is not tracing try using the event broadcast/listener model to see if it helps.

          If not or if you need more help on the things ive mentioned repost and well go from there