I do that and put that in my onload...
i.e.,
<cfformitem type="script">
function formOnLoad(){
if(_global.loaded == undefined)
{
_global.loaded = true;
<cfoutput>
_global.gatewayUrl = "#gateway#";
_global.servicePath = "#servicePath#";
_global.componentPath = "#application.componentPath#";
_global.baseURL = "#application.base_url#";
</cfoutput>
#include "actionscript/global.as"
#include "actionscript/essential.as"
#include "actionscript/value.as"
#include "actionscript/goal.as"
#include "actionscript/evaluation.as"
}
}
</cfformitem>
(BTW - I got this little piece of advice from asfusion.com's MXNA app)
Kelly
-----Original Message-----
From: Kevin Aebig [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 3:29 PM
To: CF-Talk
Subject: RE: Does anyone know if #include works with cfforms
=]
You can technically do this with anything that's unallowed in Flash.
Simply make another SWF with the functions / classes / features you want
to access and have than be set in the global. Of course this circumvents
the security sandbox, so who knows how long it'll be available.
!k
-----Original Message-----
From: Dan Plesse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 3:16 PM
To: CF-Talk
Subject: Re: Does anyone know if #include works with cfforms
Kevin,
Holly crap that's a good idea!!
Dan
On 9/12/06, Kevin Aebig <[EMAIL PROTECTED]> wrote:
>
> You might be able to cheat it by having the includes/imports in a
> separate SWF, loading that SWF into whatever form you want. The
> classes included should be added to the global namespace if they were
> built as classes properly.
>
> !k
>
> -----Original Message-----
> From: Dan Plesse [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 12, 2006 12:26 PM
> To: CF-Talk
> Subject: Does anyone know if #include works with cfforms
>
> Does anyone know if #include myActions.as works with cfforms as a work
> around reserved keywords because I would like to use XIFF with
> cfforms but I am not sure how to include the imports and the
> listeners.
>
> <cfsavecontent variable="onLoad">
> ##include myActions.as
> </cfsavecontent>
>
> Anyone play around with this?
>
> Thanks
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253320
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4