469,319 Members | 2,313 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,319 developers. It's quick & easy.

Javascript Error Please Help

3
My first actionscript and I have two errors when I run it. Basically this code is to control scrolling navigation.

Code

onClipEvent (load) {
_x = 0;
_y = 0;
spd = 8;
}
onClipEvent (enterFrame) {
_x += (endX-_x)/spd;
_y += (endY-_y)/spd;
}

_root.News.onRelease = function() {
endX = 0;
endY = 0;
}
_root.Shows.onRelease = function() {
endX = -220;
endY = 0;
}
_root.Biog.onRelease = function() {
endX = -440;
endY = 0;
}
_root.Band.onRelease = function() {
endX = -660;
endY = 0;
}

Error...

**Error** Scene=Scene 1, layer=Pages, frame=1:Line 1: Clip events are permitted only for movie clip instances
onClipEvent (load) {

**Error** Scene=Scene 1, layer=Pages, frame=1:Line 6: Clip events are permitted only for movie clip instances
onClipEvent (enterFrame) {

Total ActionScript Errors: 2 Reported Errors: 2

Please Advise
Mar 5 '07 #1
0 985

Post your reply

Sign in to post your reply or Sign up for a free account.

By using this site, you agree to our Privacy Policy and Terms of Use.