Skip to main content
Participant
November 30, 2008
Answered

i need some helpt

  • November 30, 2008
  • 3 replies
  • 339 views
hey i worte a simple scrolling script , but it guves me an error : 1120: Access of undefined property _root.
here's the script:
_root.onEnterFrame = function() {
if(_root._xmouse<50){
imgBar.prevFrame();
imgBar.prevFrame();
}
if(_root._xmouse>780){
imgBar.nextFrame();
imgBar.nextFrame();
}
}

what am i doing worng ?
This topic has been closed for replies.
Correct answer kglad
you're using as2 code and publishing for as3. change your publish settings.

3 replies

kglad
Community Expert
Community Expert
December 1, 2008
wow, to the second.
clbeech
Inspiring
November 30, 2008
this script is for AS2, is your file AS3?

EDIT: LOL! kg the post times are identical! LOL!
kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
November 30, 2008
you're using as2 code and publishing for as3. change your publish settings.