@Laurent
So modulus is great and slow from what I've read. I tend to use it in row/
column calculation rather than wrapping a MovieClip position.
var num:int = 6;
var cols:int = 3;
for ( var i:int = 0; i < num; i++ )
{
var row:int = Math.floor( i / cols );
var col:int = i % cols
dear list,
im trying to find a way ( a class/library ) to
BATCH upload from my online FLEX app ( not AIR ) to Amazon S3.
is there some code/samples one is kind enough to share that will
automatically via Keys - generate and attach 64-based policies,
signatures, etc.
and would this be easier to
:) I just read about wraping using modulus on Grant Skinner's blog:
sprite.x = (sprite.x + 5) % stage.stageWidth;
And then get where was that checkWrap methods :]
Still I'm interested in the onT methods...I don't think I will get them before
Grant's next post.
the article about using modulus:
Hey Jess,
that's interesting, can you explain what's going on there with onT,
onT2, onT3 and what is checkWrap ?
ty
L
Jesse Graupmann a écrit :
Maybe converting the actual time elapsed to a constant rate of motion could
help... who knows?
stage.align = "TL";
stage.scaleMode = "noScale";
f
Maybe converting the actual time elapsed to a constant rate of motion could
help... who knows?
stage.align = "TL";
stage.scaleMode = "noScale";
function checkWrap ( o:DisplayObject ):void
{
if ( o.x > stage.stageWidth ) o.x = 0;
}
var speed:Number = 1;
var tick:Number = 30;
var lastTic
5 matches
Mail list logo