reset the scroll bar

I have a UIScrollBar component that is assigned to a textfield that can have its content changes frequently.  When the content is higher at the height of the textfield object, the scroll bar works as expected and shows his handful of scrolling.  When the selected content matches up to the textfield object, the scroll bar works as expected and does not show its handle to scrolling.  But when set in this state of scroll handle, he will not return to show the handle when there is news that it would require.

I don't know what the problem is.  Is there a way to reset the scroll bar each time?

Here's some related code - although it really doesn't make much difference.  The ScrollBar and textfield are already on the scene, and the scroll bar is just work automatically.  I added this line to the end, in an attempt to reset it, but get an error:

glossary.scroller.Redraw ();

package mvc.view

{

import flash.display. *;

import flash.text.TextField;

import flash.text.TextFieldAutoSize;

import flash.text.TextFormat;

import flash.events.MouseEvent;

import flash.events. *;

import flash.net.URLRequest;

Import fl.controls.ScrollBar;

Import fl.controls.UIScrollBar;

/ final public class Content_GLOSSARY extends Sprite

{

private var app: *;

private var: data table;

private var imageLoader:Loader;

private var glossary: glossary;

private var thislocalX:Number;

private var thislocalY:Number;

private var thisstageX:Number;

private var thisstageY:Number;

private var thisCharIndex:int;

private var thisleftcharnumber:Number;

GLOSSARY CONTENT.

public void Content_GLOSSARY (appObject:Object, contentData:Array)

{

App = appObject;

data = contentData;

placeContent();

setGlossary();

}

// PLACE TEXT ///////////////////////////////////////////

public void placeContent()

{

title.text = data [0];

title.x = Number (data [1]);

title.y = Number (data [2]);

title. Height = Number (data [3]);

title. Width = Number (data [4]);

title. Multiline = title.wordWrap = app.model.booleanConvestion (data [5]);

}

// SET GLOSSARY ////////////////////////////////////////

private void setGlossary()

{

Glossary = new Glossary();

glossary.x = 450;

glossary.y = 0;

addChild (glossary);

in the glossary. Alpha_Choice.addEventListener (MouseEvent.CLICK, alphaSelect);

display the default terms ('A')

glossary.glossaryTextField.htmlText = app.model.glossaryArray [0];

}

// ALPHA SELECT ////////////////////////////////////////////////////////

private void alphaSelect(event:MouseEvent):void

{

var thisletter:String;

thislocalX = event.localX;

thislocalY = event.localY;

thisstageX = event.stageX;

thisstageY = event.stageY;

thisCharIndex = glossary. Alpha_Choice.getCharIndexAtPoint (thislocalX, thislocalY);

thisleftcharnumber = thisCharIndex;

If (thisleftcharnumber == - 1).

{

return;

}

var myrectleft:Rectangle is glossary. Alpha_Choice.getCharBoundaries (thisleftcharnumber);

in the glossary. ActiveLetterMC_Instance.x is myrectleft.x + glossary. Alpha_Choice.x;

in the glossary. ActiveLetterMC_Instance.width = myrectleft.width - 6;

If (thisCharIndex == - 1).

{

return;

}

thisletter = glossary. Alpha_Choice.text.charAt (thisCharIndex);

displayTheSelectedTerms (thisletter);

}

// DISPLAY TERMS ////////////////////////////////////////////////////////////

private void displayTheSelectedTerms (thisletter): void

{

If (thisletter is 'A')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [0];

}

If (thisletter is 'B')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [1];

}

If (thisletter is 'C')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [2];

}

If (thisletter is "D")

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [3];

}

If (thisletter is 'E')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [4];

}

If (thisletter is 'F')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [5];

}

If (thisletter is 'G')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [6];

}

If (thisletter is 'H')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [7];

}

If (thisletter is 'I')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [8];

}

If (thisletter is 'J')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [9];

}

If (thisletter is 'K')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [10];

}

If (thisletter is 'L')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [11];

}

If (thisletter is "M")

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [12];

}

If (thisletter is "N")

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [13];

}

If (thisletter is "O")

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [14];

}

If (thisletter is 'P')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [15];

}

If (thisletter is 'Q')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [16];

}

If (thisletter is 'R')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [17];

}

