Hi Kraig and Irv...
I'm laughing at your responses! I guess I wasn't clear. ;-)
Irv...you pretty much answered my question. I have this utility
behavior (see below) that I use in many of my projects. This project's
score is only three frames long. On frame two, I swapped my utility
script to the more efficient:
on enterFrame
_movie.go(_movie.frame)
end
Next, a movie clip in a flash sprite has
this.onRelease = function(){
getURL("lingo:parentScript.lingoMethod()");
}
So, the messaging event ("bubble") gets to the parent method, starts
doing it, and it never gets through all five lines of that method before
the debugger flips over to the frame script. I have no idea why. I
wrote a workaround for it, so I've essentially solved the issue, or
rather, I've just masked the symptom. It works now, but I haven't
figured out why not all the lines of code are executed before the event
bubbles up to sprite(-5). For what it's worth, it seems more often than
not that the flow of code leaves the parent method at the following line
(but not necessarily always):
channel(6).makeScriptedSprite(member("video.mpg")),point(499, 257))
Thanks for the responses,
- Michael M.
-- do something simple
property pHandler
property pDoWhat
on beginSprite(me)
if pHandler = "beginSprite" then
do(pDoWhat)
end if
end
on mouseUp(me)
if(me.spriteNum = -5) then
pass
end if
if pHandler = "mouseUp" then
do(pDoWhat)
end if
end
on mouseDown(me)
if pHandler = "mouseDown" then
do(pDoWhat)
end if
end
on mouseEnter(me)
if pHandler = "mouseEnter" then
do(pDoWhat)
end if
end
on mouseLeave(me)
if pHandler = "mouseLeave" then
do(pDoWhat)
end if
end
on mouseUpOutside(me)
if pHandler = "mouseUpOutside" then
do(pDoWhat)
end if
end
on mouseWithin(me)
if pHandler = "mouseWithin" then
do(pDoWhat)
end if
end
on rightMouseDown(me)
if pHandler = "rightMouseDown" then
do(pDoWhat)
end if
end
on rightMouseUp(me)
if pHandler = "rightMouseUp" then
do(pDoWhat)
end if
end
on endSprite(me)
if pHandler = "endSprite" then
do(pDoWhat)
end if
end
on exitFrame(me)
if pHandler = "exitFrame" then
do(pDoWhat)
end if
end
on getPropertyDescriptionList
theList = [:]
listy = [:]
listy.addProp(#comment, "On which mouse event does the line of code
work?")
listy.addProp(#format, #string)
listy.addProp(#default, #void)
listy.addProp(#range, ["mouseUp","mouseDown","mouseEnter",
"mouseLeave","mouseUpOutside",
"mouseWithin","rightMouseDown","rightMouseUp","beginSprite","endSprite",
"exitFrame"])
theList.addProp(#pHandler, listy)
listy = [:]
listy.addProp(#comment, "What is the line of code?")
listy.addProp(#format, #string)
listy.addProp(#default, #void)
theList.addProp(#pDoWhat, listy)
return theList
end
[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!]