Groups | Blog | Home
all groups > flash actionscript > july 2006 >

flash actionscript : urgent help needed with game script.


buddy
7/18/2006 8:39:47 PM
hey i am making a game which has this script,
my flashs says it has an error,
please tell me what that error is.
thanks in advance



on (release)
{
Display = 0;
/:trycount = Number(/:trycount) + 1;
/:trymatch = /:trycount / 2;
if (Number(Faceup) != 1)
{
if (Number(/:ClickCount) == 0)
{
Display = 1;
/:ClickCount = 1;
/:FirstClick = _target;
}
else if (Number(/:ClickCount) == 1)
{
if (_target != /:FirstClick)
{
Display = 1;
if (MyCard != eval(/:FirstClick + "/:MyCard"))
{
/:SecondClick = _target;
/:ClickCount = 2;
}
else
{
/:ClickCount = 0;
FaceUp = 1;
eval(/:FirstClick + "/:Faceup") = "1";
/:GameCount = Number(/:GameCount) + 1;
if (Number(/:GameCount) == 8)
{
tellTarget("/EOG")
{
gotoAndPlay(2);
} // end of tellTarget
} // end if
} // end if
} // end if
}
else
{
/:ClickCount = 0;
tellTarget(/:FirstClick)
{
gotoAndStop(1);
} // end of tellTarget
tellTarget(/:SecondClick)
{
gotoAndStop(1);
} // end of tellTarget
} // end if
if (Number(Display) == 1)
{
gotoAndStop(Number(MyCard) + 1)
} // end if
} // end if
}
buddy
7/18/2006 8:42:10 PM
the main problem lies in this part , there should be a operator or
property left of the eval command. please help me out.

{
else
{
/:ClickCount = 0;
FaceUp = 1;
eval(/:FirstClick + "/:Faceup") = "1";
/:GameCount = Number(/:GameCount) + 1;
if (Number(/:GameCount) == 8)
AddThis Social Bookmark Button