Professional Web Applications Themes

navigation problem - Macromedia Director Lingo

I am working with a screen that has 3 input boxes. They each have a separate behavior that if the input is correct, the sprite changes to one with a green light. It is is wrong, the user sees a red light. My problem involves trying to test if all three input boxes have a green light then the movie is to go to the next marker. I am trying to use if logic with an and to join all three sprites to be checked. So far, I am having no luck. I am enclosing the coding that I have ...

  1. #1

    Default navigation problem

    I am working with a screen that has 3 input boxes. They each have a separate behavior that if the input is correct, the sprite changes to one with a green light. It is is wrong, the user sees a red light. My problem involves trying to test if all three input boxes have a green light then the movie is to go to the next marker.
    I am trying to use if logic with an and to join all three sprites to be checked. So far, I am having no luck.
    I am enclosing the coding that I have come up with. Please help me finetune the coding. I have made the checking a separate behavior. So you can see the coding that works, I am also posting that.
    Thanks in advance.
    Nancy

    Check answer3 (ths coding turns on the green light sprite if the answer is correct)-this one works.
    on keyDown me
    if the key = RETURN then
    if value(member("input3").text) =22 then
    set the member of sprite (10) to member "Indicator On Green"
    else
    set the member of sprite (10) to member "Indicator On Red"
    end if
    else
    pass
    end if
    end keyDown


    Vault opens -this is the one that needs help!!

    on exitFrame me
    if the currentSpriteNum(6)=member(98) and
    if the currentSpriteNum(9) = member(98) and
    if the currentSpriteNum(10) = member(98) THEN
    go to "vault opens"
    else
    go to "code input"
    end if
    end exitFrame


    mrsr84:)
    mrsr84 Guest

  2. #2

    Default Re: navigation problem

    yea you have some funny syntax going on, try this



    Vault opens -this is the one that needs help!!

    on exitFrame me
    -- the following 3 lines are 1 script line wrapped by news program
    if Sprit(6) member = member( "Indicator On Green") \
    and Sprit(9) member = member( "Indicator On Green") \
    and Sprit(10) member = member( "Indicator On Green") then
    go to "vault opens"
    else
    go to "code input"
    end if
    end exitFrame
    JB Guest

  3. #3

    Default Re: navigation problem

    You want:

    if sprite(6).memberNum = 98 and sprite(9).memberNum = 98 and
    sprite(10).memberNum = 98 then

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon Guest

Similar Threads

  1. CSS IE problem and navigation bar question
    By mfv84 in forum Macromedia Dynamic HTML
    Replies: 6
    Last Post: September 10th, 10:52 PM
  2. Another navigation problem...
    By ploughman1 in forum Macromedia Dynamic HTML
    Replies: 1
    Last Post: August 12th, 01:49 PM
  3. problem with navigation bars
    By David Bartosik - MS MVP in forum Web Design
    Replies: 2
    Last Post: April 2nd, 07:40 PM
  4. A navigation control problem......
    By bob_5 in forum Macromedia Director Basics
    Replies: 10
    Last Post: February 10th, 06:52 AM
  5. Navigation Bar Problem
    By Jonah Bishop in forum Macromedia Dreamweaver
    Replies: 1
    Last Post: September 26th, 02:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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