FLASH PEOPLE? Need Help With Action Script!

4 replies
[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
#action #script
  • Profile picture of the author donnan
    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.
    {{ DiscussionBoard.errors[3261098].message }}
    • Profile picture of the author Shane N
      Originally Posted by donnan View Post

      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.
      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
      {{ DiscussionBoard.errors[3261106].message }}
  • Profile picture of the author donnan
    Yes, that will do it!

    Glad to hear you got it sorted.
    {{ DiscussionBoard.errors[3261121].message }}
    • Profile picture of the author Victor
      Most definitely, switch to Actionscript 3. You won't regret it!
      {{ DiscussionBoard.errors[3434930].message }}

Trending Topics