Need help trying to Navigate tree

Hi there,
Im a flex novice and im not sure if this is the right place
for this post but i couldnt find anywhere else so apologies in
advance.
Im trying to make a flex application which takes in
information from an xml file, plugs it into a navigation tree then,
when the appropriate node is selected displays some rich text in a
central panel. I have this working but i would also like to be able
to navigate through the parent nodes of the tree. This is where i
am encountering a problem. I dont really know how to load in my xml
in order to manipulate it like i want. Should it be in a XMLListm,
a XMLListCollection or something else?
I have two buttons at the bottom of my tree panel, one for
previous and one for next and i want to be able to navigate through
the slides. So if i am on one parent node i want to press next then
go to the next parent node, open it and display the first child of
it. If i am on a child node i want to press next and go to the next
parent, open it and display the first child of it.
I have spent ages trying to solve this problem and im really
sorry if this is the wrong forum but im desperate. I've looked all
over the web, used all my training resources and i just cant get
it.
Here is the code, at this point in time im just loading in an
image and some text.
Any help would be greatly appreciated,
Thanks so much.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="photosIn.send();">
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
import mx.collections.XMLListCollection;
import mx.events.*;
import mx.controls.Button;
[Bindable]
private var photos:XMLList;
private var photoCollection:XMLListCollection;
[Bindable]
private var selectedXML:XML;
private function photosXMLHandler(event:ResultEvent):void
photos = event.result..painting;
private function showImage(event:Event):void
var node:XML=event.target.selectedItem;
image.source = "assets/"+node.@desc+".jpg";
text.text = node.@desc;
private function previousChapter(event:Event):void
photoCollection = new XMLListCollection(photos.painting);
var node:XML = XML(paintings.selectedItem);
photoCollection.length;
i=i++
private function nextChapter(event:Event):void
var node:XML = XML(paintings.selectedItem);
node = node;
paintings.expandChildrenOf(node, true)
image.source = "assets/"+node.@desc+".jpg";
text.text = node.@desc;
]]>
</mx:Script>
<mx:HTTPService id="photosIn" url="assets/photos.xml"
resultFormat="e4x" result="photosXMLHandler(event)"/>
<mx:HBox id="display" label="display" height="95%"
width="100%">
<mx:Panel title="Paintings" height="95%">
<mx:Tree change="showImage(event)" id="paintings"
labelField="@desc" dataProvider="{photos}" height="95%"/>
<mx:HBox width="100%">
<mx:Button label="Previous"
click="previousChapter(event)"/>
<mx:Button label="Next" click="nextChapter(event)"/>
</mx:HBox>
</mx:Panel>
<mx:Panel title="Painting" height="95%" width="50%">
<mx:Image id="image" maintainAspectRatio="true"/>
<mx:Text id="text"/>
<mx:Button label="Launch IP"/>
</mx:Panel>
</mx:HBox>
</mx:Application>

If you are restoring from an icloud backup you are going to have to erase a content and setting and while in the setup prompts you will get the option to restore from an icloud back...that's the only time you will get the option to restore from an icloud back and that's during setup

