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

Reply via email to