Sd D1ablo Posted September 22, 2007 Report Share Posted September 22, 2007 Kako se u Flashu pozivaju funkcije koje rade ono shto u pascalu rade DIV i MOD?? Quote Hoes before NGOes Link to comment Share on other sites More sharing options...
Sd D1ablo Posted September 26, 2007 Author Report Share Posted September 26, 2007 ajde bre ljudi pomozite malo, siguno neko zna ovakve proste funkcije da mi pomogne... Quote Hoes before NGOes Link to comment Share on other sites More sharing options...
dzontra.volta Posted September 27, 2007 Report Share Posted September 27, 2007 zna junkie verovatno pitaj ga na pm Quote Link to comment Share on other sites More sharing options...
Junkie Posted September 27, 2007 Report Share Posted September 27, 2007 http://www.adobe.com/support/flash/action_...tionary446.html evo ti sta ima od math funkcija Quote Link to comment Share on other sites More sharing options...
Sd D1ablo Posted September 28, 2007 Author Report Share Posted September 28, 2007 E, hvala brate, sad sam provalio da moram sam da napravim funkciju i pomocu helpa sam uspeo. Thx function mod (br1, br2) { var z:Number; var x1:Number; var q:Number; var m:Number; z=br1/br2; x1= Math.floor(z); q=z-x1; m=q*br2; return m; } function div (br1,br2) { var z:Number; var x1:Number; var q:Number; var m:Number; var x2:Number; var r:Number; z=br1/br2; x1= Math.floor(z); q=z-x1; m=q*br2; x2=br1-m; r=x2/br2; return r; } Quote Hoes before NGOes Link to comment Share on other sites More sharing options...
Sd D1ablo Posted October 1, 2007 Author Report Share Posted October 1, 2007 uh, imam josh jedan problem, nemam pojma jeli to bug, ili neki drugi djavo, ali meni 2 promenljive tipa Number rachuna kao Text, tako da ako stavim: a=3; b=4; c=a+b; c je rezultat: 34, samo je spojio brojeve, nije ih sabrao, koj mu djavo??? To mu se izgleda deshava samo u funkciji. Quote Hoes before NGOes Link to comment Share on other sites More sharing options...
Sd D1ablo Posted October 1, 2007 Author Report Share Posted October 1, 2007 evo boljeg pitanja, kako namestiti da input text prima samo brojeve? Quote Hoes before NGOes Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.