Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
Tiller #1
Simple math problem
Hi all,
I have a site I'm developing that uses the code (attached) from a FLA from
FlashKit. It all works like a dream (clicking on a link slides the page over to
another) but I have a problem where the page will rest after moving with a 1
pixel line on the side. The text is also slightly blurred when this happens.
I think it is because the page is 'resting' on a fractional number.
I have tried using Math.round() and Math.floor() and they sort out the
blurring problem, but are about 2 pixels out instead.
Any ideas would be most appreciated.
Andy
if (Number(/scOne:_x)<Number(/:destination)) {
speed = (/:destination-/scOne:_x)/4;
setProperty("/scOne", _x, Number(/scOne:_x)+Number(speed));
} else {
speed = (/scOne:_x-/:destination)/4;
setProperty("/scOne", _x, /scOne:_x-speed);
}
setProperty("/scTwo", _x, Number(/scOne:_x)+760);
setProperty("/scThree", _x, Number(/scTwo:_x)+760);
setProperty("/scFour", _x, Number(/scThree:_x)+760);
setProperty("/scFive", _x, Number(/scFour:_x)+760);
setProperty("/scSix", _x, Number(/scFive:_x)+760);
Tiller Guest
-
field in a simple math problem
I am going to have a simple math problem appear and I want to Have the students type the answer in a field that has been editable. My problem I... -
math problem will Math.floor help
I have the following code that at first sight should return a value of zero but does not always. What can be done about this. The following code... -
Math::GMP tests and Crypt::Random fail on Compaq (Math::Pari related ??)
Hi, I've been compiling Math::GMP for different OS's in order to use Net::SFTP and I have successfully compiled and used it for Solaris,... -
[PHP] Simple Math Calculation Problem....
$Days = int(($clockDate - $inputDate) / (24 * 3600)); you tried that? -
Simple Math
Matt Schroeder wrote: Try ceil(). Per Gustafsson -- http://www.pergustafsson.com/



Reply With Quote

