SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: mouse scroll

  1. #1
    SitePoint Member
    Join Date
    Feb 2012
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mouse scroll

    Hi,

    Sorry for the immature topic thing...

    I have this pressing issue.

    I have a dynamic textfield that scales according to the amount of text and dimensions of the set textfield by percentage.

    Everything works great except I am unable to link mousescroll functions to the scrollbar.

    I am currently working on making the mouse scroll wheel function in as2, perhaps to set the function to the up and down arrow.

    I will consider this... any advice? Does anyone know how to attribute mouse wheel scrolling to a coded textfield? it's not the UI scroll bar, it's dynamic but it's very simple. There is a math function within the code that simply scales the font and spacing in accordance to the amount of text inputed and available dimensions.

    Lemme know yo!

    (Thanks~)

    MonkeyBoy Johnny

  2. #2
    SitePoint Member
    Join Date
    Feb 2012
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    This is the dynamic textfield source page

    I got it from this neat post:

    http://www.swinburne.edu.au/design/t...-Flash/ID-135/

    and uh.. if it doesn't work I'll just UIscrollbar it.

    Anyone aware of a concise fix that doesn't require me to reformat the text on my page?

  3. #3
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,684
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    Here we go, this info on the scroll and mousewheel events should be of some good use for you.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

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