Maybe you were referring to something else I missed there, but a
remote call from flex is not what I'm after. This is for when the
browser first tries to load the swf file, not for requests the swf
file makes.
I think I'm going to end up kind of making my own controller
basically, so my getFlex.cfm page would look like:
<cfset PartnerService =
application.myapp_glue.framework.getBeanFactory().getBean("PartnerService") /
>
<cfif PartnerService.getIsAllowed()>
<cfset PartnerService.logAccess(
ipaddress = CGI.REMOTE_ADDR,
agent = CGI.HTTP_USER_AGENT
)/>
<cfcontent file="#ExpandPath("./flexApp.swf")#">
</cfif>
On Apr 15, 10:49 am, Dan Wilson <[email protected]> wrote:
> Maybe remoting would help you.
>
> http://docs.model-glue.com/wiki/HowTos/HowToUseRemoting#Remoting
>
> <http://docs.model-glue.com/wiki/HowTos/HowToUseRemoting#Remoting>DW
>
>
>
>
>
>
>
>
>
> On Fri, Apr 15, 2011 at 11:44 AM, Ryan Stille <[email protected]> wrote:
> > I'm trying to call a MG event from a stand alone page. So for
> > example,when someone browses to test.cfm gets, I want to really be
> > executing what would happen if the user would have instead browsed to
> > index.cfm?event=someEvent.
>
> > The reason for this is I'm trying to control access to my swf file, so
> > I'm doing something like:
>
> > <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
> > <param name="movie" value="/path/to/my/flex/getFlex.cfm" />
> > </object>
>
> > The getFlex.cfm file will make sure they are authorized and then feed
> > the swf via <cfcontent>. I'd like to have all that logic inside MG
> > instead of in the getFlex.cfm file.
>
> > If I try to reference it like:
> > <param name="movie" value="index.cfm?event=getFlex" />
>
> > then the flex app thinks its being loaded from the webroot and looks
> > in the webroot for all its assets.
>
> > I've been digging around trying to figure out how to do this, I
> > thought it would be something like
> > #application.MYAPP_GLUE.executeEvent("getFlex",StructNew())#
>
> > but so far I haven't been able to get it to work.
>
> > Thanks.
>
> > --
> > Model-Glue Sites:
> > Home Page:http://www.model-glue.com
> > Documentation:http://docs.model-glue.com
> > Bug Tracker:http://bugs.model-glue.com
> > Blog:http://www.model-glue.com/blog
>
> > You received this message because you are subscribed to the Google
> > Groups "model-glue" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/model-glue?hl=en
>
> --
> Plutarch - "The mind is not a vessel to be filled but a fire to be kindled."
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en