Setting scroll bar to inbisible when not needed

Here is the post again, some quotation marks came out as
letters before. This is correct version
I'm using AS 2.0, and have added a
scroll bar with instance name: ...................sb1
a dynamic text field with instance name:.... tb1_txt
an external text file named as:....................home.txt
I want to make the scroll bar invisible or transparent, when
its is not needed. I'm thinking that I may have to use the _visible
property, but not sure of the correct code to integrate this.
Any suggestions anyone?

// Note:
Create a movie clip to put the code into
Use only 2 frames
Use 2 layers
Layer 1 put the action script
Layer 2 put the textarea and the scrollbar
Put a keyframe on each frame in only the Action Script layer.
The 2nd layer should only have a keyfram on the first frame
and span both frames 1 and 2.
On the first frame (do not put a stop() method here)
- set the visibility of the scrollbar to false
- set the text content / value of the textarea
On the second frame
- Put the action script
stop();
if(textDisplay.maxscroll > 1){
textscroll._visible = true;
} // if

Similar Messages

  • Set 2520 printer to turnoff when not in use

    How do you set the printer to sleep when not in use?
    This question was solved.
    View Solution.

    Page 65 of your User Guide has all the information.
    The HP Photosmart Energy Save Mode reduces energy use by entering a sleep mode after 5 minutes of inactivity.
    The time to sleep mode can be extended to 10 or 15 minutes.
    NOTE: This feature is on by default and cannot be turned off.
    To set Energy Save Mode
    1. Touch the Setup icon.
    2. Touch Preferences.
    3. Scroll through the options and touch Energy Save Mode.
    4. Touch the desired time interval (5, 10 or 15 minutes).
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • My horizontal scroll bar went missing when I maximise the window. How do I fix them?

    My horizontal scroll bar went missing when I maximise the window. How do I fix them? I tried everything; such as auto hide the task bar. Even with this, I still can't see the horizontal scroll bar. I even tried the following and I still can't see the horizontal scroll bar.
    1) In a new tab, type or paste about:config in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste dom and pause while the list is filtered
    (3) Double-click the dom.disable_window_open_feature.scrollbars preference to switch it from false to true. By choosing true, you disable sites from deciding whether there can be scrollbars on a window, and Firefox uses its standard behavior for the page.
    If you want to always get other bars, here are the corresponding settings:
    Menu Bar: dom.disable_window_open_feature.menubar
    Navigation Toolbar: dom.disable_window_open_feature.toolbar
    Bookmarks Toolbar: dom.disable_window_open_feature.personalbar
    Please help.

    Can you post a screen shot?
    Taking a Screen shot; '''''Windows > Start >''''' search box '''''> Snipping Tool'''''.
    Save the picture(s) to your desktop. Now look at the '''Reply''' box below.
    Do you see the button under it that says '''Browse'''? Click it and then select
    the screen shot(s) from the desktop.

  • I have a disc for Photoshop CS-6 and entered the redemption code; system says I'm all set and a serial number is not needed. Install program on disc will not proceed without serial number.

    I have a disc for Photoshop CS-6 and entered the redemption code; system says I'm all set and a serial number is not needed. Install program on disc will not proceed without serial number. How do I resolved this Catch-22?

    Redemption Code Help
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

  • UIScroll Bar, Remove when not needed

    Hello,
    I just finished the 3D carousel tutorial on gotoandlearn. My
    questions is, I added a scroll bar to the rigt of the text field
    because on some of the content for the icons there is too much
    information to show up on one page. Problem is, the scroll bar
    shows up while the Carousel is spinning around as well as in pages
    (movies) that only have a couple lines of text. I'd like to know
    how to get rid if this.
    I looked up this issue on the web but most "finds" I found
    were only about removing the toolbar when there is not enough text
    to warrant a scroll bar. Keep in mind that I m less than a novice
    when it comes to script.
    Thanks all.
    SMC

    Thanks again for looking at this....
    SMC
    // bottomScrollV checks how many lines of text there are
    // So,...if you have a textfield with 10 lines of visible
    text and to show more, you need a scrollbar:
    if(sb.bottomScrollV>5){
    sb.visible = true; // show scrollbar
    }else{
    sb.visible = false; // hide scrollbar
    down_btn.onPress = function() {
    theText.scroll += 1;
    up_btn.onPress = function() {
    theText.scroll -= 1;
    import mx.utils.Delegate;
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    var numOfItems:Number;
    var radiusX:Number = 400;
    var radiusY:Number = 100;
    var centerX:Number = Stage.width / 2;
    var centerY:Number = Stage.height / 2;
    var speed:Number = 0.005;
    var perspective:Number = 100;
    var home:MovieClip = this;
    theText._alpha = 0;
    var tooltip:MovieClip =
    this.attachMovie("tooltip","tooltip",10000);
    tooltip._alpha = 0;
    var xml:XML = new XML();
    xml.ignoreWhite = true;
    xml.onLoad = function()
    var nodes = this.firstChild.childNodes;
    numOfItems = nodes.length;
    for(var i=0;i<numOfItems;i++)
    var t = home.attachMovie("item","item"+i,i+1);
    t.angle = i * ((Math.PI*2)/numOfItems);
    t.onEnterFrame = mover;
    t.toolText = nodes
    .attributes.tooltip;
    t.content = nodes.attributes.content;
    t.icon.inner.loadMovie(nodes
    .attributes.image);
    t.r.inner.loadMovie(nodes.attributes.image);
    t.icon.onRollOver = over;
    t.icon.onRollOut = out;
    t.icon.onRelease = released;
    function over()
    //BONUS Section
    var sou:Sound = new Sound();
    sou.attachSound("sover");
    sou.start();
    home.tooltip.tipText.text = this._parent.toolText;
    home.tooltip._x = this._parent._x;
    home.tooltip._y = this._parent._y - this._parent._height/2;
    home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
    home.tooltip._alpha = 100;
    function out()
    delete home.tooltip.onEnterFrame;
    home.tooltip._alpha = 0;
    function released()
    //BONUS Section
    var sou:Sound = new Sound();
    sou.attachSound("sdown");
    sou.start();
    home.tooltip._alpha = 0;
    for(var i=0;i<numOfItems;i++)
    var t:MovieClip = home["item"+i];
    t.xPos = t._x;
    t.yPos = t._y;
    t.theScale = t._xscale;
    delete t.icon.onRollOver;
    delete t.icon.onRollOut;
    delete t.icon.onRelease;
    delete t.onEnterFrame;
    if(t != this._parent)
    var tw:Tween = new
    Tween(t,"_xscale",Strong.easeOut,t._xscale,0,1,true);
    var tw2:Tween = new
    Tween(t,"_yscale",Strong.easeOut,t._yscale,0,1,true);
    var tw3:Tween = new
    Tween(t,"_alpha",Strong.easeOut,100,0,1,true);
    else
    var tw:Tween = new
    Tween(t,"_xscale",Strong.easeOut,t._xscale,100,1,true);
    var tw2:Tween = new
    Tween(t,"_yscale",Strong.easeOut,t._yscale,100,1,true);
    var tw3:Tween = new
    Tween(t,"_x",Strong.easeOut,t._x,200,1,true);
    var tw4:Tween = new
    Tween(t,"_y",Strong.easeOut,t._y,320,1,true);
    var tw5:Tween = new
    Tween(theText,"_alpha",Strong.easeOut,0,100,1,true);
    theText.text = t.content;
    var s:Object = this;
    tw.onMotionStopped = function()
    s.onRelease = unReleased;
    function unReleased()
    //BONUS Section
    var sou:Sound = new Sound();
    sou.attachSound("sdown");
    sou.start();
    delete this.onRelease;
    var tw:Tween = new
    Tween(theText,"_alpha",Strong.easeOut,100,0,0.5,true);
    for(var i=0;i<numOfItems;i++)
    var t:MovieClip = home["item"+i];
    if(t != this._parent)
    var tw:Tween = new
    Tween(t,"_xscale",Strong.easeOut,0,t.theScale,1,true);
    var tw2:Tween = new
    Tween(t,"_yscale",Strong.easeOut,0,t.theScale,1,true);
    var tw3:Tween = new
    Tween(t,"_alpha",Strong.easeOut,0,100,1,true);
    else
    var tw:Tween = new
    Tween(t,"_xscale",Strong.easeOut,100,t.theScale,1,true);
    var tw2:Tween = new
    Tween(t,"_yscale",Strong.easeOut,100,t.theScale,1,true);
    var tw3:Tween = new
    Tween(t,"_x",Strong.easeOut,t._x,t.xPos,1,true);
    var tw4:Tween = new
    Tween(t,"_y",Strong.easeOut,t._y,t.yPos,1,true);
    tw.onMotionStopped = function()
    for(var i=0;i<numOfItems;i++)
    var t:MovieClip = home["item"+i];
    t.icon.onRollOver = Delegate.create(t.icon,over);
    t.icon.onRollOut = Delegate.create(t.icon,out);
    t.icon.onRelease = Delegate.create(t.icon,released);
    t.onEnterFrame = mover;
    function moveTip()
    home.tooltip._x = this._parent._x;
    home.tooltip._y = this._parent._y - this._parent._height/2;
    xml.load("icons.xml");
    function mover()
    this._x = Math.cos(this.angle) * radiusX + centerX;
    this._y = Math.sin(this.angle) * radiusY + centerY;
    var s = (this._y - perspective)
    /(centerY+radiusY-perspective);
    this._xscale = this._yscale = s*75;
    this.angle += this._parent.speed;
    this.swapDepths(Math.round(this._xscale) + 100);
    this.onMouseMove = function()
    speed = (this._xmouse-centerX)/20500;
    }

  • I have somehow added a divider to my browser screen. When I open firefox there are 2 screens with seperate scroll bars. I am not using the add on feature that allows screen seperation. I cannot find a command to remove the 2nd screen.

    The Left side of my browser screen has a seperate screen with it's own scroll bar. I can use the curser to pull this screen half way to the right. it has a seperate web page than the main window. I can't find a command to remove it. I did have a yahoo toolbar I thought may have been involved.

    Hi,
    Please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode.] Safe mode disables the installed '''Extensions''', themes ('''Appearance''') and '''Plugins''' in '''Tools''' ('''Alt''' + '''T''') > '''Add-ons'''.
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
    [http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]

  • Conditions in Purchase Order - No scroll bar/Sales Tax value not in mmr

    Hello,
    I am stuck in a weird problem where I have created a Condition Calculation Schema, assigned it to Schema group and assigned that schema to vendor, but when i open my condition in the PO, it does not give me scroll bar i.e. I have calculation Schema with around 10+ conditions, but when I try to put all the conditions in PO at one time, the scroll bar doesnot come up and without it, I cannot view all my conditions in the PO. Its saving the conditions though as seen in report, but cannot display it in PO without the scroll bar. Any ideas?
    Another assignment is that sales tax value and % should not increase the mmr value at time of GR, but when I do GR its adding the sales tax value to mmr value, my requirement is just Gross price be added to mmr, not sales tax value/%. I tried the Statistical checks in Calculation Schema, but to no vail, at GR the sales tax value is being added to the mmr record. Any ideas?
    Lots of points awarded for answer/answers.
    Any clue will help
    Thank you/Afshad
    Edited by: Afshad Irani on Jan 14, 2009 10:27 AM
    Edited by: Afshad Irani on Jan 14, 2009 2:32 PM
    Edited by: Afshad Irani on Jan 15, 2009 6:19 AM

    Q Another assignment is that sales tax value and % should not increase the mmr value at time of GR.
    Ans:
    Dear Afshad,
    Reference to your question, you need to do few settings in your Condition Type and Pricing Schema, if you need Sales Tax value & % not to include in your Material value.
    1 - In SPRO, Check that in your condition type, Control data 2 tab, Accruals check box should not be selected.
    2 - In your Calculation Schema, against your condition types for Sales Tax % and Sales Tax Value, select the check box for Manual & Statistics.
    3 - Also in your Calculation Schema, you should not select any account key in AccKey (Account Key) and in Accruals colomns.
    If any one of these setting is not defined, the valuation price for your material will be increased due to the fact that your settings for Condition type and Calculation Schema is allowing the same to hit the value of your material directly.
    Hope it works for you.
    Regards
    Jibran

  • SCROLL BAR OF WINDOW DOES NOT APPEAR IN THE WEB

    Hi OTN Memebers,
    My problem is in one of my form the canvas type is content. It's
    size is bigger than that of windows size. When i run the form in
    the client/server enviroment, the window scroolbars are
    displayed. But when i try to deploy the from on the web , the
    window scroll bars are not displayed.
    Any solution for this. Please help me out.
    Feroz.
    null

    Feroz A. Khan (guest) wrote:
    : Hi OTN Memebers,
    : My problem is in one of my form the canvas type is content.
    It's
    : size is bigger than that of windows size. When i run the form
    in
    : the client/server enviroment, the window scroolbars are
    : displayed. But when i try to deploy the from on the web , the
    : window scroll bars are not displayed.
    : Any solution for this. Please help me out.
    : Feroz.
    This is a VERY OLD known problem with the product. The solution
    is to put your content canvas on a stacked canvas and give the
    stacked canvas scroll bars. Then disable the windows scroll
    bars, otherwise you'll end up with 2 sets in Client/Server
    mode...
    Mark
    null

  • I hate the absence of scroll bars and I'm not using Firefox until you fix it

    when I navigate to a new site, the scroll bar is unavailable. If I grab the teeny tiny little corner to resize, the scroll bar becomes available. I want to be able to just grab the scroll bar.

    Thank you very much for your answer, but that's not it.
    I'm using OS 10.5.8. There is no General heading under preferences, and I looked under any settings that could have a scroll bar preference, and didn't find an option to keep scroll bars on.
    There is nothing in Firefox preferences that governs the appearance of scroll bars either. So I remain convinced that it's a setting built into Firefox.

  • Horizontal scroll bar in FF4.0 not working

    The horizontal scroll bar takes the full width of the window and doesn't allow to scroll left or right.
    Occurs only in FF4, page displays fine in FF3.x, IE, Chrome.
    try http://bajkionline.com/krecik.html

    I have removed FF4 and reinstalled FF3.6.16 and the search bar works fine - like it always did.
    Shame I cannot use FF4.
    Would you please let me know when a solution to this problem can be found? BTW I do have Copernic Desktop Search installed. When I installed FF4 I did get a message that the Copernic add-in was not compatible. Could this be a problem?

  • Scroll bar in JPopupMenu when used in JList

    Hi,
    I want variable list (not combo box) where I can add multiple JMenuItems through JPopupMenu. I have created JList in JScrollPane and I have added multiple JMenuItems one by one but in output I am getting the list of JMenuItems without scrollbar. There is no way I can navigate to last JMenuItem in the JList. Could someone help me with integration of JList, JMenuItems, JPopupMenu with scroll bars?
    Below given is the sample code. GUI components have been added through Netbeans.
    public void updatePopUp()
    final JPopupMenu menu = new JPopupMenu();
    menu.setBorder(null);
    menu.setAutoscrolls(true);
    JMenuItem item = new JMenuItem("JMenuItem");
    item.addActionListener(this);
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    item = new JMenuItem("JMenuItem");
    menu.add(item);
    menu.setVisible(true);
    menu.pack();
    varList.add(menu);
    // Set the component to show the popup menu
    /* this.addMouseListener(new MouseAdapter() {
    public void mousePressed(MouseEvent evt) {
    if (evt.isPopupTrigger()) {
    menu.show(evt.getComponent(), evt.getX(), evt.getY());
    public void mouseReleased(MouseEvent evt) {
    if (evt.isPopupTrigger()) {
    menu.show(evt.getComponent(), evt.getX(), evt.getY());
    }

    I was going to say try setting the preferred (or maximum) size of the scrollpane to force it to be no larger than you want.
    But ...
    a) I don't see you putting menu items in a JList in that code. You are putting them directly into the popup menu (aka, the normal way to do things).
    b) Calling setAutoscrolls() on the JPopupMenu does not make it a "scrollable" menu. It is for supporting dragging of components in a scrollpane (usually). Read the API docs.

  • Drag JTabbedPane out of the main Frame and set scroll bars for the tabs

    hi ,
    Iam working on a Swing application . In it i have Six Tabs added to a single JTabbedPane. all the tabs are different class files . is it possible to drag any of the tabs out of the frame.
    how to add scroll bars for the tabs individually. i have tried adding JScrollPane to the main frame and add the JTabbedPane to the Scrollpane . the scroll bar was not visible and i have tried adding
    all the six tabs to the individual JScrollPanes and add the six scrollpanes to the TabbedPane .
    only the scroll arrows are visible , when i minimised or resized the application the scrollbars were not appearing .
    could any one help me to solve the above two problems.

    just trying.....
    public void mouseDragged(MouseMotionEvent e){
    // this event should be activated only when the Drag goes out of scope of the parent JFrame which i dont know how
    Component c=JTab.getComponentAt(JTab.getSelectedIndex());
    JFrameobj.getContentPane().add(c,"Center");
    }

  • My scrolling bar stopped working when I updated to firefox 3.6.9 and adobe flash 10.1

    Never had a problem before, but when I just updated to Firefox 3.6.9 my scrolling bar stopped working. It still works in vistas explorer and wordperfect, just not firefox.
    At the same time I updated to adobe flash 10.1 (I think). Whatever the latest version is.
    thnaks

    I have the same problem. I have never had a problem with Firefox before, and use it as my main browser. However recently, after updating to 3.6.8, its been crashing all the time. Up to 20 times an hour. Usually it occurs when I click a link from a Google search, or in Yahoo. Even if I send in a crash report and restart Firefox, it crashes as soon as the same page is brought back up, or the same link is clicked. I have also had it crash when completely idle. Its very frustrating as it is my favorite browser. I've resorted to using Google Chrome for the time being.

  • My scroll bar keeps freezing when a open a second PDF in a session.

    When I open the first PDF, it works just fine, but when I open a second PDF, either in a second tab or just later on in the same session, the scroll bar remains locked at the top.

    try doing a SMC RESET if you've tried repair permissions...

  • Missing Scroll Bar with Maverick - when will it change?

    What are the plans to fix this problem?  I am about ready to get rid of my Apple MacPro because I am not finding Apple to be a "consumer friendly" company any longer.  Whoever made this decision, made a VERY bad one.  I waste so much time trying to get the scroll bar because I there is no longer  way to keep it visible.  Terrible way to lose a customer...guess my thoughts of an IPhone or IPad just went down the tubes, too!  Ha..I am trying to "scroll down" to send this...that was 2 minutes ago!

     (Apple menu) > System Preferences > General.
    The Discussion you referenced was for Safari's Preferences, not System Preferences, and the reply in that Discussion is correct.
    guess my thoughts of an IPhone or IPad just went down the tubes, too!
    Scroll bars are similar in both appearance and behavior in iOS.

Maybe you are looking for

  • 3rd Party AIFF loops tempo changes from loop library and Logic session

    Hi there, Hope somebody out there can help me out! I've recently purchased some 3rd party loops, some in AIFF and some in WAV (Which I have converted to AIFF using the Apple Loops Utility), and i have been able to get these into the logic Loop librar

  • Premature end of File

    Hi all, I got the following exception while doing file to file scenario  (with file content conversion) Operation Mapping INF137917_OM_Medicine Runtime error Runtime exception occurred during application mapping com/sap/xi/tf/_INF137917_MM_Medicine_;

  • Know any Good Flash Training DVD's For Sale?

    Hi, I am looking to purchase some good flash training videos for building sites and animation. I was wondering if anyone could recommend any. Thanks

  • Write from labview to excel test results

    Hey I need some help to get my results from pressure transmitter to excel in 2 rows.  The program works like when you get into case 9 like in picture and it will stay there in 15 min. I want it to log the pressure from my DAQ from 0-15min into a exce

  • AFP quits repsonding, servermgrd crashed on Server 10.4.8

    My system, XServe G4, running a clean install of Server 10.4 updated to 10.4.8 via Software Update, running file sharing and web services. Recently Users could not authenticate to the server, they saw a msg stating waiting for authentication and the