Simple go to frame (contents of field) script

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

  1. #1

    Default Simple go to frame (contents of field) script

    Hi,

    I'm having a problem with one of my scripts and I can't figure it out.
    I have it set so that the I have a object on stage that, when
    clicked, puts it's current frame into a field. On the frame that this
    action goes to, is another objected, that when clicked, needs to go
    back to the previous frame. The thing is, the frame it is going to is
    one, so it's easy enough to use "go to frame X" but when going back,
    there are many frames that it could go to. My plan was to put the
    contents of the frame into the field and to go back, simply have the
    script read the field and go to the proper frame.

    Here is my script:

    -- Script that goes to the prespecified frame
    on mouseUp me
    put the frame into field 243
    go to frame "serviceproperties"
    end

    --Script that goes back to the previous frame
    property theString

    on mouseUp me
    set theString = (line 1 of field 243)
    go to frame theString
    end

    Does anyone know where I'm going wrong?
    Trentent Guest

  2. Similar Questions and Discussions

    1. Text Frame Contents keep disappearing
      Whenever I change the size of a text frame, the content keeps disappearing. HELP!!!! Windows ID CS
    2. Problem editing frame contents
      Hi, We're using Contribute for one of our sites and it seems that Contribute 3 tries to outsmart the user invoking javascripts normaly ment for...
    3. CS: Can we scale a frame, independent of contents?
      I swear I used to be able to type absolute dimensions for picture frames, so long as the frame was selected with the Direct Select tool. No longer....
    4. Verifying Case of field contents
      Hi All, A colleague wants a script for a quiz which takes the content of a field and checks it against the given answers. Pretty...
    5. simple php question: mysql_fetch_row display array contents
      I am trying to do something in PHP that I thought would be fairly easy but has become rather troublesome. I'm trying to retrieve a list of...
  3. #2

    Default Re: Simple go to frame (contents of field) script

    I guess I should put that the script errors out on "go to frame
    theString", but I do not know why. Can anyone help me out?
    >
    > -- Script that goes to the prespecified frame
    > on mouseUp me
    > put the frame into field 243
    > go to frame "serviceproperties"
    > end
    >
    > --Script that goes back to the previous frame
    > property theString
    >
    > on mouseUp me
    > set theString = (line 1 of field 243)
    > go to frame theString
    > end
    >
    > Does anyone know where I'm going wrong?
    Trentent 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