Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

flash don't know that 1=1...

Status
Not open for further replies.

GroundZero

Programmer
Feb 1, 2001
28
CA
help!!!

can anyone tell me why flash doesn't know that 1=1

here is what I do:

frame 1:

ok = 0;
i++;
loadVariables ("xmlget.php", "");
myBall = numClients add "-" add (user add i);
duplicateMovieClip ("/ballZ", myBall, (numClients)+20);
setProperty (myBall, _x, xpos add i);
setProperty (myBall, _y, ypos add i);


Frame 2:

if (ok =1) //I also tried (ok==1;) and (ok != 0;)
{
gotoAndPlay (balls);
connect();
}


Frame 3:

gotoAndPlay(1);

___________________________________________________________
The last var I send with the php is (&ok=1;)

Can anyone see what I am doing wrong?


thank you in advance

GroundZero Your soul is imperfect
Life is difficult...

Now guess why we're here
 
Don't know much about php...
But the use of ";" seems curious to me in your line:
//I also tried (ok==1;) and (ok != 0;)

Or is this just a TGML forum add-on?

B-)
 
in fact it's suppose to be (ok==1) and (ok!=0)
here is what I also tried:

1-setting ok to empty (ok="") and doing if (ok!="")
2-setting ok to 1 and doing:
okk = Number(ok);
if (okk == 1)
3-I made debug txtField returning the value of ok wich send back that ok=1 but it's not entering in the "if"

anyone any ideas?

regards,

GroudZero Your soul is imperfect
Life is difficult...

Now guess why we're here
 
the 'equal' statement often niggles away in movies. How about trying a 'greater than 0' approach instead?

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
it wasn't a bad Idea davDesign but it's not working either.

I am still trying to figure this out.
Anymore idea?

regards,

GroundZero Your soul is imperfect
Life is difficult...

Now guess why we're here
 
does the rest of the PHP work? davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
what about: if (/:eek:k=1)

davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
one last try before I go back to work. To me everything seems t obe ok, but I had Katiekat had a similar issue a couple of weeks ago, a very big problem but a simple solution >>> the frame label contained a <space>! Very hard to see but there all the same and meant that the gotoframe action didn't work. Might be worth checking.

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
it's not working either and the rest of the php work.

By the way what does if(/:eek:k=1) do?

regards,

GroudZero Your soul is imperfect
Life is difficult...

Now guess why we're here
 
&quot;/&quot; targets the main timeline, &quot;:&quot; tells the statement that the following text is a variable name.

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
Again good thinking but in my if statement I am not refering to a frame, I am calling the funtion connect();
and I have put a var (oka=2) in the if and I moade a txtField returning the value of oka and it's not returning anything so I know it's not getting in the if.

regards,

GroundZero Your soul is imperfect
Life is difficult...

Now guess why we're here
 
ok, I'm gonna have to go for now. I'm at work so testing can't be performed on my side, maybe ld will sort this out for you. If it still ain't sorted when I get home I'll help again. Please post if you get it to work so that we don't waste time on it trying to find a solution.

Until later, good luck.

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
don't worry I will and thank for helping!


regards,

GroudZero Your soul is imperfect
Life is difficult...

Now guess why we're here
 
Also curious about the &quot;add&quot; rather than &quot;&&quot; in frame1 actions!

Another TGML thing?
Just another thought!

Have to go out!

;-)
 
it is the add from flash and macromedia recommend using add instead of &quot;&&quot;.

thank anyway

everything might be usefull!!!

regards,

GroundZero Your soul is imperfect
Life is difficult...

Now guess why we're here
 
The last var I send with the php is (&ok=1;)

what about changing this to (/+ok=&quot;1&quot;;)

davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
I need the ampersign (&) because php is returning it in URL Encoded format so it's won't work

regards,

GroundZero Your soul is imperfect
Life is difficult...

Now guess why we're here
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top