all groups > flash actionscript > march 2005 >
You're in the

flash actionscript

group:

Arrow y movement is reaching a restriction?


Arrow y movement is reaching a restriction? elviskat
3/31/2005 9:03:42 PM
flash actionscript:
lo guys and dolls,

I wonder if you might be able to shed some light on my problem, I am using two
bits of code to move an arrow down a list of text items, when the text items
are clicked the code is updated with the new value and the arrow moves down to
that.

However it is hitting a point where it cannot go any further, even though I
click a lower text item, I have traced the value substatusarrowMove18 which
gives me the new value each time the timeline is returned to frame one for it,
and in turn travels onto frame two and then frame three and in turn is looped
back to frame to to contualy adjust the movement.

substatusarrowMove18 return figure such as the original value+ the 33.3 for
example, and then arrow moves there, but this value gets to something like 477
and will not go any higher.

I'm not sure why, any help or solution would be much appreciated.

Cheerz peeps



//The first piece of code is on the first of three frames:

substatusArrow3 = _root.submenuFurthest;
// then use this to put the arrow in the right place x33.3
substatusarrowMove18 = +24+(33.3*substatusArrow3);

//the code in the second frame:

substatusarrowMove20 = getProperty("substatusArrow3", _y);
substatusarrowMoveDif = (substatusarrowMove18-substatusarrowMove20)/10;
setProperty("substatusArrow3", _y, substatusarrowMove20+substatusarrowMoveDif);

//and on the third frame is a gotoAndPlay frame 2 to loop back to the above.
Re: Arrow y movement is reaching a restriction? elviskat
4/1/2005 8:31:18 AM
AddThis Social Bookmark Button