AddChild() problem - child doesn't apper at runtime

I've got very simple class which takes on constructor ArrayCollection of images and adding each one item using AddChild method, here is a code of this class:
package jb
    import mx.collections.ArrayCollection;
    import mx.containers.HBox;
    import mx.controls.Image;
    public class SliderItemsContainerAS extends HBox
        public function SliderItemsContainerAS(imagesCollection:ArrayCollection)
            super();
            setStyle("backgroudColor", "0x429323");
            for each(var image:Image in imagesCollection)
                addChild(image);
Then I creating 2 instance of this class in main application file and of course provide correct images collection. Finally I'm adding the objects to Application.
            private function loadAllImagesComplete():void
                var itemsContainer:SliderItemsContainerAS = new SliderItemsContainerAS(imagesStack);
                var itemsContainer2:SliderItemsContainerAS = new SliderItemsContainerAS(imagesStack);
                addChild(itemsContainer2);
                addChild(itemsContainer);
PROBLEM: Only one of added objects (SliderItemsContainerAS) display nested images, why?
I make a little investigation and when I add somethink else than my Image e.g. Label created in SliderItemsContainerAS constructor it's appers in both instance of the display object.
I'm attaching main application file where you can see the way I retriving images.

An image can only have one parent.  You are trying to add them to two
different parents.  Only the last one will win.  You will need to make
copies of the images for the other parent.