Similar Messages

  • HT5622 I need help trying to figure out why I'm not able to purchase anythi iTunes. I changed my password, that didn't help. I changed my payment type, that didn't help. It initially started when my password got disabled. Any advice?

    I need help trying to figure out why I'm not able to purchase anything on iTunes. I changed my password, that didn't help. I changed my payment type, that didn't help. It initially started when my password got disabled. Any advice?

    I need help trying to figure out why I'm not able to purchase anything on iTunes. I changed my password, that didn't help. I changed my payment type, that didn't help. It initially started when my password got disabled. Any advice?

  • Need help trying to use close button and i really like to know why it off

    need help trying to use close button and i really like to know why it off

    And in English? You need to explain better.
    Mylenium

  • This is detailed: I lost my touch pad scroll ability on my desktop when I installed Firefox, I am having a terrible time trying to sync my new Android tablet to my desktop, my desktop Firefox is acting very strangly (I need help trying to use it)

    My Vista Home Premium desktop has not used Firefox for a long time. I just loaded it as well as on my Honeycomb Android. The statement that I made pretty much says what my problem is. I can use both of them at the same time and use a router with the air Verizon card installed.
    I'll repeat my question: This is detailed: I lost my touch pad scroll ability on my desktop when I installed Firefox, I am having a terrible time trying to sync my new Android tablet to my desktop, my desktop Firefox is acting very strangely (I need help trying to use it)

    My Vista Home Premium desktop has not used Firefox for a long time. I just loaded it as well as on my Honeycomb Android. The statement that I made pretty much says what my problem is. I can use both of them at the same time and use a router with the air Verizon card installed.
    I'll repeat my question: This is detailed: I lost my touch pad scroll ability on my desktop when I installed Firefox, I am having a terrible time trying to sync my new Android tablet to my desktop, my desktop Firefox is acting very strangely (I need help trying to use it)

  • I need help trying to activate my new phone online where do i go??

    i need help trying to activate my new phone online where do i go??

    Log in to your MyVerizon (verizonwireless.com) and on the Overview page scroll down to I WANT TO... in the third column of boxes, under DEVICE, the 3rd one down is "Activate or Switch Device".  Click on that and follow the instructions.  If there is an issue, it will instruct you to call customer service or you will be connected to customer service automatically.  Let us know if this works...

  • I need help trying to access my spotlight messages.

    I need help trying to access my spotlight messages.  I type in the persons name and only one text comes up but when I type in words in the text other ones come up.  So what I need to do is get all those text messages if its possible.

    I know the texts are there, but like I said it depends on the spotlight search but I want them all in one.

  • Need help trying to transfer my information from one iphone to another

    need help trying to transfer my information from one iphone to another

    If you are restoring from an icloud backup you are going to have to erase a content and setting and while in the setup prompts you will get the option to restore from an icloud back...that's the only time you will get the option to restore from an icloud back and that's during setup

  • [Locked] Really need help trying to log users

    I really need help trying to show when members have logged in.  This is my second post and and the code that I was given, didn't work and now I can't get anyone to tell me what is wrong with it.  Here is the code and error message:
    Error message is "Unknown column 'billsmith' in 'where clause'
    Here is the code I am using:
    mysql_select_db($database_connRegister, $connRegister);
    $logged_in_user = "-1";
    if(isset($_SESSION['MM_Username'])) {
    $logged_in_user=$_SESSION['MM_Username'];
    $query_online_now = "UPDATE users SET logged_in='Online', last_login_date=NOW() WHERE user_name=$logged_in_user";
    $online_now = mysql_query($query_online_now, $connRegister) or die(mysql_error()); }
    $query_not_online_now="UPDATE users SET logged_in='Offline' WHERE last_login_date<NOW() - INTERVAL 60 MINUTE";
    $not_online_now=mysql_query($query_not_online_now, $connRegister) or die(mysql_error());
    Can someone please tell me why it isn't working?

    This question has been answered here: http://forums.adobe.com/message/2351465#2351465.
    Locking this thread to avoid duplication. Please reply in the original thread if any further help is needed.

  • My daughters IPod was stolen and I need help trying to locate it?

    And I dont know how to do this and really need help

    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it.
    - Apple will do nothing without a court order                         
    Reporting a lost or stolen Apple product                                        
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • My iMessage for ios7 is not working like it stopped working on 11-5-13 I need help trying to activate it again !

    I need help with my iMessage I don't have time to take it to an apple store! I need my iMessage to start working or at least let me activate it.  It's so annoying please somebody help me.

    Hello Jamienix,
    We've an article that can help resolve most issues you may encounter with activating Messages.
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Cheers,
    Allen

  • I need help trying to print ,move and resize multiple images on a page to print!help!

    can anyone give me to some advice. I was using an older version of photoshop elements where i could position the image i wanted to print on the page. I could resize it, move it around and add more photo's. I print small images that I cut out for jewelry making and need to be able to add 12 small images to a 4x6 print size page. My new elements is not allowing me to do that! I'm frustrated and need help!! thanks!

    It should work just the same as before: create a blank document, place your images on it, then print it. The only difference is that you can't change the position of the image in the print window anymore.

  • I need help trying to get my email address

    I need my email address to my skype name brittany.cifers1. I havent logged in a long time so i dont remember any of it 

    Hi, Brittany_Cifers, and welcome to the Community,
    We here in the Community do not have access to Skype account records; only Skype Customer Service does.  Therefore, if you cannot access your account to re-set your password and change your registered e-mail address, as strange as it may seem, you will need to create a new account in order to contact them. 
    Skype offers help and support through ... :
    Email and Live chat (for eligible customers)
    To get help with the issue you’re experiencing:
    Go to the Support request page.
    Select the topic you need help with and the problem you’re experiencing. Some information that might help with your problem is displayed.
    If you still feel that the information doesn’t help, click the Continue support request button at the bottom of the screen.
    Select your contact method. We recommend that you check our Support Network first.
    If you chose email, enter your details, describe your problem, and then click Send support request. We'll get back to you as soon as we can.
    We don’t currently provide telephone support.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • I need help trying to figure out how to get deleted texts back from icloud storage. can someone help me its really important?

    really important. need help.

    If they were on your phone when it was last backed up, restoring the backup to your phone should recover them.

  • I need help trying to put all my songs my new computer and it says Not on this computer i need help

    i cant put the songs i purchased i just got a new laptop and it saying not on this computer i need help BAD!

    THIS IS FROM ANOTHER POST.
    PLEASE DON'T POST IN CAPS LOCK, AS IT IS SIMILAR TO
    SCREAMING.
    This sounds like your alarm is set. Go to
    Extras-->Clocks and make sure that the alarms are
    off. Make sure there are no alarms set for your
    calendar either.
    btabz
    THANKS I WILL CHECK THAT OUT. AND IF YOU THINK THAT USING CAPS IS SCREAMING, THEN YOU GOT QUIRKS! EVER THINK THAT I USE CAPS FOR MY POOR VISION? I HAVE TO USE A MAGNIFYING GLASS FOR MY I POD. IT'S NOT ABOUT SCREAMING ALL THE TIME
    MAYBE I SHOULD HAVE SAID APPLE AND NOT I POD. BUT I WENT BACK TO THE "Technical Specifications" AND YOUR RIGHT AVI IS NOT THERE. SORRY I THOUGHT IT WAS, I GUESS I AM **** OUT OF LUCK. WELL AT LEAST I GOT MY I POD NOT TO TURN BY ITS SELF, THANKS ANYWAY.

  • I need help trying to locate my iPad

    I need help locating my iPad

    What To Do If Your iDevice or Computer Is Lost Or Stolen
    iPhone, iPod Touch, and iPad
    If you activated Find My Phone before it was lost or stolen, you can track it only if it is connected to the Internet by Wi-Fi or cellular. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. iCloud- Use Lost Mode
      6. What to do if your iOS device is lost or stolen
      7. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      8. Find My iPhone
      9. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)
    Mac Computer
           Find My Mac can be used from Find My Phone at iCloud.com and via Find
           My Phone on your iDevice.
          The following is third-party anti-theft software:
               1.  STEM 2.1
               2.  MacPhoneHome 3.5
               3.  MacTrack 7.5.0
               4.  VUWER 1.7
               5.  Sneaky Bastar* 0.2.0
               6.  Undercover 5.1.1
               7.  LoJack for Laptops
               8. Hidden 2.0
               9. Prey 0.6.2

