';' expected

can anyone tellme whats wrong with the script below I been tried
to figureit out but i don’t see any problem ,:

on (press){
startDrag (this,true)
}
on (release){
stopDrag();
if (this._droptarget == “/2”){
_root.1S = 100;
}else{
_root.1S = 0;
}
}

:eye: :stuck_out_tongue: :thumb:

on (press){
startDrag (this,true);;;;;;;; here!
}

still not working

It ususally means that something else is wrong.


on (press){
startDrag(this,true); // you had a space between Drag and (this
}
on (release){
stopDrag();
if (this._droptarget == "\2"){
_root.1S = 100;
}else{
_root.1S = 0;
}
}

what do you mean, are you still receiving errors in the output or is the “drag” just not working ???

I mean if your syntax is all correct you’ll cease to get errors but if your paths/names are wrong it won’t ‘tell’ you … it just won’t go…

The problem is here: _root.1S.

You should start the variable/object name with a letter, a number may (will) cause confusion.

For the sake of the knowledge, you could use _root[“1S”]. It will work.
For the sake of the good coding practice, do not start the name with a number.

thanks a lot!!!
dude do you speak spanish?
anyway,
for Relander the error was on the out put sorry for not sesifing.
but thanks anyway for replying
kode solve my problem.

You’re welcome. :wink:

And yes, I do speak spanish (kind of obvious, isn’t it?). :stuck_out_tongue:

YA HERA TIEMPO NADIE HABLA ESPANOL EN ESTE FORO ES MAS
CREO QUE SOY EL PRIMERO

Pues no, por ahí andan varios más que hablan español. =)

BUENO , PERO NO E VISTO NINGUNO QUE AYA PUESTO UN THREAD EN ESPANOL

Eso es cierto. :stuck_out_tongue:

Pero creo que está bien así, todos hablando el mismo idioma. Todos nos entendemos y no hay problemas. :wink:

EN ESO TIENES RASON , Y THANKS POR YOUR AYUDA MAN!!!

De nada. :stuck_out_tongue:

ARE YOU FROM, MEXICO ,MEXICO? OR AN OTHER STATE

Irapuato, Guanajuato. :wink:

I have to go now. Give me your email address, I’ll contact you later. =)

do you have it ?cuz i’m going to delet it , you know ,i don’t want junk mail like people selling me viagra and stuff

Yeah, you can delete/edit it now. :slight_smile: