Hi people of te list..
I have this small problem...
I intend to implement a Back Button for my multimedia cd rom.
It's made with Director 8 and i want to add some smart features in it.
I searched the web for available tips and tricks and i came up with this
code:
property spriteNum
global gBackList, gBack
on prepareFrame me
if gBack = void then set gBack = false
if gBackList = void then set gBackList = []
if spriteNum < 1 then
--framescript
set totalBacks = count(gBackList)
if gBack = false then
--did not come from back button
if totalBacks > 0 then
set lastEntry = getAt(gBackList, totalBacks)
else
set lastEntry = ["", 0]
end if
if lastEntry <> [the moviePath & the movieName, the frame] then
--not thecurrent frame, add tothe list
add gBackList, [the moviePath & the movieName, the frame]
end if
else
--came from the back button. Remove last entry
deleteAt(gBackList, totalBacks)
set gBack = false
end if
end if
end
on mouseUp me
if gBack = void then set gBack = false
if gBackList = void then set gBackList = []
if spriteNum >= 1 then
--is a button
if count(gBackList) > 1 then
--there are back locations
set gBack = true
set destination = getAt(gBackList, count(gBackList) - 1)
if the moviePath & the movieName = getAt(destination, 1) then
--same movie
go to frame getAt(destination, 2)
else
--different movie
go to frame getAt(destination, 2) of movie getAt(destination, 1)
end if
end if
end if
end
on getBehaviorDescription me
return "Drop this behavior on the framescript of each frame you want ot be
included in the back button history. Also drop it on the back button and
the script does the rest."
end
The author of this code doesnt give much explanation of how to use it ...
I am quite new in the Lingo scene and i need some more help to make this
code work in my movies...
What this scripts inteds to do ( or claims that it implements)
is hold in a list the number of the frame and the number of the marker
as well with the name of the movie.
When someone jumps from one movie to another the script keeps track of your
past frames , markers , movies you ve visited and by clicking it you can go
where you came from..
The think i want someone to explain to me is how to implement it for my
movie.
I am producing a reference title for non-commercial use.
Its a assignment for my Uni...
I want some extra help..
Can someone assist me please....
_________________________________________________________________________
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!]