Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Modifying parent states from subchild


  • Please log in to reply

#1
t3hm4d0n3

t3hm4d0n3

    New Member

  • Member
  • Pip
  • 5 posts
Hello,
The problem is that i have a rather large project i am working on, and there are a lot of, well i suppose nested states would be a proper term.
however i don't think it works that way. ie. in the main application there are several state switches that load external components that i have built.
these components also contain states. i would like to be able to communicate between main and the loaded component, such as returning to the main
state from the component from within that same component.



here is an example of that. does anyone know how to access the parent state that everything started out with?

Edited by t3hm4d0n3, 05 October 2007 - 01:34 AM.

  • 0

Advertisements


#2
t3hm4d0n3

t3hm4d0n3

    New Member

  • Topic Starter
  • Member
  • Pip
  • 5 posts
well cancel this one, i am sure there is a way, but i have a hack for it so i will use that till i can clean up the code and make it
apart of the classes.
this involves setting the button up ouside the called states and making the button apart of the main parent state and then bringing it to the top
on the called state index order. simple yet effective, though i will continue to look for a more functional solution.
-=Levi=-
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP