TLF reset scroll position (AS2)

hi
I'm trying to reset the scroll position in each load of XML:
myTLF.verticalScrollPosition = 0;
or
myTLF.minScrollPosition = 0;
or
myTLF.scroll = 0;
however i get an error "undefined property"
is there other property name that i should use?
thx

I think I need a few more details to be able to help you.What type of object is "myTLF"? The code snippet you post should work fine if "myTLF" is a ContainerController, but won't work if it is, for instance, a TextFlow.
So, if you have this:
var myTLF:ContainerController = textFlow.flowController.getControllerAt(0);
myTLF.verticalScrollPosition = 0;
That will set the controller's scroll position to the start of the flow.
Hope this helps,
- robin

Similar Messages

  • Web browser resets scroll position and focus when page load completes

    when a page is loading, the scroll position of the page reverts to the top-left and focus in a form element is lost whenever an element or the whole page finishes loading
    Post relates to: Pre p100eww (Sprint)

    Possibly related to the OP's question, I wish we could get the composition page to scroll when typing a reply here on the forum (while using my Pre plus).
    Quoting a reply fills half the text box, then once I reach the bottom of the box, I can't scroll any further downward to complete my reply...
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • ADF Treetable scrolling position resets to top on refresh

    I have a master details page with the following components.
    TreeTable with a Check Box on LHS  and TabbedPannel on RHS.
    So, users can select any row on the LHS and the corresponding details will be displayed on RHS in a new Tab. When user closes the Tab it will clear the Check Box on TreeTable.
    Issue is, when user is at last row of TreeTable when there are more rows (Scroll bar will be at last), and user closes the Tab on RHS side, I will be clearing the checkbox binding and refresh the treetable using PPR to reflect the same.
    This is causing the treetable  scroll bar to be reset to the top. And User lost the old position on needs to scroll down again.
    Can we control the Scroll bar position after PPR refresh (or)
    Can we just clear off the CheckBox selection (only one row) with out refeshing the whole treetable
    Environment:
    JDev Version : 11.1.1.6.2
    Component : ADF TreeTable with TreeModel binding (Not using BC)

    In my case, I am fine with disclosureState items. They do not collapse even after I remove the checkbox selection and refreshing the TreeTable component.
    Only issue is scrollbar is resetting to top.
    I can't use the disclosure event as they can do expandAll , select first compoenent scroll down and close the selection on RHS tab.
    Which will reset the LHS scrolling position to top.

  • Scroll position does not reset on datasets

    Forgive me if this is somewhere else, but I cannot find it.  In using spry datasets in CS4, when the data in a container is long enough to need a scroll bar, the scroll position does not reset to the top when you chose the next item in the dataset.  By example, if I choose Grapefruit, and the description container has several paragraphs that i have scrolled down to read, then I choose Pear, and the description content displays in the same scroll-down position (perhaps in the middle or the end) instead of resetting at the beginning of the paragraph.  Is this a bug or is there something I am doing wrong?
    Thanks!!!

    Argh!  I have this exact same problem when working with Master/Detail.
    When I scroll down to the bottom of a detail area, and then click another item in the master column, it displays the bottom of the new detail area.  This is not what I want.  Whenever I click on a new item in the master column, I need to be positioned at the top of the new detail area.  How can I make that happen?
    Please help!  Thanks!
    SC

  • DataGrid scroll positions resetting with dynamic dataprovider

    Hi - I have a DataGrid that is backed by an ArrayCollection
    that is fairly dynamic. Before doing my updates, i disable
    autoupdating, and though my size is typically fixed at 100 items,
    sometimes those items will be replaced. My problem is that a user
    who has scrolled down the visible grid, will lose their scroll
    position when i replace items. If i'm just doing updates on the
    existing objects, it's fine, but the replace is causing the scrolls
    (both horizontal and vertical) to reset. I've tried to isolate
    where this is happening (whether set verticalScrollPosition or on
    the bookmark) and i can't quite find it.
    Anyone know how i can prevent this behavior? I've tried
    capturing the scoll position before i begin my updates, and then
    setting it back when finished, but it doesn't work.
    Thanks.
    ./paul

    Actually, I spoke too soon. I had a number of things I was
    trying. And when i tried to clean up the other things that I
    believed were extraneous (including an override of
    makeColumnsAndRows), the vertical scroll resetting stopped working.
    I've spent about 90 minutes trying to get back to where I was (wish
    the builder was in IntelliJ!).
    When it was working, I also tried to add horizontal scroll
    capturing, and that didn't seem work either. I have 34 columns, the
    first one is locked. When I captured my position, I saw it was 11.
    Then i performed the update, and callLater my resetScroll position.
    The first column i saw after the locked column is correct. However,
    the scroll bar itself is fully left. On the next update I captured
    a horizontal scroll of zero.
    ./paul

  • Accordion Widget not saving current scroll position

    Accordion widget saves scroll position in Firefox, however in
    IE7 the position gets reset to the center of Accordion Widget.
    Example. Select Alabama and then select Wisconsin to see
    effect.
    See www.Qualite1.com/contactUs.html

    Hi ghaug,
    This is due to the tabindex attribute that is on the
    top-level element of the accordion. Apparently when an element is
    focused in IE, it tries to make sure the top of that element is in
    view, so it is "conveniently" scrolling it into view for you.
    To prevent this behavior for accordions like yours that don't
    fit neatly into a single screen, you are going to have to remove
    the tabindex attribute from the top-level accordion element. If you
    still want/need keyboard navigation of your accordion, then you
    have to switch to using links in your accordion tabs. You can find
    an example here:
    http://labs.adobe.com/technologies/spry/samples/accordion/AccordionSample.html#EnablingKey boardNavigationWithLinks
    --== Kin ==--

  • Keep grid scroll position across updates?

    I have a JBoss app server status monitor that uses the XML
    status page to update a Flex grid control. I can scroll down in the
    list, but when the grid auto-updates, it puts the scroll position
    back at the top of the grid. This is very inconvenient for the
    user. Is there any way to maintain the current scroll position
    after calling the refresh method of the collection that I've set as
    the data provider for the grid? Or will I have to grab the scroll
    position right before I update, call the update, then reset the
    scroll position? Thanks!

    The latter. Re-assigning the dataProvider will completely
    redraw the tree.
    If you can update the dataProvider using the API, then this
    will be avoided, but I suspect that will be more difficult than it
    is worth.
    Tracy

  • Reset scroll dimensions

    I've inherited an application that changes content images. When the item is two big to fit in its parent container it uses a scroll bar. When we change back to a smaller item the scroll bar remains at the same dimensions and we can see black space around the image by dragging the scroll bar. I've been looking all over for information on resetting the scroll bar according to the dimensions of the current contents but I can't seem to find it. Is this a common occurrence or is this something that shouldn't happen (meaning the app is doing something unusual)?
    TIA
    Mike

    I think I need a few more details to be able to help you.What type of object is "myTLF"? The code snippet you post should work fine if "myTLF" is a ContainerController, but won't work if it is, for instance, a TextFlow.
    So, if you have this:
    var myTLF:ContainerController = textFlow.flowController.getControllerAt(0);
    myTLF.verticalScrollPosition = 0;
    That will set the controller's scroll position to the start of the flow.
    Hope this helps,
    - robin

  • How to play a symbol ONCE at a specific scroll position?

    Hello there,
    I was wondering if it's possible to trigger a symbol to play when a user scrolls past a specific scroll point just once?
    I've managed to create a trigger for a symbol which will fire at a specific scroll position but it fires multiple times (when the user continues to scroll)
    I tried using:
    '==' eqivalent to, so that it would only trigger at a certain scroll point, but this only triggers the symbol to play if the user uses their mouse scroll wheel and doesn't play if the user uses the window scrollbar.
    Here's my code (apologies if it's messy I only started learning JQuery a week ago):
    $(window).scroll(function() {
         var mySymbolObject = sym.getSymbol("rollHead");
          var y_scroll_pos = window.pageYOffset;
         var scroll_pos_test = 500;           
        if(y_scroll_pos > scroll_pos_test) {
              sym.$("rollHead").show();
              mySymbolObject.play(1000);
          if(y_scroll_pos < scroll_pos_test) {
       sym.$("rollHead").hide();
              mySymbolObject.stop();
    I know that the '.one' handler (if that's the correct term) can cause an event to trigger just once, but I can't seem to get it to work.
    Any help or advice would be much appreciated.
    Thank you very much.
    Jon
    P.S. I just want to say a MASSIVE thank you to Adobe for making Edge. It is an incredible tool and the fact that it is free makes it a million times better.

    Hello Mr Blix,
    I pretty much just copied and pasted what Elaine wrote.
    So, I went to my stage actions - clicked 'composition ready'
    And put in this:
    sym.setVariable("symbolPlayed", false);
    var mySymbolObject = sym.getSymbol("rollHead");
    $(window).scroll(function() {
        var y_scroll_pos = window.pageYOffset;
        var scroll_pos_test = 500;           
           if(y_scroll_pos > scroll_pos_test) {
    var symbolPlayed = sym.getVariable("symbolPlayed");
    if (!symbolPlayed) {
        sym.$("rollHead").show();
        mySymbolObject.play(1000);
        sym.setVariable("symbolPlayed", true);
    All you'd need to change for you own composition (if that's the right word) is to replace:
    var mySymbolObject = sym.getSymbol("rollHead"); - with your own symbol name.
    var scroll_pos_test = 500;  - with the position you want the event to trigger.
    sym.$("rollHead").show(); - with your own symbol name again.
    mySymbolObject.play(1000) - with the time on your symbol's timeline that you want it to play.
    I'm still learning JQuery and don't really understand how the 'SymbolPlayed' works, but I assure you it does.
    Here's a screengrab of my 'stage actions' code.
    Hope that helps!
    Jon

  • Opening a new link in a tab (contr+click or right click and open in new tab) causes ff to lose scroll position in first tab or main website, like google.

    Opening a new link in a tab (contr+click or right click and open in new tab) causes ff to lose scroll position in first tab or main window, like google.
    This does not happen when opening in a new window (shift+click).
    It was never a problem in older versions. I now have ff 3.6.17. I' afraid to install ff4 because everytime i do so (install e new version) something i liked dissapears or good add ons dont work anymore!
    I also don't like the fact that more and more of the adress barr is beïng used for crap i don't need. I'm a visual handicap and need all the space i can, just to read.
    Thanks for helping me out.

    To help other users find solutions, please return to this Thread and '''Sign-in''' to the forum with your Username and Password:
    click on '''"Solved It"''' next to the reply ABOVE that '''BEST''' solved your question
    '''DO NOT click "Solved It" next to this reply

  • Chart Error - scroller positions should be positive and integer

    <p>
    Hello Expert
    I have created a flash chart with two filters on the chart region.
    i) &lsquo;Select list with submit' ----- (:P23_TRC)
    ii) &lsquo;Radio button with submit' -----(:P23_IMPACTC)
    The chart should display as per the filters selection.
    However, I get the error message "<strong>scroller positions should be positive and integer</strong>", once, whenever I load this chart page for the 1st time in a new IE window.
    After I change the filter's value it will work perfectly fine.
    In filters default value is one value from respective filter list of value
    </p>
    <p>
    If I remove the filter conditions from chart query, it works perfectly without error.
    <u>Here are my chart series queries</u>
    select null link, V.LOB label, COUNT(TR) "Customer Care"
    from V_PROCESSTRACKING V
    Where V.ProcessArea like '%Customer Care%' and (V.TR = :P23_TRC) AND ((V.IMPACT = :P23_IMPACTC)OR (:P23_IMPACTC = 'ALL'))
    group by V.LOB
    order by V.LOB
    select null link, V.LOB label, COUNT(TR) "Sales"
    from V_PROCESSTRACKING V
    Where V.ProcessArea like '%Sales%' and (V.TR = :P23_TRC) AND ((V.IMPACT = :P23_IMPACTC)OR (:P23_IMPACTC = 'ALL'))
    group by V.LOB
    order by V.LOB
    <u>Customer XML</u>
    &lt;?xml version = "1.0" encoding="utf-8" standalone = "yes"?&gt;
    &lt;root&gt;
    &lt;type&gt;
    &lt;chart type="Stacked Horizontal 3DColumn"&gt;
    &lt;animation enabled="yes" appearance="size" speed="10" /&gt;
    &lt;hints auto_size="yes"&gt;
    &lt;text&gt;&lt;![CDATA[{NAME}, {VALUE}]]&gt;&lt;/text&gt;
    &lt;font type="Verdana" size="10" color="0x000000" /&gt;
    &lt;/hints&gt;
    &lt;names show="no"/&gt;
    &lt;values show="no" prefix="" postfix="" decimal_separator="." thousand_separator="," decimal_places="0" /&gt;
    &lt;arguments show="no" /&gt;
    &lt;column_chart column_space="3" block_space="12"&gt;
    &lt;border enabled="no" /&gt;
    &lt;block_names enabled="yes" placement="chart" position="left" &gt;
    &lt;font type="Verdana" size="10" color="0x000000" /&gt;
    &lt;/block_names&gt;
    &lt;/column_chart&gt;
    &lt;/chart&gt;
    &lt;workspace&gt;
    &lt;background enabled="yes" type="solid" color="0xffffff" alpha="0" /&gt;
    &lt;base_area enabled="no" /&gt;
    &lt;chart_area enabled="yes" x="215" y="50" width="705" height="500" deep="0"&gt;
    &lt;background enabled="no"/&gt;
    &lt;border enabled="yes" size="1"/&gt;
    &lt;/chart_area&gt;
    &lt;x_axis name="Line of Business" smart="yes" direction="horizontal" rotation="-90" position="left_center" &gt;
    &lt;font type="verdana_embed_tf" size="14" color="0x000099" bold="yes" align="center" /&gt;
    &lt;/x_axis&gt;
    &lt;y_axis name="No. of Process" smart="yes" position="center_bottom" &gt;
    &lt;font type="Verdana" size="14" color="0x000099" bold="yes" align="center" /&gt;
    &lt;/y_axis&gt;
    &lt;grid&gt;
    &lt;values /&gt;
    &lt;/grid&gt;
    &lt;/workspace&gt;
    &lt;legend enabled="yes" x="935" y="50"&gt;
    &lt;names enabled="yes"&gt;
    &lt;font type="Verdana" size="9" color="0x000000" bold="yes"/&gt;
    &lt;/names&gt;
    &lt;values enabled="no"/&gt;
    &lt;scroller enabled="no"/&gt;
    &lt;header enabled="no"/&gt;
    &lt;background alpha="0"/&gt;
    &lt;/legend&gt;
    &lt;/type&gt;
    #DATA#
    &lt;/root&gt;
    <strong>Help please!!!!! It's urgent</strong>
    Sagar
    </p>

    Hi Rima,
    I found the solution,
    My graph is dependent on the page items. What I found was when I load the page, item default value was displayed but it was not stored in the memory. Item value only gets stored in memory when the page is submitted.
    Line: -----
    Soultion : - Create a page level before header process and define the default value over here as well. This will resolve your error.
    Hopefully you understood what I am trying to explain. If not let me know and I will trying to put in picture and email you.
    Sagar

  • How to avoid blinking / moving of rows in a data grid when you restore the scroll positions

    By Default when an update is made on a data grid, it scrolls to top row. To avoid this when we save the vertical and horizontal scroll
    positions and restore the scroll positions after the update, it causes a blink in the grid (or moving / jumping) of rows. Is there a way to
    avoid this jumping of rows?
    In JavaScript this can be achieved by overriding the scrollToTop / OnLoad methods of datagrid to directly scroll to current scroll
    positions instead of top row. Is there a way to achieve similar feature in flex / actionscript?

    I am calling validateNow().. Also, using verticalScrollPosition to restore the scroller as in the link that you posted.. Reposition is working fine, But the bug filed is regarding BLINKING / JUMPING when this happens (i.e. this blinking is caused because after datagrid edit, during reload the scroller tries to move to  the top by default, then it repositions itself to current edited row as the verticalScrollPosition property is overridden ).. I have to get rid of this blinking.
    In Javascript it is dealt by overriding OnLoad method of datagrid to directly scroll to current scroll position instead of top row during reload so that there is no blinking.
    http://www.sencha.com/forum/showthread.php?13898-Is-there-any-way-to-keep-scroll-position- of-Grid-on-load
    Is there a way to achieve similar feature in flex?
    I am not sure what flex datagrid method to override.. Theres no method like load? What is the datagrid method that is called by default during reload (after datagrid edit) that causes the scroller to go to top?

  • Web page in iframe does not maintain scroll position on refresh in FF4

    I have a web page on my local drive which refreshes live sports commentary every minute in an iframe.
    In FF3.6.x the page in the iframe retained the scroll position of where I had moved to.
    In FF4 the page within the iframe goes back to the top so I now have to scroll down every time to where I want to read.
    I disabled all addins in FF4 and have tried this on different URLs but the page in the iframe still returns to the top.

    Similar problem running a 27" iMac only it occurs in Excel and inDesign. Hit the cell with the curser and the worksheet moves over to the right 7 or 8 cells away. Have to curser back to the cell quite frequently. This issue make the machine unusable when working with those two aps. Today I did the ultimate and completely reloaded Yosemite and the problem is still there.

  • Scroll Positions do not work if Scroll Policy is 'off'

    I am using flex SDK 3.3.0.4852
    I have a canvas with
    canvas.horizontalScrollPolicy = "off";
    canvas.verticalScrollPolicy = "off";
    This canvas has an image in it, and I set the horizontal and vertical scroll positions programitically.
    canvas.horizontalScrollPosition = canvas.maxHorizontalScrollPosition;
    canvas.verticalScrollPosition = canvas.maxVerticalScrollPosition;
    then I save the scroll values in an xml file, and then on reopening of the xml file.. I do the following
    canvas.addEventListener("creationComplete", setScrollPositions);
    and in the method setScrollPositions(event) i do the following again
    canvas.horizontalScrollPosition = canvas.maxHorizontalScrollPosition;
    canvas.verticalScrollPosition = canvas.maxVerticalScrollPosition;
    But unfortunately it does not show any change in the scroll positions visually, and the default scroll positions persists. Though if i call an alert
    Alert.show(canvas.verticalScrollPosition.toString()); //it does show me some value, e.g. 56
    Now if i only set horizontal and vertical scrollPolicy = "on" ... all works fine. But the problem is that I want to hide my scrollbars and there is no other way I can do it. So please if there is any solution to it or if there is any workaround, do let me know. Thanks.

    i'm having the same problem and i just got a brand new dell..when i hold down the left click over the up or down arrows, my songs in itunes only go down one line rather than scrolling up or down while im holding down the left click...any help is appreciated..

  • Reset Window Position

    Hi,
    I'm using a software to view PTZ cameras in my mac. Somehow when I connected my external display the app moved to the top of the screen and now I can't get to the top of the app scrren to move the window arround. Is there any way to reset the position of a window? The App name is IVMS-4200 for mac.
    Thanks.
    OSX Lion 10.7.2
    Macbook Pro 2.7 GH Intel Core I7
    4 GB Ram

    Hi
    Please try to cascade the windows
    (Main Menu-windows-cascade)
    Helen Sun

Maybe you are looking for

  • Photoshop CS4 64bit suddenly stop working

    Having problems with Photoshop CS4 64bit version stop running for me giving me this error message  with these details: Problem signature:   Problem Event Name:    APPCRASH   Application Name:    Photoshop.exe   Application Version:    11.0.1.0   Appl

  • Item Text in VA01

    Hi, We are making a transaction code similar to VA01 for creating sales order, now whenever user enters a material we get the all the item texts associated with it using the read_text FM. The issue is  if user enters some texts from his side in any o

  • Photos do not appear in projects Aperture 3.5.1

    When selecting a project on the sidebar, the photos that it contains do not appear in the main viewer area. If that particular project then appears under the automated "Recent" header, selecting it allows the photos to appear as normal.

  • HOW TO CREATE SERVICE FOR SENDER SOAP COMMUNICATION CHANNEL FOR ECC PROXY

    Hi Experts, I need generate the service for sender soap communication channel for target url to receive the  inbound proxy. my scenario is like SOAP to proxy. while using  receiver proxy also we are planing using AAE method . i am using SOAP sender a

  • Shipment cost transfer to invoice - condition twice in invoice

    Hi experts, I created a stat. condition in the SCD and calculated a vaule which I need in the invoice to calculate the total. I have 2 items in the SCD - one of the header and one of the stage level. For both the condition is found and calculated wit