Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE DIRECTOR: HomeDirector ForumTagMotion Graphics

Re: function error for matching game

Cow Forums : Adobe Director
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Respond to this post   •   Return to posts index   •   Read entire thread


Re: function error for matching game
by shulamis Durden on Feb 15, 2009 at 7:02:30 pm

William,

I changed the code as you suggested. Here it is:
property myAleph
global gClick1, gClick2
on beginSprite me
gClick1=""
gClick2=""
myAleph="aleph"
end

on mouseUp me
if gClick1="aleph" then
gClick=myAleph
else
gClick2=myAleph
if gClick1=gClick2 then
play "correct"
else
play "incorrect"
end if
gClick1=""
gClick2=""
end if
end mouseUp

There is no scripting error, but when I click once it immediately takes me to incorrect. I can't click twice.
I was to suppose to add this script as behavior on the pair, correct?
Was I suppose to make gClick1,gClick2 a seperate cast member? I did the following: global gClick1, gClick2 and created a global script.

Shulamis

smd


Respond to this post   •   Return to posts index   •   Read entire thread


Current Message Thread:




Note: If you are a registered user please click here to login before posting.

Your post will not be accepted if your name and email address are not registered in our database. Click here if you do not have an account.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  

Message:



Note: The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key. Read more...



Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]