If (thisletter is "S")

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [18];

}

If (thisletter is "T")

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [19];

}

If (thisletter is 'U')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [20];

}

If (thisletter is 'V')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [21];

}

If (thisletter is 'W')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [22];

}

If (thisletter is 'X')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [23];

}

If (thisletter == 'Y')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [24];

}

If (thisletter is 'Z')

{

glossary.glossaryTextField.htmlText = app.model.glossaryArray [25];

}

redraw

glossary.scroller.Redraw ();

}

}

}

Have you tried to use the scroll bar update() method after changing the text?

Tags: Adobe Animate

Similar Questions

  • My screen has become unbalanced and I can't access the scroll bar

    In the last days, the screen on my laptop model Toshiba P100 drifted farther and farther to the right. I can not access the scroll bar. I tried for the quarterback by using the arrows but am having no luck. I've tried several things, including them turn off the computer. I did not install new programs, adding only a few pictures of my photos yesterday

    Given that this problem started a few days ago, do a system restore.

    Choose a date where you did not have this problem as your restore point.

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/

    Also, if you haven't tried that already, reset your screen resolution:

    http://www.Vistax64.com/tutorials/84291-screen-resolution.html

  • The scroll bars on a particular site

    A Web site I open often has an annoying bar at the top.  One day, I decided to close it; and when I did, the scroll bars disappeared.  I closed the site and I'm back.  Was back in the bar upstairs, but the scroll bars were not.  I tried everything I can think but cannot retrieve the scroll bars.  Thanks for any help you can offer!

    Hi Mary,

    1. don't you make changes to the computer before the show?
    2. what browser you use to access the site?

    Method 1:

    If you use Internet Explorer, I suggest you check out the link and run the fix it.

    Improve performance and security in Internet Explorer:

    http://support.Microsoft.com/mats/ie_performance_and_safety/

    Method 2: I suggest you to check if the problem persists in mode without modules.

    How to optimize Internet Explorer
    http://support.Microsoft.com/kb/936213/ro

    Note: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    Get back to us and let us know the State of the question, I'll be happy to help you. We, at tender Microsoft to excellence.

  • The scroll bar jumps to the top of the file

    I use a 64-bit version of Windows 7 on a HP m9400f. I think that this problem is fairly new. When you view a folder in Explorer with a fairly large number of files that I have to scroll to the bottom of a page or more, I find only a few seconds, the screen resets itself and the scroll bar and display of the folders back to the top. The "timing" on reboot is pretty random but always too short to select or manipulate files. Any ideas?

    Hello

    1 did you change on your computer?

    2. What is the brand and the model number of the mouse?

    Method 1:

    I suggest you perform the clean boot and check.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: After a repair, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

    Method 2:

    I suggest you to update the mouse driver and the video drivers and check

    Updated a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

  • Missing thumbnails of images in the scroll bar after the corrupted lrcat file recovery

    Greetings-

    The last 24 hours have been a roller coaster of emotions to say the least. Last night when editing photos my external hard drive suffered a problem of corruption and has stopped responding. I went immediately into emergency mode and started to tear off which doesn't have the data I could from the drive of entry mechanically.

    Fortunately, I keep all my original and raws photos supported on a 10 to RAID 5 array with 2 parity drive if I'm not worried about losing those. In addition, I save my lrcat regularly (once a month) to the same NAS. However, since the last time the catalogue was supported up to and now, of course I did a lot of editing. Another factor of motivation in my back catalog has been the fact that I have 4-5 years with a value of photo retouching in this catalogue. So many years of metadata. I didn't want to lose it all.

    At anyrate, I was able to shoot the catalog, and when I tried to open it in Lightroom, he complained that he was corrupted and he would try to fix it, LR has failed to do. With a little research, I could empty the LR schema and reset the database, deleting constraints bad (there are three). After that Lightroom was able to reopen the newly restored lrcat file and everything was fine. I immediately supported the current state of this catalog to my NAS for well-being.

    The catalog is of course the operational plan, however one thing. My scroll bar containing my images, to the point, are all empty without thumbnails. If I click on a given case, the image is displayed on the portal with all the metadata (the changes that I made, if its been marked or rejected etc.) and the missing tile is regenerated.

    How can I get my thumbnails in the scroll bar for those lacking? Some are there others are not.

    I know this isn't my video card, or use of resources or whatever related to the equipment, it must be something with cache or something. Any contribution is appreciated.

    Please see the screenshot below. Thank you

    It was a generic pointing to build 1:1 or build Standard previews.

  • Using the scroll bar

    I was working with one of my animations and I must have accidentally pressed some button because the scroll bars disappeared. Now, I can't find a way to move to a different place. I'm not very smart with all the buttons and controls so if someone knows of suggestions that would be great. Thank you.

    I work with Adobe Flash cc.

    Try resetting the workspace:

    Window > workspace > and click on Reset "name of the workspace.

  • the scroll bar goes up

    Hi - I have these 3 buttons that when spilled they display text in a textfield. In this case, the text is longer than the field is great and the scroll bar is enabled. The problem is when I use the scroll bar to read at the end of the text of btn1 and then press btn2, the scroll bar is in the same position 'end of paragraph"rather than at the beginning of a new text. Then how to reset at the beginning of the text when a new text field is called the scroll bar?

    Thank you
    JL

    assign the scroll of textfield property to zero when loading new text. Depending on how the scroll bar was coded, that may be all you need to do.

  • How to lock the scroll bar and several tabs to prevent them from scrolling erratically

    I have upgraded to Windows 10.
    Now the fireplace (Yes, it's the latest version) scrolls top down in erratic Web pages.
    I can't control the right scroll bar.
    Even after clicking on it or by moving up and down, either with the use of the touchpad, arrows and arrows at the top / below the scroll bar itself, it moves just everywhere anywhere on the page.
    The same thing occurs when multiple tabs are open. They scroll left and right erratically.
    Help! It's the most boring, frustrating and time consuming.
    I have already searched several forums and blogs, disabled the auto-scrolling and scrolling soft, all to nothing will do.

    On my system, the mouse pad has a mind of its own. So I opened it from the
    settings and OD "disable when mouse available.» No problem now.

  • How can I disable the zoom of the scroll bar feature?

    When I try to use the right scroll bar site zoom in and out. This feature is not useful for me, is it possible to turn it off?
    Thank you.

    You use a touch pad? After you move the pointer over the scroll bar, you use tap/hold/drag to move the 'thumb' scroll bar to the bottom of the page? During this process, the 'thumb' changes usually color - for example, it could be darker than when you just drag the pointer of the mouse around above him. It does not appear that he be chosen successfully?

  • On the right side of the br5owser, there is a scroll bar, the scroll bar is not no matter what a contrast and is almost invisible, can't find it?

    Have seen other issues similar to mine and they can be on the same issue, but they say that the scroll bar disappears, in fact, it's still there but almost invisible. Try to click on it without knowing the exact location to cause the uncontrolled scrolling page. Other issues advised people to restore their browser by default, but that did not help at all. Had this same problem for about 6 of the latest versions of firefox, all say in the 1930s versions. I tried adding contrast high Windows as an experiment, but that did not help at all either. Been trying help for awhile and just now decided to ask myself a question as the other speakers may have given or answerers may think it is resolved.

      In searching through help files it has led me to find a space based theme for the browser that I enjoy, but does not solve issue of course, so... all is not lost. Took a jpg of the image of the browser that shows the issue and am trying to upload it but looks like it is stuck in upload mode. Ugh "high speed" , anyhow maybe it uploaded and is not showing, the bar on the right is about 3/4 of the way down the side if you can see it, almost invisible.
    

    Core-el,

    Thank you
    Discovered it was my own question of system, but had to talk with others, before I realized how in the absence of mind my question was. Old system had control of contrast on the screen, and they have been set to 4 digits off the coast of 50 / 100. I wouldn't think that little would make a difference, because it doesn't have in all the other use of the browser, but he did. So was my system, actual physical hardware settings. Sorry for wasting your time but thanks much for all of your thoughts.

  • After I updated to Firefox, the bar indicator in the scroll bar is missing.

    The small bar in the scroll bar that indicates how far to the bottom of the page that you are is missing. Sometimes, it appears when the page loads first, but disappears if I click anywhere in the scroll bar (on the top or down arrows, on the indicator, or anywhere in the length of the bar.

    See also this bug report:

    • bug 1066934 - FF32: skin scrollbars thumb disappear after scrolling from one page to the specific zoom percentage (different themes FF)

    Please, do not comment in bug reports
    https://Bugzilla.Mozilla.org/page.cgi?id=etiquette.html

  • I have the Scroll Bar in bookmarks are gone now can it get replaced

    The scroll bar is now missing when I click the icon of bookmarks instead he is just an arrow down. I have a lot of Favorites and now it takes forever to get to the bottom where are my most recent. Please add the scroll bar option.

    Thank you!

    I finally found it. After clicking on the bookmark icon, you must now click on view bookmark Sidebar and it takes you to the bookmarks that I am used to. (when you click the bookmark icon it used to take you directly there)
    I hope this helps someone else!

  • When I use Firefox to display Oracle WebLogic EM, Firefox will not display the scroll bar on some pages. But Google Chrome.

    It is a problem specific to Oracle Web Logic EM.

    In our society, we use the logical Web as a basis for the application server.

    In the EM logic web server, users can use a Web Logic EM (EM is a portal to view processes on Web Logic application) to verify the data.

    I found when I use EM to check online XML, sometimes the page does not appear the scroll bar.

    If I use Google Chrome or Opera, and do the same thing, the page will display scroll bar.

    But I need Firefox because it is my main browser.

    How to overcome this issues?
    And how to prove?

    Hello, cor - el

    Please, please read this thread first:
    https://support.Mozilla.org/en-us/questions/976345

    I found there is that some people have the same problems.

    I check the data of the source code viewer, the data displayed are "pure XML.

    So my question is "pop-up windows display XML data in Firefox.

    I searched the KB and found an expert suggests a whole 'dom.disable_window_open_feature.scrollbars', 'true '.

    This solution not solve my problem.

    And thank you once again, cor - el.

    I can give up google chrome forever.

  • How can I get the scroll bar of firefox on the right side of my screen to stay?

    The scroll bar appears, but he goes with this version. I would stay permanently.

    On MAC OS X

    SYSTEM Goto PREFERENCES > GENERAL > display the scroll bar > choose "always."

  • scheck selection boxes are not displayed in the window options, nor does the scroll bar - why?

    Firefox is very erratic running. Scrolling is choppy at best. Usually, rocking it and descend is too far or no movement at all.
    Also, the scroll bar is black and there is no visible grab buttons to go up or down. Up and down arrows at the top of the bar are also blacked out.
    Selection boxes do not appear in tools, Options. Therefore, it is very difficult to make the custom choices.
    There is a significant delay after clicking 'OK', 'Cancel' or 'Help' buttons-, in fact, other buttons.
    I have 2 Add-ons 'All-in-one Side Bar' and 'Last Pass', no more.

    If I open firefox in safe mode all these problems disappear. Everything moves smoothly and check boxes appear.

    Have you tried to change the default Firefox theme, if you are using another theme?

    Have you tried disabling hardware acceleration?

    All this is in the article link I posted.

    Find out what steps to follow when the problem occurs in Mode without failure of Firefox, according to your original question and follow the links in the next section of the article.

    See also - https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems

Maybe you are looking for

  • Titles do not update

    When I place a title on the timeline in Final Cut Pro X and then I make a change to this title, say expand the police, that he does not play with the change.  If I then enter the title and move it a bit on the timeline, it updates correctly and plays

  • After trying to download Win 10 preview *... I can't on the wireless connection.

    Got an error or a failure just to finish the installation of Windows 10 disc overview. I restarted my PC and now I can not find wifi wireless. It just keeps trying to "(dial-up)... lol I don't even have a dial-up connection." Anyone have this problem

  • A .dll file named qtintf.dll is missing from my Win 7 system

    Hello A .dll file named qtintf.dll is not found in my Win 7 system. I have this file, but how to add it to my system please?

  • Windows 7 "backup in progress" will not stop

    Backup service won't stop. Tried to stop then start but still no change.

  • Problems of blackBerry Smartphones

    My blackberry 9320 curve was updated yesterday, I failed to make updates and now the phone turns no-screen is black but the red light is on tried to do a system update, but nothing happens. Download expires, getting very frustrated because I have tri