Scroll question

Hi!
How can I make to possible scrolling with the mouse wheel the embedded flash site? If the mouse is over the flash the mouse wheel doesn't work, but on the sides where flash isn't, the scroll is working. Or is there a command, which control the mouse wheel? For example: if I scroll the wheel on my mouse, a variable change his value. How can I do it? ActionScript2
Thank you for the answers,
WISION

Thank you! The actionscript is working, but only if I click with my mouse into de flash window. How can I solve the mouse scroll without clicking into the falsh?
var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(mousescroll) {   
    trace(mousescroll);
Mouse.addListener(mouseListener);
Thank you for your answer,
WISION

Similar Messages

  • Mouse wheel scroll question

    Hello to all, i want to make the following question:
    I have a canvas which has a vertical scroll bar, inside this
    canvas there is a textarea control which has a vertical scroll bar
    too. That i want to make is:
    when the user put the mouse cursor on to the textarea and use
    the mouse wheel i want to make scrolling the canvas and not the
    textarea.
    any help will be appreciated.
    thanks in advance

    Thanks for the replies. The solution to my question is this:
    package
    import flash.events.MouseEvent;
    import mx.controls.TextArea;
    public class newTextArea extends TextArea
    public function newTextArea()
    super();
    override protected function createChildren():void
    super.createChildren();
    textField.mouseWheelEnabled = false;
    private var scrollAnterior:Number=-1;
    private var direccionScroll:Number=0;
    override protected function
    mouseWheelHandler(event:MouseEvent):void
    var dirScroll:int = event.delta <= 0 ? 1 : -1;
    if (verticalScrollPosition==scrollAnterior &&
    direccionScroll==dirScroll)
    return;
    scrollAnterior=verticalScrollPosition;
    direccionScroll=dirScroll;
    super.mouseWheelHandler(event);
    it works fine, but now i want to make the same with the
    canvas, but seems is not possible override mouseWheelHandler event
    in it. Any help or suggestion ?
    Thanks in advance

  • Parallax scrolling question.

    I am new to the parallax scrolling so if this sounds like a stupid question or that I am thinking of this wrong please forgive. Ok say I have a box that comes in and stops at a point as I scroll down but at another point further down the page I want it to move again and again and so on. How would I do such a thing?

    Currently their is no way for you to stop an image and then have it restart its scrolling effect :-/ you could probably achieve something similar by using multiple images but that just gets messy and adds to longer loadtimes.

  • A scrolling question...

    I have a very long time table which spans 365 days with many rows below the table header. In this table, the first row holds the table header i.e. "TABLE 1" ALIGN = center. How do I make the table header name to scroll along when I scroll the table to the right?
    A short segment of the code follows:
    <DIV ALIGN=center><B>Table 1</B></DIV>
    <TABLE width=3650>
    <TR>
    <TH width=100></TH>
    </TR>
    </TABLE>

    This is somehow a Java question?

  • Weird scrolling question again

    I'll try this posting again with a clearer description of what's happening.
    Every time I copy from one drive to another, the copied-to drive's scroll bar always shoots back up to the top.  For example, I have 4 data drives (all four are the same, redundant backup, etc.) that hold all my files, A, B, C and D.  I open A and one of the others, match up the scroll bar positions, then begin copying revised files.  Once one goes to B, B immediately scrolls back to the top each time and then I have to scroll back down to match where A is again.
     I'm on Mountain Lion, all updates current.  Snow Leopard never showed this behavior.
    Thanks for anyone's two cents on this one, this is aggravating to say the least.

    i cant scroll in personalize either. how did you get vertical scrolling in iTunes?
    T400
    Intel® Core™2 Duo T9400 2.53 GHz__Windows 7 Professional__3GB Memory__160GB, 7200RPM Hard Drive__14.1” WXGA+TFT-CFL__ATI Mobility Radeon™ HD 3470--

  • FC Image Gallery w/Scrolling Question

    This is probably the least of anyone's concern at this point, but in lieu of documentation and best practices, I thought I'd ask anyway.  Maybe someone from Adobe will be able to answer.  I think I've consumed every tutorial available on the internet and haven't come across this yet.
    As far as I can tell variables aren't readily available in FC (although learning MXML may resolve that), so I'm not sure how to build this.
    I'm trying to design a photo gallery, in which images can be scrolled, faded in-out, or something by clicking a NEXT and PREVIOUS button.
    The problem is knowing which image is visible at any given point.
    I've been able to accomplish this by creating a separate state for each image and then 'onclick' - transition to the next (or previous) state.  It's not working perfectly, the code generated automatically to perform the transition is slightly off and then when I go in to tweak it manually, I just make it worse.
    What I'm wondering: is this the best way to do this or is there a simpler way?
    OR am I trying to use FC inappropriately?  I initially saw FC as an alternative to learning Flash (I've been trying for months - seriously) but I'm realizing that FC's main purpose seems to be as an elevated design tool and Flash Builder is meant to inject functionality and add the FC design into the workflow.
    Should we not view FC as an endpoint?

    >>>using the onClick with the "when in " " state"
    That's what I said I was currently doing, in my post.  What I was asking is, if that's the best way to accomplish it.  If I have 100 images and 100 transitions, it's going to get messy.
    Creating separate transitions seems more like brute force rather than elegance and I can't imagine a programmer wanting to see all those transitions.
    There's another way to 'almost' accomplish this with far less code by grouping all of the images and then 'moving' them in the timeline 'onClick', but there's the snag of not knowing where you are.  I hate to say it, but a hook into javascript might be useful.
    As far as the 'slightly off' statement, I just meant that the product is a bit buggy and that's expected, so it caused me to wonder if I was even taking the right approach.  If it's the only approach then it's the right one, but I don't know, so's I'm askin.
    As I was typing in my original post, it began to dawn on me that my view of FC may be skewed.  I mentioned that I was hoping FC would enable the individual user (e.g. freelancer) to develop UI's for real world use, without learning AS3, but that may not be the case at all.  If we need to learn Flash Builder to accomplish that, then I should probably get back to learning AS3.
    I've been a programmer for 25 years, but AS3 has been kicking my butt for 6 months.  I'm trying to get away from programming to create art, but the programmer in me can't hand off the task off to someone else (much less be able to afford it.)
    A boy can dream....

  • Photo scroller question

    Hi - this ones quite comfusing for me as Im not the best at
    AS - there are three main problems i have with a horizontal photo
    scroller:
    1. I need to load the photos into the swf externally but
    without specifically naming the photos to be loaded eg. it doesnt
    matter what the jpgs are called the swf will load them all from a
    folder into the scroller. At the moment i have the thumbnail pics
    named as 1.jpg, 2.jpg etc etc and the large pics named as big1.jpg,
    big2.jpg etc all sitting in the same folder.
    The code i've got on frame 1 of the movie is the first set of
    code on the bottom of the message:
    2: When the pics are loaded in the thumbnails and the large
    pics I need them to auto resize to fit the box they are contained
    in as I want to use just 1 pic for both.
    3: Finally when the thumbnail buttons are pressed I need the
    large pics to flow into the boxes in order. So when any thumb is
    pressed out of sync the big pics will appear in sync. At the moment
    when the thumb button is pressed all 3 pic boxes are filled with
    the same pic! The code im using at the minute is attached at the
    bottom.
    Any input woill be greatly appreciated.
    Cheers

    Resizing is a different issue altogether from format.
    It's safe to scale the image in ID regardless of the format. If you look in the info panel with the image selected you'll see two resolution numbers listed, actual and effective. Actual is just the resolution at the dimensions the image was saved and is essentially irrelevant. Effective resolution is what you have at the dimensions you are currently using, and that's the number that counts. If that number is in the range that is acceptable for the type of output you are using, there is no need to resize the image in Photoshop at all.
    If you MUST resize the image, then yes, convert to something besides jpeg if that's what it is to start. And keep in mind that up-sampling won't improve image quality in general, and downsampling more than 20% or so can cause you to lose fine details (but so will scaling down).
    Peter

  • Scrolling question when using JLists

    I have a JList inside of a JScrollPane that I add items to dynamically. When a new item is added to the bottom of the list I would like the JList to somehow scroll so that the newest item is always displayed. Basically I want to anchor the vertical scroll bar to the bottom instead of the top. Anyone know how to do this?

    From the JList API:
    ensureIndexIsVisible(int index)

  • JButton unclickable and mouse scroll question

    hello,
    Is it possible to make a JButton unclickable?
    also.. Can i speed up the pace of a scroll panels
    "scroll effect" for a mouse wheel?
    Thanks,
    jd

    1) Yes. Try setEnabled(false);
    2) I think so. JComponents like JTree and JTextComponent implement Scrollable to interact with JScrollPane in an intelligent manner. Subclass the component to override the results returned by this interface to adjust the behaviour as desired.
    I'm not sure if you could change it globally though, although you could fiddle with subclassing JScrollPane to watch the effect, since it implements Scrollable itself.

  • Another mouse/horizontal scrolling question

    not to threadjack another posts thread, but i have a Kensington Expert Mouse (black four button scroll around th e trackball) i was wondering if theres a way to activate horizontal scrolling with that mouse?
    thanks!

    Two ways:
    1) Hold down Shift while turning the scroll-ring.
    2) You can set one of the buttons to switch the scrolling direction in the "Buttons" tab of "MouseWorks" system preference. In the "Scrolling" tab you can have it show the scrolling direction in the menu bar.
    Make sure you have MouseWorks 3.0
    <http://us.kensington.com/html/1385.html#mac30>

  • How can I view my Calendar on iPhone 5 in a continuous List view i.e.: View many days at a time by scrolling? Lost that ability after 7.1 upgrade.

    March 20, 2014 I updated the software on my iPhone 5 to version 7.1. After doing that, I discovered that I could NO longer view my Calendar items in a continuous list view. I can only view items I've put on my calendar under the Month view for EACH day at a time. This is Awful !  Is there ANY way I can view items in a continuous list where I can Scroll? That was available prior to this update?
    Thanks in advance for any Help and/or Suggestions.

    That helped, but still did not solve the "continous scroll" question.
    I did however discover that if you go to Search and type in a "common" letter like "s", a Continuous List view will appear.
    Any further help on how to do this as a default view would be appreciated from any and all.
    Thanks for the help and for the link paulcb.

  • Mousewheel not scrolling and config settings appear to be OK, is this a FF17 thing or what?

    Of the few solutions I have read, all talk about slowness or some other performance issue - my mouse wheel scrolling has stopped altogether and nothing I have tried works, including restarting with add-ons disabled and checking the config.

    You can set the scroll amount for the mouse wheel via mousewheel prefs on the about:config page
    mousewheel.withnokey.numlines = 2
    mousewheel.withnokey.sysnumlines = false
    Look at this pref to set the scrolling behavior with the keyboard.
    toolkit.scrollbox.verticalScrollDistance (3)
    http://kb.mozillazine.org/about:config
    http://kb.mozillazine.org/About:config_entries#Mousewheel.
    There are extensions that work both for the mouse and the keyboard to set the scroll amount, but they can only be set to scroll an amount of pixels and not to scroll one line regardless of font-size (height) of the text.
    SmoothWheel: https://addons.mozilla.org/firefox/addon/smoothwheel/
    Yet Another Smooth Scrolling: https://addons.mozilla.org/firefox/addon/yet-another-smooth-scrolling/
    [questions/942303]

  • How can I alter a calendar script to place progressive dates on every day in the calendar year?

    Is there an easy way either to alter the calendar script or create something that will allow for variable text in each day of the year?
    I am creating a calendar for a cattle rancher, and he wants to include a gestation calendar in the design.
    So...instead of the Julian date on every caledar day, he would like to include the date that a calf will be born if the cow had been bred on a particular day.  For example:  On the calendar date, January 1, in that box, another smaller date will appear - 10/9, On January 2 - 10/10 and so on. But, I need this progression to continue throughout the whole year.
    I have attempted to manually enter each date in a separate table and super impose it over the calendar, but this is very slow and very tedious. There has to be a faster way.
    I am comfortable looking at code and can often times figure out which fields to change, but I am a bit lost on this one. Where do I start?
    Please help!
    Thanks!

    That helped, but still did not solve the "continous scroll" question.
    I did however discover that if you go to Search and type in a "common" letter like "s", a Continuous List view will appear.
    Any further help on how to do this as a default view would be appreciated from any and all.
    Thanks for the help and for the link paulcb.

  • HT1386 how can jag restore my contacs in iphone 5

    hej, hur kan jag återskapa mina kontakter som jag har förlorad dem i sync?

    That helped, but still did not solve the "continous scroll" question.
    I did however discover that if you go to Search and type in a "common" letter like "s", a Continuous List view will appear.
    Any further help on how to do this as a default view would be appreciated from any and all.
    Thanks for the help and for the link paulcb.

  • HOW MANY DAYS TOOK IPHONE 5 ARRIVE ON MY HOME AFTER I ORDER TODAY ?

    Dear friends ,
    Right now apple showing 3-4 weeks shipping time. if anyone order iphone 5 how many days took it came on your home ? Did it came early ? OR Take more time than showing on apple website ? Please share your experience ( NOT TALKING ABOUT PREORDER ONLY ABOUT REGULAR ORDER EXPERIENCE ..

    That helped, but still did not solve the "continous scroll" question.
    I did however discover that if you go to Search and type in a "common" letter like "s", a Continuous List view will appear.
    Any further help on how to do this as a default view would be appreciated from any and all.
    Thanks for the help and for the link paulcb.

Maybe you are looking for

  • [Solved] How did I break my mpd decoding?

    I need help.  Sometime this Saturday mpd stopped properly decoding mp3's.  I didn't change any permissions on the files, so my assumption at this point is something that I upgraded/installed/removed broke it. mpc gives an error of ERROR: problems dec

  • Build and Capture task sequence fails at 'Prepare ConfigMgr Client for Capture' step

    The scenario is as follows: Task Sequence is a Build and Capture of Windows 7 SP1 x64 Enterprise There are 17 Applications installed split into 2 'Install Application' steps due to the 9 item limit 129 Software Updates are installed SCCM 2012 RTM I h

  • Podcast download error=9006

    Hi there, I'm trying to download podcast files which are suddenly all ending in an error message err=9006. The files are about 230MB large and when the file reaches 200-210 MB the error occurs. Downloading is done through an iMac. I checked Apple sup

  • AMD 780G Radeon HD 3200 Catalyst HDMI

    Hi, I got this gigabyte mainboard with the new AMD 780G chipset. Configured the BIOS to enable D-SUB and HDMI, installed arch with the 2008.04 RC USB stick image (wicked!) and got the newest catalyst drivers from [testing]. However I just can't get i

  • Audigy 2 ZS - How can I turn off record input monitori

    Just upgraded from SBLi've value to Audigy 2 ZS and discovered an irritating new "Feature" that was not on the SBLi've. During recording, any input source is automatically present on the card's outputs. I'm using an external audio mixer and do not ne