Problem adding elements to a group after removing everything...

Hi everyone,
I would really appreciate some help on something. I have a Group that has some Buttons in it. This Group is in one of fours States, and there is a componant for each State. After the user goes through the rest of the program and comes back to this State, I want to remove the old buttons, and add new buttons with new values. Bascially, I want to refresh the componant when it is visited a second time. I have a problem adding new Buttons to the group when the user revisits the componant / state.
The group is created:
          <s:VGroup id="buttons"  x="0" y="35"  height="400" width="280" />
When the init function for that componant is called, buttons are added from an array of buttons:
for(var i:int = 0; i < 10; i++){
          var button:Button = questions[i];
          trace(button);
          button.addEventListener(MouseEvent.CLICK, myEventHandler);
          trace(buttons);
          buttons.addElement(button);
When the user moves on to the next State, the buttons are removed:
if(counter == 4){
          buttons.removeAllElements();
          FlexGlobals.topLevelApplication.currentState = 'Summary';
When the user comes back to the initial state, the buttons are not added to the Group like they are the first time. The output of the trace as each button is added is also different the second time:
First time: (successful)
Main.MainBackground2.contentGroup.gameComp.buttons
button8
Second time:
buttons
button8
Can anyone point me in the right direction? And better question, is there a better way I should be doing this?
Is there a better way to refresh everything within a component upon viewing it s second time?
Thanks in advance!

I'm not sure why you are using addElement() to add the buttons. Aren't you supposed to let the state functionality handle when the buttons should be visible? That's the cleanest way to do it in most cases. You may want to post a larger code sample, where you have boiled down the code into a minimal sample that still enhibits the issue.
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
www.ChikaraDev.com
Flex Training and Support Services

Similar Messages

  • Adding node back into cluster after removal...

    Hi,
    I removed a cluster node using "scconf -r -h <node>" (carried out all the other usual removal steps before getting this command to work).
    Because this is a pair+1 cluster and the node i was trying to remove was physically attached to the quroum device (scsi), I had to create a dummy node before the removal command above would work.
    I reinstalled solaris, SC3.1u4 framwork, patches etc. and then tried to run scsinstall again on the node (reintroduced the node to the cluster again first using scconf -a -T node=<node>).
    However! during the scsinstall i got the following problem:
    Updating file ("ntp.conf.cluster") on node n20-2-sup ... done
    Updating file ("hosts") on node n20-2-sup ... done
    Updating file ("ntp.conf.cluster") on node n20-3-sup ... done
    Updating file ("hosts") on node n20-3-sup ... done
    scrconf: RPC: Unknown host
    scinstall:  Failed communications with "bogusnode"
    scinstall: scinstall did NOT complete successfully!
    Press Enter to continue:
    Was not sure what to do at this point, but since the other clusternodes could now see my 'new' node again, i removed the dummy node, rebooted the new node and said a little prayer...
    Now, my node will not boot as part of the cluster:
    Rebooting with command: boot
    Boot device: /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@w21000004cfa3e691,0:a File and args:
    SunOS Release 5.10 Version Generic_127111-06 64-bit
    Copyright 1983-2007 Sun Microsystems, Inc. All rights reserved.
    Use is subject to license terms.
    Hostname: n20-1-sup
    /usr/cluster/bin/scdidadm: Could not load DID instance list.
    Cannot open /etc/cluster/ccr/did_instances.
    Booting as part of a cluster
    NOTICE: CMM: Node n20-1-sup (nodeid = 1) with votecount = 0 added.
    NOTICE: CMM: Node n20-2-sup (nodeid = 2) with votecount = 2 added.
    NOTICE: CMM: Node n20-3-sup (nodeid = 3) with votecount = 1 added.
    NOTICE: CMM: Node bogusnode (nodeid = 4) with votecount = 0 added.
    NOTICE: clcomm: Adapter qfe5 constructed
    NOTICE: clcomm: Path n20-1-sup:qfe5 - n20-2-sup:qfe5 being constructed
    NOTICE: clcomm: Path n20-1-sup:qfe5 - n20-3-sup:qfe5 being constructed
    NOTICE: clcomm: Adapter qfe1 constructed
    NOTICE: clcomm: Path n20-1-sup:qfe1 - n20-2-sup:qfe1 being constructed
    NOTICE: clcomm: Path n20-1-sup:qfe1 - n20-3-sup:qfe1 being constructed
    NOTICE: CMM: Node n20-1-sup: attempting to join cluster.
    NOTICE: clcomm: Path n20-1-sup:qfe1 - n20-2-sup:qfe1 being initiated
    NOTICE: CMM: Node n20-2-sup (nodeid: 2, incarnation #: 1205318308) has become reachable.
    NOTICE: clcomm: Path n20-1-sup:qfe1 - n20-2-sup:qfe1 online
    NOTICE: clcomm: Path n20-1-sup:qfe5 - n20-3-sup:qfe5 being initiated
    NOTICE: CMM: Node n20-3-sup (nodeid: 3, incarnation #: 1205265086) has become reachable.
    NOTICE: clcomm: Path n20-1-sup:qfe5 - n20-3-sup:qfe5 online
    NOTICE: clcomm: Path n20-1-sup:qfe1 - n20-3-sup:qfe1 being initiated
    NOTICE: clcomm: Path n20-1-sup:qfe1 - n20-3-sup:qfe1 online
    NOTICE: clcomm: Path n20-1-sup:qfe5 - n20-2-sup:qfe5 being initiated
    NOTICE: clcomm: Path n20-1-sup:qfe5 - n20-2-sup:qfe5 online
    NOTICE: CMM: Cluster has reached quorum.
    NOTICE: CMM: Node n20-1-sup (nodeid = 1) is up; new incarnation number = 1205346037.
    NOTICE: CMM: Node n20-2-sup (nodeid = 2) is up; new incarnation number = 1205318308.
    NOTICE: CMM: Node n20-3-sup (nodeid = 3) is up; new incarnation number = 1205265086.
    NOTICE: CMM: Cluster members: n20-1-sup n20-2-sup n20-3-sup.
    NOTICE: CMM: node reconfiguration #18 completed.
    NOTICE: CMM: Node n20-1-sup: joined cluster.
    NOTICE: CMM: Node (nodeid = 4) with votecount = 0 removed.
    NOTICE: CMM: Cluster members: n20-1-sup n20-2-sup n20-3-sup.
    NOTICE: CMM: node reconfiguration #19 completed.
    WARNING: clcomm: per node IP config clprivnet0:-1 (349): 172.16.193.1 failed with 19
    WARNING: clcomm: per node IP config clprivnet0:-1 (349): 172.16.193.1 failed with 19
    cladm: CLCLUSTER_ENABLE: No such device
    UNRECOVERABLE ERROR: Sun Cluster boot: Could not initialize cluster framework
    Please reboot in non cluster mode(boot -x) and Repair
    syncing file systems... done
    WARNING: CMM: Node being shut down.
    Program terminated
    {1} ok
    Any ideas how i can recover this situation without having to reinstall the node again?
    (have a flash with OS, sc3.1u4 framework etc... so not the end of the world but...)
    Thanks a mil if you can help here!
    - headwrecked

    Hi - got sorted with this problem...
    basically just removed (scinstall -r) the sc3.1u4 software from the node which was not booting, and then re-installed the software (this time the dummy node had been removed so it did not try to contact this node and the scinstall completed without any errors)
    I think the only problem with the procedure i used to remove and readd the node was that i forgot to remove the dummy node before re-adding the actaul cluster node again...
    If anyone can confirm this to be the case then great - if not... well its working now so this thread can be closed.
    root@n20-1-sup # /usr/cluster/bin/scinstall -r
    Verifying that no unexpected global mounts remain in /etc/vfstab ... done
    Verifying that no device services still reference this node ... done
    Archiving the following to /var/cluster/uninstall/uninstall.1036/archive:
    /etc/cluster ...
    /etc/path_to_inst ...
    /etc/vfstab ...
    /etc/nsswitch.conf ...
    Updating vfstab ... done
    The /etc/vfstab file was updated successfully.
    The original entry for /global/.devices/node@1 has been commented out.
    And, a new entry has been added for /globaldevices.
    Mounting /dev/dsk/c3t0d0s6 on /globaldevices ... done
    Attempting to contact the cluster ...
    Trying "n20-2-sup" ... okay
    Trying "n20-3-sup" ... okay
    Attempting to unconfigure n20-1-sup from the cluster ... failed
    Please consider the following warnings:
    scrconf: Failed to remove node (n20-1-sup).
    scrconf: All two-node clusters must have at least one shared quorum device.
    Additional housekeeping may be required to unconfigure
    n20-1-sup from the active cluster.
    Removing the "cluster" switch from "hosts" in /etc/nsswitch.conf ... done
    Removing the "cluster" switch from "netmasks" in /etc/nsswitch.conf ... done
    ** Removing Sun Cluster framework packages **
    Removing SUNWkscspmu.done
    Removing SUNWkscspm..done
    Removing SUNWksc.....done
    Removing SUNWjscspmu.done
    Removing SUNWjscspm..done
    Removing SUNWjscman..done
    Removing SUNWjsc.....done
    Removing SUNWhscspmu.done
    Removing SUNWhscspm..done
    Removing SUNWhsc.....done
    Removing SUNWfscspmu.done
    Removing SUNWfscspm..done
    Removing SUNWfsc.....done
    Removing SUNWescspmu.done
    Removing SUNWescspm..done
    Removing SUNWesc.....done
    Removing SUNWdscspmu.done
    Removing SUNWdscspm..done
    Removing SUNWdsc.....done
    Removing SUNWcscspmu.done
    Removing SUNWcscspm..done
    Removing SUNWcsc.....done
    Removing SUNWscrsm...done
    Removing SUNWscspmr..done
    Removing SUNWscspmu..done
    Removing SUNWscspm...done
    Removing SUNWscva....done
    Removing SUNWscmasau.done
    Removing SUNWscmasar.done
    Removing SUNWmdmu....done
    Removing SUNWmdmr....done
    Removing SUNWscvm....done
    Removing SUNWscsam...done
    Removing SUNWscsal...done
    Removing SUNWscman...done
    Removing SUNWscgds...done
    Removing SUNWscdev...done
    Removing SUNWscnmu...done
    Removing SUNWscnmr...done
    Removing SUNWscscku..done
    Removing SUNWscsckr..done
    Removing SUNWscu.....done
    Removing SUNWscr.....done
    Removing the following:
    /etc/cluster ...
    /dev/did ...
    /devices/pseudo/did@0:* ...
    The /etc/inet/ntp.conf file has not been updated.
    You may want to remove it or update it after uninstall has completed.
    The /var/cluster directory has not been removed.
    Among other things, this directory contains
    uninstall logs and the uninstall archive.
    You may remove this directory once you are satisfied
    that the logs and archive are no longer needed.
    Log file - /var/cluster/uninstall/uninstall.1036/log
    root@n20-1-sup #
    Ran the scinstall again:
    >>> Confirmation <<<
    Your responses indicate the following options to scinstall:
    scinstall -ik \
    -C N20_Cluster \
    -N n20-2-sup \
    -M patchdir=/var/cluster/patches \
    -A trtype=dlpi,name=qfe1 -A trtype=dlpi,name=qfe5 \
    -m endpoint=:qfe1,endpoint=switch1 \
    -m endpoint=:qfe5,endpoint=switch2
    Are these the options you want to use (yes/no) [yes]?
    Do you want to continue with the install (yes/no) [yes]?
    Checking device to use for global devices file system ... done
    Installing patches ... failed
    scinstall: Problems detected during extraction or installation of patches.
    Adding node "n20-1-sup" to the cluster configuration ... skipped
    Skipped node "n20-1-sup" - already configured
    Adding adapter "qfe1" to the cluster configuration ... skipped
    Skipped adapter "qfe1" - already configured
    Adding adapter "qfe5" to the cluster configuration ... skipped
    Skipped adapter "qfe5" - already configured
    Adding cable to the cluster configuration ... skipped
    Skipped cable - already configured
    Adding cable to the cluster configuration ... skipped
    Skipped cable - already configured
    Copying the config from "n20-2-sup" ... done
    Copying the postconfig file from "n20-2-sup" if it exists ... done
    Copying the Common Agent Container keys from "n20-2-sup" ... done
    Setting the node ID for "n20-1-sup" ... done (id=1)
    Verifying the major number for the "did" driver with "n20-2-sup" ... done
    Checking for global devices global file system ... done
    Updating vfstab ... done
    Verifying that NTP is configured ... done
    Initializing NTP configuration ... done
    Updating nsswitch.conf ...
    done
    Adding clusternode entries to /etc/inet/hosts ... done
    Configuring IP Multipathing groups in "/etc/hostname.<adapter>" files
    IP Multipathing already configured in "/etc/hostname.qfe2".
    Verifying that power management is NOT configured ... done
    Ensure that the EEPROM parameter "local-mac-address?" is set to "true" ... done
    Ensure network routing is disabled ... done
    Updating file ("ntp.conf.cluster") on node n20-2-sup ... done
    Updating file ("hosts") on node n20-2-sup ... done
    Updating file ("ntp.conf.cluster") on node n20-3-sup ... done
    Updating file ("hosts") on node n20-3-sup ... done
    Log file - /var/cluster/logs/install/scinstall.log.938
    Rebooting ...
    Mar 13 13:59:13 n20-1-sup reboot: rebooted by root
    Terminated
    root@n20-1-sup # syncing file systems... done
    rebooting...
    R
    LOM event: +103d+20h44m26s host reset
    screen not found.
    keyboard not found.
    Keyboard not present. Using lom-console for input and output.
    Sun Netra T4 (2 X UltraSPARC-III+) , No Keyboard
    Copyright 1998-2003 Sun Microsystems, Inc. All rights reserved.
    OpenBoot 4.10.1, 4096 MB memory installed, Serial #52960491.
    Ethernet address 0:3:ba:28:1c:eb, Host ID: 83281ceb.
    Initializing 15MB Rebooting with command: boot
    Boot device: /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@w21000004cfa3e691,0:a File and args:
    SunOS Release 5.10 Version Generic_127111-06 64-bit
    Copyright 1983-2007 Sun Microsystems, Inc. All rights reserved.
    Use is subject to license terms.
    Hostname: n20-1-sup
    Configuring devices.
    devfsadm: minor_init failed for module /usr/lib/devfsadm/linkmod/SUNW_scmd_link.so
    Loading smf(5) service descriptions: 24/24
    /usr/cluster/bin/scdidadm: Could not load DID instance list.
    Cannot open /etc/cluster/ccr/did_instances.
    Booting as part of a cluster
    NOTICE: CMM: Node n20-1-sup (nodeid = 1) with votecount = 0 added.
    NOTICE: CMM: Node n20-2-sup (nodeid = 2) with votecount = 2 added.
    NOTICE: CMM: Node n20-3-sup (nodeid = 3) with votecount = 1 added.
    NOTICE: clcomm: Adapter qfe5 constructed
    NOTICE: clcomm: Path n20-1-sup:qfe5 - n20-2-sup:qfe5 being constructed
    NOTICE: clcomm: Path n20-1-sup:qfe5 - n20-3-sup:qfe5 being constructed
    NOTICE: clcomm: Adapter qfe1 constructed
    NOTICE: clcomm: Path n20-1-sup:qfe1 - n20-2-sup:qfe1 being constructed
    NOTICE: clcomm: Path n20-1-sup:qfe1 - n20-3-sup:qfe1 being constructed
    NOTICE: CMM: Node n20-1-sup: attempting to join cluster.
    NOTICE: clcomm: Path n20-1-sup:qfe1 - n20-2-sup:qfe1 being initiated
    NOTICE: CMM: Node n20-2-sup (nodeid: 2, incarnation #: 1205318308) has become reachable.
    NOTICE: clcomm: Path n20-1-sup:qfe1 - n20-2-sup:qfe1 online
    NOTICE: clcomm: Path n20-1-sup:qfe5 - n20-3-sup:qfe5 being initiated
    NOTICE: CMM: Node n20-3-sup (nodeid: 3, incarnation #: 1205265086) has become reachable.
    NOTICE: clcomm: Path n20-1-sup:qfe5 - n20-3-sup:qfe5 online
    NOTICE: clcomm: Path n20-1-sup:qfe5 - n20-2-sup:qfe5 being initiated
    NOTICE: clcomm: Path n20-1-sup:qfe5 - n20-2-sup:qfe5 online
    NOTICE: clcomm: Path n20-1-sup:qfe1 - n20-3-sup:qfe1 being initiated
    NOTICE: clcomm: Path n20-1-sup:qfe1 - n20-3-sup:qfe1 online
    NOTICE: CMM: Cluster has reached quorum.
    NOTICE: CMM: Node n20-1-sup (nodeid = 1) is up; new incarnation number = 1205416931.
    NOTICE: CMM: Node n20-2-sup (nodeid = 2) is up; new incarnation number = 1205318308.
    NOTICE: CMM: Node n20-3-sup (nodeid = 3) is up; new incarnation number = 1205265086.
    NOTICE: CMM: Cluster members: n20-1-sup n20-2-sup n20-3-sup.
    NOTICE: CMM: node reconfiguration #23 completed.
    NOTICE: CMM: Node n20-1-sup: joined cluster.
    ip: joining multicasts failed (18) on clprivnet0 - will use link layer broadcasts for multicast
    NOTICE: CMM: Votecount changed from 0 to 1 for node n20-1-sup.
    NOTICE: CMM: Cluster members: n20-1-sup n20-2-sup n20-3-sup.
    NOTICE: CMM: node reconfiguration #24 completed.
    Mar 13 14:02:23 in.ndpd[351]: solicit_event: giving up on qfe1
    Mar 13 14:02:23 in.ndpd[351]: solicit_event: giving up on qfe5
    did subpath /dev/rdsk/c1t3d0s2 created for instance 2.
    did subpath /dev/rdsk/c2t3d0s2 created for instance 12.
    did subpath /dev/rdsk/c1t3d1s2 created for instance 3.
    did subpath /dev/rdsk/c1t3d2s2 created for instance 6.
    did subpath /dev/rdsk/c1t3d3s2 created for instance 7.
    did subpath /dev/rdsk/c1t3d4s2 created for instance 8.
    did subpath /dev/rdsk/c1t3d5s2 created for instance 9.
    did subpath /dev/rdsk/c1t3d6s2 created for instance 10.
    did subpath /dev/rdsk/c1t3d7s2 created for instance 11.
    did subpath /dev/rdsk/c2t3d1s2 created for instance 13.
    did subpath /dev/rdsk/c2t3d2s2 created for instance 14.
    did subpath /dev/rdsk/c2t3d3s2 created for instance 15.
    did subpath /dev/rdsk/c2t3d4s2 created for instance 16.
    did subpath /dev/rdsk/c2t3d5s2 created for instance 17.
    did subpath /dev/rdsk/c2t3d6s2 created for instance 18.
    did subpath /dev/rdsk/c2t3d7s2 created for instance 19.
    did instance 20 created.
    did subpath n20-1-sup:/dev/rdsk/c0t6d0 created for instance 20.
    did instance 21 created.
    did subpath n20-1-sup:/dev/rdsk/c3t0d0 created for instance 21.
    did instance 22 created.
    did subpath n20-1-sup:/dev/rdsk/c3t1d0 created for instance 22.
    Configuring DID devices
    t_optmgmt: System error: Cannot assign requested address
    obtaining access to all attached disks
    n20-1-sup console login:

  • Is it possible to rearrange the elements in a List after removing indexes?

    Hello,
    I am hoping someone can help me out w/a question.
    I have a list
    List<String>  Labels = new ArrayList<String> ();and I add 3 elements in the list
    labels.add("one"); //index 0
    labels.add("two"); //index 1
    labels.add("three");  //index 2Later on in the program I remove 2 indexes,
    labels.remove(0);
    labels.remove(2);When i try to iterate through labels it throws
    Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: 1, Size: 1I perfectly understand the error. My question is this: after removing the indexes, how can i rearrange the list so that the one element that is left (currently at index 1) is set at index 0 so that it doesn't throw an exception ? is this doable ?
    Thanks very much for your help!!

    va97 wrote:
    Hello,
    I am hoping someone can help me out w/a question.
    I have a list
    List<String>  Labels = new ArrayList<String> ();and I add 3 elements in the list
    labels.add("one"); //index 0
    labels.add("two"); //index 1
    labels.add("three");  //index 2Later on in the program I remove 2 indexes,
    labels.remove(0);
    labels.remove(2);
    This doesn't work!
    Before those call the List looks like this:
    [one, two, three].
    After you call remove(0), it will look like this:
    [two, three]
    Now, when you try to call remove(2), it will throw an IndexOutOfBoundsException, as there is nothing at index 2 anymore.
    I perfectly understand the error. My question is this: after removing the indexes, how can i rearrange the list so that the one element that is left (currently at index 1) is set at index 0 so that it doesn't throw an exception ? is this doable ?I'm afraid you don't understand the error message correctly, since then your question would be different.
    The error message says "you tried to access something at index 1, but this list only is of size 1". This means that the only valid index at that moment is 0.

  • Having a problem with the photos showing up after moving everything to another server.

    Greetings,
    I used an older version of iWeb to create several websites a few years back, and would like to retain them. I followed the instructions and downloaded the five folders for the five websites on my iDisk, which took more than two hours, and then uploaded them to the server I use to host another of my websites, and made them all subdomains.
    The first issue I had was a php code error for every page. Turns out I had to remove the very first part of the index.html file: <?xml version="1.0" encoding="UTF-8"?> and then everything seemed fine until I tried to go to another page. Ended up having to do this on every html page for each website.
    Then I noticed that none of the pictures were showing up in the albums. I also have videos on two of the sites, and they worked fine. I checked /Photo_Albums/Pages, and inside were the folders with all the pictures, so I know they're there.
    I have ruled out it having anything to do with my new server by opening the websites in Safari from their folders on my desktop, and had the same results; everything was good except there were no pictures on the page.
    If anyone can help me with this I would really appreciate it! I've got 5 websites I have to get fixed in two days.
    Thanks!
    Take care,
              ~Chris

    Thanks Roddy, but I don't think that's it, either. When I downloaded everything from my iDisk, it automatically created 3 versions of every picture, and named them either micro.jpg, thumb.jpg, or web.jpg. They can be found in the Photo_files>Media folder, each set of three in their own uniquely numbered folder. For example, one the websites is of a friend of mines hot rod Fiero.
    Here is his website via iWeb:
    http://jimsfiero.com/
    This is what it looks like after uploading everything to a different server:
    http://jimsfiero.ricehatersclub.com/
    Here's my personal website:
    http://peckerwoodspitstop.com/
    And here it is after uploading everything:
    http://peckerwoodspitstop.ricehatersclub.com/
    You can see that everything works, except where the page is a photo album.
    Thoughts?
    Oh, BTW, I tried Wyodor's suggestion, and it shut everything down with a 500 Internal Server Error. Removing the suggested file corrected everything.

  • Can't activate Win 8 after removing everything from Satellite P850

    I did Remove everything and reinstall Windows 8.
    Like as Factory setting.
    But i can't activate Windows. The product key doesn't work.
    The Windows 8 K OME on my Toshiba Satellite P850.
    Thanks.
    Cheers mate.

    Hi
    The product key at the bottom of the unit would not work!
    The preinstalled Windows 8 would be activated automatically while booting and configuring the system for the first time!
    Did you format the whole HDD? Did you remove the Windows 8 from the HDD?
    Did you create an recovery disk or recovery flash memory stick in the past?
    NO?
    In such case there is only one option to get factory settings.
    You will need to order the Toshiba recovery disk:
    http://backupmedia.toshiba.eu/landing.aspx

  • ADDED event in document class after removed from Stage

    Hi All,
    I am currently play with the document class (the class acts as main) constructor for a SWF file.
    package {
      import flash.display.*;
      import flash.events.*;
      public class TestSymbol extends MovieClip
        public function TestSymbol()
          this.addEventListener(Event.ADDED, function(event:Event) { trace(event.eventPhase, event.target, event.currentTarget, "added triggered"); });
          trace("parent", this.parent);
          this.stage.removeChild(this);
          trace("stage", this.stage);
    In frame script 1, i put
    trace("1");
    trace("parent", this.parent);
    After i run TestSymbol.swf and  i got
    parent [object Stage]
    stage null
    2 [object TestSymbol] [object TestSymbol] added triggered
    1
    parent null
    I wonder where is this ADDED event coming from? If the document class is added to some other objects, why its parent is null after the event?
    Thanks in advance
    Sam

    By wrapper do you mean they are the same object or the MainTimeLine is a separate object being added to DocumentClass, as it triggers the ADDED event? I know that framescript can be accessed as documentClass functions, so I thought they are the same object, maybe i was wrong.
    I did a new test within some more listeners
    package {
      import flash.display.*;
      import flash.events.*;
      public class TestSymbol extends MovieClip
        public function TestSymbol()
          this.addEventListener(Event.ADDED_TO_STAGE, addedToStageListener);
          this.addEventListener(Event.ADDED, addedListener)
          this.addEventListener(Event.REMOVED_FROM_STAGE, removedFromStageListener);
          this.addEventListener(Event.REMOVED, removedListener);
          trace("parent", this.parent);
          this.stage.removeChild(this);
          trace("stage", this.stage);
         private function addedListener(event:Event):void {
           trace(event.eventPhase, event.target, event.currentTarget, "added triggered");
         private function addedToStageListener(event:Event):void {
           trace(event.eventPhase, event.target, event.currentTarget, "addedToStage triggered");
         private function removedListener(event:Event):void {
           trace(event.eventPhase, event.target, event.currentTarget, "removed triggered");
         private function removedFromStageListener(event:Event):void {
           trace(event.eventPhase, event.target, event.currentTarget, "removedFromStage triggered");
    and this is the output
    parent [object Stage]
    2 [object TestSymbol] [object TestSymbol] removed triggered
    2 [object TestSymbol] [object TestSymbol] removedFromStage triggered
    stage null
    2 [object TestSymbol] [object TestSymbol] added triggered
    As the remove listeners are fired immediately, i don't think the queue is waiting until the end of the constructor.

  • Pin login option removed after exchange account was added and is still disabled after removing exchange account

    Hi,
    I configured my Surface 2 using pin as login option. After that I added my company's exchange account (which has an active sync policy that disables all login types except Windows live password).
    But removing my OWA account didn't remove the exchange restrictions. How do I remove them completely?
    Thanks in advance.
    BR
    r3g1m

    Hi ,
    This issue seems to be related to the active sync policy,the sync policy will persist even though the account has been removed. To solve this iuuse ,we can reset the security policy.
    To reset the Security Policies:
    Control Panel \User and Family Safety \User Accounts \Reset Security Policies
    Here is a link for reference:
    Exchange ActiveSync Policy Engine Overview
    http://technet.microsoft.com/en-us/library/dn282287.aspx
    Best regards  

  • How to delete cost element name from group after deleting the cost element

    Hi,
    Please let me know how to delete the cost element number  from the Cost element group hierarchy.I have deleted cost element but still showing only the CE number---no valid master record.If I d not want this to be visible within hierarchy let me know what should I do.
    Thanks

    Hi
    Go to change cost element group select the cost element click on select tab (3rd Tab from Left) it will take u to new screen in that screen select remove tab (1st tab from left)
    Regards
    Sandesh

  • Adding elements to a Dialog after it's been created using a resource string

    I can add elements using add but not with a resource string.
    The following works in ExtendScript Toolkit but not in Photoshop. Any idea why?
    var window_res = "dialog { \
         orientation: 'row', \
         alignChildren: 'top', \
         preferredSize: [500, 500], \
    var btnPnlResource = "Panel { \
         orientation:'row', \
         text: 'Build it', \
         testBtn: Button { text:'Test' }, \
         buildBtn: Button { text:'Build', properties:{name:'ok'} }, \
         cancelBtn: Button { text:'Cancel', properties:{name:'cancel'} } \
    var w = new Window(window_res, 'Testing');
    w.panel = w.add(btnPnlResource);
    w.show();
    The error I'm getting is Server Interface error "
    As a side note: I copied the code from Javascript Tools Guide but I had to remove ""btnPnl: " from the beginning of the btnPnlResource string. Otherwise you get "btnPnl: is unknown or invalid in this context" error.

    Actually Paul, it doesn't look like its the bounds that make your code work. Just changing the P in Panel to lowercase p does the trick:
    var btnPnlResource = "panel { \
         orientation:'row', \
         text: 'Build it', \
         testBtn: Button { text:'Test' }, \
         buildBtn: Button { text:'Build', properties:{name:'ok'} }, \
         cancelBtn: Button { text:'Cancel', properties:{name:'cancel'} } \
    That must be a bug, no?

  • Elements 4 crashing immediately after install on mac OSX 10.4.11, can anyone help ?

    I have an infuriating problem with Elements 4 crashing immediately after an install on mac OSX 10.4.11, can anyone help ?
    I was given the computer, which still had Elements 4 on it although it always crashed on opening, i removed the program and bought a 2nd hand hard copy of Elements 4 from eBay.
    When i install the new copy it opens up with the "credits" but at the bottom right it still shows the past owners name as licensee briefly, then crashes before fully opening.
    Does anyone know what is going on? I know it's an old version but i find elements4 perfect for my needs
    Thankyou for reading.
    Simon

    More information needed. Are you saying you're just running the computer from the PO's user account? I would very strongly recommend erasing the disk and starting over with a fresh install of OS X for a number of reasons.

  • CMS Track configuration does not save after removal of runtime

    Hello,
    We are having problem to save CMS track configuration after removing a runtime which was taken away from us and is not recoverable. The CMS track config was not updated prior to this and we can no longer make track adjustments due to the old DEV runtime sys not being available. Does anyone have similar issue and know how to fix it?
    Thanks!

    For this SP5 track, we have not imported SP9 required SCs (SAPJEE, SAPJTECHS, SAPBUILDT, EP_BUILDT). but we did imported them (SP8 version) with patches. We imported most current SP9 patches to the new SP6 track. We want to move our development on the SP5 track to assemble it, then imported to the new SP6 track based SAP XSS cookbook.
    We are not able to assemble released activities with broken DCs on the SP5 track. I look a DC for ess/au/fam/cfg, Build.log still shows xlf conversion error:
    Ant runtime 4.295 seconds
    Ant build finished with ERRORS
    The following error occurred while executing this line:
    /usr/sap/DID/CBS/61/.B/90062/DCs/sap.com/ess/au/fam/cfg/_comp/gen/default/logs/build.xml:80: Error converting file Texts_tr.xlf
    Error: Build stopped due to an error: The following error occurred while executing this line:
    /usr/sap/DID/CBS/61/.B/90062/DCs/sap.com/ess/au/fam/cfg/_comp/gen/default/logs/build.xml:80: Error converting file Texts_tr.xlf
    Build plugin finished at 2006-12-13 19:30:41 GMT-05:00 (EST)
    Total build plugin runtime: 6.794 seconds
    Build finished with ERROR
    Not sure if you can force it assembled even with this broken DCs as we have not touched this xlf.
    Please let me know if you find something similar to us from other customers.
    Thans!

  • Problems adding and removing dual monitor

    using FCE to do some light editing at work. continually need to flip between a single and dual monitor setup due to other things i need to do on a different computer. having problem with FCE not moving all windows back to the main monitor after removal of additional monitor. 'display' settings will not let me setup as being unattached since (and this is what the error says) that the other monitor is no longer attached. only happens w/ FCE. other programs seem to recognize that the monitor is no longer there, and moves all the windows back to the main monitor. what am I missing?

    Have you tried closing the dual display option in *View>Video Out* before shutting down FCE?
    Al.

  • Adding Software Updates to Software Groups After Deployment

    Hi all -
    I went through and created 3 software update groups (for 2013, 2014, and 2015), and then distributed all three of them to a certain collection (and to all DPs). After that point, I then realized I had forgotten a number of updates for each software
    update group. I downloaded the software updates and edited their membership so they would be a part of the existing software groups. When I did that their statuses said they were deployed. However, when I look at content distribution I don't see
    anything changing. Almost like the new updates didn't go out to the DPs.
    Do you need to redeploy the software update groups after adding new software updates? Or should this automatically distribute the new updates as part of the existing deployments.
    Kind of unrelated, and not really part of my main question. Is there a best practice on the maximum number of software updates for a group? My largest group has 632 updates. I realize the dependency on reporting and all that, I am purely speak from a performance
    or issues best practice.
    Thanks,
    --Julius

    A software update group and a deployment package are two different things. When you download the updates, you download them to your deployment package. To look at the status of that process you can look at
    Content Status node in the console or the distmgr.log
    file.
    The best-practice maximum number of updates per update group is a 1000, see also:
    https://technet.microsoft.com/en-us/library/hh692394.aspx.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • Time to time problems after removing unblockus service (DNS)

    I have a router from my operator and an Airport Extreme.
    After removing the unblockus(.com) DNS service (by simply deleting the DNS settings they provided), I now have problems with my router and Internet connections (Airport Extreme probably).
    I have tried resetting the AE.
    But I still get errors when trying to reconnect my e-mail accounts in Mail (Error message: Too many simultaneous connections. (Failure).)
    And some web sites won't open, or they only appear as plain HTML text (not code).
    My settings on the AE are:
    Internet:
    Connected with: DHCP
    DNS: 192.168.1.1
    Network:
    Route mode: Bridge mode off
    (Sorry, my settings are in Norwegian so I had to try to translate directly).
    Is there a standard setting I can use?
    Btw, I have 2 external drives connected to the Airport Extreme. The communication to them are ok throughout the network.
    The strange thing about these problems is that the router/network works great after I have reset the router. But after weeks(?) the trouble is back again.
    Any clue?

    The fact you used unblockus at some point is really not relevant to your current problem. I think you are confusing things.
    I need to work on the current setup of the network.
    So I need to have full data about the TC. I need to have the mode it is working in.. and I want to see the IP gateway and dns settings it is running.. please do a screenshot again which shows that info.
    Really good if you give me the summary tab like you did above.. and then click the edit and give me the internet tab.. plus network tab.
    Particularly I need to see any errors the AE is showing.. eg double NAT.. double NAT will cause the problem you have now. The AE must be in bridge when plugged into a router.
    And I need to see your computer network info that is having trouble.
    So I want to see its IP address, gateway (apple call it router) and DNS values.
    So here is mine.. nothing here is of security concern btw.
    Please also your DNS page so I can see what the dns values are.
    Also please open a teminal session and do a traceroute to the google dns, 8.8.8.8
    Do a copy and paste of those values here as well.
    So
    $ traceroute 8.8.8.8
    traceroute to 8.8.8.8 (8.8.8.8), 64 hops max, 52 byte packets
    1  192.168.2.254 (192.168.2.254)  1.595 ms  4.595 ms  1.659 ms
    2  adsl1.mel02.eftel.com (203.123.69.176)  26.001 ms  25.622 ms  25.326 ms
    3  te0-0-0-306.core0.mel02.eftel.com (203.123.72.65)  25.709 ms  25.661 ms  25.465 ms
    4  ve420.er01.mel01.eftel.com (14.137.114.25)  26.417 ms  29.320 ms  25.659 ms
    5  eth2-1.bdr01.syd02.eftel.com (202.62.143.121)  35.613 ms  35.383 ms  47.953 ms
    6  as15169.ve223-vpls138.bdr01.syd02.eftel.com (202.62.154.118)  36.738 ms  38.999 ms  36.951 ms
    7  72.14.237.21 (72.14.237.21)  37.300 ms  35.993 ms  36.892 ms
    8  google-public-dns-a.google.com (8.8.8.8)  36.557 ms  38.183 ms  36.334 ms
    Again there is nothing here that is security concern.. you can see my router IP and that is all, and it is completely useless. The actual trace is going to be completely different at your end.. but it allows me to see if you have double NAT issues still.
    One other thing you can do.. on a computer that is having trouble.. manually change the dns to 8.8.8.8 in the network preferences.. if that fixes it please tell me.
    Finally remove the AE completely and see if the computer works ok plugged directly into the ISP modem / router.
    (Sometimes I write TC ie time capsule instead of AE.. treat them as the same thing.. I am running both and use interchangeably.

  • Multiple event handlers registered for the same event and error when adding users to sec groups

    Project Server 2013 CU April (May) 2014
    I've created and installed two event handlers (separate dll:s) and both are triggering on Project Published - initially, both are working fine.
    After an IISReset, trying to create a new security group (or add a user to an existing group) will result in an error on the page and a corresponding error in the ULS log - the latter indicating an error in the method security.creategroups, and specifically
    a problem 'An item with the same key has already been added.'
    An SQL trace reveals a break in execution after executing the proc 'pub.MSP_ADMIN_ReadEventReceivers' which returns all registered event handlers.
    In my case, the result of that proc execution shows that there are two event handlers registered with an EVENT_ID of 53 (Project Published) and with ORDER_FIRED set to 1 and 2 respectively.
    I tried removing one of the event receivers using the Central Admin PWA interface and then everything worked just fine - I added the event receiver back again, and everything STILL worked! IISReset and I got the error back again. :-(
    Since there's obviously some problem with reading multiple entries from that table regardless of the ORDER_FIRED differentiation, I tried temporarily modifying one of the '53' entries in the table directly and then the sec group was created just fine!
    I would like to know if anyone else has seen this? I've seen this on three separate installations now after deploying a second event listener onto those systems.
    /Lars Hammarberg
    //Lars Hammarberg www.connecta.se

    Hi Lars,
    yes I have seen the same issue. It is not related to April CU. I had the error before with SP1.
    It is not only an issue with the security groups. At least in our case nothing worked at all. No custom field editing, all Queue Jobs failing.
    For your case I suggest you consolidate your code in one eventhandler.
    Theory says that you can have more than 1 (up to 999) eventhandlers for one Event (http://msdn.microsoft.com/en-us/library/ms481079(v=office.12).aspx) but that seems not to
    work. Not sure, if it worked in earlier versions.
    Kind regards
    Christoph
    Christoph Muelder | Senior Consultant, MCTS, MCSE, MCT | SOLVIN information management GmbH, Germany

Maybe you are looking for