macromedia.director.lingo
[Top] [All Lists]

Re: Creating Time Delay

Subject: Re: Creating Time Delay
From: Sean Wilson
Date: Fri, 29 Feb 2008 15:22:20 +1300
Newsgroups: macromedia.director.lingo


You can use some AS in the Flash file to tell Director when to navigate. If it's a frame based animation then you could place the AS on the last frame, if it's script-based then your AS must be able to detect when the animation is finished.
// AS2:
getURL("event:mNavigate()");

-- code attached to the flash sprite in Director:
-- (assumes there is a frameScript to hold the playhead
-- over the span of the Flash sprite)
property _flashDone

on beginSprite me
  _flashDone = 0
end

on mNavigate me
  _flashDone = 1
end

on exitFrame me
  if _flashDone then go next
end

<Prev in Thread] Current Thread [Next in Thread>