|
|
|
Add to the back list
Added on 6/8/1999
|
Use this to generate a backlist. This is a straight foward way to track where a user goes. You can place it on the same frame as each marker and track the users progress. To go back, set backState = true and go to the NEXT TO LAST item in the list (the last is the currennt frame). It takes some tweaking for your uses, but is a good start for a back button behavior.
--Copyright 1999 Chuck Neal
--chuck@mediamacros.com
--If you find this code helpful, send me an e-mail and let me know. :-)
on prepareFrame
global gBackState, gBackList
if gBackList = void then gBackList = []
if gBackState = False then
if count(gBackList) > 0 then
if getAt(gBackList, count(gBackList)) <> the movieName & return & marker (0) then
add gBackList, the movieName & return & marker (0)
end if
else
add gBackList, the movieName & return & marker (0)
end if
else if gBackState = True then
deleteAt (gBackList , count(gBackList))
set gBackState = False
end if
if count(gBackList) > 30 then
repeat with x = 1 to (count(gBacklist) - 30)
deleteAt (gBackList, 1)
end repeat
end if
end
|
|