View Single Post
  #862  
Old 01-27-2011, 01:19 AM
MrOmega MrOmega is offline
One More Time
MrOmega's Avatar
Join Date: Aug 2010
Location: TN, USA
Posts: 631
MrOmega is an unknown quantity at this point
Send a message via AIM to MrOmega Send a message via MSN to MrOmega Send a message via Yahoo to MrOmega
Here's an issue I'm having. I'm using GraalControl.onMouseDown() and call a function from within side this. Now within this function I call another and same again in the next function. The params in getDist() are always the params of onMouseDown(), not the ones I send.
PHP Code:
function GraalControl.onMouseDown()
{

  
doActions();

}

function 
doActions()
{

  
someFunction();

}

function 
someFunction()
{

  
temp.dist getDistplayer.xtemp.nx);

}

function 
getDisttemp.x1temp.x2temp.y1temp.y2)
{

  if ( 
params.size() == 4)
    return (((( 
temp.x2 temp.x1) ^ 2) + (( temp.y2 temp.y1) ^ 2)) ^ 0.5);

  if ( 
params.size() == 2)
    return ((( 
temp.x2 temp.x1) ^ 2) ^ 0.5);


Basically in getDist the params are that of onMouseDown() regardless.
__________________
Time is the fire in which we burn...
Up, Up, Down, Down, Left, Right, Left, Right, B, A, Select, Start! Now I got 99 LIVES!!!
Reply With Quote