----- Original Message -----
From: "Png Tze Yong, Kirk" <[EMAIL PROTECTED]>

> I have a problem here. After the video clip playback has finished, I want
it to link to next director movie file automatically.. without human
interverention.
>

Hello Kirk,

Drop this behavior on to your video sprite.

--< Behavior >---------------------------
property pDuration

on beginSprite me
  -- get the total running time of this video clip in ticks.
   pDuration = sprite(me.spriteNum).member.duration
end

on exitFrame me
   -- check the sprite's movieTime property
   -- if it is still under the total running time.
   if sprite(me.spriteNum).movieTime <= pDuration then
     -- if it is then loop
     go the frame
  else
    -- ok, the video is done playing, now go to the next movie.
    -- assuming that your other movie is at the
    -- same level as the current movie.
     go to movie "YourOtherMovieNameHere"
  end if
end
--</end of behavior>-----------------------------


Hope this helps.

John Erazo

[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