Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help changing from slash to dot syntax (AS)

Status
Not open for further replies.

designedmemory

Programmer
Aug 2, 2007
1
US
hey guys,
i need some help updating some old action script, i cant seem to get it to work.

Its in old slash syntax and im trying to bring it over to dot, but i keep getting errors.

heres the code below, any help would be greatly appreciated!!!


on my slider bar :
/:value = (marker:_x/(_width-marker:_width))*580;

on the second keyframe
prevFrame();
play();


inside my scrolling MC
left = _x-_width/2;
right = Number(_x)+Number(_width/2);
friction = "0.9";

set("new", /:value);
speed = eval("new")-old;
old = eval("new");
setProperty("", _x, Number(_x)+Number((speed*/:factor)));

prevFrame();
play();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top