[flexcoders] Registering flashvar variables properly?
Hi, I'm busting my head against the wall on this one, I have to say that Flex is pretty frustrating when you otherwise code C++ or Java by trade. Poking around, I have found how to pass variables into Flex apps using flashvars. If I check the Application.application.parameters value, they are all there. So far so good. What I need to do, is pass a proxy URL from HTML, into Flex, that will be used as a url parameter for an HTTPService. I have for example: http://www.adobe.com/2006/mxml"; layout="absolute" height="380" width="450" alpha="1.0" initialize="initApp();"> The idea is to pass in scrmurl, ie http://yourdomain.com/ and the URL in HTTPService then becomes: http://yourdomain.com/xmlrpc/request.php Why won't they HTTPService then, acknowledge the scrmurl variable? When it posts, it only posts to xmlrpc/request.php, as though the parameter is being completely ignored.. Thanks! Alex
[flexcoders] Passing Parameters, is something like this possible with Flex?
Instead of posting a ton of : if( Application.application.parameters.x) this.x= Application.application.parameters.x; if( Application.application.parameters.y) this.y= Application.application.parameters.y; ... ad nauseam ... I was wondering if it was possible to do something like this? var elements:Array = [ "a", "b", "c" ]; for( var i:String in elements ){ if( Application.application.parameters.i ) this.i = Application.application.parameters.i; } I'm not too certain of the language constructs here being new to Flex, help greatly appreciated! The highlighted line, it does not like. Thanks! Alex
[flexcoders] Arrays, iteration, and referencing local variables?
I'm trying to do something like this, but am unsure of the proper language constructs in Flex: var a:String = ""; var b:String = ""; var c:String = ""; private function initApp():void{ var elements:Array = [ "a", "b", "c" ]; for( var i:String in elements ){ if( Application.application.parameters.i ) this.i = Application.application.parameters.i; } } Just trying to init some vars if they were set, but not sure how to reference the this.i part.. Thanks! Alex
[flexcoders] Tracing HTTPService Data?
Hi there, Thanks in advance for your help. I'm a newcomer to Flex, but am definitely not new to Eclipse being a Java programmer by trade. I've set up a basic HTTPService as introductory project, and quickly found that I can add breakpoints into fault and result events. What I cannot find though, is how to trace the data that the HTTP portal is feeding the Flex app. Is there a means to debug the actual request data? Thanks. Alex