[Top] [All Lists]

Re: mpeg advance xtra

Subject: Re: mpeg advance xtra
From: Sean Wilson
Date: Mon, 20 Aug 2007 11:59:47 +1200
Newsgroups: macromedia.director.basics

You should use a frameScript or behavior attached to the #TBMPEGADVANCE sprite instead to monitor for currentime = duration. Something like (as a behavior attached to the sprite):
property spriteNum
property my
property myDuration
property myTargetMarker

on beginSprite me
  my = sprite(spriteNum)
  myDuration = my.member.duration

on exitFrame me
  if my.currentTime = myDuration then
  end if

on getPropertyDescriptionList
  pdl   = [:]

  lItem = [:]
  lItem[#comment] = "Marker to navigate to when finished:"
  lItem[#format]  = #marker
  lItem[#default] = EMPTY

  pdl[#myTargetMarker] = lItem

  return pdl

And if you choose to use the above, you should remove the "Wait..." setting and use a frameScript to hold on a frame until this behavior causes the play head to move to another frame.

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