A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: need an iphone-style draggable scrolling banner - help!

  1. #1
    Junior Member
    Join Date
    Apr 2005
    Location
    dorset, UK
    Posts
    9

    need an iphone-style draggable scrolling banner - help!

    hi

    working on an internal web project and the project sponsor really wants the home page to have an "iphone" style draggable scrolling content.

    the only place i have seen an example of it is here: http://graphictherapy.com/index2.html

    but i have no idea how i'd go about making it!

    Have dabbled in flash over the years, and have a good understanding of AS2, and basic AS3 - with some serious research and practice i could probably make this, but there are major time constraints on the project so it would be great if someone has a similar script to share please!

    There is budget to pay so it doesn't have to be a free script!

    thanks so much for your help,

    pagetta

  2. #2
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    Here, I found this script on the net. I myself did achieve the iPod effect, but the drag and drop was always affected by the registration point of the moving movieclip. Hopefully, I found this script, which ignores the registration point and moves the movieclip just like you want it:

    Actionscript Code:
    mc.onEnterFrame=function(){
        if(drag == true){
            XDrag = _xmouse;
        }
        mc._x -= (mc._x +(XMouse - XPress) -XDrag)/4;
    }

    mc.onPress=function(){
        drag = true;
        XMouse = _xmouse;
        XPress = mc._x;
    }

    mc.onMouseUp=function(){
        drag = false;
    }

    Hope this helps you, and I take no credit for the script above
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  3. #3
    Junior Member
    Join Date
    Apr 2005
    Location
    dorset, UK
    Posts
    9
    Thanks for your reply, much appreciated, however my flash is a little rusty - i'm not sure i understand where or how i would use this?!

    i did find this script but i can't work out how to make it horizontal scroll instead of vertical

    http://www.shinedraw.com/text-effect...agging-effect/

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