Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • Last Modified:

Anyway to trace who calleded the function?

I have a function firing 2 times in a row when it should only be firing once. Is there a way to have a function trace the callee.

thankx
--steve...
0
juststeve
Asked:
juststeve
1 Solution
 
stef4sCommented:
I think in Flash MX there is a way. something .caller. What you can do is this (Flash 5).

add another parameter to the function ie


function blah(par,par2){
trace(par2)

}


now when calling the function you can have the caller ID itself.

blah(mypar,"its me");

or
blah(thisvar,"its the other guy")
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now