FLASH PEOPLE? Need Help With Action Script!

by 4 replies
5
[EDIT] FIGURED IT OUT - THANK YOU!

Hey all you Flash experts out there...

I am trying to get a simple scrolling thumbnail bar to work and for some reason this code isn't working:

Code:
_root.onEnterFrame = function(){
	if(_root._xmouse<75){
		imgBar.prevFrame();
	}
}
It's giving me the following message:

Scene 1, Layer 'action script', Frame 1, Line 1 1120: Access of undefined property _root.
Scene 1, Layer 'action script', Frame 1, Line 2 1120: Access of undefined property _root.

Can anybody help me out with this?

I'd really appreciate it!

Best,
Shane
#programming #action #script
  • [DELETED]
  • You probably haven't received a reply because you really should have shown the whole code.

    Put the whole code up for us to take a look at it.
    • [ 1 ] Thanks
    • [1] reply
    • Thanks so much for being willing to help, sorry about that!

      We figured it out... We were using an action script for 3.0
      and we are using 2.0...

      Thanks again anyway!

      Best,
      Shane
  • Yes, that will do it!

    Glad to hear you got it sorted.
    • [1] reply
    • Most definitely, switch to Actionscript 3. You won't regret it!

Next Topics on Trending Feed