The case of the mysterious non-expanding tree.

Hello all,
I've got a strange problem that I can't figure out. At it's
simplest, i've got a tree and two xml objects. In mx tag for the
tree I define one of the xml objects as the dataprovider,
additionally i've defined an event handler for the trees
creationComplete event that opens up the root nood. This works
great and is exactly what I want.
But...
I've also got a button, click on the button and it either a)
changes the dataprovider of the tree to the second xml object, or
b) change the xml in the dataprovider already assigned. Then,
because the data has changed and the tree re-renders it ends up
collapsed again so immediately after changing it's data I try to
open the root node but nothing happens. No errors, just nothing.
For the purpose of debugging i added a second button that
simply tries to expand the root node of the tree after i've changed
the trees data provider and it works fine. The line of code that
exists in both the first and second buttons and that should open
the tree only works in the second button for some reason. The only
thing I can think of is timing, perhaps when trying to expand the
node in the line of code directly following the change to the
dataprovider the data hasn't loaded into the tree yet so it can't
expand the node but, i've tried all sorts of event handlers and
they don't seem to work either.
Here's a link if someone wants to download my test.mxml file
and try it themselves. There's more comments in the code but it's a
super simple test page so it should be immediate where the problem
is...
http://www.binarydemon.com/test.mxml
Thanks in advance.
Zach

Thanks Tracy,
callLater() was exactly what I needed. I had no idea that
method even existed, most things have events that fire when
something important happens that I want to respond to, or are timed
better for me to respond to that I've yet to need callLater(). Of
course I'm still new at flex...
Best,
Zach.

