dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: script works as flash 6 but not 8

  1. #1
    Tech Designs CEO CNL83's Avatar
    Join Date
    Jun 2000
    Posts
    997

    script works as flash 6 but not 8

    I attempted to use one of my scripts from an older project and it does not work when published as flash 8. Hopefully someone can help me out with this script.

    My button script is:
    Code:
    on (release) {
    	xpos = -100;
    }

    My movie clip script is:
    Code:
    onClipEvent (enterFrame) {
    	// MOVING SCIPT PART
    	var speed = 2;
    	var viscosity = 9;
    	xpos = xpos;
    	// X Pos
    	difference = xpos-this._x;
    	xvelocity = (xvelocity+(difference)/speed)/viscosity;
    	this._x += xvelocity;
    }
    Just to let you know, im just making my movie clip scroll upon request.
    UPS' official RIPP-OFF
    See full complaint here > www.actionfx.net/complaint.htm

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Location
    FL, USA
    Posts
    443
    Code:
    xpos = xpos;
    This could be your problem since it's not assigning anything. Did you mean to say xpos = _root.xpos; ?

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