Jump to content

Flash funkcija?


Sd D1ablo

Recommended Posts

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;

}

Hoes before NGOes

Link to comment
Share on other sites

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.

Hoes before NGOes

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...