[flexcoders] Pb with URLVariables
Hello, The following code is not working: var variables:URLVariables = new URLVariables(); var cur:String; cur = EUR; variables.currency_code = cur; But this code is working : variables.currency_code = EUR; What could be the problem ? Thank you, Christopher,
[flexcoders] Re: VBox constrains - A simple question :-p
Hi Fotis, hi Wesley Thanks Wesley for the tip on VBox. (I was just looking how to face the same problem with a VBox here, when your post came in :) Then let me add one more such counter-intuitive setting I came across some time ago. I had a ADG with non-sortable columns, and I was trying (in vain) to get rid of the vertical separator bar that shows up in the column headers (that separates the sort indicator-arrow). In my case columns were non sortable and the arrow was just an empty space, thus no need for the separator bar. The setting that does the trick is: sortExpertMode=true (!!!) Another example IMO of not exactly intuitive terminology. Isn't it? Thanks George --- In flexcoders@yahoogroups.com, Fotis Chatzinikos fotis.chatzini...@... wrote: Thanks! Setting the minimum height works but still its counterintuitive at the least... Can somebody from Adobe point me to the docs explaining this behaviour? TIA, Fotis On Thu, Aug 20, 2009 at 10:39 AM, Wesley Acheson wesley.ache...@...wrote: Sorry no I meant the min height. I didn't have a lot of time to answer when I typed this reply out before. I've seen this behaviour with dataGrid and I got stuck with it too, I asked here on the flexcoders mailing list. Basically when the items in a container are larger than its height. The container when it calculates the size of the children sets the minHeight to be a height that contains all its children. (or width). It then uses the minHeight as the height of the container. However if you explictly set a minHeight that is smaller than the sum of the children heights e.g. 0. This minimum height isn't overridden by the container. This allows the container to pick up its height property. Thats the tehory behind why I suggested it. I don't know if it works for VBox and I don't know if the problem applies to numeric heights as opposed to percentage heights. However I thought it may be worth a shot as its an easy thing to test. Regards, Wes On Thu, Aug 20, 2009 at 12:23 AM, Fotis Chatzinikos fotis.chatzini...@... wrote: Hi Wesley, do you mean the maxHeight? My problem is with the height of the box getting bigger than the application instead of staying @ bottom 10. If i set the height or maxHeight it works as advertised. I am not trying to just fix it though.. I am trying to understand/know why it does not work.. Thanks, for the reply though On Thu, Aug 20, 2009 at 12:47 AM, Wesley Acheson wesley.ache...@... wrote: try setting the minWidth also. On Wed, Aug 19, 2009 at 6:29 PM, fotis.chatzinikos fotis.chatzini...@... wrote: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; width=640 height=480 mx:VBox top=100 bottom=10 horizontalCenter=0 width=90% horizontalAlign=left verticalGap=5 id=debugWinVB_ID /mx:VBox /mx:Application At the start of the application the VBox height is 370 (Application.height - vbox.top - vbox.bottom) - Correct. Child labels are added to this vbox in runtime and as soon as the cumulative labels height becomes 370 the vbox expands and scroll bars appear @ the Application level...Why? Should not the Vbox remain @ 370 height and display inner scrollbars, according to the following rule:? * Component size determined by a pair of constraint-based layout properties (left-right or top-bottom) overrides any explicit or percentage-based size specifications. For example, if you specify both left and right constraints, the calculated constraint-based width overrides the width set by a width or percentWidth property. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@..., -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@...,
Re: [Spam] [flexcoders] Pb with URLVariables
Hey Christopher, I've just pasted this code into a test flex app in it's init() function and debugged it after the second variables property was assigned. They both contain EUR. code var variables:URLVariables = new URLVariables(); var cur:String; cur = EUR; variables.currency_code = cur; variables.currency_codes = EUR; //debugged here /code What are you experiencing? Nick 2009/8/21 christophe_jacquelin christophe_jacque...@yahoo.fr Hello, The following code is not working: var variables:URLVariables = new URLVariables(); var cur:String; cur = EUR; variables.currency_code = cur; But this code is working : variables.currency_code = EUR; What could be the problem ? Thank you, Christopher,
[flexcoders] asdoc not supporting path variable in config file.
In Flexbuilder 3, sdk 3.2.0, I have setup a flex project in which Additinal compiler arguments -load-config is used to define my own config file. In this config file I am using a path variable OVCodebaseDir created from FlexBuilder preferences - General - Workspace - Linked Resources. The project gets compiled without error and runs well. But using the launch files, I am generating documentation for the project, which gives error ...Codebase\App\OV-config.xml(34): Error: configuration variable 'compiler.theme' value contains unknown token 'OVCodebaseDir' /theme the settings in launch file is stringAttribute key=org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS value= -source-path ./src -doc-sources ./src -output=../../Docs/OVAppDocs -load-config+=OV-config.xml -library-path quot;${FlexRoot}/frameworks/libsquot; -library-path quot;${FlexRoot}/frameworks/libs/player/{targetPlayerMajorVersion}quot; / The FlexRoot variable was defined in FlexBuilder preferences - Run/Debug - String Substitution. I even tried creating OVCodebaseDir variable here. If I replace OVCodebaseDir with absolute path in config file then I am able to generate the documentations. So there is no problem in launch file. How to declare/define custom variables used for config file? Thanks, Rajkumar
[flexcoders] Problem with GetDay
Hello, I have a problem with GetDay. We are the 21 of August, I want a function that return 21 and GetDay return 5 (for friday). How to have 21 ? Thank you, Christopher,
RE: [flexcoders] call remoteObject muliple times
I'm not sure you could account for all the records when CF returns the data... The actual data population from the CF call is in the EVENT call in the remoteobject link. The problem is, this will change every call you make and I could see that it could there could be possibility of lost data if you do it that way. I'm not sure this would be best practice... Why not return a single query with all the records you need? I populate some fairly large components with CF data in one call to CF to the remote object. You should be able to pass the array to CF... Sj From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of kpjj31 Sent: Thursday, August 20, 2009 1:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] call remoteObject muliple times Is it possible to call remoteObject multiple times. This number would be based on the number of records in an arrayCollection. This calls it only for the first record. for (var i:int = 0; 1 departmentlist.length; i++) { delagateService.setDelegateAssignment({ProfileID:profileid,GLString:depa rtmentlist.getItemAt(i).DATA,AddRemove:isselected}) { index = i; break; } -- This message has been scanned for viruses and dangerous content by MailScanner http://www.mailscanner.info/ , and is believed to be clean.
RE: [flexcoders] how to wait for more than one httpserivice/remoteobject result to finish?
The data gets populated/manipulated in the result= If the data doesn't come in for some reason, the fault handler kicks in. You can pass customized values into the fault handler from your RDO as well. So, if your handleList1Result(event) function fires, then it has data. Then you can check for individual variables within that data set to make sure you have everything... From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of coder3 Sent: Thursday, August 20, 2009 1:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to wait for more than one httpserivice/remoteobject result to finish? Hi my application needs to wait until two (or more) resultHandlers to get their results and use them together. for example, mx:RemoteObject id=myRO destination=test fault=FaultHandler(event) mx:method name=getList1 result=handleList1Result(event)/ mx:method name=getList2 result=handleList2Result(event)/ /mx:RemoteObject at application creationComplete, it calles myRO.getList1() and myRO.getList2() what can i do to make sure i get both results before i do anything else? i know it can call myRO.getList1(), then in the handleList1Result(event:ResultEvent), after it gets the list1 result, then it calls myRO.getList2(), but i would like to know a better, more clear way. thanks C -- View this message in context: http://www.nabble.com/how-to-wait-for-more-than-one-httpserivice-remoteo bject-result-to-finish--tp25067471p25067471.html http://www.nabble.com/how-to-wait-for-more-than-one-httpserivice-remote object-result-to-finish--tp25067471p25067471.html Sent from the FlexCoders mailing list archive at Nabble.com. -- This message has been scanned for viruses and dangerous content by MailScanner http://www.mailscanner.info/ , and is believed to be clean.
RE: [flexcoders] how to wait for more than one httpserivice/remoteobject result to finish?
Tim makes a great point... Events are great for tracking things, but you also have to be careful not to have too many events waiting in your program. I have seen cases where there are so many events waiting in a program that weird things happen with them like the handler not getting the message that an even has fired. If you're doing just a few events then you shouldn't have that big of a deal. I try to keep my active events low and around 10-15 so that older and slow computers shouldn't have a problem. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Rowe Sent: Thursday, August 20, 2009 6:10 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] how to wait for more than one httpserivice/remoteobject result to finish? You don't really get much in the way of thread control in Flex, but a neater way might still be to create something of a pseudo-barrier. At the time each object is fired, you would also add a token to the barrier, latching it and increasing the counter on that token. Each event listener could then call off to the barrier, passing the same token fired as a property of the event to decrease against that token on the barrier - at the point all tokens are unblocked (ie, reach 0) you can open the barrier. Your other code would sleep (I was almost going to say spinwait... hm, no :) until the barrier is unlatched. This could avoid you needing to write a handler for each event - the problem with the below example is what happens when you need three, or four, of seven events to be waited on. Just something to give some thought to anyway. --Tim From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wesley Acheson Sent: Friday, 21 August 2009 5:20 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] how to wait for more than one httpserivice/remoteobject result to finish? private var list1Result:ResultEvent; private var list2Result:ResultEvent; private function handleList1Result(event:ResultEvent):void { list1Result = event; if(list2Result) { handleResults(list1Result, list2Result); } } private function handleList2Result(event:ResultEvent):void { list2Result = event; if(list1Result) { handleResults(list1Result, list2Result); } } private function handleResults(result1:ResultEvent, result2:ResultEvent):void { //your code here } On Thu, Aug 20, 2009 at 8:35 PM, coder3 rrhu...@hotmail.com mailto:rrhu...@hotmail.com wrote: Hi my application needs to wait until two (or more) resultHandlers to get their results and use them together. for example, mx:RemoteObject id=myRO destination=test fault=FaultHandler(event) mx:method name=getList1 result=handleList1Result(event)/ mx:method name=getList2 result=handleList2Result(event)/ /mx:RemoteObject at application creationComplete, it calles myRO.getList1() and myRO.getList2() what can i do to make sure i get both results before i do anything else? i know it can call myRO.getList1(), then in the handleList1Result(event:ResultEvent), after it gets the list1 result, then it calls myRO.getList2(), but i would like to know a better, more clear way. thanks C -- View this message in context: http://www.nabble.com/how-to-wait-for-more-than-one-httpserivice-remoteo bject-result-to-finish--tp25067471p25067471.html http://www.nabble.com/how-to-wait-for-more-than-one-httpserivice-remote object-result-to-finish--tp25067471p25067471.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf -1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo ! Groups Links (Yahoo! ID required) mailto:flexcoders-fullfeatu...@yahoogroups.com mailto:flexcoders-fullfeatu...@yahoogroups.com __ Notice: This email and attachments (if any) is for the exclusive use of the addressee and may contain information that is privileged and confidential. Any unauthorised use of the contents of the email and/or attachments is expressly prohibited. If you are not the addressee of this email, please notify me immediately by email and then immediately destroy any electronic or paper copy of this email and/or attachments. Carsales.com Ltd and its related companies do not accept responsibility for the views expressed in the email or for the consequences of any computer viruses that may be transmitted with
[flexcoders] Re: Problem with GetDay
getDate() returns the day of the month (an integer from 1 to 31) specified by a Date object according to local time. See http://livedocs.adobe.com/flex/3/langref/Date.html --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, I have a problem with GetDay. We are the 21 of August, I want a function that return 21 and GetDay return 5 (for friday). How to have 21 ? Thank you, Christopher,
[flexcoders] Full flex site or not
Hello, Is it better to make a full flex site or is it better to add some html pages with flex to have a better position in Google ? Thank you, Christopher,
Re: [flexcoders] Full flex site or not
Site audience and desired functionality should have more to do w/ your site technology choices than SEO. christophe_jacquelin wrote: Hello, Is it better to make a full flex site or is it better to add some html pages with flex to have a better position in Google ? Thank you, Christopher, -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
Re: [flexcoders] Full flex site or not
Put all your SEO in the alternative content area and header of the html page it sits on... From: Jeffry Houser j...@dot-com-it.com Sent: Friday, August 21, 2009 7:33 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Full flex site or not Site audience and desired functionality should have more to do w/ your site technology choices than SEO. christophe_jacquelin wrote: Hello, Is it better to make a full flex site or is it better to add some html pages with flex to have a better position in Google ? Thank you, Christopher, -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5hhttp://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.comhttp://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
[flexcoders] Re: How to add fragments to debug url in Flex Builder
Mike Thank you for that. It worked perfectly. I have a Mac at home but have to resort to using a PC here at work. For others that may see this thread later on... I installed WAMP 2 (http://sourceforge.net/projects/wampserver/) and set my Flex build path output directory to C:\wamp2\www. I then created a new runtime configuration and set the debug url to http://localhost/MyProject.html#MyFragments. Best Regards Steve --- In flexcoders@yahoogroups.com, mike_morearty mike.morea...@... wrote: Browsers don't allow fragments such as #anchor to be appended to file: URLs, as they do for http: URLs. The workaround for your scenario is to have Flex Builder compile the SWF into a directory where an HTTP server can find it. For example, suppose you are on a Mac; /Users/johndoe/Sites can be accessed from a web browser as http://localhost/~johndoe, if you have enabled that via System Preferences, Sharing, Web Sharing. So, in Flex Builder, you could go to the Project Properties, Flex Build Path, and set the Output folder to /Users/johndoe/Sites/myproj, and the Output folder URL to http://localhost/~johndoe/myproj. Once you do that, your launch URL should automatically change to the right thing; you can then modify it and append #anchor. --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: I need to debug deep linking in my project (When a user pastes a URL in the browser and presses Go). If I just paste the URL, the browser is not connected to the debugger. So, I need to be able to add the fragments to the debug URL in Flex Builder. I thought I could just do that in the Run/Debug Settings panel but if I do that I get a file not found error. I need to know how to force the debugger to connect to the browser OR how to add fragments to the URL in Flex Builder so the debugger starts with the right fragments. Any help appreciated.
[flexcoders] Re: Generated code not working when app is loaded as module
Fixed it by providing ApplicationDomain.currentDomain on load() ... info = ModuleManager.getModule(moduleURL); if (info != null) { info.addEventListener(ModuleEvent.READY, onReady); info.addEventListener(ModuleEvent.ERROR, onError); info.load(ApplicationDomain.currentDomain); } ... Thanks a lot! --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Usually all webservice data classes need to be in the main applicationdomain. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of poweribo Sent: Tuesday, August 18, 2009 12:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Generated code not working when app is loaded as module anyone with idea? --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, poweribo poweribo@ wrote: I used Flexbuilder to generated the proxy code for my webservices and my app works perfectly as standalone swf file but when I load it as a module (loaded from another main swf file), it throws these kind of errors (see below). I tried declaring and instantiating the objects in question, also made sure are using public. I dont have custom utility function for calling getDefinitionByName() as well. but im getting the same errors. Does any one have a fix or workaround for this? - ReferenceError: Error #1065: Variable MyObject is not defined. at global/flash.utils::getDefinitionByName()
[flexcoders] matrix math help
I'm building a sort of image zoomer/viewer -- you've seen it all before -- one large image that scales with a smaller image showing the full image. As you zoom into the large image, the smaller 'viewer' shows a square showing the area that is being viewed in the larger view. Dig? Ok -- so I've got the smallbox scaling down while the larger scales up - and the views coincide, working perfectly. But when I have the drag able small area move around - the larger view does NOT display the same area. I've tried more extravagant ways of trying this - creating a new matrix, scaling to the large image, then translating the smaller rects negative of the x and y of the smaller view - but nothing works. I've tried this simple example - and in this case the 'test' is a canvas I'm using to just make sure that the smaller matrix is sound: private function boxMouseDrag(e:MouseEvent):void{ borderBox.transform = box.transform; var smM:Matrix = borderBox.transform.matrix.clone(); smM.invert(); //logit(small: +smM.toString()); //logit(big: + big.transform.matrix.toString()); big.transform.matrix=smM; smM.invert(); test.transform.matrix = smM; } But the larger one is way off. An example can be seen at http://grimmwerks.com/player/creativity-online.com/player.html I'd really appreciate any help you can offer; I don't know why it's off. I'm guessing that I have to scale the larger matrix even *more*.
Re: [flexcoders] matrix math help
Just FYI we can't view that without a username / password On Fri, Aug 21, 2009 at 7:03 PM, grimmwerks gr...@grimmwerks.com wrote: I'm building a sort of image zoomer/viewer -- you've seen it all before -- one large image that scales with a smaller image showing the full image. As you zoom into the large image, the smaller 'viewer' shows a square showing the area that is being viewed in the larger view. Dig? Ok -- so I've got the smallbox scaling down while the larger scales up - and the views coincide, working perfectly. But when I have the drag able small area move around - the larger view does NOT display the same area. I've tried more extravagant ways of trying this - creating a new matrix, scaling to the large image, then translating the smaller rects negative of the x and y of the smaller view - but nothing works. I've tried this simple example - and in this case the 'test' is a canvas I'm using to just make sure that the smaller matrix is sound: private function boxMouseDrag(e:MouseEvent):void{ borderBox.transform = box.transform; var smM:Matrix = borderBox.transform.matrix.clone(); smM.invert(); //logit(small: +smM.toString()); //logit(big: + big.transform.matrix.toString()); big.transform.matrix=smM; smM.invert(); test.transform.matrix = smM; } But the larger one is way off. An example can be seen at http://grimmwerks.com/player/creativity-online.com/player.html I'd really appreciate any help you can offer; I don't know why it's off. I'm guessing that I have to scale the larger matrix even *more*.
Re: [flexcoders] matrix math help
Argh. Sorry about that. Changed to the real link rather than dev. On Aug 21, 2009, at 1:25 PM, Wesley Acheson wrote: Just FYI we can't view that without a username / password On Fri, Aug 21, 2009 at 7:03 PM, grimmwerks gr...@grimmwerks.com wrote: I'm building a sort of image zoomer/viewer -- you've seen it all before -- one large image that scales with a smaller image showing the full image. As you zoom into the large image, the smaller 'viewer' shows a square showing the area that is being viewed in the larger view. Dig? Ok -- so I've got the smallbox scaling down while the larger scales up - and the views coincide, working perfectly. But when I have the drag able small area move around - the larger view does NOT display the same area. I've tried more extravagant ways of trying this - creating a new matrix, scaling to the large image, then translating the smaller rects negative of the x and y of the smaller view - but nothing works. I've tried this simple example - and in this case the 'test' is a canvas I'm using to just make sure that the smaller matrix is sound: private function boxMouseDrag(e:MouseEvent):void{ borderBox.transform = box.transform; var smM:Matrix = borderBox.transform.matrix.clone(); smM.invert(); //logit(small: +smM.toString()); //logit(big: + big.transform.matrix.toString()); big.transform.matrix=smM; smM.invert(); test.transform.matrix = smM; } But the larger one is way off. An example can be seen at http://grimmwerks.com/player/creativity-online.com/player.html I'd really appreciate any help you can offer; I don't know why it's off. I'm guessing that I have to scale the larger matrix even *more*.
[flexcoders] Re: How to restrict Drag and Drop to one axis? (like the X-Axis only)
Unfortunately this only worked for locking to the X-Axis. Meaning you can only drag something left and right but not up and down. The problem now is I cannot restrict dragging left/right. This is because the DragProxy and it's children don't seem to report valid widths. Whenever I trace it out the width's are 0. Also the coordinate space of the dragProxy doesn't seem to sync with anything else in the app. Even when I use dragProxy.systemManager.topLevelSystemManager.localToGlobal(). The DragProxy seems to set it's own position internally using DisplayObject(sandboxRoot).globalToLocal(stagePoint); But sandboxRoot is not accessible outside of DragProxy and I have no idea what it actually references. Any ideas? All I am trying to do is limit how far you can drag the dragProxy left and right so that it cannot be dragged outside the bounds of the list it is being dragged from. Thanks --Kelly --- In flexcoders@yahoogroups.com, Archibald dek...@... wrote: By doing this on the highest level UIComponent I could access I was able to lock it to one access even when dragging outside of the target container. Unfortunately it only worked up to the highest level component within a Module. It did not work when added to a component in the main app when the target container is inside of a module. --- In flexcoders@yahoogroups.com, Archibald dekayd@ wrote: I found a way to kindof do this. It's not perfect but I guess it's acceptable. It only works as long as you don't move the mouse outside the container that you want to restrict dragging to. Once you mouse out of the container the proxy goes wherever the mouse goes again. Pretty weak. I will post again if I find a better solution. override protected function dragOverHandler(event:DragEvent):void{ super.dragOverHandler(event); this.dragProxy = DragManager.mx_internal::dragProxy; this.dragProxy.y = this.localToGlobal(new Point(this.x, this.y)).y; /* if(DragAndDropRules.canDropHere(event.){ } */ } --- In flexcoders@yahoogroups.com, Archibald dekayd@ wrote: This is super easy using startDrag and seems to be stupid hard using the DragManager. Am I missing something? Why would this relatively common need not be addressed in the DragManager? I have seen like 20 people ask the same question with no answer. I am working on a linear editor using an HList and want to use the built in DragDrop support but it has to restrict to only drag horizontally. Thanks. --Kelly
[flexcoders] How to iterateOverChildren of an component not in display
Suppose you have a MyView.mxml file, which is basically a Panel with several children (Form, FormItems, Buttons...). Is it possible to iterate over the MyView and get all the information about its children (types, id ...) before it is displayed. In my Main.mxml if I have this function public function iterateOverChildren(comp:Container):void { // Get the number of descriptors. trace(Running iterateOverChildren for + comp.id); if (comp != null) { var n:int = comp.childDescriptors.length; for (var i:int = 0; i n; i++) { var c:ComponentDescriptor = comp.childDescriptors[i]; var d:Object = c.properties; // Log ids and types of objects in the Array. trace(c.id + is of type + c.type); // Log the properties added in the MXML tag of the object. for (var p:String in d) { trace(Property: + p + : + d[p]); } } } } Why does this call not work ? var myV = MyView(); iterateOverChildren(myV); It only works if I add a statement like addChild(myV); before the iterateOverChildren call. (But that's not what I want, I want to iterate the descriptions without adding it to display). -alex
[flexcoders] Re: How to use XML file as dataProvider for s:List
--- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: You can use mx:XML source=myFile.xml . for compile time embedding or you can use HTTPService for run-time retrieval. You can also use URLLoader, which works the same locally or from a network.
[flexcoders] Re: call remoteObject muliple times
If the concurrency property of the RemoteObject (in this case, your delagateService) is set to multiple, then you can issue multiple calls at once on the RemoteObject. The default is multiple. But why are you making a call for every record in your departmentlist array? If you make one call to the server, and pass an array of objects, that would be much more efficient with network and server resources. Michael Portuesi --- In flexcoders@yahoogroups.com, kpjj31 joe.g.ja...@... wrote: Is it possible to call remoteObject multiple times. This number would be based on the number of records in an arrayCollection. This calls it only for the first record. for (var i:int = 0; 1 departmentlist.length; i++) { delagateService.setDelegateAssignment({ProfileID:profileid,GLString:departmentlist.getItemAt(i).DATA,AddRemove:isselected}) { index = i; break; }
[flexcoders] Re: Navigating to a jsp while flex movie is loaded
Corrected the subject and a part of the mail summarizing the question in a sentence is there a chance for a servlet called by flex app to redirect the browser from a flexapp to a new page. -Ram On Fri, Aug 21, 2009 at 2:44 PM, Ram Mohan ram.mo...@customerxps.comwrote: Hi all, My requirement is that whenever the session expires, a background process should redirect the browser from a flex app to a jsp file( say sessionExpiry jsp). In that sessionExpiry.jsp, i would be redirecting to logout.jsp. I am observing that eventhough these jsps are getting executed on the server. they are not shown in the browser. is there a specific way to redirect the browser to a jsp from a background app(say servlet), while flexApp is loaded. I used response.Redirect and jsp:forward and in both cases, this issue is seen. Thanks, Ram
[flexcoders] Navigating to a jsp while flex movie is loaded
Hi all, My requirement is that whenever the session becomes, a background process should redirect the browser from a flex App to sessionExpiry jsp. In that sessionExpiry.jsp, i would be redirecting to logout.jsp. I am observing that eventhough these jsps are getting executed on the server. they are not shown in the browser. is there a specific way to redirect the browser to a jsp from a background app(servlet), while flexApp is loaded. I used response.Redirect and jsp:forward and in both cases, this issue is seen. Thanks, Ram -- View this message in context: http://www.nabble.com/Navigating-to-a-jsp-while-flex-movie-is-loaded-tp25041880p25041880.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Navigating to a jsp while flex movie is loaded Click to flag this post
Hi all, My requirement is that whenever the session becomes, a background process should redirect the browser from a flex app to a jsp file( say sessionExpiry jsp). In that sessionExpiry.jsp, i would be redirecting to logout.jsp. I am observing that eventhough these jsps are getting executed on the server. they are not shown in the browser. is there a specific way to redirect the browser to a jsp from a background app(say servlet), while flexApp is loaded. I used response.Redirect and jsp:forward and in both cases, this issue is seen. Thanks, Ram
[flexcoders] Re: Cannot select identical item in my tree component...
--- In flexcoders@yahoogroups.com, - - sailorse...@... wrote: Hi Alex, if I need both objects to be identical, how can I assign different UID? If I double click the object on the parent node, I enable a view to edit the object. The same object is found nested deeper in the tree, if I double click it, it must edit the same object on the parent branch. Create a wrapper object with a different UID that the tree sees that contains the same object. HTH; Amy
[flexcoders] Re: Full flex site or not
If you are a competitor of mine, build a full flex site, otherwise HTML is the way to go for SEO. ;) --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, Is it better to make a full flex site or is it better to add some html pages with flex to have a better position in Google ? Thank you, Christopher,
[flexcoders] grouping collection for combobox
I am trying to apply a grouping collection to my combobox. The array collection is a result of a remote object. When I use the grouping colelction as a dataProvide, I get not results. mx:GroupingCollection id=jobsgroup source={departmentlist} mx:Grouping mx:GroupingField name=JOBTITLE/ /mx:Grouping /mx:GroupingCollection mx:ComboBox id=jobs_cb x=616 y=24 width=364 dataProvider={jobsgroup.getData(jobsgroup.getRoot())} labelField=GroupLabel/
Re: [flexcoders] Re: Full flex site or not
Google already indexes SWF content, they talked about it at MAX last November. Here is a recording of the presentation: http://tv.adobe.com/#vi+f15384v1000 On Fri, Aug 21, 2009 at 10:09 AM, toofah_gm ga...@byu.edu wrote: If you are a competitor of mine, build a full flex site, otherwise HTML is the way to go for SEO. ;) --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, Is it better to make a full flex site or is it better to add some html pages with flex to have a better position in Google ? Thank you, Christopher, -- Cheers, Nate http://blog.natebeck.net
[flexcoders] Switching from LCDS to Blazed DS
So I am toying with the idea of switching from LCDS express to Blazed DS for all my data push needs. Does anyone know where I can view a few examples for the setup/testing/code of a Blazed DS(coldfusion9) / flex environment?
Re: [flexcoders] Re: Full flex site or not
This presentation mentions no network access (yet) and no sockets - This probably means that amf based flex apps will not be indexed. I am not sure though, anybody with more info is welcome to comment On Sat, Aug 22, 2009 at 1:32 AM, Nate Beck n...@tldstudio.com wrote: Google already indexes SWF content, they talked about it at MAX last November. Here is a recording of the presentation: http://tv.adobe.com/#vi+f15384v1000 On Fri, Aug 21, 2009 at 10:09 AM, toofah_gm ga...@byu.edu wrote: If you are a competitor of mine, build a full flex site, otherwise HTML is the way to go for SEO. ;) --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, Is it better to make a full flex site or is it better to add some html pages with flex to have a better position in Google ? Thank you, Christopher, -- Cheers, Nate http://blog.natebeck.net -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
RE: [flexcoders] Re: Generated code not working when app is loaded as module
Be aware that doing that prevents the module from ever unloading. You might want a separate module of your data classes and load those that way and the rest of the code using default parameters Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of poweribo Sent: Friday, August 21, 2009 9:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Generated code not working when app is loaded as module Fixed it by providing ApplicationDomain.currentDomain on load() ... info = ModuleManager.getModule(moduleURL); if (info != null) { info.addEventListener(ModuleEvent.READY, onReady); info.addEventListener(ModuleEvent.ERROR, onError); info.load(ApplicationDomain.currentDomain); } ... Thanks a lot! --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aha...@... wrote: Usually all webservice data classes need to be in the main applicationdomain. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of poweribo Sent: Tuesday, August 18, 2009 12:09 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Generated code not working when app is loaded as module anyone with idea? --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, poweribo poweribo@ wrote: I used Flexbuilder to generated the proxy code for my webservices and my app works perfectly as standalone swf file but when I load it as a module (loaded from another main swf file), it throws these kind of errors (see below). I tried declaring and instantiating the objects in question, also made sure are using public. I dont have custom utility function for calling getDefinitionByName() as well. but im getting the same errors. Does any one have a fix or workaround for this? - ReferenceError: Error #1065: Variable MyObject is not defined. at global/flash.utils::getDefinitionByName()
Re: [flexcoders] Switching from LCDS to Blazed DS
I am considering the same move. I havnt watched/read it all yet but AAron West has some walkthroughs here: http://www.trajiklyhip.com/blog/index.cfm/2008/8/28/Integrating-BlazeDS-with-ColdFusion-8 Paul. On Aug 21, 2009, at 6:56 PM, jarottman wrote: So I am toying with the idea of switching from LCDS express to Blazed DS for all my data push needs. Does anyone know where I can view a few examples for the setup/testing/code of a Blazed DS(coldfusion9) / flex environment?,_._,___
Re: [flexcoders] Re: Changing ResultHandler of WebService Operation
Hi Tracy, addEventListener and removeEventListener did the trick. Thanks a lot. Regards, Angelo From: Tracy Spratt tr...@nts3rd.com To: flexcoders@yahoogroups.com Sent: Friday, 21 August, 2009 3:28:13 Subject: RE: [flexcoders] Re: Changing ResultHandler of WebService Operation Look into AsyncToken. All the RPC calls, inclusing WebService return an AsyncToken, which is a dynamic object to which you can add any property you want, and you can retrieve the value of that property in the result handler. Set a called property and use a switch statement to decide how t handle the result. AsyncToken also supports callback functions. Further, I am sure you could call removeEventListener and the addEventListener to actually change the result handler. Tracy Spratt, Lariat Services, development services available From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of valdhor Sent: Thursday, August 20, 2009 8:40 AM To: flexcod...@yahoogro ups.com Subject: [flexcoders] Re: Changing ResultHandler of WebService Operation Probably not. In ActionScript, you would add an event listener. For a remote object it is... theRemoteObject. theOperation. removeEventListe ner(ResultEvent. RESULT, firstResultHandler) theRemoteObject. theOperation. addEventListener (ResultEvent. RESULT, secondResultHandler ) I would think it would be the same for a web service although I have not tried it. --- In flexcod...@yahoogro ups.com, Angelo Anolin angelo_anolin@ ... wrote: Hi FlexCoders, How do I change the Result property of a web service operation? For example, I have declared my WebService as follows: mx:WebService id=ws mx:operation name=Call_One result=Call_ OneRH(event) fault=Call_ OneFH(event) / mx:operation name=Call_Two result=Call_ TwoRH(event) fault=Call_ TwoFH(event) / /mx:WebService I want to be able to change the result of the operation Call_One to another result, since I am planning to re-use the same web service, but the result would be treated differently. Will this work? ws.operation. Call_One. result = myOtherResult Any ideas? Thanks. Regards. Angelo
Re: [flexcoders] Re: Full flex site or not
But, it is largely believed that google does not yet offer a way to search the swf content it is indexing. Can you provide me one example that says otherwise? Ryan Stewart had a contest, which just fizzled because no one could get their SWF to show up in a Google search. Has that improved? Nate Beck wrote: Google already indexes SWF content, they talked about it at MAX last November. Here is a recording of the presentation: http://tv.adobe.com/#vi+f15384v1000 http://tv.adobe.com/#vi+f15384v1000 On Fri, Aug 21, 2009 at 10:09 AM, toofah_gm ga...@byu.edu mailto:ga...@byu.edu wrote: If you are a competitor of mine, build a full flex site, otherwise HTML is the way to go for SEO. ;) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, Is it better to make a full flex site or is it better to add some html pages with flex to have a better position in Google ? Thank you, Christopher, -- Cheers, Nate http://blog.natebeck.net http://blog.natebeck.net -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust