all groups > macromedia flash flash remoting > november 2005 >
You're in the

macromedia flash flash remoting

group:

cf scopes in flash


cf scopes in flash nif
11/11/2005 11:03:30 AM
macromedia flash flash remoting:
hi ,

i am struggling to access the application scope with remoting. i can access
the scope on the actual cfm page that calls my swf, but i can't pull that via
the cfc's into flash.

i haven't done remoting for nearly 2 years now and i remember having this
problem before but solving it somehow... just can't remember the "somehow" part!

has anyone else had this problem and does anyone know how to solve it?

any help would be much appreciated.

thanks,
nikki
Re: cf scopes in flash ufitzi
12/1/2005 7:36:26 PM
I'm not positive about this, but I believe you can only access
Application/Session/Client scoped variables from the "initialization" section
of the CFC. Think of it like your constructor, you would declare "private" CFC
variables right after the opening <cfcomponent? tag, which you would then have
access to from inside the individual component functions, the ones I'm
assumming are interacting w/ Flash remoting.
This is all theory, mind you, as I've not worked with this recently.
Fool around with the CFC and application variables from within bsic CF pages
first, once you get a handle on it you should be able to connect w/ FLash
remoting seamlessly. Theoretically......
Re: cf scopes in flash nif
12/2/2005 12:00:00 AM
hi there,

thanks for replying!
i managed to grab the application scope by passing in the current application
name and then using it with an <application name="arguments.appname"> however,
this isn't the best option in my eyes.

oddly, when working locally and setting up some dummy remoting stuff i could
pickup the app scope with no hassles... the problem i am having is on a project
which is running a massive cms with different mappings etc. and there's not
alot of mucking about i can do with it.

i will give your suggestion a try... it makes sense. will let you know how it
goes.

thanks,
nikki
AddThis Social Bookmark Button