Solved

Anyway to trace who calleded the function?

Posted on 2002-06-02
1
154 Views
Last Modified: 2010-04-03
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
Comment
Question by:juststeve
1 Comment
 
LVL 5

Accepted Solution

by:
stef4s earned 50 total points
ID: 7061237
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Flash movie or gif/animation? 3 875
Software Restriction Policy 8 856
Firefox fullscreen video lags 4 155
Windows 2008 Group Policy - An error occurred. Please try again later 2 74
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now