the best way to call trace()

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Mhollow
Posts: 24
Joined: 22 Feb 2012, 06:29
Location: Russia

the best way to call trace()

Postby Mhollow » 22 Mar 2015, 08:27

Hello.
I am writing and extensions for SFS PRO that consists of several Java classes.
There is a class that is the extension class that extends an AbstractExtension class and some other other additional classes.
So, my question is what is the best way to call trace() from this additional classes? They don't extend AbstractExtension so don't have direct way to call a trace().

Assume my primary Extension class is called MainHandler and another class "SomeClass"
Could you please provide a simple example code shows how to call trace() from an object of class SomeClass?
Thanks a lot!
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: the best way to call trace()

Postby Lapo » 22 Mar 2015, 19:46

You could keep a reference to your Extension in the class need to use trace().
Typically this is done by passing the reference in the constructor of the class or via a setter method.

Does this help?

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 35 guests