"history.back" in director?

Ask a Question related to Macromedia Director Basics, Design and Development.

  1. #1

    Default "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

  2. Similar Questions and Discussions

    1. "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...
    2. 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...
    3. "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...
    4. 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:...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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

  6. #5

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139