Maybe you are looking for

  • Edit a png file... change colors and text and then export to gif?

    First I want to state that I am VERY new to Fireworks and I am trying to figure out how this works!  I typically use Photoshop. I was sent a PNG file (from a friend).  The file has many buttons on it that I believe are somehow saved or exported out a

  • Mail from GR

    Hi  we need to send mail to the QA person once the GR is posted for Purchase order . There is no QM impletementation here. so thats to inform the QA person of the arrival of goods for sample and inpsection. Checked MLBR output type..but that mail goe

  • Why does Skype make your credit inactive?

    I was just curious on if anyone knew why Skype would de-activate your credit after 180 days.  That irks me quite a bit seeing how I paid for those credits.  If I just wanted to throw money money away I could do it faster if I walked over to at trashc

  • HT1695 why would my new computer with windows 8 set up fine and now all of a sudden I cannot connect to the internet on my IPaD

    I have a new computer an Dell Inetel Celeron 2020 with Windows 8.  I had interent connection on my old desktop and to my Iphone and Ipad, however now I cannot get my Ipad to connect to the internet whatsoever.  i have messed with this since Wednesday

  • How come my pictures erase when adding new ones?

    I created a folder of pictures to transfer to my picture file in ipod... It worked just fine... then I tried to transfer another folder, because it seemed to transfer correctly. But then i went into the pic file in ipod... and it had replaced the fir