Title: Message
Ed,
 
I make a wrapper CFC file for the Flash movie uses.  That CFC can see the app scope for your movie.  It'd look like this
 
<cfcomponent>
    <cffunction name="bar" access="remote" output="false">
        <cfreturn APPLICATION.foo.bar()>
    </cffunction>
</cfcomponent>
 
If you're not passing in any arguments you can cut the whole function down to just that one cfreturn line and access your APPLICATION scoped component.
 
HTH,
 
t

**********************************************************************
Tyler M. Fitch
Certified Advanced ColdFusion Developer

http://isitedesign.com
**********************************************************************
 

-----Original Message-----
From: Suyer, Ed [PRD Non-J&J] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 11:14 AM
To: '[EMAIL PROTECTED]'
Subject: [CFCDev] ? - call application.foo.bar() from within flash


Does anyone know if it's possible to:

1. create a cfc object in application scope i.e. application.foo
2. then access a method of that cfc from within Flash i.e.
        NetServices.setDefaultGatewayUrl("http://localhost/flashservices/gateway");
        gatewayConnnection = NetServices.createGatewayConnection();
        foo = gatewayConnnection.getService(??, this);
        foo.bar();

Another alternative I was thinking of was to write a .cfm page that sets Flash.Results to application.foo.bar().

Any thoughts?  OT?

Reply via email to