Okay, I have a problem and I'm not even sure what is the correct question to be asking here.
Basically, I have developed an AIR app which is mostly functional and pretty great, if I do say so myself. It incorporates Miti Pricope's LargeBook, which is a modification of Ruben Swieringa's FlexBook component.
I have developed a way to dynamically generate a book based on the content I want, and then switch states and display the book on the screen. The problem is this: I would like to have a list in which you could select multiple books and the book state will dynamically create a new book with the new content. The problem is that the Book is not a dynamic component (I can't just change content or pages on the fly) -- it involves some complex render and viewstack stuff, so I have to "create" the book on initilialize of it.
The problem is that the book can't be "uninitialized" -- once it appears the first time, that's it. It's unchangeable.
How can I get around this? Some ideas I've considered are:
This is maddening... I thought I did all of the "hard stuff", only to find that something I thought would be easy (allowing multiple different choices instead of one) has me banging my head against a wall. My app is perfectly functional if I use a single "book", just not if I want that book to change (or not even change, but simply to be deconstructed and re-constructed, without having to do it at compile or initialize. This seems like something that shouldn't be so impossible...)