try this...

--the startmovie script
global gMarkerlist

on startmovie
  gMarkerlist = list()
end

on FindLastLabel
        repeat with i = 1 to the number of lines in ¬
        the labelList
                if the frame < label(line i of the labelList) then
                        return line i - 1 of the labelList
                end if
        end repeat
        return line (the number of lines in the ¬
        labelList - 1)of the labelList
end

--on goto whatever marker

global gMarkerList

property pMarker

on getpropertydescriptionlist
  set p_list=[¬
  #pMarker:[#comment:"goto marker: ", #format:#marker, #default:#marker]]
  return p_list
end

on mouseup
  go pMarker
  add gMarkerList, FindLastLabel()
  put gMarkerlist
end

--on previous button

global gMarkerList

on mouseup
  if count(gMarkerList) > 1 then
    go getAt(gMarkerList,count(gMarkerList)-1)
    deleteAt gMarkerList, count(gMarkerList)
  else
    gMarkerList = list()
  end if
end


>Hi, is there anyone out there who can help me?
>
>I want to create a button that will take the user back to the 
>previous screen in a Director Movie I'm creating.
>Because the user can jump around the movie in a non-linear fashion 
>its no good going back to the previous marker.
>I set up a global variable in which to set the frame number of the 
>previous screen and can see in the message window that that is 
>working fine.
>I just don't know how to get the button to go to the frame of that 
>variable value.
>
>Help!!
>
>Ferdi
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
>[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!]


[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