A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: Smooth vertical scrolling problem !!!

  1. #1
    Member
    Join Date
    Jan 2004
    Location
    israel
    Posts
    90

    Smooth vertical scrolling problem !!!

    Hi everyone

    I have created with flash 6 nice smooth vertical scroller but it not works with flash version 8

    please help, i have attached the source code

    Thank's ahead
    David
    Attached Files Attached Files

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    I just opened it in FLASH 8 and tested it..it scrolled for me (dont why you had all those extra frames in there either)

  3. #3
    Member
    Join Date
    Jan 2004
    Location
    israel
    Posts
    90
    first of all thanks Whispers for your replay

    ya, it work's for you because you are testing it with with publish flash 6 version...
    if you go to File>publish settings>(type)flash - and than choose version for flash player 8
    and than ok and test - it wouldn't be work... the reason ? i don't know

    (about extra frames it's only for testing, i have to put there images and bitmap texts, but help me first to get him works)

    david

  4. #4

  5. #5
    Member
    Join Date
    Jan 2004
    Location
    israel
    Posts
    90
    in root, layer "scroller_bg" there is a movieclip that inside it there is a 3 frames with AS...

  6. #6
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    yeah i found it....it was ina code clip located OFF stage.. (I have it in its OWN layer now) I check it out..

  7. #7
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    yeah i found it....it was ina code clip located OFF stage.. (I have it in its OWN layer now) I check it out.. but right off the top of my head...all the code that is used is depricated code..

  8. #8
    Member
    Join Date
    Jan 2004
    Location
    israel
    Posts
    90
    have you any recommendation for me about this problem ?

  9. #9
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    well I would suggest:

    1.) using code that ISNT old (use current methods)
    2.) in AS 2.0 code is CASE sensative and you didnt have same instancenames as you did in the code..

    anyways...I got it to work... delete that WHOLE MC that has those 3 frames of code in it...

    and put this ON the scrollbar movieClip
    code:

    onClipEvent (load) {
    oldY = 0;
    newY = 0;
    currentY = 0;
    }
    onClipEvent (enterFrame) {
    currentY = _root.dragMC.buttonMC._y;
    newY = oldY + (currentY - oldY)/8;
    _root.scrolledmc1.scrolledMC._y = newY;
    oldY = newY;
    }



    and take the startDrag code OFF the button and put it in frame 1 like this:
    code:

    this.onPress = function() {
    startDrag("", false, 0, -264, 0, 0);
    }
    this.onRelease = function() {
    stopDrag();
    }




    here is the .fla I had working...

  10. #10
    Member
    Join Date
    Jan 2004
    Location
    israel
    Posts
    90
    Thank you whispers
    it work's excelent now,

    Best regards
    David

  11. #11
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    I think you will find that it cuts off the last 50 pixels or so of the "scrolledClip" (never could get it fixed)

    cheers.

  12. #12
    Member
    Join Date
    Sep 2003
    Location
    UWW
    Posts
    68
    Make special note about the case sensitivity that one had me going for a minute.
    Last edited by althe3rduww; 10-03-2006 at 10:14 AM.
    "the grass isn't greener, you just don't have to mow it."
    www.flashevolved.com

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