Similar Messages

  • Encountered problem when converting from development to runtime environment

    1. I ran apxdevrm.sql switch my environment to runtime. Although it seemed to finish successfully, this error was in the log and according to registry, my installation was invalidated(still works though).
    drop package wwv_flow_create_flow_api (doesn't seem to exist)
    ERROR at line 1:
    ORA-04043: object WWV_FLOW_CREATE_FLOW_API does not exist
    Entry in dba_registry:
    COMP_NAME--Oracle Application ExpressSTATUS
    STATUS--INVALID
    2. Next, not sure if it had made the switch, I then ran apxdvins,sql to revert back because of problem #1. (later found out that it was still devl environment)
    This time, this message appeared in log...
    FAILED CHECK FOR TRIGGER BIN$UH58A027El3gRAADutXi8w==$0
    (Installation still invalid)
    Any ideas?

    1. Commented "drop package" stmt out on apexdevrm.sql to get rid of non-existent package problem. (probably holdover from v3.0)
    2. purged dba_recyclebin to get rid of problem #2.
    Dba_registry entry still shows as INVALID... Has anyone else encountered these problems when switching from dev to runtime? (or vice-versa)

  • When playing my i-tunes library through my hi-fi via Airport Express, how can I get i-tunes to play a single album and then stop, without continuing on through my entire library. It's a problem that doesn't occur when I'm listening through my i-pod.

    When playing my i-tunes library through my hi-fi via Airport Express, how can I get i-Tunes to play a single album and then stop, without continuing on through my entire library? It's a problem that doesn't occur when listening on my i-pod.

    Hey everyone in Apple world!
    I figured out how to fix the flashing yellow screen problem that I've been having on my MBP!  Yessssss!!!
    I found this super handy website with the golden answer: http://support.apple.com/kb/HT1379
    I followed the instructions on this page and here's what I did:
    Resetting NVRAM / PRAM
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    I went through the 6 steps above twice, just to make sure I got rid of whatever stuff was holding up my bootup process.  Since I did that, my MBP boots up just like normal.  No flashing yellow screen anymore!!   
    (Note that I arrived at this solution when I first saw this page: http://support.apple.com/kb/TS2570?viewlocale=en_US)
    Let me know if this works for you!
    Elaine

  • Problems with JSP-ApplicationModule pooling in runtime

    Hello!
    I have an urgent Problem with the ApplicationModule Pooling in Runtime. The Application uses JSP with BC4J and is deployed on Tomcat 3.1 and MS IIS 4.0 (The Client want to use this MS-Product). We use JDev 3.1.1.2 for development.
    Now my Problem:
    A user start the IE4 and log on to the application and it works fine. They log off and log in again a second time and then the user gets a NullPointerException at the point when the Application wants to checkout a new instance from the ApplicationModule Pool. The next time he logs on it works fine again and the next time not and so on. Every second time the user logs on he gets a NullPointerException.
    But there are three AdminUsers and with these users are no Problems.
    Can anyone help me or has someone the same problems?
    Greetings
    Thorsten

    There are a number of pooling problems fixed in JDeveloper 3.2. You can also step into the pooling code by using remote debugging to figure out why you are encountering this problem.

  • Hi, I have iPad 2 and iPhone 4S and I have a problem a camera problem it doesn't work when I try try to open it it reclose also I can't close my iPad with upper button and I can't restart

    Hi, I have iPad 2 and iPhone 4S and I have a problem a camera problem it doesn't work when I try try to open it it reclose also I can't close my iPad with upper button and I can't restart help me

    - Reset the iOS device. Nothing will be lost.
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                             
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                       

  • Problem child

    We have a 9 seat xsan network used for video editing. All of the clients can communicate with our controllers with the exception of one. The problem child mount the san volume fine and I can authenticate to the machine for a minute or so after the client starts, but after that I can't. I can still ping the machine on both public and private ports and the san volume remains mounted and usable, but when I port scan I find that none of the ports are open (311 or anything else). I can flush the firewall rules with ipfw and no change. I've tried an xsan reinstall on the machine, but the same phenomenon occurs. The TCP/IP settings for this machine are configured exactly like all the others on the san and DNS is working as it should. Help! I'm really not sure what to do at this point. Any ideas or insight into this problem would be greatly appreciated.

    The problem child has grown up and is now ready to fully participate in san society. FWIW here's what I did to solve the communication errors. Perhaps all or only one of the steps is needed, but I tried everything I could think of to open the ports permanently, and after all of the changes, I restarted the machine and the ports were open continuously.
    First, I forced the MacOS firewall to open the ports by adding servermnrd to the list of apps to allow incoming connections. servermnrd is located in the usr/sbin hidden folder at the root. Second, while the network control panel is open, I deleted the network interfaces preference in the main library/preferences/systemconfiguration/ folder, and closed the control panel, which wrote a new preference. Third, I restarted the machine and flushed the PRAM (hold the opt-command-p-r keys while restarting and wait for a second audio chime). After the restart the ports are open continuously, and the MDC san admin app talks to the client as it should. No more problem child!

  • Restore mysql doesn't work with Runtime?

    hi all
    iam trying to restore a backup of mysql database,i took the backup using mysqldump.
    iam using a correct syntax of restoring and i already tested it in the command line and it worked correctly
    mysql -u root new_db < f:\backup.sql
    the problem is when i try to use the same command with Runtime it doesn't work
    here's my code:
    try{ String command="c:\\wamp\\mysql\\bin\\mysql -u root new_db < f:\\backup.sql"; Runtime.getRuntime().exec(command); }catch(Exception e){e.printStackTrace();}
    and i already read the recommended article
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=1
    but i don't know if there's something missing in my code
    hope to find help
    thanks in advance

    i implemented the backup part after modifications and it worked correclty:
             try{
             String path=textfield1.getText().replace('\\','/');
             String file_path=path+"/"+"backup.sql";
             File backupFile = new File(file_path);
             FileWriter fw = new FileWriter(backupFile);
             Runtime runtime = Runtime.getRuntime();        
             Process child = runtime.exec("c:/wamp/mysql/bin/mysqldump --user=root --lock-all-tables --opt library");
             InputStreamReader irs = new InputStreamReader(child.getInputStream());
                BufferedReader br = new BufferedReader(irs);
               String line;
                while( (line=br.readLine()) != null ) {
                    fw.write(line + "\n");
                fw.close();
                irs.close();
                br.close();
                     }catch(Exception e){e.printStackTrace();}but when i try to implement the restore part as above it doesn't work
    could anyone tell me please where's the error?
    try{
             String path=textfield2.getText().replace('\\','/');
             String file_path=path+"/"+"backup.sql";
             System.out.println(file_path);
             File backupFile = new File(file_path);
             FileWriter fw = new FileWriter(backupFile);
             Runtime runtime = Runtime.getRuntime();
             String command="c:/wamp/mysql/bin/mysql -u root lib < "+file_path;        
             Process child = runtime.exec(command);
             InputStreamReader irs = new InputStreamReader(child.getInputStream());
                BufferedReader br = new BufferedReader(irs);
               String line;
                while( (line=br.readLine()) != null ) {
                    fw.write(line + "\n");
                fw.close();
                irs.close();
                br.close();
                    }catch(Exception e){e.printStackTrace();}

  • JVM spawning mysterious child process of itself using Runtime.exec()

    Hello, I'm not sure if this is how this is supposed to work but I have a java application that monitors legacy c programs and after a period of time (its intermittent), I'll see a duplicate jvm process running the same classpath, classname as a child of the java application monitor. This behaviour can be reproduced with the following simple class running on either solaris 9 or 10 using 1.6.0_03-b05:
    public class Monitor {
    Process procss;
    public Monitor() {
    try {
    Runtime runtime = Runtime.getRuntime();
    for (int i = 0; i < 10000; i++) {
    System.out.println("execing command ls -l.");
    procss = runtime.exec("ls -l");
    procss.waitFor();
    catch (Exception e) {
    e.printStackTrace();
    public static void main(String[] args) {
    new Monitor();
    Using java -classpath ./ Monitor to run it. While this is running, at intermittent times doing a ps -ef you will see a duplicate jvm running whose parent process is the one that was started on the command line. Ie:
    UID PID PPID etc
    user 17434 10706 .... java -classpath ./ Monitor (the one I put running)
    user 27771 17434 .....java -classpath ./ Monitor (intermittently started)
    in another window I'll run the following shell script that will output the processes when a duplicate java process gets started as they don't seem to run very long (on my production system they will occasionally get hung up until I manually kill them):
    #!/usr/bin/ksh
    while ((1 == 1))
    do
    ps -ef | grep "Monitor" | grep -v grep > /tmp/test.out
    VAL=`cat /tmp/test.out | wc -l`
    if (($VAL != 1))
    then
    echo "Duplicate java process started"
    cat /tmp/test.out
    fi
    done
    It takes roughly 30 seconds before I start to see duplicate jvms starting to run. The concern is that is the new jvm instance running the Monitor class? Eventually on my production system the real application will have a child or 2 linger indefinetly, and threads will be deadlocked. Once I kill these child java processes, everything is back to normal. This doesn't seem to occur with the above java class but will show the duplicate child jvm's start to run after a bit.

    This is true for Solaris and Linux. Sun's implementation does a fork. A lot of people who have very large memory java applications wish there was a way to create a process from Java that doesn't involve copying the parent process. As far as I know your stuck.
    A workaround: Use jms, rmi, sockets, or files to communicate with a low memory footprint java application whose sole purpose is to spawn child processes.

  • Having problems accessing any apps on my iCloud. Set up and signed in successfully but then when I click on an app it just says there's a problem but doesn't say how to fix it. Please help, am very new to this!

    Hi
    I am very new to updating my iPod touch and this is the first time I've used the iCloud. However, I am having problems accessing any apps on my iCloud such as photos, reminders etc. I've set it up on my iPod touch successfully and I can sign in on my PC. However, when I try to access any of the apps it says there was a problem. It doesn't tell me how to fix it or what the problem is.
    Is anyone able to help?

    It is working now. I no longer get the message about the item not being available in the US and I can access the store.

  • DHCP & self-assigned IP problem-Airport doesn't work

    I'm not really a technical type, but I'm pretty quick to pick things up and several weeks of trying to deal with this issue has made me pretty knowledgeable about things related to it specifically.
    Background:
    I have a month-old Macbook Pro that runs Snow Leopard and is up to date on all its software stuff. On our home network we have another pretty new Macbook Pro running 10.5.9 and a fairly old Macbook also running 10.5.9.
    We have a Linksys WRT54G wireless router. Our network uses a 40-bit Hex WEP password.
    Problem(s):
    When I try to connect to our wireless network, Network preferences tells me that it cannot connect because of a self-assigned IP address. Sure enough, the IP address DHCP comes up with is of the 64.XX.XX.XX variety. Google's revealed that this is a common problem for all recent versions of OSX, back to at least Tiger.
    The "subnet mask" it comes up with is 255.255.0.0, which is different from the settings on our other (working) computers, which is 255.255.255.0. I'm not sure what this means, or whether it's significant. Renewing the DHCP lease either comes up with the same 64.XX.XX.XX type or, sometimes, it comes up with no IP settings at all. The most frustrating thing about this is that if I chose "DHCP with manual address" and type in any in our set that I've confirmed isn't in use and hit "apply", as soon as I go back to the panel it has reverted to the 64.XX.XX.XX type.
    I've also tried manually entering the router/subnet mask/IP data, as well as the DNS numbers, and that leads to the Network Settings connectivity dot thing being green, but the internet still doesn't work. In those cases, diagnostics claims that everything is fine up to and including the ISP, but that it's unable to connect to the server and internet.
    Of note: some people with a similar problem have talked about networks with this problem working intermittently, but mine seems to be consistently broken.
    Initially I was able to avoid fixing the problem by using our neighbors' unsecured wireless network, which is sort of awful, I know, but at least it kept me from having to deal with this for a while. Today it started to do the same thing to that network. Both networks continue to work on our Macbook and other Macbook Pro, which is why I don't think that it's a router problem.
    I've been able to connect to our other computers through computer-to-computer networks—going through our main shared network (and thus the wireless router) doesn't seem to work—which I think shows that the Airport card/hardware itself is intact (?). I did try connecting to the internet through the "internet sharing" option on our Macbook, but that had the exact same problems.
    Another thing that may or may not be relevant, but is equally infuriating:
    I've also noticed that my Macbook Pro has more trouble staying connected to a network than our Macbook—even when it was working, it disconnected/timed out extremely often, which is something our Macbook never does, even from the same location. When I try to connect to a network it spends a very long time displaying the "searching for network" animation in the menu bar icon, sometimes after the Network Preferences pane believes that it's connected, and sometimes even after I hit the button to turn Airport off. It's also started refusing to connect to any networks at all, on occasion, which is especially evident in the process of the diagnostics box thingy, because there it actually tells me it's unable to connect rather than just playing the searching animation for ages.
    Here are some other things that I've tried:
    setting up a new 'location'
    restarting the computer
    deleting the airport preferences file
    restarting in safe mode
    restarting open firmware
    confirming that the firewall allows all incoming thingies
    resetting the router
    making sure the keychain password allows all applications to access it
    connecting to the internet through a computer-to-computer network from another machine
    Because the situation has deteriorated over time, I'd also like to know whether people think that it's two problems (the type of router then later the airport hardware(?)/software(?) itself, perhaps) or just one. Since I've tried basically everything besides switching out our router, I'm kind of inclined to blame it on that, especially because one of the more plausible explanations for this problem that I've heard is a time-out error due to Airport expecting a faster response than it's able to get from older routers; however, the fact that other networks haven't been working means that it's not likely to be just the router. If it's just one problem, which is the simpler explanation, then I guess there's something properly wrong with my computer's software, in which case I guess I'll take it to the Apple Store. :/
    I'm in love with my computer otherwise, and I'll admit that I spent a good twenty minutes sobbing out of frustration over this. Any help would be immensely appreciated.

    HI and Welcome to Apple Discussions...
    Try Changing the Airport Channel
    Open AirPort Utility, located in the Utilities folder in the Applications folder on a computer using Mac OS X.
    Select the device you’re setting up, and then click Manual Setup. Enter the base station password if necessary
    Click AirPort in the toolbar, and then click Wireless.
    Choose a new channel from the Channel pop-up menu.
    Carolyn

  • Zen vision:m problem.. doesn't turn on/black screen/

    When I connect the zen vision:m to the PC, the blue light starts to flash, but the screen is still black. The PC doesn't recognise it so i can't access it either. I can't turn it on or anything..
    help is appreciated!

    Problem is solved. I tried to enter the recovery mode a couple of times but nothing happend. But after 5-20 mins the recovery mode screen suddenly appeared. I formatted and not it works again wooho

  • Problem in creating a table at runtime

    Hi SDN,
      I am trying to create a Table UI Element at runtime.
    To do So I have written the following code in the "wdDoModifyView" method of the view
    if(firstTime)
             IWDTable table =(IWDTable)view.createElement(IWDTable.class, null);
             table.bindDataSource("TableNode");
             IWDTableColumn column1=(IWDTableColumn)view.createElement(IWDTableColumn.class,null);
         table.addColumn(column1);
         IWDInputField editor=(IWDInputField)view.createElement(IWDInputField.class,null);
         editor.bindValue("TableNode.no");
         column1.setTableCellEditor(editor);
                //   create and add second table column
           IWDTableColumn column2 = (IWDTableColumn) view.createElement(IWDTableColumn.class, null);
          table.addColumn(column2);
           IWDTextView editor1 = (IWDTextView) view.createElement(IWDTextView.class, null);
           editor1.bindText("TableNode.name");
           column2.setTableCellEditor(editor1);
           IWDUIElementContainer root = (IWDUIElementContainer) view.getRootElement();
           root.addChild(table);
    After executing the application the table is created successfully. But both the columns are in TextView mode. What i need is one column should be in input mode and other in TextView mode. So please suggest me what more stuff i have to add to make the field to accept the input.
    Thanks in advance.
    Regards
    Basha

    Hi Armin,
    I need to display a table with 5 rows and 7 columns.
    5 of the columns are drop downs from R/3,
    My requirement is the table should be in editable mode such that the user is allowed to enter some values(rows). on clicking the save button the table values are to be sent to R/3 table through bapi.
    Please help me in resolving this.
    Thanks & Regards,
    Sai Krishna.

  • Hi - for any photo, info in mountain lion shows a different file size than Photoshop does. I've tested with CS3 and CS6 and get the same problem. Doesn't happen with CS3 and OSX10.4 or any previous versions of Photoshop and OSX. Anyone know why?

    Hi - for any photo, info in mountain lion shows a different file size than Photoshop does. I've tested with both CS3 and CS6 on 10.8.2 and get the same problem. This doesn't happen with CS3 and OSX10.4 or any previous versions of Photoshop and OSX. Anyone know why?

    this one is actually a really rare symptom of a flaky connection to the ipod on a Windows PC. there's more going on in terms of hardware on nanos and 5th gens than in the earlier models ... so if the connection is flaky to precisely the right/wrong degree, itunes will see the ipod, but misidentify it as an earlier version of ipod.
    tracking down the cause of the flakiness can be tricky ... as you already know ...
    just checking. have you tried connecting with a different (known-good) USB cable? does that seem to have any impact on the rate of occurence of the problem?

  • Tiger Installation Problems, Monitor Doesn't Have Picture

    *Originally Posted in Tiger Support Discussions but no response.*
    Hi every1,
    I'm having problems as well trying to install Tiger on my power mac G3. I did the software exchange thing where I got CD's in place of the DVD. During installation,I restart the computer w/ the CD in drive, the computer starts but my monitor doesn't come on.
    I've been looking through the discussions and no 1 is having the same problem i'm having. I downloaded the firmware but when I go 2 install it, A message says the firmware is the latest and doesn't need 2 be upgraded. Could it be a problem w/my Viewsonic LCD VE701b Monitor. Do I need 2 upgrade the video card or is there some other problem?
    Power Mac G3 350mhz
    1gb Ram (PNY Technologies)
    Tempo ATA 133 PCI Card
    Western Digital80gb hard drive, 4 partitions
    currently using Mac OS 9.2.2 on main HD (8gb, 6.40gbs remaining)
    Partition I want 2 install Tiger is 23.30gb
    Any info will be helpful.
    Thanks every1,
    Andrea
    Pt. 2
    Hey every1,
    I see U are stumped as well but anyway, I've been doing research and here's what I did.
    1. I reset the PRAM, Nothing.
    2. I reset the PMU, Still Nothing.
    3. Emailed Tech Support at ViewSonic, (Awaiting a response).
    Anybody have any other suggestions? Could it be corrupt CD?
    Thanks,
    Andrea

    Take a look at this thread for useful stuff about the Oxford chipset:
    http://forums.macosxhints.com/archive/index.php/t-55470.html
    Your computer cannot give you USB2, and USB1 is very very slow, useless for tasks like backing up that involve transfers of large chunks of data. With what is built in on a B&W, your only choice is FW.
    The Oxford chipset is not the only one that works, but we know it does and those enclosures give you both stability and the ability to boot from the external drive.
    p.s. I responded to this earlier this morning. Are posts getting lost?

  • Power Problem (Adapter doesn't light up)

    On my Powerbook, which is about 1.5 years old, the adaptor charge light went off. The battery drained after this happened (Adaptor is no longer charging). The first time this happened I tried pulling out the battery for five min, and restarting. That did the trick. The same thing happened tonight where the adaptor charge light went off, and the battery drained on down. This time pulling the battery doesn't work.
    Anyone know what is likely going on here?
    My Superdrive that had gone south months ago, I just had repaired a few weeks ago. The computer functioned fine after the repair. Thought I'd throw that in in case it is pertinent.
    Thanks for any help. Michael

    Bad & good news: Bad—The fix I described stopped working, and my machine reverted to draining the battery and the adapter no longer powering the computer. Good—Resetting the PRAM completely solved the problem. It's been a few days now and the problem has not recurred. In fact, I couldn't get it to replicate the problem after many tries.
    My next step if it hadn't worked would have been resetting the PMU. Both are described here:
    http://docs.info.apple.com/article.html?artnum=2238

Maybe you are looking for

  • Macbook Pro - horrible performance - what can I do???

    Macbook Pro 15" Late model 2010 (December) 2.66 GHz Intel Core i7 8GB 1067 MHz DDR3 RAM 500GB HDD (437GB/37GB Mac HDD/Bootcamp) Hi, When I got my MBP in Dec 2010, it was very snappy running Snow Leopard.  My initial upgrade to Lion (Apple's version o

  • Jsp page does not open with firefox! plz help..urgent!!

    hi, i have a wierd problem... i am hosting my website currant.hos.ufl.edu/mutail/rahul/testing2.jsp if i open it in IE, it works fine... but it doesnt work if i open it in mozilla. it just shows me the java code (maybe it takes the jsp code as html t

  • Flex 4.1 sdk application issue

    My application consists of 4 modules developed in flex sdk 4.0, has resource bundles (eng and spanish), now we designed 5th module with flex sdk4.1 has eng and spanish resource bundles, when i compile and run the whole app(5 modules) under unix envir

  • WLC5508 crash, software failed

    WLC 5508 has encounted fatal error and continueously reboot. please let me know the solution thanks. - log- Detecting Hardware ... set smp_affinity for irq 48 003f starting pid 1045, tty '/dev/ttyS0': '/usr/bin/gettyOrMwar' Cryptographic library self

  • Printer now will not come out of sleep mode with new MiFi 5510L

    I have a HP 3522 All In One wireless printer networked via my MiFI router that goes into sleep mode as it is supposed to after a set period of idle time but the only way I can get it back on line/wake up is to unplug it and plug it back in.  While as