Redundant (and wrong?) ADDED_TO_STAGE events

I'm always in the middle of this diagnosis, but thought others might have seen, or it may stick to an explanation possible for problems in their application, maybe just with the latest SDK or OS.  I am not sure yet that it's anything other than to hurt me, but of course, it does not match my understanding of how things are meant to work.

I have an app with a really simple Interface, the relevant material being the root Sprite, a homepage Sprite in that and in this page a Sprite that contains the bitmap I'll call graph.  I am facing a problem at startup when the graph is two ADDED_TO_STAGE events, even if it is NOT added multiple times or removed.

I put things up by adding an ADDED_TO_STAGE listener to each class constructor.  In the root of the ADDED_TO_STAGE sprite, I build the main page and addChild(), which leads to get an ADDED_TO_STAGE (immediately).  In this handler, I build the graph (and much more) and addChild(), if she then gets an ADDED_TO_STAGE (immediately) as well.  All fine so far... it's like things "should" work.

Unfortunately, upon return to the home page Manager ADDED_TO_STAGE, the graph becomes another ADDED_TO_STAGE parasite even though she is already in the stage's display list and was not REMOVED_FROM_STAGE in the meantime.  This sequence all occurs within the single function call to addChild (hand) in the root of the ADDED_TO_STAGE sprite Manager, it seems to be triggered by the Flash runtime behavior and not my code.

Worse yet, I added managers to each of these three classes to look at ADDED and REMOVED as well as versions "to_stage" of the people, and I see a lot of redundant ADDED events with no DELETED at all events.

Then a fundamental question: I'm wrong until only a single event ADDED_TO_STAGE for a given object, if it becomes an addChild() makes up for it and its parent and so on?

Secondly, someone has a workaround or other ideas?  I had to make the installer in ADDED_TO_STAGE managers since I can't rely on the 'stage' of any DisplayObject property given as the value down here (other than the root sprite itself).

At present, the only option seems to be moving out of ADDED_TO_STAGE and in constructors for everything except the root sprite.  Is that really the approach typical and/or required?

At the present time, based on what I see the SDK 1.1.0 and running on OS 1.0.6 I would say that if everyone expects only one ADDED and ADDED_TO_STAGE event, and perhaps to build large parts of their user interface in these managers, they will want to verify if they actually build duplicates of many things and possibly raise a really messed up or sluggish UI accordingly.

If necessary, I should be able to it will shrink down to a small sample that shows the problem.  I'll hold off doing this until I hear what others have to say.  Thank you!

(Edit: tried to change the title of the topic.)

Oh, just found this the problem report, noting this is an official bug as well.

Several workaround solutions, each with different disabilities, including the removeEventListener() approach, are listed.

Tags: BlackBerry Developers

