Switching from a vertical to horizontal scroller

I am attempting to modify an example file that I found from a vertical to horizontal scroller.
I changed the movie clip to horizontal, but can someone help me to figure out
what I need to change to get the arrows to scroll the movie clip horizontally.
Please view the attached example....
Thank you for your help!

Ok...I switched the x's to y's and the height's to widths.  Here is the code that I have now:
(The dragger seems to fly everywhere in the file now though....any help is greatly appreciated!)
fscommand("allowscale", "false");
bar.useHandCursor = dragger.useHandCursor=false;
space = 20;
friction = 0.9;
speed = 4;
x = dragger._x;
top = main._x;
bottom = main._x+mask_mc._width-main._width-space;
///////////no x y values ////////////////////////
up_btn.onPress = function() {
     myInterval = setInterval(moveDragger, 18, -1);
down_btn.onPress = function() {
     myInterval = setInterval(moveDragger, 18, 1);
up_btn.onMouseUp = down_btn.onMouseUp=function () {
     clearInterval(myInterval);
dragger.onMouseUp = function() {
     this.stopDrag();
     drag = false;
bar.onMouseUp = function() {
     drag = false;
///////////end no x y values ////////////////////////
dragger.onPress = function() {
     drag = true;
     this.startDrag(false, this._y, this._parent.x, this._y, this._parent.s+this._parent.bar._width-this._width);
     dragger.scrollEase();
bar.onPress = function() {
     drag = true;
     if (this._parent._xmouse>this._x+this._width-this._parent.dragger._width) {
          this._parent.dragger._x = this._parent._xmouse;
          this._parent.dragger._x = this._x+this._width-this._parent.dragger._width;
     } else {
          this._parent.dragger._x = this._parent._xmouse;
     dragger.scrollEase();
moveDragger = function (d) {
     if ((dragger._x>=x+bar._width-dragger._width && d == 1) || (dragger._x<=x && d == -1)) {
          clearInterval(myInterval);
     } else {
          dragger._x += d;
          dragger.scrollEase();
          updateAfterEvent();
MovieClip.prototype.scrollEase = function() {
     this.onEnterFrame = function() {
          if (Math.abs(dx) == 0 && drag == false) {
               delete this.onEnterFrame;
          r = (this._x-x)/(bar._width-this._width);
          dx = Math.round((((top-(top-bottom)r)-main._x)/speed)friction);
          main._x += dx;

Similar Messages

  • Horizontal scrolling in a JTable with fixed-size columns

    Hello,
    I have come to a roadblock concerning the following issue. Perhaps someone can share their ideas...
    I have a JTable with three fixed-size columns. I implemented a JScrollPane with vertical and horizontal scrolling. However, the text inserted into the last column is too long to fit in the specified column width. I would like to be able to scroll the table so that I can view all of the text in the last column. Right now, the text cuts off and ends with three dots (...). Is there a way in which a horizontal scroll bar can be implemented to view all the text in the last column?
    Here is a portion of my code:
    num_of_rows_Table2 = (int) Math.pow(3, num_of_vars);
    String[] colunmNames_Table2 = {"Decimal Identifier", "Ternary Identifier", "Cancellation of nonimplicants"};
    dataModel2 = new DefaultTableModel(colunmNames_Table2, num_of_rows_Table2);
    SpaceOfTermsTable = new JTable(dataModel2);
    for (int z = 0; z < num_of_rows_Table2; z++)
    SpaceOfTermsTable.setRowHeight(z, row_height);
    SpaceOfTermsTable.setBounds(new Rectangle(x1_Table2, y1_Table2, width_of_pane2, height_pane2));
    SpaceOfTermsTable.getTableHeader().setReorderingAllowed(false);
    for (int i = 0; i < 2; i++)
    TableColumn col = SpaceOfTermsTable.getColumnModel().getColumn(i);
    col.setMinWidth(colwidth_Table2);
    col.setMaxWidth(colwidth_Table2);
    col.setPreferredWidth(colwidth_Table2);
    TableColumn lastcol = SpaceOfTermsTable.getColumnModel().getColumn(2); lastcol.setMinWidth(lastcol_Table2);
    lastcol.setMaxWidth(lastcol_Table2);
    lastcol.setPreferredWidth(lastcol_Table2);
    SpaceOfTermsTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    scrollPanel2 = new JScrollPane(SpaceOfTermsTable, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    scrollPanel2.setAutoscrolls(true);
    scrollPanel2.setBounds(new Rectangle(x1_Table2, y1_Table2, width_of_pane2, height_pane2));
    Thanks in advance for all of the help!

    Hi, I hava a similar problem than yours - can you tell me how you sorted out yer's?

  • HT5567 My iPhone 4S has never had a screen enlarge from vertical to horizontal  I'm a new owner and want to know if there is a button to turn this feature in or it's my phone that's maybe not working correctly

    I can't turn my screen from small to large vertical vs horizontal  does not switch   I'm a new user less than a month
    How can I get my phone to do this feature ? I have to tap to enlarge but only one way won't go sideways

    double tap the home button> slide your finger in tell you come across a lock and press it

  • Horizontal scroll bar missing after switch to Apex 4 theme

    Hi,
    I upgraded Apex to 4.02 and switch my application theme from old 3.2 theme to new Apex 4.0 theme,
    I found that all the Apex 4.02 won't show horizontal scroll if the interactive report width larger than the browser windows width.
    Is this the default behaviour of all the 4.0 theme?
    How can I change it to display the horizontal scroll bar.
    Thanks
    Vincent

    How about editing the template with some css?
    something like this should fix your problems (worked fine for me)
    #two-col
    overflow: auto;
    dont forget to change the template body (Shared Components --> Templates --> Edit Page Template )
    (div class="tab-holder")
    #REGION_POSITION_04#
    (/div)
    note: I reversed the tags to ( ) because it dont shows them else
    Edited by: Blacksev on 26.01.2012 22:21
    Edited by: Blacksev on 26.01.2012 22:57
    Edited by: Blacksev on 26.01.2012 22:58

  • How do i change the mail preview in Lion from a vertical read to a horizontal read

    I just switched from Snow leopard to Lion and i don't like the way that Lion has the mail preview set up as a 3 column vertical format.  I thought in Snow Leopard you could change the set-up so it's either horizontal or vertical, but I can't seem to find that option in Lion.  I want to have the list of my email messages in the top, horizontal window and the preview of the selected message in a horizontal window below. Am I missing this option to change the view format from vertical to horizontal somewhere?

    Thank you this solved my problem also... i feel like a duffus for not figuring it out onmy own but who cares I can now get back to work instead of focalising on this... YEAH !

  • I can not change the view of Ipad from vertical to horizontal

    Since 2 days I can not move the view of the screen of my Ipad 2 from vertical to horizontal?
    rs

    On the top of your screen do you see a little padlock with a circle around it? If so, that's the rotation lock. There is a little switch by the volume controls that serves as either the rotation lock of an all mute. If you see the padlock, try flipping that switch to see if it allows your device to rotate.
    Is it not rotating in everything or just in a few apps? Because there are some apps out there that will not rotate, they are portrait or landscape but will not do both.
    If the switch doesn't help you can go into the settings, general and see if the side switch is set to all mute or rotation lock.
    If none of that works, try giving your device a reset. Hold down the sleep and home keys for about 20 seconds. Once you see the silver apple let the buttons go and let it reboot. See if that helps
    If not, try going into the settings and 'reset all settings'. You will need to retweak your device but it may clear things up.

  • TS3274 I downloaded the new version now my iPad won't move from vertical to horizontal screen.  Help?

    I downloaded new version &amp; now I can't change screen from vertical to horizontal.  Help!

    Try a device reset:
    *Device reset*
    Device Reset (won't affect settings/data/music/apps/etc)
    1. Press and hold (& continue to hold) BOTH the Sleep/Wake button & the Home button.
    2. Continue to hold BOTH (ignoring any other messages that may show) until you see the Apple logo on the screen.
    3. Release BOTH buttons when you see the Apple logo and allow the device to boot normally.
    Also check your side switch settings:
    http://support.apple.com/kb/HT4085

  • How do I view the Horizontal Scrolling bar and status bar at the bottom of the screen. I can only see the top menus, toolbars and vertical scroll bar?

    Before the most recent upgrade, the bottom horizontal scrolling bar and status bar appeared on my screen. Now since upgrading, I cannot see the. Anyone ideas how to restore them?

    If you haven't already, you could force-quit Quicktime by using the menu option from the desktop (finder) and choose Quicktime.
    Not sure what you have frozen on the screen, be it a failed movie, or some unusual screen shot. If you can find by date (created) you may be able to look for .mov or quicktime suffix name or other video file content to delete it.
    And you may have to restart your computer and perhaps run repair disk permissions from Disk Utility's first aid on the hard disk drive in your computer.
    Not sure if all that would help now, but it is something a few days late...!
    Good luck & happy computing!

  • Removing horizontal scroll bar from iframe

    how can i remove the horizontal scroll bar from an
    iframe when the contents does not need one.

    You don't get the horizontal scrollbar unless the contents
    need one.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "straight guy" <[email protected]> wrote in
    message
    news:e7qfk8$fbo$[email protected]..
    >
    how can i remove the horizontal scroll bar from an
    iframe when
    > the contents does not need one.

  • How do I change the reading pane or preview pane from vertical to horizontal in Mail?

    How do I change the reading pane or preview pane from vertical to horizontal in Mail?

    From the Mail menu bar click Mail > Preferences then select the Viewing tab.
    Select:  Use classic layout

  • Hi, While writing an email online using Firefox 3.6.3, I was using one of the "CTRL+left or right arrow" to move the cursor along the text. I must have pressed some other key because the display has become huge - and I can't scroll vertically or horizont

    Hi, While writing an email online using Firefox 3.6.3, I was using one of the "CTRL+left or right arrow" to move the cursor along the text. I must have pressed some other key because the display has become huge - and I can't scroll vertically or horizontally, which makes using the Mail pages of Hotmail impossible. I have since logged in using MSFT Explorer and it works fine. This problem occurs only on the Mail page of Hotmail Live not on the home page or others.
    Could you please let me know if this is a problem with Firefox, or if you have any advice on how to reset the appearance of Hotmail in Firefox?
    == This happened ==
    Just once or twice
    == While I was compiling an email in Hotmail Live

    Wow, lightning fast and absolutely right!
    Thank you so much!

  • Horizontal scrolling faster than Vertical scrolling

    I have a jscrollpane, containing a jtable as its component view. When i drag the vertical scroll bar, the painting is slower than when i drag the horizontal scrollbar. I've tried using a profiler to understand, but i didn't.
    Can anybody help me ?

    Horizontal scrolling:
    .java.awt.EventQueue.dispatchEvent(AWTEvent) 100%
    ...java.awt.Component.dispatchEvent(AWTEvent) 100%
    ...java.awt.event.InvocationEvent.dispatch() 0%
    Vertical scrolling:
    .java.awt.EventQueue.dispatchEvent(AWTEvent) 100
    ...java.awt.event.InvocationEvent.dispatch() 77%
    ...java.awt.Component.dispatchEvent(AWTEvent) 22%
    the invocatonEvent.dispatch() method call (through several methods) javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(JComponent, Image, Graphics, int, int, int, int).
    In horizontal scroll (fast), this method calls sun.java2d.SunGraphics2D.drawImage(Image, int, int, ImageObserver)
    In vertical scroll (slow), this method calls javax.swing.JComponent.paintToOffscreen(Graphics, int, int, int, int, int, int)
    So i would say that the horizontal scroll calls repaint AFTER some offscreen image buffer is calculated while, the vertical scroll fails to do that.

  • Whenever I play anything on Windows Media Player Classic, the middle mouse button does not work as a vertical scroll in firefox, but instead shows a horizontal scroll that does not scroll the web pages. How can I fix this problem?

    Hi
    I have a windows 7 and whenever I play anything on Windows Media Player Classic, the middle mouse button does not work as a vertical scroll in firefox, but instead shows a horizontal scroll that does not scroll the web pages. How can I fix this problem?
    I hope that was clear.
    Thnx

    Hello kmanthie,
    I just sent you a private message. If you are not sure how to check your forum messages, this post has instructions.
    I worked on behalf of HP.

  • Ibooks 3.1 how to change horizontal scroll into vertical scroll

    update to ibooks 3.1, the scroll mode is changed into horizontal scroll, now in my .epub books it cut so many picture in two parts and display in two pages...how to change , back to vertical mode...

    I find this maybe is the new feature only for books with Asia-Pacific words....english books is right with vertical scrolling mode...but chinese books whit horizontal scrolling mode
    why apple doesn't make a set up to change between this ..

  • HT4528 I recently downloaded ios7 and I'm getting the hang of it. However, my gyroscope stopped working.  I can't flip an image from vertical to horizontal. How do I fix this?

    My phone gyro stopped working.  How do I flip an image from vertical to horizontal?

    Hey Bill Seiden,
    Thanks for the question. I understand you are experiencing issues with the orientation of your iPhone. Let's check to make sure orientation lock is not enabled, you can do so from the Control Center:
    Lock the screen in portrait orientation - Control Center
    http://support.apple.com/kb/TI152#TI152
    Lock the screen in portrait orientation.
    Swipe up from the bottom edge of any screen to reveal Control Center.
    Tap to lock the screen in portrait orientation.
    Thanks,
    Matt M.

Maybe you are looking for

  • Changing from G5 to new Mac Pro system

    Hello Mac users, I did search the forum for answers to my question, did not find any right away. I have been using a Mac PPC G5 since 2004 or so. I am running Leopard 10.xx on this PPC. Due to requirements in software (seems more new software is for

  • Reducing project file size

    I've got a project that I'm working on. It's 7 tracks of audio and just under 4 minutes long. But the project file size is over 2 gigs! I ran the "Clean Up" option from the project management option under file. That only took it from 2.3 gigs to 2.1.

  • Magic mouse constantly disconnects and can't get it to connect without rebooting the computer.  Anyone else have this issue

    How do you solve the problem of the magic mouse constantly disconnecting?  I have changed the batteries and turn it on and off, but the only way to get it to reconnect seems to be re-starting the computer.  Any thoughts?  Thank you.

  • Monitor recomendation for editing/color corection/ grading?

    Hello I am c300 owner, and slowly learning editing and color correction on my  CS6 PP, probably later will learn to work as well in Resolve.....  anyway, when it comes to pc monitors what would u recommend? and what  should i look at when buying moni

  • Kwin Issue

    I tried enabling cover switch in system settings, but it seemed to have no effect. It just gives me regular alt tab with no thumbnails. Now I can't even get the regular alt tab to work the way it was either. After disabling coverswitch and re enablin