A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Xml Tree selecting different functions ???

  1. #1
    Senior Member
    Join Date
    Apr 2008
    Location
    Rotorua / New Zealand
    Posts
    117

    Xml Tree selecting different functions ???

    Hi there,

    I have this Xml Tree ViewStack set up which works fine now for many month as it is, but I do need to do more with it, and I have the problem that I can't work it out the way it should preform using IF or a Switch.
    Maybe somebody had come across a similar problem ???

    Any help would be appreciated ! regards aktell

    Code:
    ........
    if (showThisView != "") {
    
    myViewStack.selectedChild = this[showThisView];
    
    I need to address every time a different function I select a different 
    Node in this Tree.
    
    e.g. 
    myViewStack.selectedChild == 0 .... ??? - function DO THIS
    myViewStack.selectedChild == 1 .... ??? - function DO THAT
    etc.
    
    }
    ........

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Is this a Flex question?
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Senior Member
    Join Date
    Apr 2008
    Location
    Rotorua / New Zealand
    Posts
    117
    I'm not quiet sure what it looks like to you, but YES
    Code:
    myViewStack.selectedChild
    did that not look to you like AS3 - Flex ??? Please enlighten me ! regards aktell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center