Question:
i have seen the error of my ways and trying to find a solution.
currently i have a piece that is broken into lessons. when a user returned
and logged in. he/she would choose the lesson again and using "resume" it
would shoot them to that exact page.
well, this has proved less then helpful or efficient.
i have viewed barbara brown's bookmark piece. nice piece that i have
deconstructed for use.
i was wondering if someone could make suggestions for navigation when
returning to the piece versus the system functions; resume & restart.
or, are there any pieces of example code floating around that i have not
found.
Answer:
You've grown unhappy with the resume setting. Am I understanding this
correctly.
I usually create my own bookmarks using a technique that's probably
similar to Barbara Brown's although I'm not totally familiar with what
she's done. I usually store the icon ID of the framework page the use
was in when they quit the program. Everything's written to external text
files. Of course, all code is attached to a single main framework in my
courses. (Others here will suggest you store the icon title. The icon ID
will work fine if you use a new external text file for your records
after you package your file. You may run into problems if you need to
update the packaged file after you've distributed your course.)
It's not enough, though to just save the icon ID or icon title of the
page you want to return to. You also need to save the values of
variables that are necessary to restore the state of your course. I find
that my first attempt at creating a list of necessary variables always
leaves out a few that ARE needed so, creating such a list, becomes an
iterative process (trial an error) for me. That means you need to test
the bookmarking functionality thoroughly.
As for examples of code floating around...no two of my projects have
been exactly alike. So, the techniques I use are similar but the details
of the code may vary quite a bit. It all depends on how you want the
application to behave when you return.