A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Scrolling paragraph within a page?

  1. #1
    Alec Quig
    Join Date
    Jun 2003
    Location
    bloomington, IN
    Posts
    43

    Scrolling paragraph within a page?

    Hey all,

    I'm a designer, and my partner/developer is done with all of this page except for the paragraph text portion:

    http://www.alecquighardworker.com/aqhwSite_1.jpg

    I'd prefer for the text to be in that designated white space and the user to be able to scroll down, to the easier option: the text going below the images and flowing as far down with the page as it needs to. Of course, we don't want to use frames, and I'd like to use the small, simple triangle buttons I made (see image).

    Does anyone have any info on how this can be done, and with what (java, flash, etc)? I would very much appreciate!

    Thanks,

    Alec

  2. #2
    Spinal Tap's Road Manager
    Join Date
    Sep 2006
    Location
    Purgatory
    Posts
    86
    you want everything to stay in the same place on the page except the paragraph text right?

    so when you click that down arrow the text scrolls down and the picture and menu buttons stay where they are?

    if so, one way of doing this having the entire paragraph written then put a mask over it so people can only see the text in that mask area

    then when the person pushes the scroll down button you can have


    on(press){
    _root.onEnterFrame = function(){
    textSymbolName._y -= 10;
    }

    on(release)
    {
    _root.onEnterFrame = null;
    }


    the "textSymbolName._y -= 10;" means the following:
    - textSymbolName: the name of the symbol your text is in
    - _y -= 10: moves the symbol down 10 pixels (i think it's pixels..)

    the _root.onEnterFrame stuff means you can keep your finger down on the mouse for a continuous scroll


    NOW! this is the first time i've helped someone with code, so it'll be either right... or extremely wrong

    you can test it out and see how it goes or just wait for someone to confirm/correct me

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