PDA

View Full Version : scrollbar tutorial help


PCoop
08-04-2003, 10:47 AM
Currently doing this tutorial here - http://www.virtual-fx.net/vfx/tutorial/tutorial8_136_20020107.php

I've got so far as to inputing the code, which even to a n00b like me looked to be wrong.


this is the coding i have now

on (rollOver) {
tellTarget ("button")
gotoAndStop(1)
End tellTarget
tellTarget ("scroll")
gotoAndStop(1)
End tellTarget End On
}


heres what the debug says

Scene=Scene 1, Layer=Path, Frame=1: Line 4: ';' expected
End tellTarget

Scene=Scene 1, Layer=Path, Frame=1: Line 5: '(' expected
tellTarget ("scroll")

Scene=Scene 1, Layer=Path, Frame=1: Line 6: ')' expected
gotoAndStop(1)

Scene=Scene 1, Layer=Path, Frame=1: Line 7: ';' expected
End tellTarget End On



Any ideas how to fix it?

or even better a newer Tutorial :)

Any help apreciated :)

Ricod
08-04-2003, 03:07 PM
Hello PCoop !

Every line of code that needs to be closed, is done so by using the semicolon ';'. <- thats the right word right ? :confused:

I don't know about Flash 4 coding anymore, but in Flash 5 and up :

on (rollOver) {
_root.button.gotoAndStop(1);
_root.scroll.gotoAndStop(1);
// assuming that the mcs "button" and "scroll" are nested on the main timeline
}