Accessing a function in the root timeline

Hello,

I have a document class, where i have a function called A.

On the timeline of my Fla, I have one function called B.

I want at some point in my Document class, for function A to call function B.

How could I access this? My AS2 ways would be

_level0.B();

So I thought maybe as3 would be along the lines of

root.B();

or

this.B();

Any help thanks…>>