Similar Messages

  • The Case of the Disappearing Clones

    Ok, here's a new one for me.
    I was cloning a cloud edge, and examining my work. The History palette was blocking my view, so I moved it. Instead, it jumped to the palette bar. Brought it back and tried to move it again. Same thing. Huh? I opened it for the third time, carefully clicked on the top of the History  and this time it moved off the edge of the image. But look! The clones have disappeared from the image, but they are still present in the palette! I ran back and forth up History and nothing. There they are in History, there they aren't on the image. Not a big deal, redo the clones. Looks better than before anyway, but still, where are the first ones?
    (Yeah, I know. Dual monitors and all that. But consider if I have dual monitors, this puzzle never would have appeared! Or would they?)
    Win7 64, CS5 with all the patches.
    Oh, and Happy New Year.

    Thanks for getting back Noel.With a name like yours, tis the season!
    Last first. Nothing wrong with dual monitors except for my cramped desk space. I probably will change that as soon as any of my potential clients actually materializes. Been quite slow!
    So far as screen shots and such, it would have been nice had I anticipated this event, but there it was and I had to write down what I could recall as to the steps leading up to the event. Saving it would lose history so I proceeded rather slowly to try and glean whatever I could.
    Now, a variation on this occurred about an hour later. This time I was using the Burn Dodge tool. I flattened the file first, then proceeded to use the tool, and suddenly noticed that nothing happened when a went backwards through history, as if I didn't actually burn anything. The setting for the brush looked ok, and then I noticed that the file is no longer flattened! WTF! I was deliberate in doing so, and even if I went back to before flattening in History, flattened should be visible and available as I drop down through History. According to History, I never flattened it. This could also be the case in the first instance. I thought I had flattened it but it wasn't. I assumed I didn't flatten.
    At this point, I have to consider that a prefs reset is adviseable, but before doing that, I really want to see if I can replicate either event. So far, no dice.
    I checked the History setup to see if non-linear History was checked and it isn't. But it sure seems like it is.
    One unusual condition is that last night, before going out for New Years, I saved my work but left PS running with the file open. So, this morning, I proceeded to do the little detail work on the open file as I intended to run some test prints.
    That's when it all started.
    Note: as I am writing this, I'm also checking out the app. I just tried to open PS. The icon in the tray showed PS is not running, but I cannot open it. The executable doesn't run. I've seen this before in Win7 and I usually open Task Manager and shut down the program. I see this on any number of programs, like even Fire Fox. But this time I noticed two versions of PS running. I didn't think this was possible. One shows a large memory component 670,000k, the other  about 6,000k. Huh? I shut down the smaller one and get a message that this is an illegal action, but it shuts down anyway.(That notice lasted only seconds and went away.)  I try again, I again see the second version in Processes, the same 6000k memory size. Now it shuts down with no notice. I know I saved the file and did tell PS to exit, so I shut down both instances of PS. Now it opens correctly.
    I'm of a mind that there is some corruption going on.The fact that programs won't close when I exit does bother me. ( I'd hate to think about reinstalling the whole shootin' match!)  What I will do is enable the History log. and see if I can capture any information.

  • My macbook 13 inch late 2007 model got soaked in wine I bought a pro to replace it , I want to use my hard drive on it as an external , I already purchased the case , now the motherboard I understand gets bad but not the hard drive , right?

    my macbook 13 inch late 2007 model got soaked in wine I bought a pro to replace it , I want to use my hard drive froom the old one on the macbook pro and use it as an external , I already purchased the case , now the motherboard I understand gets bad but not the hard drive , right? but everything else still is in there right. ? 
    I got my case from owc computing
    thye used a cloner last time I got the hard drive from them , but the apple had to be working. and now it's just not going to turn on wine is sticky forget about
    no worries I enjoyed it for 6 years could have gone longer I have all this extra gig ram memory, and a new digital drive for ith had broke
    all I want it my hard drive available at owc and make it a usb drive and acc3sss my stutt ? thansk any ideas and also on how I could sell or use the parts I can salvage,    and yay my new pro ix 17 inches silver sleek full ms office i life and i work. included 389 awesome price , no need for new this does awesome . rather than buying an optical drive for 200.00 I got a new computer to me and better for a lot less.          
    I am gratefful , just please help on the hard drive question as external ,
    thanks
    just didnt want to make this sound like a sob sitiuation and also inspire others what can be done.
    and I then will be able to upgrade to Snow Leopard and i life 2011.

    Well as I suspected I love OWC company I pulled out the mac hard drive , they offered me a Macdrive  free trial program to check your drive on PC Windows and yesSSSSSSSSSSSSSSSSSSSSSSSS it all there nothing lost
    woohooooo , thank you but nothing is dead, when you have faith , this was a prayer answered big time I wanted a pro so much and I get to use my 500  plust 250 plus 120 GB drives all of them
    ladies and gentlemen and I get to keep the 2 GB in from my macbook 13 inch and sell all the parts
    yipeee
    thanks for the support, now the case is Solved. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • HT3255 Do the cases for the Macbook 13.3' air 2011 model fit the Macbook 13.3' air 2008 model?

    I recently purchased a MacBook Air 13.3' late 2008 model. I am looking for a case. Do the cases for the 2011 still fit the 2008 model?

    Generally speaking yes, but check the manufacturer's website to be sure.
    I like these:
    http://www.speckproducts.com/macbook-cases/macbook-air/pixelsleeve-for-macbook-a ir.html

  • Where can I buy an ipad2 case with the same design as the case for the original ipad?

    I thought the case for the original ipad was great, but it doesn't quite fit the ipad2.  Is there somewhere I can find a case with that same design, but fitted for the ipad2?

    www.amazon.com
    Search for "iPad 2 Case"

  • G'day, i am trying to type into an adobe document using the typewriter function. However everytime after i type the text vanishes. It is almost as if the text is white and vanishes into the background. However this is not the case as the works are not vis

    G'day,
    I need some help, i am trying to type into an adobe document using the typewriter function.
    However every time after i type the text vanishes. It is almost as if the text is white and vanishes into the background.
    This is not the case as the works are not visible regardless of the background color.
    The text box remains available and can be edited if clicked on, also if i double click on it the typed words become visible and editable, however once i close the box i cannot see them on the screen.
    I would appreciate any help i can get, i cant seem to do anything using properties or view.
    Thanks 
    Tiernan

    Hi Sara,
    See response to your questions below:
    1.     Are you running into this issue in a specific PDF, or in all of them?
    A.     All of them
    2.     What version of Acrobat are you using (and, are you on Mac OS or Windows?).
    A.     Using Acrobat 10.0\Acrobat on Windows
    3.     If you look at the text properties on the Tools panel (under Format), what color is the text swatch?
    A.     Test swatch for the text is black
    4.     What happens if you change the text color?
    A.     Nothing.
    I look forward to hearing back from you.

  • After editing a RAW photo in PE13 (my External Editor) sent from Apple's iPhoto, I can not reimport the edited photo bank into my iPhoto library. The "Import to Library" command is greyed out. This was not the case before the latest PE13 RAW update versio

    After editing a RAW photo in PE13 (my External Editor) originally sent from Apple's iPhoto, I can not reimport the edited photo back into my iPhoto library. The
    "Import to Library" command is greyed out. This was not the case until the latest PE13 update (Camera Raw Version 8.7.1.311). What needs to be done
    to reimport edited photos back into my iPhoto library? Ideas?

    Launch PSE Expert Mode and go to:
    Photoshop Elements Editor >> Preferences >> Saving Files (tab)
    Set the drop-down dialog
    On First Save : Save Over Current File
    Click OK.
    When you have finished editing in PSE use Cmd+S to save (not Save As)

  • Why should u not leave the case on the ipod while it is charging?

    Why should u not leave the case on the ipod while it is charging?

    Because charging the iPod battery generates heat which may become excessive if the iPod is left in a case. If you don't allow the heat to escape, then you risk damage to the iPod.

  • Mac App Store -- why can't I 'gift' Mac Apps? Gifting specific apps in the iTunes store is easy. This is not the case on the Apple Mac App Store.

    Why can't I 'gift' Mac Apps? Gifting specific apps in the iTunes store is easy. This is not the case on the Apple Mac App Store.

    An alternative is to purchase an iTunes gift card that can be redeemed for apps in the Mac App Store.
    Buy Apple Gift Cards, iTunes Gift Cards & iPhone Gift Cards - Apple Store (U.S.)
    iTunes Store: How to redeem a code
    You can provide feedback to Apple >  Apple - iTunes - Feedback

  • The case of the mysterious hidden content - second hand iMac

    Dear people with more knowledge than me... (i.e. dear everyone...)
    I have recently purchased a second hand intel iMac (late 2006 model) to replace my trusty (but noisy) Powermac G4 Mirror Door Drive. It was purchased 'wiped' with a fresh install of Lion.
    I used Carbon Copy Cloner to create a backup of my old hard drive (or at least the 60GB partition of it that I was using - I had Tiger installed on it) and then used the Migration Assistant to re-create an image of Zion in the wide expanses of the new promised land (250GB capacity).
    All seemed to go well (but time consuming - it took several days to port everything to/from my USB external hard-drive). A few days later, when I checked About this mac I was shocked to discover that I only had 5GB of storage remaining.
    I did a little poking about and realised I had left a couple of user profiles hanging around during my pre-Migration Assistant faffing. These duplicated much of what I had later migrated over more comprehensively, so I deleted these additional user profiles and this freed up a further 58GB or so.
    My system information now tells me that I have
    249.2 GB Capacity
    63.69 GB Available
    185.5 GB Used
    The used component consists of:
    Audio 137.47 GB
    Movies 7.03 GB
    Photos 9.74 GB
    Apps 3.34 GB
    Backups 0
    Other 27.94 GB
    However, when I go through all my available files and folders using the Finder, the grand total of space that I have used comes to around 88GB:
    My home folder (the only user profile I didn't delete) 42.98 GB
    Desktop 4.09 GB (I know, I know, clean your room...)
    Applications 2.31 GB
    Documents 2.8 MB (yes MB)
    Movies 0
    Music 38.59 GB
    Photos 385 KB (yes KB)
    Total ± 80GB
    Leaving aside for a moment the fact that the disk partition I Migrated over was only 60GB in total (?!), where on earth are the other 97.5 GB of files, and how can I see/delete them to free up drive space I thought I had...?
    ...I imagine that the audio, movies etc., that are unaccounted for actually belong(ed) to the previous owner of the iMac. What I don't know how to do is see/access/delete them to free up disk space. There are no additional users other than my own account that I can see. That's not to say they are not there.
    What can I do?
    Thank you in anticipation of any help or advice.
    v

    verdelay wrote:
    the (hidden) folder _CCC Archives takes up a whopping 107 GB, much of which consists of multiple copies of the same audio files (due to poor file management and copies of copies, I think..). I'm now looking for a utility that will be able to locate and list duplicate files so I can verify that the _CCC Archives folder files are replicated elsewhere.
    I use CCC, but not the "archive" feature (since my main backups are made with Time Machine). 
    According to it's Help, that folder contains the backup copies of files that had been changed on the "source" drive. 
    But this large folder is on your internal HD, right?  Here's what I think happened:
    When you made the original CCC clone from your old Mac, you selected the option to "archive" the copies of things that had been changed.  For some period of time, it did that.
    Later, when you used Migration Assistant, it copied all those old files from the clone (via the Other files and folders on <HD name> option) back on to your new internal HD.
    So yes, the files there should be prior versions of things on your system.
    There are various options to have CCC manage those files.  You can assign a certain size to it, and it will delete the oldest files when necessary to make room for new ones;  or "prune" files after a specified number of days, etc.
    Click Help in the CCC menubar, then CCC help, then review the Backup and archiving settings section:

  • S.O.S. - The case of the missing TIme Capsule icon

    I am trying to connect my MacBook Pro to a local network.
    Our Macbook Air, iPad and three iPhones all have WiFi. No problem.
    My Macbook Pro has solid black radiating bars in the main menu. In Airport Utility, it shows the "Internet Globe" with a green circle below. Below that, however all I get is a spinning wheel. At the same time, the Macbook Air shows the icon of the time capsule with a green circle below.
    Is there a setting I am missing? Some said to turn off Mac Access, but I do not know where to do that. In System Preferences, Wi-Fi is green, and it says WiFi is connected.
    I ran all of the maintenance (rebuilt Directory, optimized the drive, weekly/monthly scripts, etc) All of the hardware checks out.
    Has anyone had this happen? Help would be greatly appreciated.
    Paul Kirtley

    This is typical Yosemite.. please confirm OS on Pro and Air.. Yosemite,  has the network ability of a pair of tin cans with wet string. (that dried and snapped).
    The odd thing of course is the MBP is on the internet.. but perhaps just too stupid to figure out the local network.
    So here is the first few things to try.
    1. Factory reset the TC.. sounds odd when it is working already .. but please do the setup with the computer that is having the most trouble.
    Factory reset universal
    Power off the TC.. ie pull the power cord or power off at the wall.. wait 10sec.. hold in the reset button.. be gentle.. power on again still holding in reset.. and keep holding it in for another 10sec. You may need some help as it is hard to both hold in reset and apply power. It will show success by rapidly blinking the front led. Release the reset.. and wait a couple of min for the TC to reset and come back with factory settings. If the front LED doesn’t blink rapidly you missed it and simply try again. The reset is fairly fragile in these.. press it so you feel it just click and no more.. I have seen people bend the lever or even break it. I use a toothpick as tool.
    N.B. None of your files on the hard disk of the TC are deleted.. this simply clears out the router settings of the TC.
    2. After a reset it should suddenly show up as new device.. please run the setup utility from the pro.
    Use short names, no spaces and pure alphanumeric. eg TCgenx and TCwifi. Base station and wireless names respectively.
    3. Use WPA2 Personal security only. Use pure alphanumeric mixed case and numbers password.
    4. If you have issues plug in by ethernet.
    5. Set ipv6 in network preference for wireless and if used, ethernet. to link-local only.
    Tell me how this goes.. if it works in the pro you can then pick it up in the Air etc.

  • The lcd screen of my 15-inch Macbook Pro (mid 2009) is separating from the case. The glue failed due to the heat.  How can I get Apple to fix this factory flaw?

    The heat vented from the back of the laptop caused the glue to fail and now the screen is separating from back of the lcd case near the hinges. I know for a fact that this issue is known by Apple as I have seen the issue reported at least a dozen times.  This laptop was considerably more expensive than any comparable laptop at the time I bought it. I bought it believing that I was buying a quality product from a quality company.   I've owned many laptops and I have never seen anything like this.  My laptop is out of warranty but this is really besides the point.  This is clearly a factory defect that Apple should remedy.  What do I need to do to get Apple to fix this design flaw?

    Ask Apple.
    We're just regular users here, nobody from the company shows up except for the invisible moderator who purges your posts, threads or self. And if any employee is around, the lawyers probably prevent them from identifying themselves.

  • HT1725 My downloads on itunes show the songs downloaded however when you play them that is not the case. The download was not completed unsucessfully. What can I do?

    My recently purchased songs indicate the download was completed, however that is not the case. When you try to play the song it does not work. Any ideas to fix the problem?

    Hello,
    Here's how I got my songs to play correctly:
    1) Delete the songs that aren't playing from your iTunes library.
    2) Download the songs again from the iTunes Store for
    free. For information about downloading past purchases, see:
    http://support.apple.com/kb/HT2519

  • The Case of the disappearing data

    I don't know if this problem is unique to me & could well mean I have a defective 3G iPhone. One day about 2 weeks ago I went to listen to music on my iPhone & was greeted by the musical note (meaning no songs available). On looking under settings, general, about it showed zero songs, but still showed the free space available as when 840 songs were present. I performed a restore on the phone, but it said I had a corrupt backup. My only backup choice available was the sync from my previous 2G iPhone, which I selected & finished out the restore. All my songs were restored, but since then I have not been able to reconnect with my company's exchange server using the same settings as before. I was hoping the 2.1 update would solve my problems, but I am still unable to get the Exchange email to work. Today I received a text message from my wife & noticed it was just displaying her mobile # & not her name. I looked in contacts & every entry displayed the contact name only but non of the other info (address, phone numbers, etc.). I reset the iPhone & my contact info fortunately was restored via Mobile Me, but I still think I have issues. Has anyone experienced these kinds of issues with data? All total I have lost the songs on this twice & just experienced the contacts glitch today.

    This has been reported before. Its a database corruption.
    The missing music can usually be fixed without a restore.
    Usually, buying one song from itunes store or adding one song thru the iTunes sync will fix things up.
    Your contacts may have a similar problem, or it could be MobileMe. There have been lots of problems with Mobile Me, so much so that I just avoid it all together.

  • The Case of the Disappearing Disk Space

    Last week when I noticed I only had 5.5 gigs on my hard disk, I decided to start deleting files and programs that I didn't really need anymore. I ended up freeing up about 7 gigs! However, I have since noticed something peculiar...
    As I use my computer (mostly browsing and e-mail, no other downloading), my hard disk mysteriously gets filled up. And I don't mean a few megabytes here and there, but rather more than two gigs in just a couple of days! This doesn't seem normal to me at all. Even if I do save files, they are usually just small Word documents for school. A few minutes ago, Finder said I had 10.7 gigs on my hard disk with the trash emptied. After I restarted, it said I had 13.15. Since then, I've already lost .02 gigs and the only programs I have open are Mail and Safari.
    Can someone please explain to me what is happening here? Thanks!

    Okay, my hard disk is at 12.71 now and a random .rtf file reads 8 kb. I'll check it later (if I am doing this right...)
    You don't seem to be doing it correctly. Open TextEdit, create a new window, and note down the usage of disk space reported by WhatSize by typing it out into this window. After the amount of free space on the hard disk has decreased, run WhatSize again and note down what is reported this time. Compare the differences in the two sets of notes.
    Another possibility is to choose Go to Folder from the Finder's Go menu, enter /private/var/vm/ as the folder's path, and keep an eye on the number of items in this folder as you use the computer.
    (14861)

Maybe you are looking for

  • Problems with speaker

    i bought my iphone 4s 2 month ago and now i am having problem with my speaker .I get sound through headphones, but not through speakers. Occasionally I will get sound (clicking when unlocking) but then it goes again. is there any solution or is there

  • 3D Starter Kits

    I purchased the Samsung 55" LED 3d tv bundle back at the end of January.  New house, new TV, right?  The kit (2 pairs of glasses, Shrek movie, etc.) was back ordered.  No big deal... I had plenty of other things keeping me busy.  Well, the dust has s

  • My iphoto library is almost full?!

    I am trying to transfer photos from my camera to my macbook via iPhoto. Im getting the message that my iPhoto library is almost full. My macbook is only 2GB so i thought it was because my memory was full. so i have bought and installed 4GB of memory,

  • Registration of BB Curve 8900 in Bitola, Macedonia

    Hey BB!!! I am a satisfied customer of BB for about 2 years, so also are my whole Family, we are 4 of us!! I am presently using a BB Curve 9300 !!! Hence, i presented a friend of mine a BB Curve 8900 so that we can be in touch with each other all the

  • Delete ABAP Program Variant

    Hi, Is there a way to block users from deleting the variants in an ABAP program? The PROTECTED flag only protects against any changes...but allows deletion..strange!!!!