A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Enable mouse scrolling

  1. #1
    Member
    Join Date
    May 2006
    Posts
    39

    Enable mouse scrolling

    Hi newbie here,

    I am trying to find out how to enable mouse wheel scroll for the main html page that my flash file is in. The problem is once the flash file is click to navigate or whatever the mouse wheel scrolling doesn't work anymore.Only when the border is clicked where the html page is (which is a very small area) the mouse wheel scrolls the page again . Does anyone know how to do this? Thanks
    Last edited by IntruderDZ; 05-22-2006 at 03:07 AM.

  2. #2
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,490
    Got a link?

  3. #3
    Member
    Join Date
    May 2006
    Posts
    39
    yeah sure. do you think you know whats up ?


    http://users.adelphia.net/~intruderdz/MainBZ7beta.html

  4. #4
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,490
    It's working the way it should for me. Whether I click or not, the scroll wheel only works over the text box area. That's what it's supposed to do.

  5. #5
    Member
    Join Date
    May 2006
    Posts
    39
    I guess this has to be a html issue, I wasn't refering to the flash scroll component but the actual browser being able to scroll. I even tryed putting the flash in a table and a div layer but it still won't respond. Other sites with full flash are able to scroll down with the mouse wheel with out clicking on the html portions. I'm thinking about changing the height of the flash to the visible screen.

  6. #6
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,490
    Ah, I was wondering, but on my screen, there is no scroll bar for the html. Not enough content on a 1280x1024 resolution.

  7. #7
    Member
    Join Date
    May 2006
    Posts
    39
    i have found a way to make the scroll down when the user moves their mouse over a invisible button but i need help... It is by using the javascript external interface in flash but i dont know quite how to execute it.
    heres the Java:
    I have set the flash AllowScriptaccess to always.

    <script language="JavaScript">
    function scrlDwn(){
    window.scrollTo(0,690);}
    </script>


    I want it to execute when the user rolls over an invisible button area near the bottom of the screen

    heres what i tried doesn't work:

    import flash.external.ExternalInterface;
    invsblbtn.onRollOver(scrlDown);

    function scrlDown():Void {
    ExternalInterface.call("scrlDwn");
    }
    I also tried:


    invsblbtn.addEventListener("onRollOver", ScrlDown);

    function ScrlDown() {
    ExternalInterface.call("scrlDwn");
    }




    heres a tutorial but the heck if know how to make it work. http://www.communitymx.com/content/a...ge=2&cid=0922A
    Last edited by IntruderDZ; 05-24-2006 at 10:23 PM.

  8. #8
    Member
    Join Date
    May 2006
    Posts
    39
    nobody knows how to do external interface eh ?

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