RE: lingo-l correct tell syntax within MIAW

2003-07-30 Thread Kerry Thompson
 My projector chokes within the following handler:
 
 on mTransition(me, whichTrans, whichMarker)
   if the runmode = Projector then
 tell (window theTOC)
   puppetTransition(whichTrans)
   go whichMarker
 end tell
   else -- author mode
 puppetTransition(whichTrans)
 go whichMarker
   end if
 end
 
 The problem is the method is in a global parent script and 
 it's being called by a MIAW using external casts originally 
 loaded from the stub projector movie.  So, what's the right 
 syntax?  In author mode, it works fine.  In projector mode, 
 the go line crashes the projector.

Not quite sure I understand. Why do you have it behaving differently in
authoring and in a projector? Are you testing the MIAW movie by itself
in authoring?

Could you explain what you mean by using external casts originally
loaded from the stub? Are the casts linked to the MIAW? Did you create
an object in the stub? If so, the object should be available from the
MIAW, and you can call it directly from the MIAW, as you are doing in
the author mode code.

Did you try running the author mode version in a projector?

Cordially,

Kerry Thompson

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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!]


RE: lingo-l correct tell syntax within MIAW

2003-07-30 Thread Mendelsohn, Michael
Forget that post.  Problem solved.  I didn't have the right syntax on
the member param in puppetTransition.

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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!]


RE: lingo-l correct tell syntax within MIAW

2003-07-30 Thread Mendelsohn, Michael
Hi Kerry...

The problem is solved, and it's like a big sandbag off my shoulders, as
it was the culmination of a *much* larger issue.  So, I'll explain.

I'm parsing xml into meaningful text in a field to be read on the fly by
an OS Control v2 xtra menu sprite.  The menu wasn't working, so I tried
to narrow down why, and I saw that the text was parsed fine but choosing
menu items didn't do anything.  

The menu items are essentially:
choice | gData.mTransition(wipeLeft,goSomewhere)

Where gData is my controlling object and mTransition makes a transition
happen and goes to a new marker.  The hideous problem was that in author
mode, it would work, but crash in the projector.  Well, the XML was
right, so therefore the OS control should have worked, so I guessed it
had to be in the parent method.  I then realized I needed a tell
because this is happening in a MIAW that was spawned by the as now
hidden stage/stub projector. I realized that without the tell, the
parent object method was trying to execute these commands on the stage.
Yuck, hence the tell.  In author mode, I don't need a tell, but that
movie is a MIAW in projector mode.  Then, the punchline is that I had
the syntax on the puppetTransition wrong.  Instead of
puppetTransition(whichTrans), it *should have been*
puppetTransition(member(whichTrans, sharedAssets)), because that
transition is in an external cast.

So that's the reason for branching the code differently from author to
projector modes.

Hope that was written clearly.  And thanks for the response.  I always
appreciate the feedback.

- Michael M.





 My projector chokes within the following handler:
 
 on mTransition(me, whichTrans, whichMarker)
   if the runmode = Projector then
 tell (window theTOC)
   puppetTransition(whichTrans)
   go whichMarker
 end tell
   else -- author mode
 puppetTransition(whichTrans)
 go whichMarker
   end if
 end
 
 The problem is the method is in a global parent script and
 it's being called by a MIAW using external casts originally 
 loaded from the stub projector movie.  So, what's the right 
 syntax?  In author mode, it works fine.  In projector mode, 
 the go line crashes the projector.

Not quite sure I understand. Why do you have it behaving differently in
authoring and in a projector? Are you testing the MIAW movie by itself
in authoring?

Could you explain what you mean by using external casts originally
loaded from the stub? Are the casts linked to the MIAW? Did you create
an object in the stub? If so, the object should be available from the
MIAW, and you can call it directly from the MIAW, as you are doing in
the author mode code.

Did you try running the author mode version in a projector?

Cordially,

Kerry Thompson

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/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!]


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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!]