dcsimg
A Flash Developer Resource Site

Results 1 to 14 of 14

Thread: a simple one... if mc._x<-200, how to stop the mc moving?

Threaded View

  1. #1
    user in A minor
    Join Date
    Jan 2005
    Location
    finland
    Posts
    121

    [F8] a simple one... if mc._x<-200, how to stop the mc moving?

    this is simple and reveals my non existent ac skills:
    i have a simple sideways scrolling menu. it functions ok, but i don't manage to stop the scroll when the menu_mc has reached it's end, that it, when menu_mc._x < -200. i've tried different if-statements without success. here's the part that does work all right:
    Code:
    _root.onEnterFrame = function() {
    if (_root._ymouse > 50 && _root._ymouse < 150 and _root._xmouse >-10 && _root._xmouse <900){
            menu_mc._x -= (_xmouse+menu_mc._x)/4;
    	pointer_mc._x += (_xmouse-pointer_mc._x)/6;
    	}
    }
    i know, i should manage to do this myself, but i don't seem to get it just right. as always, i'm grateful for help...
    Last edited by mrk13; 09-11-2006 at 09:49 AM. Reason: forgot flash version

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center