Ask a Question related to Macromedia Director Basics, Design and Development.
-
vampyre80 webforumsuser@macromedia.com #1
"history.back" in director?
Hey guys im new to director,
Becus i need to create a simple button who functions like a button in html wif a history.back method ot going back to previous srceen, im wondering if Director has such thing n if so, how to do that?
Thankx for ur help.
vampyre80 webforumsuser@macromedia.com Guest
-
"Text image" back to "Editable text"
I need to convert "text image" to "editable text" in illustrator. I can't found any option for this in illustrator. But in acrobat using the OCR... -
Back to... document "appearance (8.5X11)" vs artboard size...
My new printshop (who I just started working with, and is conveniently located right down the street) is convinced that although I sized my .ai... -
"Back end not found. Or back end is busy"
Hello, I get this message when I try to connect to my IDS 9.4 via the bde16. I use the client version 4 (sqld_inf.dll). The version 5 gave me... -
REQ: Anyone know where I can find a "Today In History" php script for my web page?
Thanks for any info... Dan admin@bbdisney.com -
Question: How can I "expire" a web page (prevent BACK button)
I know some sites will display the following message if you click on the BACK button in your browser. How do I implement this feature? Warning:... -
JB #2
Re: "history.back" in director?
you can store the history in a linear list variable, probably need to
patch all of your navigation button scripts to store destination
marker-frames, or have a 'recording'score script at each page entry
point.
on recordNewPage -- just entered a page
global history
if not listp(history) then history = [] -- first access
append history, markerp(0) -- current or first marker to left
end
on backStepHistory -- version that forgets backed out of pages
global history
if listp(history) then -- have some
go to history[count(history)]
deleteAt history, count(history)
end
to backup and not forget any pages, a global variable indexing to
current point in history would be needed. It can get trickey if a user
has backed up a few, then uses menu navigation to visit new and already
visited pages, inserting into middle ofhistory olist may be vccalled for.
JB Guest
-
vij010 #3
Re: "history.back" in director?
Hi,
The logic that needs to be implemented is :
1. Create a global list (this list is used to hold all the marker names, alternativly you can use labellist, a list is similar to an array)
2. Create as many markers as you want
3. On the next button , ensure that the current marker name is added to this global list, this will confirm that the user has visited this scene. Have this for all your scenes.
4. When the history button is clicked, all you need to do is go to the last element of the global list.
Sample Code (Movie Script)
global mylist
on startmovie
mylist=[]
end
next button
global mylist
on mouseup
go next
append mylist, the framelabel
end
history button script
on mouseup
global mylist
mymarker=getlast(mylist)
go mymarker
end
This should work..., i've made a more elaborate program, instead of having the history logic in one movie, i create another movie at run time...this new movie has all the marker names (scenes) that you've visited.
Hope this helps or gives you an idea....
Vj
vij010 Guest
-
LeeD #4
Re: "history.back" in director?
hi,
there are some very good tutorials on this one is found at the macromedia
site cant remember the link another is one the director-online site
if i come aross them again i will re-post the link
good luck
lee
LeeD Guest
-
vampyre80 webforumsuser@macromedia.com #5
Re: "history.back" in director?
Hey really thanx a mil for all ur guys help,
Ive roughly got an idea now. Working on it later :)
vampyre80 webforumsuser@macromedia.com Guest



Reply With Quote

