Last month I wrote an <mx:RemoteObject id="core" destination="ColdFusion" showBusyCursor="true" >
My Flex code was already running code on creationComplete:
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" xmlns:views="views.*" creationComplete="init()" >
So I simply updated my init() function:
private var componentroot:String = "";
private function init():void {
componentroot = this.parameters.componentroot;
core.source = componentroot + "components.admin";
}
As I mentioned in the
To this:
"flashvars",'componentroot=secretproject.server.&historyUrl=
history.htm%3F&lconid='+ lc_id + '',
This isn't the final step though. I'm deploying to a site running ColdFusion. I'll eventually change my index.html file to an index.cfm file and use an Application variable for the component root.
So now I have a problem. The this.parameters structure only exists for the core Flex file of an application, not the children.
How can I get my children to also use the value? I'm thinking what I'll do is pass the value from parent to child, since that is relatively easy to do.
I could make the child run code to grab it from the parent, but that is such a pain to do. (More on that later.) I don't want to have to create a custom even just to read a simple value from the parent. (But that may just be me being lazy. :)
http://ray.camdenfamily.com
Raymond Camden is Vice President of Technology for roundpeg, Inc. A long
time ColdFusion user, Raymond has worked on numerous ColdFusion books
and is the creator of many of the most popular ColdFusion community web
sites. He is an Adobe Community Expert, user group manager, and the
proud father of three little bundles of joy.
FlashVars in Flex
0 views
Comments (0)
Please sign in to leave a comment.





No comments yet. Be the first to comment!