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;
}
}
:thumb:
system
July 19, 2003, 11:05pm
2
on (press){
startDrag (this,true);;;;;;;; here!
}
system
July 19, 2003, 11:17pm
4
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;
}
}
system
July 20, 2003, 1:52am
5
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…
system
July 20, 2003, 2:16am
6
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.
system
July 20, 2003, 2:48am
7
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.
system
July 20, 2003, 2:53am
8
You’re welcome.
And yes, I do speak spanish (kind of obvious, isn’t it?).
system
July 20, 2003, 2:54am
9
YA HERA TIEMPO NADIE HABLA ESPANOL EN ESTE FORO ES MAS
CREO QUE SOY EL PRIMERO
system
July 20, 2003, 2:55am
10
Pues no, por ahí andan varios más que hablan español. =)
system
July 20, 2003, 2:57am
11
BUENO , PERO NO E VISTO NINGUNO QUE AYA PUESTO UN THREAD EN ESPANOL
system
July 20, 2003, 3:00am
12
Eso es cierto.
Pero creo que está bien así, todos hablando el mismo idioma. Todos nos entendemos y no hay problemas.
system
July 20, 2003, 3:02am
13
EN ESO TIENES RASON , Y THANKS POR YOUR AYUDA MAN!!!
system
July 20, 2003, 3:05am
15
ARE YOU FROM, MEXICO ,MEXICO? OR AN OTHER STATE
system
July 20, 2003, 3:10am
16
Irapuato, Guanajuato.
I have to go now. Give me your email address, I’ll contact you later. =)
system
July 20, 2003, 3:17am
17
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
system
July 20, 2003, 3:19am
18
Yeah, you can delete/edit it now.