View Single Post
  #2  
Old 01-01-2008, 03:26 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
PHP Code:
TestC.mainHandle.trigger"EchoR""pre " VarHandle.ty " : " testArr ); 
Hmm, shouldn't 'testArr' be 'TestC.testArr'?

NVM: If you change it to TestC.testArr you get output, but I see that it doesn't recieve the params, right?

Edit2: Ok, that's the wierdest thing I've seen for a long time:

PHP Code:
function onCreated() {
  
TestC null;
  
TestC = new TStaticVar();
  
TestC.mainHandle this;
  
TestC.testArr = { { 1}, { 2}, { 3} };
  
  
TestC.testingFunc1 = function() {
    
temp.arr TestC.testArr;
    
TestC.mainHandle.trigger"EchoR""arr: "arr " - type: " arr.type());
    
TestP.testingFunc2(arr);
  };
  
TestP.testingFunc2 = function(arr2) {
    
TestC.mainHandle.trigger("EchoR""arr2: "arr2 " - type2: " arr2.type());
    
    
TestC.mainHandle.trigger("EchoR""arrive:" arr2);
    
    
//TestC.mainHandle.trigger("EchoR", "pre: " @ arr2); 
    
    
TestC.mainHandle.trigger("EchoR", {arr2});
  };
  
TestC.testingFunc1();
}
function 
onEchoR(str) {
  echo(
str);

That works, but, if you remove the '//' in the scirpt, it won't!
__________________

Last edited by Chompy; 01-01-2008 at 03:48 PM..
Reply With Quote