Event to listen for nearID change

Hello,
it appears that Stratus NetConnection nearID changes pretty frequently for me while connected to Stratus (at least lately).
I couldn't find where I can be notified when nearID changes. Could you help? Thanks in advance.
-Kirill

Thank you Michael.
It just seems odd - and probably related to recent Stratus downtime/bandwidth experience - but my application takes several multi-second tries to connect to a server. Maybe it's just slow.
Another problem I've been experiencing lately (definitely related to something on Stratus servers) is netConnection being dropped randomly. It simply disconnects after a minute or two about 90% of the time. I'm glad I can at least test my application, hoping these problems will go away soon.
I think it's great what you guys at Adobe are doing with Flash and Stratus. If you had a Stratus logo designed, I'd definitely put that in my game's title screen.
-Kirill

Similar Messages

  • [svn:fx-trunk] 12481: Because of the Change/Changing changes in VideoPlayer , we need to also listen for a CHANGE as well as the CHANGE_END, CHANGE_START, THUMB_PRESS, and THUMB_RELEASE events.

    Revision: 12481
    Revision: 12481
    Author:   [email protected]
    Date:     2009-12-03 18:48:17 -0800 (Thu, 03 Dec 2009)
    Log Message:
    Because of the Change/Changing changes in VideoPlayer, we need to also listen for a CHANGE as well as the CHANGE_END, CHANGE_START, THUMB_PRESS, and THUMB_RELEASE events.
    Also, when clicking on the track and animating, the scrubbar's playedArea should move along with the thumb.  We do this by using pendingValue, rather than value in updateSkinDisplayList().
    QE notes: -
    Doc notes: -
    Bugs: SDK-24528
    Reviewer: Kevin
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24528
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/mediaClasses/ScrubBar.as

    My first observation is that you don't reraise the error in the CATCH handler. That is bad, because it makes the proceedure fail silently which may be very difficult to troubleshoot.
    The version numbers for Change Tracking are indeed database-global. MIN_VALID_VERSION can be different for different tables, if they have different retention periods. But if they all have the same retention period, it seems likely that MIN_VALID_VERSION
    would increase as the database moves on.
    I'm not sure about your question Can we use the CHANGE_TRACKING_CURRENT_VERSION even though we want to download subset of data from the table (only records matching for one data_source_key at a time). Where would you use it? How would you use
    it?
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Listen for Layer Changes?

    Hi
    I am looking at subscribing to network events and working out event ids and things and so far haven't been able to work out this. Fairly simple question, hopefully the answer is just as simple.
    Can I subscribe to an event which lets lets me listen for any layer changes (in my iOS app)? The docs suggest any actionable event can be listened for, but I am yet to work out how to do this.
    Thanks.

    If you're using a web front end I don't see how that's possible unless you have persistent connections and "push" technology. HTTP is a request/response protocol, which doesn't lend itself to this problem.
    If you're writing a Swing client you have a bit more control.
    Maybe one way to do it would be to use JMS publish/subscribe. When a client connects to the server, it subscribes to the database change topic. Whenever one of the registers clients makes a database change, the DAO puts a message on the topic, which is then broadcast out to all registered subscribers. They can update themselves in their onMessage() listener implementation.
    Could be a network traffic nightmare if you have a lot of clients. And what about transactions? Will you make the topic and the database transaction a single unit of work?
    Might be more complicated than it's worth, but that seems to be your requirement. Not a trivial problem.
    %

  • Listening for file changes

    i have a properties file. I need to monitor for the changes to the file and send intimation to all the files using the properties file. How shall i do it with out modifying the files which are executing it. i.e i need to suspend the execution of the threads and reload the values.

    set up a File object that represents the props file.
       File f = new File ("propsFile");   On start up, note the lastModified() time
    In a low priority thread, keep polling the lastModified() method to check if the file has been reloaded.
    Set up an event handler mechanism to notify and call all interested objects that would want to take some action if and when the file's been modified.
    ram.

  • Event to listen for when viewport scrollposition change.

    Hi
    When I scroll, I listen to the VALUE_COMMIT event on the verticalScrollbar, but when I then wan't to do some calculations depending on the new position (using localToGlobal), then properties that localToGlobal uses aren't updated properly, on what component should I listen to updateComplete? Because updateComplate doesn't get fired on the viewport. So what actually relayouts?
    Best Regards
    Martin

    Hi
    Thanks for the answer.
    When I scroll it works better than using the valueCommit event, but if I scroll fast enough the calculations still skew.
    So I've decided to use the enterFrame event instead, doing the calculations all the time instead of just doing it when necessary from the idea: If it works performance wise okay in games. I guess it can work here
    Thanks
    Best regards
    Martin

  • How to add a listener for frame change

    hello
    Im quite new to jmf, and im writing a code which uses the webcam, but im stuck at a point where i want a listener which is called whenever the frame changes in the visualcomponent. so basically im looking for a frame changed listener to be added to the visual component instead of using a loop or a timer or something.
    i just need a method to be called constantly along the stream coming from the webcam but which is consistent with the changing of the frames.
    i would really appreciate any kind of help.
    thank you

    i thought there would be a listener or something ready to do thisThere is. It's the Rendered interface, which has a callback everytime data is received. If you want to create a custom renderer that is triggered everytime data is available, you set a processor to use your renderer and when data is available, your process command will be called. Same as an event listener...but it's very advanced stuff to implement the renderer interface.
    for example if u want to record a video ull need to capture every frame as soon as it comesNo, the video doesn't come to you a frame at a time. The video is already encoded somehow when you get it, so it's coming in as a stream just like it'll be going out to the file... It's a stream of bytes, not a stream of images... You're not digitizing here, you're transcoding.

  • How to listen for a change in a JTextArea?

    well ..... the subject says it all :)

    The JavaDoc says it all :)
    The java.awt.TextArea could be monitored for changes by adding a TextListener for TextEvents. In the JTextComponent based components, changes are broadcasted from the model via a DocumentEvent to DocumentListeners. The DocumentEvent gives the location of the change and the kind of change if desired. The code fragment might look something like:
    DocumentListener myListener = ??;
    JTextArea myArea = ??;
    myArea.getDocument().addDocumentListener(myListener);http://java.sun.com/j2se/1.4/docs/api/javax/swing/JTextArea.html
    Col

  • Listen for change in JTextField

    I would like to write an event listener to listen for any changes made to a JTextField. Normally I would think that keyListeners would do the trick except that the contents of this field can be altered by the application itself, and I would like to trap those changes too.
    Does anyone know of an event listener that listens for any changes made in the text of a JTextField, regardless of how those changes are made?

    use DocumentListener
    for more info see http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html#doclisteners

  • Lisetening for Property change

    I have created a MC to be used as a button. It is generic and
    I customize it per instance. It contains an onRelease event
    handler.
    I am confused as to what approach I can take within the MC's
    onRelease statement that would allow the parent to 1> know the
    MC has been clicked & 2> know which instance of the MC has
    been clicked (without putting onRelase code for each instance at
    the parent level).
    I was trying the following...
    myMC.onRelease = function() {
    _parent.clickedButton = myMC._name;
    ...but I couldn't figure how to make the parent listen for a
    change to clickedButton.
    How can I listent for a variable change? Is there a better
    approach?
    thx,
    Nathan

    Looks like I can answer my own question. In case anyone else
    is confused as to how to do this, I used the Object.watch method.
    After doing the above in the MC, I included the following in
    the parent...
    var btnWatcher:Function = function(prop, oldVal, newVal,
    userData) {
    trace(newVal);
    this.watch("clickedButton", btnWatcher);

  • How do I listen for change in the global position of a Node

    Hi there,
    I want to create a Wire/Connection node between two scene nodes. I want this Wire node to be updated when one of the nodes is moving. In the common scenario I would listen for change events in the target nodes position and update the Wire :
    targetNode1.translateXProperty().addListener(new ChangeListener<Number>() {
    public void changed(ObservableValue value, Number oldValue, Number newValue) {             
    wire.setStartX(targetNode1.getTranslateX());
    wire.setStartX(targetNode1.getTranslateY());
    wire.setEndX(targetNode2.getTranslateX());
    wire.setEndY(targetNode2.getTranslateY());
    The problem is that the target nodes are children of another container nodes(that are actually moving). So listening for change events in the translate properties of the target nodes does not work(their parent nodes are actually moving)
    Is there way to listent for change in the global position of the target nodes relative to the Scene?

    It sounds very similar to a problem I posted about earlier...
    How to implement a UI similar to a UML Diagram with connections?
    I ended up making my own special bounds property, that updates when the parent's special bounds property changes.
    I also had to listen to the parentProperty change event to add/remove my listener on the parent node.
    All in all, a pain in the butt. There should be an easier way.
    The shortcoming of the solution is that all the nodes in the hierarchy must have my special bounds property implemented (ie. they're all classes under my codebase such that I can implement it), which for the moment is true... I'd like a cleaner solution however.

  • Is it possible to have listener for orcale shut won event ?

    Hi,
    We know that during normal shut down of the oracle database, message is sent to the clients. Is it possible to have listener for that event using JDC ?
    Any suggestion is welcome.
    TIA,
    Sudarson

    This is not something that Verizon would handle or be able to change.  It would be something that Google would have to change in the Android source code, or the OEMs in their device specific versions.  Or you could just look for another app.

  • SWF panel listener for changed selection

    In short, my question is as follows. Is it possible to create a listener which
    detects when the current selection in the Flash authoring tool has changed,
    and informs my SWF panel? This does not have to be a listener per se,
    it can be some hand-crafted process which consumes some reasonable amount of processor time.
    I describe my question more precisely below.
    Suppose that I want to create an SWF extension panel for Flash (in Flash or Flex),
    and I would like the panel to display a property of the object currently selected on scene
    in the Flash IDE -- like the instance name of the object (if it exists).
    I can use JSFL to detect the instance name of the selected object, and pass the string to the
    SWF panel using call(), for instance. The problem is that I don't know how
    to detect that the user has selected the object, or that the selection has changed.
    Ideally, I would like to add an event listener that listens for such an action in the flash authoring tool.
    However, using JSFL, this does not seem to be possible (I can only listen to events such as frame changed
    or layer changed, but not selection changed).
    I tried the following solutions:
    1. Periodically check in JSFL whether the current selection has changed.
    The problem is that in JSFL, there is no sleep function, or anything alike. The javascript
    methods setInterval and setTimeout do not work in JSFL. Therefore, in order to periodically check for changes,
    one must actively loop. This is extremely resource-consuming -- in fact, it hangs the flash IDE.
    2. The periodic check can be triggered by the SWF panel itself. In actionscript, I can use setInterval to periodically
    invoke the selection update function via JSFL. I have set the interval to 400 milliseconds, which gives a reasonably quick
    reaction to changes. However, the functionality I want to implement is in fact more complicated than just retrieving the
    instance name of the selected object. As a consequence, performing this operation every 400 milliseconds still consumes
    too much processor time (the flash IDE consumes 30% of my processor time, even if the user doesn't do anything).
    Therefore, I still would like to find a solution which does not use the processor when the user does not do anything in the Flash IDE.

    I'm trying to do the same thing. Did you find a solution?

  • How to create many objects listening for one event

    I'm experimenting with the EventDispatcher class and I have a
    test class working. I want to use a loop to create a variety of
    movie clips that all listen for an event that gets dispatched every
    half a second. I have the event dispatching properly. My problem is
    that when creating the objects, the temporary variable I use to
    hold each created object has a life that extends beyond the loop in
    which it is instantiated. Rather than all five created objects
    changing color, only the last one changes color (see the code
    below--it lives on the first frame of an FLA file).
    This is not entirely surprising when I look at the code --
    'this' refers to the global scope and 'square' refers to the last
    created object that it pointed to. Here's the resulting trace:
    handler runing, square name is square 4
    this class name is global
    handler runing, square name is square 4
    this class name is global
    handler runing, square name is square 4
    this class name is global
    handler runing, square name is square 4
    this class name is global
    handler runing, square name is square 4
    this class name is global
    How can I modify this code so that each square object changes
    its own color?

    graphics.clear in the context of that function handler in my
    code would refer not to the squares but to the global scope,
    wouldn't it? In which case you'd be clearing all the graphics from
    your top level movie. I tried changing 'square.graphics' to just
    'graphics' in my handler and my squares just remained the original
    steady black.
    Your code doesn't use a loop and therefore isn't re-using a
    variable. You've escaped my 'logical errors' through brute force.
    (BTW, I think my code would work in AS2 if I used the old-school
    draw methods). Suppose you had to create 100 objects? Would you
    want to manually instantiate each one, typing that function over
    and over again? You'd have 500 lines of highly redundant code!
    Maybe try your example using a loop instead? I think you'll
    find it's pretty tough to sneak any vars like 'i' or 'square' from
    the global scope into the handler--the handler refers to the
    living, breathing variable rather than it's value at the time the
    handler was instantiated. Furthermore, you can't sneak any
    information about the square into your handler via the event object
    because the event object is created in a totally different place.

  • Listening for Changes to JTextArea

    I am writing a program that listens for changes to the contents of a JTextArea to obtain input for its execution. But I have implemented DocumentListener, PropertyChangeListener to listen for changes to the JTextArea for deriving input without success. Please could anyone advice on what to do.
    My code is below.
       myListener implements DocumentListener{
       JTextArea txt = new JTextArea();
       txt.getDocument().addDocumentListener(this);
       public void changedUpdate(DocumentEvent e){}
       public void removeUpdate(DocumentEvent e){} 
       public void insertUpdate(DocumentEvent e){
        try{
         //my code for obtaining input from txt is here
         int start = e.getOffset();
         Document doc = e.getDocument();
        }catch(BadLocationException ble){
    }

    Here's a link to the Swing tutorial on "How to Write a Document Listener":
    http://java.sun.com/docs/books/tutorial/uiswing/events/documentlistener.html

  • Any way to listen for changes in Spark TextArea?

    Hello,
    What is the best way to listen for changes in a Spark TextArea? My scenario is simple: I need to know when some text is added or deleted (with from/to index).
    Regards,
    Dinko

    s:TextArea does have a chang event - http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/TextAr ea.html.

Maybe you are looking for

  • Apex_util.set_session_state issue

    Hi In order to try and workaround the issue reported in Translate substitutions I have been trying to set application item values using apex_util.set_session_state but this doesn't appear to be working. The problem in the thread was that when the adm

  • Is apple going to make a new ipod classic?

    i was wondering to but an old ipod classic or wait for a new one. But, is there going to be a new one?

  • How can I get hold of the hWnd for a CWgraph control?

    I wish to plot the area between two cursors on a CWGraph in inverse colour. I believe I can do this if I can get the hWnd of the control. Can I get hold of the hWnd in VB or do I have to go to VC and CW++. (I hope not 'cos I REALLY don't like MFC) Pa

  • Nano and itunes

    this isn't a major issue but it's annoying enough that i want to know if anyone else has it. Everytime i connect my nano it says welcome to your new ipod. then i click continue and the normal info comes up. im using vista with itunes 9.0.2.25 one5860

  • Reset Syst Prefs by deleting related ".plist" file-but no new one created

    System Preferences was acting buggy (wouldn't open), so I deleted "com.apple.systempreferences.plist", to reset them. But even though Mac OS X should create a new one to replace it, there is still no system preferences file. How do I fix this?