Detect when user scrolls text

Hi guys.
I have a box wit scrollable text, and i need to know when the user starts to use the scroll bar. any idea in how to detect this?

Hi,
You can use 'scrollTop' to detect if the text has been scrolled. A scrolltop of 0 means it has not been scrolled.
Try the following behavior attached to the scrolling text sprite.
property pScrollStart
on beginSprite me
  (sprite(me.spriteNum).member).scrollTop = 0
  pScrollStart = 0
end
on exitFrame me
  if pScrollStart = 0 then
    if (sprite(me.spriteNum).member).scrollTop then pScrollStart = 1
  end if
end
on mouseup me
  put pScrollStart
end
I have 'pScrollStart' as a property variable that changes to 1 as soon as the text member is scrolled down.I added the mouseUp part so you could click the sprite and see the variable value in the Message Window.
Dean
Director Lecturer / Consultant / Director Enthusiast
http://www.deansdirectortutorials.com/
http://www.multimediacreative.com.au

Similar Messages

  • Detect when user stops scrolling

    I have an application where a user scrolls using scrolldrags, but this always ends up in the user clicking where they stopped scrolling, so I need to stop this. My idea was that I have a variable "changeable" on and off depending on whether the user is scrolling or not, so when they stop scrolling, the objects become changeable again, how do I detect when the user stops scrolling with scrolldrag using the ScrollPane object?

    add a mouseup listener when scrolling begins and apply a stopPropagation() or stopImmediatePropagation() method to that event and remove the listener in the mouseup listener function .

  • Showing a top of page button when user scroll down

    Hi,
    I need some help please, to show a top of page button when the user scroll down either with the vertical scroll bar or the center mouse button.
    I could design and develop the actions for using the button.
    But I am unable to trigger the showing when the user scroll down.
    I have found an example about what I would like on the following website: http://www.commentcamarche.net/news/5854741-hp-presente-sa-nouvelle-gamme-de-pc-pour-le-pr emier-semestre-2011#top
    Thank you for your help.
    Regards

    I apparently misunderstood your first post. Sorry. If you look at the code for the example you cited in your OP, you'll find:
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" type="text/javascript"></script>
    <script src="http://static.ccm2.net/www.commentcamarche.net/_skin/_common/js/jsbottom.php?m=bottom%7Csimili&201103311506" type="text/javascript"></script>
    <div id="gotop"><a href="#top"></a></div>
    [To find the section yourself and view it in relation to the whole page, open the page, view the source code, and do a find on "#top."]
    I would take a look at those scripts and see how you might adapt them to your site.
    Good luck.
    Chris

  • Detect when User Calc Script is Finished

    We are looking for a way to detect when a user has finished a calc script before defragment. We have a windows batch file which defrags multiple times during the day. Before we defrag we want to make sure all users are done running calc scripts. After this we want our defrag to begin. Likewise if the system is busy we want the defrag to wait until the user is done.

    A simple way is to unload the application UNLOADAPP "SAMPLE"; or ALTER SYSTEM UNLOAD APPLICATION SAMPLE; in Maxl. If a calc is running or the database is busy in any way, then the unload will fail with an error message telling you who is still performing an action on the database. If the action is succesful, then the application is quiet. You then disable connections to the application immediately to prevent anyone logging in, then do your defragment. Unloading the application at the end will automatically re-enable connections.

  • Detecting when user closes browser or moves to another site

    How can detect when a user has closed the browser or moved to another website

    No, it doesn't automatically fire any request to the server or so. Best what you can do at the server side is intercepting the session destroy using HttpSessionListener. You can also let Javascript fire a (ajaxical) request to the server side notifying that the onunload/onbeforeunload has occurred.
    Difference between onunload and onbeforeunload is by the way that the onbeforeunload can still prevent the page actually being left using a warning message like "are you sure to leave page?" and that it is NOT supported by w3 specification and thus not guaranteed to be supported in all webbrowsers (as far under each Opera -which very strictly follows the standards- doesn't support it).
    Edited by: BalusC on 25-aug-2009 11:04

  • Detecting when users connect/disconnect

    I have a client application that communicates via EJB and also
    subscribes to JMS topics. I need the server to programatically
    detect when a client connects and to JMS and when they go away.
    We want to keep course grained stats on how long someone is connected.
    The WebLogic console shows when a user is connected and it their
    name goes away when they disconnect - I don't want
    to pay someone to stare at the console window with a stop watch
    and time connections.
    How can I programmatically detect when clients connects and
    disconnects?

    That may be a good idea but what are we supposed to do in the meantime.
    any work arounds etc??
    Gary Keim wrote:
    I think that in general the BEA people watching these newsgroups are
    developers and developers don't have the authority to issue product-related
    announcements. The best way for you to be heard is via a sales
    representative.
    Now, the way I think this should be done in the future is via JMX. The JMS
    service will have a public RuntimeMBean that you could access and to which
    you would add yourself as a listener. Then it's standard JavaBean property
    change notifications.
    Gary
    "Larry Presswood" <[email protected]> wrote in message
    news:[email protected]..
    Yes and no-one from BEA is picking this issue up either.
    Mark Steele wrote:
    This is the only message I've seen about this.
    Odd. I would think that more people would want to know
    stats on connections...(?)
    Larry Presswood <[email protected]> wrote:
    This is a big issue did you get any replys from the BEA
    folks or anyone
    else.
    Used to you could use workspaces or events but those have
    been depracated
    in
    6.0
    Mark Steele wrote:
    I have a client application that communicates via EJBand also
    subscribes to JMS topics. I need the server to programatically
    detect when a client connects and to JMS and when theygo away.
    We want to keep course grained stats on how long someoneis connected.
    The WebLogic console shows when a user is connectedand it their
    name goes away when they disconnect - I don't want
    to pay someone to stare at the console window with astop watch
    and time connections.
    How can I programmatically detect when clients connectsand
    disconnects?

  • Detecting when user clicks title bar of TitleWindow

    I am just beginning to dabble in Flex and am loving it so
    far. I can't seem to figure out how to detect when a user clicks
    the title bar of a TitleWindow. Could someone please give an
    example of the correct way to detect this? How do you tell the
    application to dispatch an event only when the title bar is clicked
    and not the contents of the TitleWindow.
    Thanks!
    Josh

    Subclass TitleBar and add a mouseDown event handler to the
    protected titleBar property (of type UIComponent). That event
    handler will execute when a person clicks down in the header.
    Stephen

  • When I scrolled text became very small and I do not know how to get it back to normal

    I don't know what happened. I was moving my mouse over the screen and the text kept shrinking, until it's so small you can barely read it. I don't know how to get it back to normal size.

    Holding the Ctrl key while scrolling increases or decreases the zoom level. You can reset the zoom by pressing Ctrl+0 (zero). [[how-do-i-use-zoom|More on Zooming here.]]

  • TS3672 When I text other iphone users, my texts come up as my email address and not my number, how do I fix this?

    When I text other iphone users, my texts come up as my email address and not my number, how do I fix this?

    Settings->Messages->Send & Receive -> Scroll to bottom and check the address/number you want to start new conversations from.

  • Calendar on iOS 7. Anyone noticed that when you enter text into the "notes section" of a day, the text disappears behind the keyboard rather than scrolling down to keep pace with text entry ? Looks like an 7 glitch to me ?

    Calendar on iOS 7. Anyone noticed that when you enter text into the "notes section" of a day, the text disappears behind the keyboard rather than scrolling down to keep pace with text entry ? Looks like an 7 glitch to me ?

    Doesn't do that for me. Try resetting the phone

  • Possible to show bottom of scrolling text first when icon is displayed?

    Hi,
    Does anyone know if it is possible to show the bottom of
    scrolling text when the display comes up? For instance, let's say
    you have 20 lines of text in a scrolling display, but it only has
    room for 10. By default, Authorware shows the top 10 lines in the
    scrolled display, not the bottom 10. I want to show the bottom
    10--is this possible?
    Thanks,
    Edwin

    Hi,
    Well, I decided to have the most current information at the
    top of the display. For instance, if it were a chat, the most
    current chat info would be on top instead of on bottom. That fixed
    the problem adequately.
    Edwin

  • HT3529 When texting with other iphone users, the text used to be in a blue bubble. Now it's green. What happened? Am I being charged for these text messages now? I'm with Verizon if that matters.

    When texting with other iphone users, the text used to be in a blue bubble. Now it's green. What happened? Am I being charged for these text messages now? I'm with Verizon if that matters.

    Thanks for the help, Allan Sampson.
    I updated itunes, shut the phone off and on, it still didn't give me blue bubbles. Kept following the suggestions on the page ...  I didn't know there was an IMessaging switch, but, shoot, it was OFF. Anyway, I toggled it on and now the text bubbles are blue again.

  • How can I have popup text when user types something wrong?

    I have some textarea and textfields created dynamically. I have set of rules in a text file. How can I have these rules popup when users make mistakes(e.g., forgets to capitalize the name)?
    Please provide your input.
    Thx.
    M

    Mike
    From your addendum I'm guessing you are wanting to do this with a JSP or servlet. If so Ali's suggestion won't work becuase he's working with Swing components. It is always helpful if you specify the technology you're using: JDeveloper is a tool for writing many different types of Java programs.
    If you want to produce pop-up windows in JSP then you have to use JavaScript.
    If you're using DataWebBeans and want to use JavaScript you have to change (ie subclass) the WebBeans so that they have HTMLFieldRenderers that allow you to attach Javacript to a TextField (or whatever). This is not a small job but is worth it for the flexibility you'll gain.
    If you're using datatags I should imagine it's easier because you can add JavaScript functionality directly to the HTML input fields e.g. in the Input page, but I imagine you'll still have to subclass your own datatags to do the same for the Update pages.
    GoodLuck().youllNeedIt, APC
    null

  • Is it possible to detect when a user navigates away from a webdynpro page?

    I need to detect when a user navigates away to stop a timer set for the purpose of logging out a user after a certain amount of time. If they click exit I can capture the event but if they click another tab then I cannot. I know when in edit mode the SAP code for work protect will catch that and ask if you would like to save, but I don't think I have any access to that code. Does anyone know how they accomplish this and can it be done if the user is just looking at data also?

    Yes, you can do that using Exit Hook method wdDoExit
    We have used following hook to unlock the locked record of database table, which was open in edit mode.
    //@@begin javadoc:wdDoExit()
      /** Hook method called to clean up controller. */
      //@@end
      public void wdDoExit()
        //@@begin wdDoExit()
         wdComponentAPI.getMessageManager().reportSuccess("exit called");
        //@@end

  • Error when try Specify User-Defined Text Types

    Hi all,
    I have a problem when I try to Specify User-Defined Text Types. The system gave me the error what is described below. Do you know how to solve a problem?
    F1
    Choose the key from the allowed namespace
    Message no. SV019
    Diagnosis
    You have attempted to create an entry and have used a key which is not in your namespace.
    This can cause problems in later upgrades because the entry could be overwritten by an import, or overwrite an existing entry.
    Procedure
    Check your entry and try to enter a key value from your namespace.
    You can display the namespace definition with RDDKOR54.
    If you must use the key entered, document your change so that it can be repeated after an upgrade or release change if necessary. If you put the data in a change request, you can export it before an upgrade or release change, and import it again afterwards.

    do you have more details or advice and so on?

Maybe you are looking for

  • What can be done to have keynote & numbers to open in iWork '09

    Loading up a disk for iWork '09 gives the three apps Pages, Numbers, and Keynote.  However, only Pages opens properly.  Numbers partially opens, but I can't get access to files I've made in the past.  Keynote doesn't open at all.  The version of iWor

  • Update infotype

    I need to update infotype 22, 31 , 68. I am using function module "HR_INFOTYPE_OPERATION". But using this FM i can only upate the fields of infotype which are reflected in the infotype screen. I need to update other fields which are there in the PA t

  • URL_PIPELINE_NOT_FOUND

    Hi Gurs We are facing issue of transfering materials from SRM to CCM and in SXMB_MONI i found this error. <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!--  Call Integration Server   --> - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Mess

  • ABAP class to create doc. from template

    Hi all, Does anybody know if is there any ABAP class which can call the "Create with template" functionality? The idea is to create an action associated with the Service Ticket, which will create a document from template (Content Management functiona

  • C# - File, Save As

    Let me try and give a little bit of background as to what we are trying to do. We are using pageflex to generate pdf files that are 1 page, each of these pages are using a shared background and some other common elemnts. Then using dynamic pdf merger