Hi all,

Dir 8, Win 95

I had a problem that I've solved, but I'm curious as to what the problem
was. I've written a Prototype for a CD-ROM that runs from a hard drive
installed projector. The installed file finds the CD an launches the first
movie on the CD, after that, all of the navigation is between movies
residing on the CD.

The first version of the installed projector birthed the major objects for
the program (a navigation manager, a text formatting object, etc.). This all
worked fine in authoring mode, when the installed file was launching movies
on the hard drive. Once the movies were moved to the CD, the handlers in the
major objects started returning strange values, or simply could not be found
in the object. On a hunch, I put the installed file on the CD... this works.

The solution was to birth the objects in the first movie on the CD, rather
than birth the objects in the movie that resides on the hard drive. Now
everything works fine, but I'd like to know if anyone has a clue as to why
an object birthed from a movie on the hard drive would get flaky when called
from a movie that is on a CD. These objects are large, so I won't get into
all of the details of the handlers, but here's an example - one of the
methods parses a field for the following tag set: <pop><up></pop>. It
removes the tags from the field, stores the char positions of the tag set
and the string from the <up> to the </pop> tag in a property list (the field
then is put on the stage with a behavior that holds the property list as a
property - if the user clicks on the field, and the mouseChar is within a
"popup" range, the stored string for that part of the field will be put into
a field on stage). The method in the object should return something like
this:

["popup text":[20,30], "more popup text":[40,50]]

When the object is birthed from the hard drive and called from a movie on
the CD, it returns [[40,50]].

This is only a single example. The problem seems to be universal - some
calls to object methods return "handler not found in object".

As I said, all is fine when the objects are birthed from a movie on the CD.
I'm just sitting here saying "What the F**k." I'm happy that there's a
solution, but I'm still confused.

-Kurt


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to