How about the following:

//[In Flash MX]
// _root
// Frame action
oMessenger = {};
oMessenger.xExecuteFlashMethod = function() {
        trace("Called from Director MX");
};

--[In Director MX]
-- Behavior for a Flash sprite
property pMySprite, poFlashObject

on beginSprite(me)
  pMySprite = sprite(me.spriteNum)
  (the actorList).append(me)
end

on stepFrame(me)
  poFlashObject = pMySprite.getVariable("oMessenger", false)
  put [#stepframe, poFlashObject, the actorList]  -- forTesting
  if objectP(poFlashObject) then
    (the actorList).deleteOne(me)
    put [#deleted, the actorList]  -- forTesting
  end if
end

on xSendFlashMessage(me)
  poFlashObject.xExecuteFlashMethod()
end

-- To execute the Flash method, i.e:
on mouseUp(me)
  me.xSendFlashMessage()
end
_____
"Mendelsohn, Michael" wrote:
> Does anyone know of a technote, or could otherwise shed some light on a
> quick way to call a specific actionscript function in a flash sprite from a
> lingo behavior on that sprite?

Good luck,

Fumio Nonaka
Phone: +81-42-397-9452
Fax: +81-42-397-9452
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
See also:http://www.F-site.org/
[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!]

Reply via email to