Similar Questions

  • reversal, and then click event with swapping of images

    Dear people,

    I am looking for a simple way to solve my problem. I want to have a passage of the mouse and - effect on my bar of navigation, as well as on the click event, it should stay in the mouseover state. So far the mouseout/mouseouthandler() and the click event affect eachother on a wrong track. The example that I have attached here is done with plain rectangles, but later, they will be the images. So I guess that changes in css does not help me.

    I tried to understand some old threads here in the community, but they have reached a level of coding that isn't mine so far.

    MyStatusQuo: http://intern.ixtract.de/_3MFkJRIOOfbNZR

    I hope for your help and thanks in advance!

    It's very easy

    Just put your codes click between If like your mouseover and mouseout/mouseouthandler()

    sample for press 1 > click on

    If (WB! = 1) {}

    Buttons.Reset ();

    sym.getSymbol("btn1").$("back").css ({"background-color": "#ffbb0f"})

    sym.getSymbol("btn1").$("Text").css ({"color": "#000000"})

    sym.getSymbol("btn1").$("Text").html ("Clicked")

    WB = 1;

    }

    Zaxist

  • Can I detect and handle an event already within a structure of the event?

    I have a VI that would do what I want, if I could detect and handle an event of second mouse click while I'm already handling a previous event (selection from popup menu).

    I hope that the picture is clear, but in words what I want is the following: I have first right-click on a chart and select a context menu item, which specifies a graphic manipulation of properties.  Often, this manipulation requires clicking on a second graph to get a reference (for example if I want to copy some of the properties of the first chart on the chart of the target).  It is, it means I'm trying to detect a second event already within a structure of the event.

    I think I could do with a state machine and some registers at offset, and if it's the easiest way, I'll do it.  I would be interested to know whether, if there is a way to detect and manage events 'nested' as I suggested.

    Thank you!

    Your code is not really that complicated.

    Yet, the problem is that confuse you it upward with the main state machine. I would use it in a small parallel loop that only manages events associated with the menu shortcuts. All this should be able to run in parallel in any event, even if the main loop updates the data in the chart at the same time, for example.

    I don't like the dialog box, it hampers the flow of work, but if you use it, use two button dialog so that the user can also cancel if necessary. Instead of the dialog box, you should just temporarily move the cursor on. I also do little to check before operating on the second graph of reason and give a time limit for the second operation.

    Here is a quick project to a more atomic shortcuts Manager. Modify if needed. There are probably bugs.

  • I can finf a log of deleted files and folder in Event Viewer

    can I finf a log of deleted files and folder in Event Viewer ARE ANY TOOL

    Hello rameshkumar_11240,

    Thanks for the reply.  For the question that you described above, please transfer this issue to the address provided below in Microsoft TechNet Forums.

    Microsoft TechNet forums

    http://social.technet.Microsoft.com/forums/en-us/itproxpsp/threads

  • find any newspaper of deleted files and folder in Event Viewer

    find any newspaper of deleted files and folder in Event Viewer OR any tool to find

    AFAIK there is no newspaper.  Do you need to recover deleted?

    If so, try a third party called Recuva application.

  • Stopped my Norton Ghost and Norton checked my computer and found that my Vista Premium do not have or plug and play services event log

    original title: journal of events in Vista Premium

    I had to reinstall Vista after a hard disk failure. My Norton Ghost stopped and Norton checked my computer and found that my Vista Premium do not have or plug and play services event log.
    Do you know how I can get them?

    The event log service will not start. I tried manually, start it and get this message.

    Windows could not start the service on the Local computer Windows event log.
    Error 998:Invalid access to memory location.

    I don't understand why it happened all of a sudden. Does anyone have an idea how I can get going again.

    Hello

    Method 1:

    Event Viewer services are - primary (Windows event log) it has no dependencies, but is dependent on the Scheduler of tasks and Windows event collector.

    Click on start and type Services) in the search box

    (b) right click on the list of programs services and selecting run as administrator

    (c) locate the services listed above and check if they are started.

    Method 2: How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

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

  • Error message: problem loading parameters and check the event log or ask the administrator

    My wallpaper, the desktop icons and most of my documents are gone.

    I have Vista Home Premium and a couple of days and I connected my desktop background was changed. Several desktop icons are missing, and a message came up saying there was a problem loading my settings and check the event log, or ask the administrator (me) for more details. All my "Favorites" were missing in the sidebar and my documents and recorded images folders are empty. Microsoft customer service tells me there is an error in my code for the identification of product (from the Windows Activation in systems and Maintenance) so I can't help out.

    Any thoughts? Thank you!

    Hello, G25

    It is likely that your user profile is damaged. I would advise to create a new user account and test if you get any errors. If everything works as expected under the new user account, you can start to recover your account profile by following the steps on the following link: difficulty of a user profile is corrupted

    David
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Intercept the email opening and closing Email event.

    Hi all
    I created an app that does something, for example showing an alert when an email is opened or when enamel is closed. I am able to show the alert when I receive a call or hang up (via PhoneListener), but the problem is that I am not able to catch open the mail and close the event. I have no idea how this is possible. Please tell me if any APIs exist for this or any other means, it can be done.

    Collate MessageListener and MessageEvent.

  • Cant't save and clear the event logs to a folder on the hard disk

    I have a new hp laptop under windows7. When I try to erase and save the event logs to a folder on the hard drive, I get a message saying that it cannot save the file to the network location despite the fact that I'm not saving to a network location.  I can record the events first and then to clear the logs.  But can not use the option "save and clear."  What could cause this problem?

    Hello

    1 when was the last time save and clear option has worked?
    2 have you made any changes to the computer before the show?

    Run the System File Checker and check if it helps.

    Follow the steps in this link: http://support.microsoft.com/kb/929833

  • Creating ent via API and post processing event handlers

    I have a number of post-processing-event handlers defined for the creation of the organization. They all work fine and do what they need to do when I create an organization via the web interface. However if I create an organization that uses the Java API, managers of events do not run. They are not supposed to run? I think that IOM should handle all the same applications - everywhere where they are generated.

    Here is my example of API:

    Import Thor.API.Exceptions.tcAPlException;
    Import Thor.API.Operations.tcOrganizationOperationslntf;
    import java.util.Hashtable;
    import java.util.HashMap;
    Import javax.security.auth.login.LoginException;
    Import oracle.iam. platform. OIMClient;

    public class test {}
    Public Shared Sub main (string [] args)
    {
    Hashtable env = new HashtableQ;
    approx. put (0IMc1 I ent. jAvA_NAMING_FACTORY_INITIAL, "weblogic.jndi.WLInitiialContextFactory");
    env.put (mpta OIMC]. JAVA_NAMING_PROVIDER_URL, "t3: / / localhost:14000");
    OIMClient oimclient = new olMClient (env);
    try {}
    oimclient. Login ("xelsysadm", args [O] .tocharArrayO); II the password is the only argument
    } catch (System.Exception e)
    System.out.println ("ERROR: connection exception.") Please check your username / password are correct. ») ;
    }
    tcorganizationOperationsintf orgManager = (tcOrganizationOperationsintf.class) oimclient.getservice;
    < String, String > HashMap hmorgDetails = new HashMap < String, String > ();
    hmOrgDetails.put ('Organizations.organizationName', 'org test');
    hmorgDetails.put ('Organizations.Type', 'Branch')
    Try
    {
    orgManager.createOrganization (hmorgDetails);
    } catch (Exception e) {}
    System.out.println (e. getMessage())
    e.printStackTraceQ;
    }
    return;
    }
    }

    and my definition of post processing:
    <? XML version = 'l.O' encoding = "uTF - 8"? >
    < eventhandlers xmlns = "http://www.oracle.com/schema/oim/platform/kernel."
    xmlns: xsi = "http://www.w3.org/2001/xMLschema-instance".
    xsi: schemaLocation = "http://www.oracle.com/schema/oim/platform/kernel%2dorchestrat-jon."
    -hand] ers. XSD">
    <! - custom preprocess event handlers - >
    < entity-type of the action handler = operation 'Organization' = 'CRΘER. '
    Class =' ' corn.corp.AutoCreateRoles
    name = 'Run in creating org'
    Stadium = "post-processing".
    order = "2000".
    Sync = "TRUE" / >

    Try to use OrganizationManager service class in your java code instead of the tcOrganizationOperationsIntf inheritance. Which should trigger the event handler. Recently, I had a problem where using the EntityManager on user has not triggered the eventhandler but only when using the UserManager triggered it.
    It would be possible only when you are using the legacy API, a new orchestration is not produced, and therefore the event handler is not called.

    -Marie

  • VC die randomly and the windows event viewer will display the following error message

    Hello

    in the last time we are experience a lot of vc crashes and the windows event viewer shows the following error:

    ORA-01483: invalid length for the DATE or NUMBER variable binding

    "is returned when you run the SQL" UPDATE VPX_VM SET TOOLS_STATUS =?, TOOLS_VERSION =?, GUEST_OS =?, GUEST_FAMILY =?, GUEST_STATE =?, DNS_NAME =?, IP_ADDRESS =? WHERE ID =? ».

    ORA] ORA-12899: value too large for column 'VPXADMIN '. "" "" VPX_VM '. "" IP_ADDRESS"(real: 40, maximum: 16)

    "is returned when you run the SQL" UPDATE VPX_VM SET TOOLS_STATUS =?, TOOLS_VERSION =?, GUEST_OS =?, GUEST_FAMILY =?, GUEST_STATE =?, DNS_NAME =?, IP_ADDRESS =? WHERE ID =? ».

    There is no update or modify the software to vmware esx/vc or oracle.

    Anyone has the same problem or have a solution/fix for this problem?

    Environment:

    Oracle 10.2.0.3 DB

    Virtual Center 2.5 U3

    VMware ESX cluster

    Vmware ESX 3.5 Server Patchlevel 1 x 143128

    3 x Vmware ESX 3.5 Server Patchlevel 123630

    This is a known bug in oracle - 10.2.0.3. Upgrade to 10.2.0.4 or install the Oracle patches 6085625 and 6452485 (as far as I remember you just one of them, but for the moment, I can't say that one)

    --

    There are 10 types of people. Those who understand binary and the rest. And those who understand the gray code.

  • What is the difference between redundancy and recovery for retention window?

    Hi all

    I'm still trying to get a grip on this concept of planning RMAN backup.

    I recently came across a situation like this.

    I have backups on a redundancy of 1.

    I have instance1, who had a job of GRID to run backups RMAN as follows

    Database incremental level = 0 a week at sea at 02:30
    I have backups daily, incremental level = 1 every night
    I have backups of the log of the archives through the day.

    What happened, was apparently on a TUE some time, the development team remove data in almost all of the tables in the schema.
    The this didn't discover until noon or so on Wednesday.

    I went to try to restore... and RMAN could not do. I had found a SNA for early TUES, they did... but I got the following error:

    RMAN > RUN
    2 > {}
    3 > SET up to this THAT SNA 4590383198282.
    4 > RESTORE database;
    5 > RECOVER DATABASE;
    {6 >}

    executing command: SET until clause

    From restoration to the 28 April 10
    allocated channel: ORA_SBT_TAPE_1
    channel ORA_SBT_TAPE_1: SID = 639 device type = SBT_TAPE
    channel ORA_SBT_TAPE_1: NMO v4.5.0.0
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID = 638 type device = DISK

    File number of the data file = 1 name=+DATADG/instance1/datafile/system.284.697137287
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the command restore at 2010-04-28 15:53
    ORA-01180: cannot create the data file 1
    ORA-01110: data file 1: '+ DATADG/instance1/datafile/system.284.697137287 '.

    What I did... of research, it seems that since I don't have a level 0 incremental of before, he could not reset the database in time. Precedent has been removed since, I guess I had a redundancy of 1.

    So, I thought that I had a week of backup they way I put it... but that assumes that the errors are found fairly quickly before the next level = 0 backup.

    I want at least 1 to 1.5 weeks of worth of backups. I have the problem that we do have many tapes in rotation, so I can't go because too long..may 2 x weeks at the top.

    I'm revising my strategy, but I am confused that I read about the difference between retention RMAN setting with window of recovery / redundancy.

    Can someone give me an explanation how do you understand? I read on the web and in books to oracle, and for some reason, it is not clear to me what is the best way to go... especially when I see this window of redundancy and recovery can affect?

    Thank you in advance,

    Cayenne

    Redundancy = 1 means rman will mark any more old than the backup of the last full or incremental backup of level 0 as obsolete. So it is very likely that the backup that you need for this restore has been removed after work Wednesday morning.

    The recovery window will tell rman to keep (or not obsolete brand) all necessary backups to restore to any point in time in the recovery window.

    Bjoern

  • How to repeat an event every month, and that the event referred to the previous Friday if the event falls on a weekend.

    Company is paid twice a month. The 15th and the last day of the month.

    Defining the last day of the month would repeat each month, day of the last week. But how do you define the 15th with these conditions:

    If the 15th falls on the weekend, it will be Friday before the weekend. For example, May 15, 2016 falls on a Sunday, the event must be moved to May 13 instead. Is this possible?

    Thank you!

    Found the answer.

    Snow Leopard iCal - event on Friday if the Nth is a weekend/holiday?

  • HP Software Framework 4 and 5 error event

    Hello

    I keep getting this error on my Event Viewer each time in the computer journal.

    Errors:

    Event 5, CaslWmi

    01/12/2011 17:07:15.402 | 00000404 | Error | [CaslWmi] CommandFolio::A {hpCasl.enReturnCode(int&)} | 0xe_BIOS_INVALID_COMMAND_TYPE error call WMI BIOS Read/2Eh while getting the State Folio

    Event 4, CaslWmi

    01/12/2011 17:07:15.231 | 00000404 | WARNING | [CaslWmi] A::A {hpCasl.enReturnCode(Object&)} | Call BIOS WMI error E_BIOS_INVALID_COMMAND_TYPE command / 30 h when getting EDID data

    I also installed the latest drivers and software from HP support.

    Please help me on how to solve this problem?

    Thank you.

    To all those who have this framework of the HP software error in Event Viewer. I have confirmation that the HP sp56878 corrects this error. I don't know about other models, but for me it has worked.

    The information about the update:

    FTP://FTP.HP.com/pub/SoftPaq/sp56501-57000/sp56878.html

    The download link:

    FTP://ftp.HP.com/pub/SoftPaq/sp56501-57000/sp56878.exe

    Finally, you have my problem corrected thanks HP...

    I thank all of you guys for making my problem can be recognized by HP.

    Thank you very much

    Cordially MrPhilipTran

  • IPhoto crashed and remove partial events

    I'm sorry, there was a similar thread, and I accidentally it marked as closed. He came from nowhere and I includes a summary and a link at the bottom.

    I launched iphoto 9.5.1 on 10.9.5 and have no good backup.  (Please do not pass judgment, I know I should have upgraded and saved...). Is it possible for me to return my events, changes, titles and other metadata?

    2 days ago iphoto crashed and would not restart. When you hold option + command while from iphoto did not (much less quick to rebuild) library, I installed iPhoto Library Manager who found the library without even an error message but only a fraction of the pictures (about 1500 to 6000). Photos seem to lack of each event, the films have been truncated. The most recent event was absent.

    I checked in the file system, Library.photolibrary/Masters/2014/05/10/ Pictures/iPhoto... the pictures were there and seem to be grouped reasonably, probably by import. A recovery of Library Manager iPhoto later with pictures of recovery orphan to return a batch of photos, I guess that all that were in events over what was in the trash. (Even after the removal of duplicates, I more than before.) They are in folders of every day now, I almost 500 instead of 90 and lost titles and most of the changes.

    The thread iphoto 9.5.1 orphans most of my photos

    • The damaged library is located on the system drive, in ~/Pictures named Library.photolibrary iPhoto and shows in the finder with the icon of the fan (see below)
    • Control option double click the damaged library translates iPhoto trying to repair the reconstructed library and then try to import the library damaged in that rebuilt
    • The rebuilt library does not contain a folder of "old masters", at least not after a savaged the orphan photos.
    • I did not perform an upgrade on the damaged library or iPhoto update recently
    • It crashed during the execution of the faces.
    • drwxr-xr-x @ 17 personal myuserid 578 4 Feb 01:11 iPhoto Library.photolibrary

    The simplest solution is to restore the backup copy of your library that was made just before this happen.

    If not try this:

    With the help of iPhoto Library Manager to rebuild your iPhoto library

    1 - Download iPhoto Library Manager and launch. > click on the button Add library.

    2 - Select the library you want to add those in the selection window.

    3 - Make sure that the window box "photos orphan Scavange" is checked in the reconstruction.

    4. now that the library is listed in the left pane of PILM, click your library and go to the Library ➙ rebuild library menu option

    5. in the next window name the new library, and then select the location you want to be placed. Click on the button create.

    , Note 1: This creates a library based on the LIbraryData.xml file in the library and will retrieve the events, Albums, keywords, titles and comments. However, books, calendars, cards and slideshows will be lost.


    Note 2: Your current library will be left intact for subsequent difficulty attempts if you wish.

Maybe you are looking for