You'll want to create a new actionscript class. In there, you can create
your functions, and then in whatever files you need, you can just do an:
 
include com.mycompany.myglobalfunctions
 
And make the call:
 
com.mycompany.myglobalfunctions.someMethod();
 
Shan

  _____  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Kellogg @ Project SOC
Sent: Saturday, November 25, 2006 11:05 AM
To: flexcoders@yahoogroups.com
Subject: [Junk E-Mail - LOW] [flexcoders] "GLOBAL functions"?




Hello,

I've got some functions and variables in my main MXML file that I need to
access from other MXMLs in the project.  For  some reason, I can't seem to
figure out how to do this.  I've (obviously) checked the documentation
looking for a 'global' keyword, or for an  'extern' keyword or for some
other way to do this.

I'm sure I'm missing something obvious.  Could someone point me in the right
direction?

Thanks in advance,

Steve

Steve Kellogg

Peak8 Solutions

1401 14th Street

Boulder, Colorado

80302, USA

Fax: 303.415.2597

E-Mail: [EMAIL PROTECTED]

 

Reply via email to