RE: [flexcoders] Web services or FDS: which are you using?
Currently using HTTP Services Remote Objects If ya gonna use em, abuse em J We do use web services also, but they are hidden behind Java POJOs so Flex sees no Web services. That is Flex 1.5 though. Still planning to move on to Flex 2.0 as soon as I get the time to do so. -- Mika Kiljunen Ohjelmistosuunnittelija / Intensium Oy [EMAIL PROTECTED] GSM: +358 50 352 4842 http://www.intensium.fi From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of ben.clinkinbeard Sent: 15. elokuuta 2006 17:59 To: flexcoders@yahoogroups.com Subject: [flexcoders] Web services or FDS: which are you using? In my ongoing crusade to increase the attention given by Adobe to web service support in Flex, I decided to do a little impromptu survey. My feeling is that its a mistake to focus so heavily on FDS in regards to articles, tutorials and the like when such a small percentage of organizations will actually deploy the technology. So, which are you using? I am more interested in actual production apps, rather than personal projects used for learning or experimentation purposes. Personally, I am evaluating Flex as the front end for an application that relies heavily on .NET web services. Ben http://www.returnundefined.com/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Determine if a Class implements an Interface
I'll bet that new'ing an instance of the class and using the 'is' operator on the instance will be faster than calling describeType() on the class and checking for an implementsInterface tag. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Tuesday, August 15, 2006 9:04 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Determine if a Class implements an Interface describeType should be able to get you that info I think. From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of thunderstumpgesatwork Sent: Tuesday, August 15, 2006 5:42 PM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Determine if a Class implements an Interface Hi all, I often use if (obj is MyClassOrInterface) { // do whatever } but it appears that only works with Instances not Classes. With just a Class, how can I tell if that class implements a particular interface or is of a particular base type? Do I have to create an instance of it and check the instance? I'm sure there must be another way... thanks in advance, Thunder __ var currentDomain:ApplicationDomain = ApplicationDomain.currentDomain; var psClass:Class = null; if (currentDomain.hasDefinition(sPropClass)) { psClass = Class(currentDomain.getDefinition(sPropClass)); } // below statement doesn't work! if ( (psClass != null) (psClass is IPropertySheet) ) { // make a new one of these classes. } __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: Web services or FDS: which are you using?
we're using .net web services with our flex client. we did use flashorb (weborb as its now called) remoting. so, if money isn't an issue (and no doubt it isn't for FDS users, then i'd recomend weborb for people who have .net middle tiers). --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: In my ongoing crusade to increase the attention given by Adobe to web service support in Flex, I decided to do a little impromptu survey. My feeling is that its a mistake to focus so heavily on FDS in regards to articles, tutorials and the like when such a small percentage of organizations will actually deploy the technology. So, which are you using? I am more interested in actual production apps, rather than personal projects used for learning or experimentation purposes. Personally, I am evaluating Flex as the front end for an application that relies heavily on .NET web services. Ben http://www.returnundefined.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: flex2 final - datagrid sortableColumns=false and itemDoubleClick event issue
hi Matt i did a trace on the event for the example below ie mx:DataGrid itemDoubleClick=trace(event) i got the following [Event type=itemDoubleClick bubbles=false cancelable=false eventPhase=2] thanks bod --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: What's the information contained in the event when you get the itemDoubleClicked? I can forward this in as a potential bug, but if you have that info it'd be helpful. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972 Sent: Tuesday, August 15, 2006 3:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: flex2 final - datagrid sortableColumns=false and itemDoubleClick event issue Anyone from Adobe please comment? here's a little test example. All you need to do is change the dg attribute sortableColumns=false | true. and double click the header. i believe the itemDoubleClick event should not be triggered when sortableColumns=false ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml mx:DataGrid doubleClickEnabled=true itemDoubleClick=mx.controls.Alert.show('item double clicked') sortableColumns=false mx:dataProvider mx:Array mx:Object Company=a Contact=1/ mx:Object Company=b Contact=2/ mx:Object Company=c Contact=3/ /mx:Array /mx:dataProvider mx:columns mx:DataGridColumn dataField=Company / mx:DataGridColumn dataField=Contact / /mx:columns /mx:DataGrid /mx:Application --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , bhaq1972 mbhaque@ wrote: i have a datagrid with the following attributes. mx:DataGrid doubleClickEnabled=true sortableColumns=false itemDoubleClick=mx.controls.Alert.show('item double clicked') i'm finding that if i doubleClick the header, i'm getting the itemDoubleClick evnt being trigged. is this the correct behaviour. (i'd assume not) please verify regards bod -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] ASDoc is now available for download
On Tuesday 15 August 2006 18:24, Brian Deitte wrote: So what's being done about this? As a long term plan, we're hoping (and starting to plan) to move the executable code over to Java. As a short term plan, we want to get this working on Linux for the next full release. I don't want to even think about what you may have in there, but I am glad that it is being worked on, and sounds like it will be fixed. -- Tom Chiverton, feeling more positive today and not totally given up on adding hints to methods This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Web services or FDS: which are you using?
On Tuesday 15 August 2006 15:58, ben.clinkinbeard wrote: So, which are you using? I am more interested in actual production Neither :-) CFC remoteing all the way. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Trouble Printing lots of images--PLEASE HELP!!!!!!
Hi Wayne, Could you please post some code, possibally with the xml file to? It will help us reproduce the problem that you are facing and find a solution to it. Thanks, -sam On 8/16/06, wayneposner [EMAIL PROTECTED] wrote: Unfortunately, when a user requests a print job it will mean print all the images. cacheAsBitmapbeen having problems with bitmaps as they don't seem to load into an IUIComponent. Any insite into possibly why? Wayne--- In flexcoders@yahoogroups.com , Tim Hoff [EMAIL PROTECTED] wrote: Yeah, I'm not saying load all of the images at one time, just the ones that you want to print. Possible use of cacheAsBitmap here too. -TH --- In flexcoders@yahoogroups.com, wayneposner wayne.posner @ wrote: I thought about doing that, but am concerned about the possiblity of loading anywhere from 500 to 1000 2k-10k images into memory and how it will affect the system while waiting for all those images to load. Additionally, I need to add some metadata text which is also coming from the XML file. Which brings me back to one at a time or somehow preloading each image before the canvas is rendered.Wayne--- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Hi Wayne, This a little out of my area, but maybe it will spark an idea.Instead of loading the images that you want to print, one-at-a- time,into a canvas. You could load all of the images, at the same time,into a Repeater (or a list-based control). On creationComplete ofthe Repeater, add the child (Repeater) to the PrintJob. If you are also embedding the images, this approach may consume a lot of CPU resources. But, I'm sure that you can find a balancehere. Hope this helps, Tim --- In flexcoders@yahoogroups.com, wayneposner wayne.posner@wrote: I've been trying to figure this one out for about a week now withno success.I'm trying to load a bunch of images dynamically from an XML file, pass each image, one at a time, to a Canvas and then print that Canvas, but only being prompted with the print dialog for thefirst image. If I just pass the image to the canvas, the print command has executed before the image loads.If I use an event listener for the complete action on my canvas I get the print dialog for every canvas that tries to print,provided I instatiate a new FlexPrintJob in my event handler--as opposed toa global FlexPrintJob which simply results in an empty print job.I've tried writing a preloader using the Loader class and a sprite to hold the image and then add the sprite to my canvas, but mycode fails at the addChild() statement at run time because flex cannot coerce the Loader into an IUIComponent. I've also tried a preinitialze event on my canvas which calls the image.Load command for an mx:image tag, but that doesn't workeither.It seems like I'm running out of options here. I didn't think it would be so difficult to print multiple pages of images in Flex. Can someone please helpThanks Wayne __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] PrintDataGrid page filling
Hi Phil, you can always change the height of the PrintDataGrid and call nextPage(). Which should do the trick, but if your chart is taking up space on the second page make it zero or get it out of the way and only show the PDG. It's like any other component. So you'll have to put it in the place you want. Probably you've used layout=absolute or a canvas, in which case you'll have to set the corrected x and y coordinates for the PDG. Hope this helps, -sam On 8/14/06, phildouglas [EMAIL PROTECTED] wrote: Does anyone know much about using the PrintDataGrid class withmultiple pages beyond whats included in the flex livedocs.I'm trying to print a graph with a table, and so need the chart at thetop of the first page, followed by the datagrid. If the data is longer than one page then i need to flow it onto thenext page. This is working fine however when I hide the chart on thesecond page, the datagrid doesnt resize to fill the whole page, but keeps the same height as if the chart was there, just at the top ofthe page. This means that if i have lots of data, i get lots of pagesall with small chunks of datagrid at the top.I've tried calling invalidate() and validateNow() on both the chart and the containing page, and turned off includeInLayout for the chart,but this seems to make no difference. Am i missing something?Thanks.Phil __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] TileList item margins
HiSergey, You can solve this problem by setting the ThemeColor for your TileList to white (themeColor=#FF). I'll look into this and let you know if there are other ways you can get rid of the border. In a way it is good to have some color showing because the user will know thathe can click/interact withthe items. -sam On 8/11/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All!How to eliminate those 2 pixels at the top and the same at the bottommargins around each TileList item? I use this:mx:TileList columnCount=2 rowCount=3 borderStyle=none dataProvider={_dataProvider}mx:itemRenderermx:Componentmx:Image width=50 height=50 source={data.image} //mx:Component /mx:itemRenderer/mx:TileListAnd there are 2 pixels of free space above and below each image.Sergey. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: How to collapse Panel?
Hi Sergey, Good observation. Why do you need the header height? The documentation says, The default value is based on the style of the title text. Sothere is no fixed default header height, it depends on the Title text font size. Having said that, the getStyle(headerHeight) should return the actual height of the header. So for now, if you really want a number returned set the headerHeight and it will work fine. Thanks, -sam On 8/12/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Any ideas regarding why headerHeight style equals undefined by defaultand how to get its default value? :( On 8/11/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: I found this example in help and wonder how to make it works: ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx= http://www.adobe.com/2006/mxml mouseDown=checkCollapse(event) resizeEffect=Resize mx:Script ![CDATA[ private function checkCollapse(event:MouseEvent):void { // If the user clicks the panel header, collapse/expand the panel. if (event.localY getStyle(headerHeight)) { currentState = currentState == collapsed ? : collapsed; } } ]] /mx:Script mx:states mx:State name=collapsed mx:SetProperty name=height value={getStyle('headerHeight')}/ /mx:State /mx:states /mx:Panel I just wrapped it into application: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxml mx:Script ![CDATA[ import mx.controls.Alert; private function checkCollapse(event:MouseEvent):void { // If the user clicks the panel header, collapse/expand the panel. if (event.localY getStyle(headerHeight)) { currentState = currentState == collapsed ? : collapsed; } } ]] /mx:Script mx:states mx:State name=collapsed mx:SetProperty name=height value={getStyle('headerHeight')}/ /mx:State /mx:states mx:Panel xmlns:mx= http://www.adobe.com/2006/mxml mouseDown=checkCollapse(event) resizeEffect=Resize mx:TextArea / /mx:Panel /mx:Application You could check via debugging that (event.localY getStyle(headerHeight)) is always false. On 8/11/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! I want to create collapsable Panel via states. I use mx:SetProperty to change height to myPanel.getStyle(headerHeight) value, but this method return undefined. What is wrong? Regards, Sergey. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Image class instance source nature detection
no way to know that Sergey, if it is a small image. You canguess when ittakes time to load that it is loaded(not embeded). When it is Embeded it should show up faster(because it is a part ofthe swf), apart from this there is now way to find out at runtime. The person writing the code will always know by looking into the file. -sam On 8/12/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All!What is the most proper way to detect either Image use embeded contentto display or load the content in runtime?Sergey. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Image class instance source nature detection
If on the other hand, the images are being loaded using data from an XML file, it can be associated to a flag which mentions that it is loaded or not(embeded). -sam On 8/16/06, Samuel Reuben [EMAIL PROTECTED] wrote: no way to know that Sergey, if it is a small image. You canguess when ittakes time to load that it is loaded(not embeded). When it is Embeded it should show up faster(because it is a part ofthe swf), apart from this there is now way to find out at runtime. The person writing the code will always know by looking into the file. -sam On 8/12/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All!What is the most proper way to detect either Image use embeded contentto display or load the content in runtime?Sergey. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Serbian FlexCoders
am interested in networking with Serbian speaking FlexCoders who work from Serbia. For the first contact, please reply to [EMAIL PROTECTED] Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [SPAM] [flexcoders] Gantt chart
Hi, I have searched the archives and found a couple of suggestions about constructing a gantt chart, but mostly related to Flex 1.5. Does anyone know of any available Flex 2 Gantt components, or have suggestions on where to start with building such a component? How complex does it need to be? Are we talking about charting triple-recessives or just a dom/co-dom/simple recessive chart? Something like that should be easy enough with the datagrid. ryanm -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] ViewStack.addChild // Code Check // Error
Hi all, I researched my attempts to create a Dynamic ViewStack yesterday and I think I am on the right track, although I can't get anything to display and I am facing an error. Here is the error message I receive: Type coercion failed. Cannot convert []34a56 to DisplayObject. Basically, I have created 3 simple views for my testing purposes. Each is a Canvas with a label on it. They are named SampleScreen, SampleScreen02, and AdminScreen. In the final implementation I will load the appropriate screens into an Array and loop over the array. The screens I load will be based on the type of user. So an admin will see different screens than a web user. This is the code I have come up with. It's very basic just to try and achieve my goal. START--Samples.mxml-- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init() mx:Script ![CDATA[ import mx.states.AddChild; public var sampleScreen:SampleScreen = new SampleScreen(); public var sampleScreen02:SampleScreen02 = new SampleScreen02(); public var adminScreen:AdminScreen = new AdminScreen(); public function init():void{ var screenArray:Array = new Array([sampleScreen, sampleScreen02, adminScreen]); for(var i:Number = 0; i screenArray.length; i++){ var addChild:AddChild = new AddChild(); addChild.relativeTo = desktopViews; addChild.target = DisplayObject(screenArray[i]); } } ]] /mx:Script mx:ButtonBar dataProvider={desktopViews} left=0 top=0 width=100% height=30/ mx:ViewStack id=desktopViews width=900 height=600 left=0 top=30 / /mx:Application END--Samples.mxml-- Thank you so much if you could be of any help. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Datagrid Scrollbar size
Hi Is it possible to change the size of the scrollbars in a datagrid. I have a grid which is quite large in size making the scrollbars look tiny. I couldnt find anything regarding this in the help. Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex/Cairngorm Syntax
Thanks everyone for your comments and help. Cheers Graham --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: You can learn more about the * datatype here: http://livedocs.macromedia.com/flex/2/docs/1826.html Default parameters are described here: http://livedocs.macromedia.com/flex/2/docs/1834.html HTH, Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Samuel D. Colak Sent: Tuesday, August 15, 2006 9:52 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex/Cairngorm Syntax The * is an approximation of the Object keyword. Can be any type. Im not sure whether the typing is preserved or not but im sure Matt can confirm this. In effect event is cast as any object rather than having a strongly typed function call. Be aware in doing this though as type coercion issues may occur later on when dealing with the result. Since all event classes usually subclass from Event, you might use Event rather than * for type safety. Regards Samuel On 15/8/06 15:02, grahampengelly [EMAIL PROTECTED] wrote: Hi I am just embarking on my first Cairngorm based Flex app. In one of the sample apps there is the following syntax public function onResult(event:* = null):void { } Could somebody please explain exactly what the argument (event:* = null) is actually doing. Obviously the argument is called 'event', I have got that far. Is the asterisk a wildcard for the type, and if so why, and is the null a default value if the argument is not supplied? I have had a look around the web and the docs but can't find any explanation of this syntax. What is more, I am not getting it to work but as I don't understand what it is supposed to be I'm not sure where the problem lies. Thanks for your help in advance... Graham -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Web services or FDS: which are you using?
Title: Re: [flexcoders] Re: Web services or FDS: which are you using? Flex cant interpret the (dotNet anyway for sure) date structure in a web service return code try returning the string variant of the construct rather than the data structure Regards Samuel On 15/8/06 23:56, ldyhwke24 [EMAIL PROTECTED] wrote: I'm using Flex right now with .NET Web Services. For now, it's been an interesting learning curve! Thank goodness for newsgroups, forums, and blogs!! By the way, anyone have an issue with passing a null date to a Web Service Method? I've tried hard coding it in the Flex code, but I'm still coming up with an error. Error #1009: Cannot access a property or method of a null object reference. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , ben.clinkinbeard [EMAIL PROTECTED] wrote: In my ongoing crusade to increase the attention given by Adobe to web service support in Flex, I decided to do a little impromptu survey. My feeling is that its a mistake to focus so heavily on FDS in regards to articles, tutorials and the like when such a small percentage of organizations will actually deploy the technology. So, which are you using? I am more interested in actual production apps, rather than personal projects used for learning or experimentation purposes. Personally, I am evaluating Flex as the front end for an application that relies heavily on .NET web services. Ben http://www.returnundefined.com/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Parent Application Space?
Title: Parent Application Space? Matt / All, Under the definition of an MXML object, what is the object type? Regards Samuel __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: drag and drop in repeater control
I tried the drag and drop with List and itemrenderer, but drag and drop does not seems to work if I am using the control inside a popup window. --- In flexcoders@yahoogroups.com, deepu_verma [EMAIL PROTECTED] wrote: The following code does not work for me to allow the Combobox to be dragged and dropped inside the repeater control Is this the right approach, any help is appreciated. Thanks, Deepak mx:Repeater id=productRepeater recycleChildren=false mx:HBoxheight=50 mouseMove=webPageUpdateViewHelper.dragIt(event,null,'data'); dragEnter=webPageUpdateViewHelper.doDragEnter(event); dragDrop=webPageUpdateViewHelper.doDragDrop(event); borderStyle=solid mx:ComboBox id=relatedProduct dataProvider={webPageUpdateViewHelper.modelLocator.productVersionModel.productVersionCollection} selectedIndex={webPageUpdateViewHelper.relatedProductSelectedIndex(productRepeater.currentItem.id)} labelFunction=webPageUpdateViewHelper.productVersion_label / /mx:HBox /mx:Repeater public function dragIt(event:MouseEvent, obj:Object, format:String):void { // Get the drag initiator component from the event object. var dragInitiator:HBox=HBox(event.currentTarget); // Create a DragSource object. var ds:DragSource = new DragSource(); // Add the data to the object. ds.addData(obj,format); DragManager.doDrag(dragInitiator, ds, event); } // Called if the user dragged a proxy onto the drop target canvas. public function doDragEnter(event:DragEvent):void { // Get the drop target component from the event object. var dropTarget:HBox=HBox(event.currentTarget); DragManager.acceptDragDrop(dropTarget); } public function doDragDrop(event:DragEvent):void { // Get the data identified by the color format from the drag source. var data:Object = event.dragSource.dataForFormat('data'); // Set the canvas color. } -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Deserializing WebService call... Flex/Cairngorm
Thanks Ben Franck for your help. Like you Franck I couldn't see why it would work to cast one completely unrelated thing to another but this is the way it appeared to be being done in the samples. Of course, what I hadn't got to grips with is that the two samples that I was studying are both using RemoteObject rather than WebService calls and consequently are returning something that can be cast... Thanks... Graham --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: Nothing definitive here but I do have a couple of suggestions. Any time I see ObjectProxy mentioned in an error description, I immediately wonder if makeObjectsBindable is at fault. Try setting it to false on your WS and see what happens. Personally, I always use e4x as my resultFormat (for various reasons), so I don't have experience casting to a custom object but if you do end up needing to use Franck's suggested methodology I would certainly recommend creating a factory that will accept the SOAP return values and return an instance of your custom object. HTH, Ben --- In flexcoders@yahoogroups.com, grahampengelly graham@ wrote: I am just getting up to speed with the Cairngorm architecture and have been struggling with this problem for a while. I have got to the point where I am getting a response from my web service call that has the data in that I expect but I cannot seem to get it to deserialize into the object that I need. The code (I have used IResponder rather than the cairngorm Responder here as suggested during an earlier post here http://groups.yahoo.com/group/flexcoders/message/47366 ) public function result( data:Object ):void { var event:ResultEvent = data as ResultEvent; var testString:String = ; for each(var thing:Object in event.result) { testString += + thing + ; } //test alert 1 Alert.show(testString); //test alert 2 Alert.show(event.result.Id = + event.result.Id + , event.result.Name = + event.result.Name); var tObj:TestObj = event.result as TestObj; Alert.show(TestObj.Id = + tObj.Id); } The test alerts print out: test 1: Graham 1 test 2: event.result.Id = 1, event.result.Name = Graham The subsequent line throws an exception: TypeError: Error #1034: Type Coercion failed: cannot convert mx.utils::[EMAIL PROTECTED] to HASAW.ClientApp.Model.TestObj. The object that I am trying to create from the results looks like this: public class TestObj implements ValueObject { public var Id:int; public var Name:String; public function TestObj() { Id = 0; Name = ; } } I have tried various implementations and can't get the web service response to cast to TestObj. To be honest, I wouldn't have thought that it should cast to TestObj but I have followed all of the code samples for Cairngorm and they all do it like this. I am using .NET for the web service which may be an issue as the samples don't. It is returning the following SOAP in event.result.body ?xml version=1.0 encoding=utf-8 ? - # soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; soap:Body - # GetTesterResponse xmlns= - # GetTesterResult Id1/Id NameGraham/Name/GetTesterResult /GetTesterResponse /soap:Body /soap:Envelope I know I could manually populate the object with the values but the objects I will be deserializing in the application are much more complex than this which would make a manual approach a pain. Thanks in advance... Graham -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: How to collapse Panel?
I have reimplemented getHeaderHeight() method that is private in Panel unfortunately. I do not want to apply new headerHeight style property value, but I want to know default. Sure, it is based on the style of the title text, though it is still calculable. On 8/16/06, Samuel Reuben [EMAIL PROTECTED] wrote: Hi Sergey, Good observation. Why do you need the header height? The documentation says, The default value is based on the style of the title text. Sothere is no fixed default header height, it depends on the Title text font size. Having said that, the getStyle(headerHeight) should return the actual height of the header. So for now, if you really want a number returned set the headerHeight and it will work fine. Thanks, -sam __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: Trouble Printing lots of images--PLEASE HELP!!!!!!
Hi Sam... Sure, I can definitely do that. Here is a snippet from my XML file. I've taken just the top few lines and added the necessary end tags. ?xml version="1.0" encoding="ISO-8859-1"?Bom matnr="353559" bismt="DBT353559" name="CUTTING HEAD DRIVE ASSEMBLY" hasBom="X" item id="0001" qty="2.000" uom="EA" matnr="353560" bismt="DBT353560" name="MOTOR DRIVE SHAFT" hasBom="" path="pdf/353560.pdf" image="pdf/thumbnails/353560.jpg"/ item id="0002" qty="2.000" uom="EA" matnr="172186" bismt="J-491929" name="TORQUE CLUTCH" hasBom="" path="pdf/172186.pdf" image="pdf/thumbnails/172186.jpg"/ item id="0003" qty="2.000" uom="EA" matnr="353570" bismt="DBT353570" name="CAP, SEAL" hasBom="X" path="pdf/353570.pdf" image="pdf/thumbnails/353570.jpg" item id="0001" qty="0.100" uom="FT" matnr="269580" bismt=" 008 302 48 19" name="ROUND BAR(HR 4340HT)4.00quot;" hasBom=""/ /item item id="0004" qty="2.000" uom="EA" matnr="169220" bismt="J-486851" name="COVER" hasBom="X" path="pdf/169220.pdf" image="pdf/thumbnails/169220.jpg" item id="0010" qty="1.000" uom="EA" matnr="177413" bismt="J-547F198MK002" name="COVER WELDMENT" hasBom="X" path="pdf/177413.pdf" image="pdf/thumbnails/177413.jpg" item id="0010" qty="1.000" uom="EA" matnr="169941" bismt="J-547F198MK003" name="PLATE" hasBom="X" path="pdf/169941.pdf" image="pdf/thumbnails/169941.jpg" item id="0010" qty="0.200" uom="FT2" matnr="131877" bismt=" 008 302 72 61" name="PLATE(A572-50)1.00quot;" hasBom=""/ /item item id="0020" qty="1.000" uom="EA" matnr="169942" bismt="J-547F198MK004" name="PLATE" hasBom="X" path="pdf/169942.pdf" image="pdf/thumbnails/169942.jpg" item id="0010" qty="0.220" uom="FT2" matnr="131874" bismt=" 008 302 72 58" name="PLATE(A572-50).75quot;" hasBom=""/ /item /item /item /bom As for code, here is the mxml view I'm trying to create: ?xml version="1.0" encoding="utf-8"?mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" creationComplete="doPrint()" backgroundColor="#ff" mx:VBox height="396" width="535" id="atts" x="72" y="10" backgroundColor="#ff" mx:Label text="{product.name}" fontSize="11" fontWeight="bold"/ mx:Label text="MATNR: {product.matnr}" color="#EE8D0C"/ mx:Label text="BISMT: {product.bismt}" color="#EE8D0C"/ mx:Label text="UOM: {product.uom}" color="#EE8D0C"/mx:Label text="QTY: {product.qty}" color="#EE8D0C"/ mx:Image id="img" source="{product.image}" width="143" height="97"//mx:VBox /mx:Canvas The intent with the canvas is to use a CSS to create a template to publish the XML data to and then print it. I was originally trying to batch print PDFs, but since that can't really be done effectively in flex and I have all the data that is in the PDF, I'm trying to go the route of duplicating what the PDF looks like in a flex canvas. As for AS code, i'm not really sure what to send. Nothing I have works and I've got code commented all over the place with the different routes I've tried. So let me do this...I'll highlight the overall workflow here in this post. Sam, if you check your gmail account, I'll attach two files and some code snippets that I've been playing around with. Intended Workflow: Flex app initializes with XML data loaded into ArrayCollection of objects. User elects to "Print Catalog"--gets prompted with a SINGLE print dialog window. Flex app loops through ArrayCollection and sends each object to the abovemxml Canvas component for printing. Since the main problem is being created by the fact that the object is added to the print job before the image has loaded, I really think the solution lies in pre-loading the image before the canvas ever gets created. Wayne --- In flexcoders@yahoogroups.com, "Samuel Reuben" [EMAIL PROTECTED] wrote: Hi Wayne, Could you please post some code, possibally with the xml file to? It will help us reproduce the problem that you are facing and find a solution to it. Thanks, -sam On 8/16/06, wayneposner [EMAIL PROTECTED] wrote: Unfortunately, when a user requests a print job it will mean print all the images. cacheAsBitmapbeen having problems with bitmaps as they don't seem to load into an IUIComponent. Any insite into possibly why?Wayne --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, "Tim Hoff" TimHoff@ wrote: Yeah, I'm not saying load all of the images at one time, just the ones that you want to print. Possible use of cacheAsBitmap here too. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, "wayneposner" wayne.posner@ wrote: I thought about doing that, but am concerned about the possiblity ofloading anywhere from 500 to 1000 2k-10k images into memory and howit will affect the system while waiting for all those images toload. Additionally, I need to add some metadata text which is alsocoming from the XML file. Which brings me back to one at a time orsomehow preloading each image before the canvas is rendered. Wayne --- In flexcoders@yahoogroups.com
[flexcoders] Re: Deserializing WebService call... Flex/Cairngorm
There is a decent chance I am wrong about this but I think when you use RemoteObject with FDS you set up some sort of Java - AS class mapping in a config file. Ben --- In flexcoders@yahoogroups.com, grahampengelly [EMAIL PROTECTED] wrote: Thanks Ben Franck for your help. Like you Franck I couldn't see why it would work to cast one completely unrelated thing to another but this is the way it appeared to be being done in the samples. Of course, what I hadn't got to grips with is that the two samples that I was studying are both using RemoteObject rather than WebService calls and consequently are returning something that can be cast... Thanks... Graham --- In flexcoders@yahoogroups.com, ben.clinkinbeard ben.clinkinbeard@ wrote: Nothing definitive here but I do have a couple of suggestions. Any time I see ObjectProxy mentioned in an error description, I immediately wonder if makeObjectsBindable is at fault. Try setting it to false on your WS and see what happens. Personally, I always use e4x as my resultFormat (for various reasons), so I don't have experience casting to a custom object but if you do end up needing to use Franck's suggested methodology I would certainly recommend creating a factory that will accept the SOAP return values and return an instance of your custom object. HTH, Ben --- In flexcoders@yahoogroups.com, grahampengelly graham@ wrote: I am just getting up to speed with the Cairngorm architecture and have been struggling with this problem for a while. I have got to the point where I am getting a response from my web service call that has the data in that I expect but I cannot seem to get it to deserialize into the object that I need. The code (I have used IResponder rather than the cairngorm Responder here as suggested during an earlier post here http://groups.yahoo.com/group/flexcoders/message/47366 ) public function result( data:Object ):void { var event:ResultEvent = data as ResultEvent; var testString:String = ; for each(var thing:Object in event.result) { testString += + thing + ; } //test alert 1 Alert.show(testString); //test alert 2 Alert.show(event.result.Id = + event.result.Id + , event.result.Name = + event.result.Name); var tObj:TestObj = event.result as TestObj; Alert.show(TestObj.Id = + tObj.Id); } The test alerts print out: test 1: Graham 1 test 2: event.result.Id = 1, event.result.Name = Graham The subsequent line throws an exception: TypeError: Error #1034: Type Coercion failed: cannot convert mx.utils::[EMAIL PROTECTED] to HASAW.ClientApp.Model.TestObj. The object that I am trying to create from the results looks like this: public class TestObj implements ValueObject { public var Id:int; public var Name:String; public function TestObj() { Id = 0; Name = ; } } I have tried various implementations and can't get the web service response to cast to TestObj. To be honest, I wouldn't have thought that it should cast to TestObj but I have followed all of the code samples for Cairngorm and they all do it like this. I am using .NET for the web service which may be an issue as the samples don't. It is returning the following SOAP in event.result.body ?xml version=1.0 encoding=utf-8 ? - # soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; soap:Body - # GetTesterResponse xmlns= - # GetTesterResult Id1/Id NameGraham/Name/GetTesterResult /GetTesterResponse /soap:Body /soap:Envelope I know I could manually populate the object with the values but the objects I will be deserializing in the application are much more complex than this which would make a manual approach a pain. Thanks in advance... Graham -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Operation.arguments is populated but nulls are sent
Cleaning the project did not work but I have stumbled onto something that looks promising. It looks to be some sort of weird timing issue. First a little background on my app: I am using Cairngorm and have 2 main delegates, lets call them ClientDelegate and DocumentDelegate, each mapping to a single web service (ClientWS and DocumentWS). When my app starts up, I call ClientWS.methodA() via ClientDelegate. After a couple of selections are made, I call DocumentWS.myMethod() via DocumentDelegate, and in the result handler for that call, I call ClientWS.methodA() via ClientDelegate again, but this time with a completely different set of arguments. So ClientWS.methodA() gets called (for the second time in the app) as soon as DocumentWS.myMethod() returns. The odd 'fix' that I have discovered is to put a trace() call just before invoking DocumentWS.myMethod(). It doesn't work if I simply trace out a string literal (trace(weirdness);), but if I trace a property or object, something that might take a couple of milliseconds to process, everything works perfectly. Currently I have this: var op:mx.rpc.soap.Operation = service.getOperation(GetDocument) as Operation; op.resultFormat = e4x; trace(op.service.requestTimeout); Very very strange. I would love to understand what is going on here, can anyone clarify or venture a guess? Thanks, Ben --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: I mean do a Project Clean to rebuild the SWF from scratch. Flashlog.txt would be in c:\documents and settings\account\flashlog.txt by default, though you may not have it if it's not configured. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Tuesday, August 15, 2006 9:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Operation.arguments is populated but nulls are sent This was built from scratch in Flex 2, never even had 1.5 installed. Not sure what you mean by 'build clean'. Where would flashlog.txt be? I will try clearing the bin folder tomorrow and see what happens. Thanks, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mchotin@ wrote: Maybe it's some odd timing problem? Any profiler settings from Flex 1.5 turned on? Have you looked to see if you have a flashlog.txt file that has any info in it? Running in the debugger (even with no breakpoints) would also let you see the output and if there's anything there. You've built clean I assume. Delete everything in the bin folder anyway (with FB closed) and see if that changes anything? Sounds strange, Matt From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Tuesday, August 15, 2006 11:54 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Operation.arguments is populated but nulls are sent OK, the issue seems to be isolated to my machine. The error began happening again, so I sent a coworker the link to the file on my machine. He can run the app successfully with no issues whatsoever, while I still cannot. I have tried clearing my cache, closing Flex Builder and restarting my machine but nothing seems to help. It seems like this has to be related to something getting screwed up on my machine because it also usually goes away by the time I come in the next day. Is there anything else I can try clearing or resetting? This has to be 'a bug', no? Thanks, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mchotin@ wrote: You should be calling op.send(), if you call GetDataByGrouping() you're ignoring the arguments. Matt From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Monday, August 14, 2006 2:14 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Operation.arguments is populated but nulls are sent I am having a very odd error, and it only happens sometimes. I am creating an object structure and then assigning that to the arguments property of my mx.rpc.soap.Operation object like this: op.arguments = args; I then call the SOAP method like this: var call:AsyncToken = service.GetDataByGrouping(); call.addResponder(responder); Sometimes (I've not figured out a pattern),
Re: [flexcoders] Parent Application Space?
Title: Re: [flexcoders] Parent Application Space? I mean the derived type not the class with the same name as the project. On 16/8/06 12:05, Samuel D. Colak [EMAIL PROTECTED] wrote: Matt / All, Under the definition of an MXML object, what is the object type? Regards Samuel __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: How to stick pop up to some component?
Any ideas regarding how to organize control that contains dropdown instance? On 8/15/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! I have a component that opens pop up as its state. In some sense ComboBox is similar. Its dropdown view should be attached to its regular view. But layout could be changed. Native Flex ComboBox hides the dropdown in this case. Is it okay to bind x and y properties on appropriate getters? Or should I change the position in overridden updateDisplayList()? Any other ideas? Regards, Sergey. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] flex2 - how to cancel an event.preventDefault() in datagrid
Hi everyone, i'm trying a modified docs datgrid example where i call event.preventDefault() first, and then do the validation (example below). If the validation fails i show the errorString otherwise i want to continue. How do i cancel the event.preventDefault() (if that makes sense) regrds bod ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.controls.TextInput; import mx.events.*; [Bindable] public var initDG:Array = [{Company: 'Acme', Contact: 'Bob Jones', Phone: '413-555-1212', City: 'Boston', State: 'MA'}, {Company: 'Allied', Contact: 'Jane Smith', Phone: '617-555-3434', City: 'SanFrancisco', State: 'CA'} ]; public function validateData(event:DataGridEvent):void { event.preventDefault(); validateMe(event); } public function validateMe(event:DataGridEvent):void { var newData:String= TextInput(myGrid.itemEditorInstance).text; if(newData == ) { TextInput(myGrid.itemEditorInstance).errorString = ERROR; } else { // How do i cancel original preventDefault(); } } ]] /mx:Script mx:DataGrid id=myGrid dataProvider={initDG} editable=true itemEditEnd=validateData(event) mx:columns mx:DataGridColumn dataField=Company editable=false/ mx:DataGridColumn dataField=Contact/ mx:DataGridColumn dataField=Phone/ mx:DataGridColumn dataField=City/ mx:DataGridColumn dataField=State/ /mx:columns /mx:DataGrid /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] [Flex Data Services] Managed associations / DB abstraction ?
Hello flexcoders, following the «Managed Associations» approach, I just encountered a question. Please assume this: I have a set of entities created in my database, i.e. Employee and Company - to stick with the examples. In contradiction to the examples, assume that they relate in a n-m manner, meaning one company can have any number employees and one employee can have any number of companies. For that, to come up with a good database layout, I'd need to design a corresponding relation in the database - «Employee», «Company» and «EmployeeHasCompany» (the ladder one is the n-m relation - it holds foreign keys to each, employee and company). Let's say all of that is set so far and the application's requirements demand the database level cohesion of data and for that, require the table structure to be like I pointed out. Now here's some random thoughts... How do I model that for use with the Flex Data Services? I know, there's some destination properties (one-to-one, one-to-many, ...) on which basis FDS manages data supply. Isn't that situation not only redundant but also risky to use? I'm thinking of transactions, date consistency and else... And how do I update the EmployeeHasCompany relation with new data? Is it like I need to trust FDS to do the right things? I'm afraid of losing control here. So all in all, I think, my question is how to transfer the database model accordingly to the FDS confuguration? Or maybe I'm just off the track here. Cheers, Thomas Thomas Rühl Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] Web http://www.akitogo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] SOLVED: Operation.arguments is populated but nulls are sent
OK, its definitely a timing issue. Rather than dispatching the next CairngormEvent (that triggers the new call) right in my result handler, I moved the event dispatch to another function, and am calling that with a Timer set to a 1 millisecond delay. Works perfectly. So I am not sure what exactly the issue is, but its definitely related to timing. Very odd because my arguments object was always correctly populated (so its not a matter of vars not being ready), but the XML request that Flex generates was all fubar. Thanks, Ben --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: I mean do a Project Clean to rebuild the SWF from scratch. Flashlog.txt would be in c:\documents and settings\account\flashlog.txt by default, though you may not have it if it's not configured. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Tuesday, August 15, 2006 9:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Operation.arguments is populated but nulls are sent This was built from scratch in Flex 2, never even had 1.5 installed. Not sure what you mean by 'build clean'. Where would flashlog.txt be? I will try clearing the bin folder tomorrow and see what happens. Thanks, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mchotin@ wrote: Maybe it's some odd timing problem? Any profiler settings from Flex 1.5 turned on? Have you looked to see if you have a flashlog.txt file that has any info in it? Running in the debugger (even with no breakpoints) would also let you see the output and if there's anything there. You've built clean I assume. Delete everything in the bin folder anyway (with FB closed) and see if that changes anything? Sounds strange, Matt From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Tuesday, August 15, 2006 11:54 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Operation.arguments is populated but nulls are sent OK, the issue seems to be isolated to my machine. The error began happening again, so I sent a coworker the link to the file on my machine. He can run the app successfully with no issues whatsoever, while I still cannot. I have tried clearing my cache, closing Flex Builder and restarting my machine but nothing seems to help. It seems like this has to be related to something getting screwed up on my machine because it also usually goes away by the time I come in the next day. Is there anything else I can try clearing or resetting? This has to be 'a bug', no? Thanks, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mchotin@ wrote: You should be calling op.send(), if you call GetDataByGrouping() you're ignoring the arguments. Matt From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Monday, August 14, 2006 2:14 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Operation.arguments is populated but nulls are sent I am having a very odd error, and it only happens sometimes. I am creating an object structure and then assigning that to the arguments property of my mx.rpc.soap.Operation object like this: op.arguments = args; I then call the SOAP method like this: var call:AsyncToken = service.GetDataByGrouping(); call.addResponder(responder); Sometimes (I've not figured out a pattern), Flex somehow loses all of the contents of the arguments property and sends nulls. It is sending the same number of nulls as there were properties though, so I am super confused. The Operation.arguments object is still populated with the correct data, but none of it gets sent. Does anyone have any idea what is going on here? I am pasting the entire method from my delegate below. // in the delegate constructor service = ServiceLocator.getInstance().getService(cmws) as WebService; // in the method called by my command class var op:Operation = service.getOperation(GetDataByGrouping) as Operation; op.resultFormat = e4x; // temp object to store arguments var args:Object = new Object(); args.groupingRequests = new Object();
[flexcoders] NetConnection Debugger for Flex2
Hi, I´m just starting to use Flex Builder 2 and the Flex2 SDK and my test application uses the RemoteObjectAMF0 to connect to AMFPHP 1.2 services. I´ve searched everywhere for a debugger like Flash's NetConnection debugger but couldn´t find anything similar. Isn´t there anything like this bundled with Flex2? Seems I will have to purchase Charles or ServiceCapture... :/ Thanks in advance, Marcelo. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: Web services or FDS: which are you using?
Ben, We have been huge proponents of using Web Services with Flex for nearly two years now. The majority of the applications we develop for folks use either SOAP or REST styled web services. Some of our clients do use CF and / or RemoteObject back-ends and we work into their infrastructures, but left to our own devices, our reccomendation has always been Web Services. -- Dave Wolf Cynergy Systems, Inc. Adobe Flex Alliance Partner http://www.cynergysystems.com http://www.cynergysystems.com/blogs Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: In my ongoing crusade to increase the attention given by Adobe to web service support in Flex, I decided to do a little impromptu survey. My feeling is that its a mistake to focus so heavily on FDS in regards to articles, tutorials and the like when such a small percentage of organizations will actually deploy the technology. So, which are you using? I am more interested in actual production apps, rather than personal projects used for learning or experimentation purposes. Personally, I am evaluating Flex as the front end for an application that relies heavily on .NET web services. Ben http://www.returnundefined.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: SOLVED: Operation.arguments is populated but nulls are sent
Spoke too soon. This fixes the issue in the debug files that FB generates, but if I view the non-debug files in IE I still get the same problem. Works fine in FF. Ben --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: OK, its definitely a timing issue. Rather than dispatching the next CairngormEvent (that triggers the new call) right in my result handler, I moved the event dispatch to another function, and am calling that with a Timer set to a 1 millisecond delay. Works perfectly. So I am not sure what exactly the issue is, but its definitely related to timing. Very odd because my arguments object was always correctly populated (so its not a matter of vars not being ready), but the XML request that Flex generates was all fubar. Thanks, Ben --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote: I mean do a Project Clean to rebuild the SWF from scratch. Flashlog.txt would be in c:\documents and settings\account\flashlog.txt by default, though you may not have it if it's not configured. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Tuesday, August 15, 2006 9:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Operation.arguments is populated but nulls are sent This was built from scratch in Flex 2, never even had 1.5 installed. Not sure what you mean by 'build clean'. Where would flashlog.txt be? I will try clearing the bin folder tomorrow and see what happens. Thanks, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mchotin@ wrote: Maybe it's some odd timing problem? Any profiler settings from Flex 1.5 turned on? Have you looked to see if you have a flashlog.txt file that has any info in it? Running in the debugger (even with no breakpoints) would also let you see the output and if there's anything there. You've built clean I assume. Delete everything in the bin folder anyway (with FB closed) and see if that changes anything? Sounds strange, Matt From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Tuesday, August 15, 2006 11:54 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Operation.arguments is populated but nulls are sent OK, the issue seems to be isolated to my machine. The error began happening again, so I sent a coworker the link to the file on my machine. He can run the app successfully with no issues whatsoever, while I still cannot. I have tried clearing my cache, closing Flex Builder and restarting my machine but nothing seems to help. It seems like this has to be related to something getting screwed up on my machine because it also usually goes away by the time I come in the next day. Is there anything else I can try clearing or resetting? This has to be 'a bug', no? Thanks, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mchotin@ wrote: You should be calling op.send(), if you call GetDataByGrouping() you're ignoring the arguments. Matt From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Monday, August 14, 2006 2:14 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Operation.arguments is populated but nulls are sent I am having a very odd error, and it only happens sometimes. I am creating an object structure and then assigning that to the arguments property of my mx.rpc.soap.Operation object like this: op.arguments = args; I then call the SOAP method like this: var call:AsyncToken = service.GetDataByGrouping(); call.addResponder(responder); Sometimes (I've not figured out a pattern), Flex somehow loses all of the contents of the arguments property and sends nulls. It is sending the same number of nulls as there were properties though, so I am super confused. The Operation.arguments object is still populated with the correct data, but none of it gets sent. Does anyone have any idea what is going on here? I am pasting the entire method from my delegate below. // in the
Re: [flexcoders] NetConnection Debugger for Flex2
Hi Marcelo, There is a post on this list back at end of June beginning July I think where I asked exactly the same question. One of the Adobe guys posted a trace function that does what you need. If you can't find the post I'll have a dig around and see if I can find the function when I have a moment. HTH Phil Marcelo de Moraes Serpa wrote: Hi, Im just starting to use Flex Builder 2 and the Flex2 SDK and my test application uses the RemoteObjectAMF0 to connect to AMFPHP 1.2 services. Ive searched everywhere for a debugger like Flash's NetConnection debugger but couldnt find anything similar. Isnt there anything like this bundled with Flex2? Seems I will have to purchase Charles or ServiceCapture... :/ Thanks in advance, Marcelo. -- __ Phil Marston Technology Enhanced Learning Centre for Learning Teaching University of Aberdeen Aberdeen AB24 3QY Email: [EMAIL PROTECTED] Tel: +44(0)1224 273329 Mob: +44(0)7798 723660 Web: http://www.abdn.ac.uk/clt/ __ The University of Aberdeen Open Day 29th August 2006 Booking is essential www.abdn.ac.uk/openday email [EMAIL PROTECTED] or call 0800 027 1495 __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] NetConnection Debugger for Flex2
Also, another thing that works (at least for me), is you can run the StandAlone version of the NetConnection Debugger that comes with Flash. I forget exactly where it is - but it's under that long directory structure, where all your Classes are located. Like "C:\Documents and Settings\username\Application Data\Macromedia\Flash 8\en\Configuration" - blah blah blah That directory probably isn't right - but you get the idea. I think there is a "swf" directory, somewhere in there, and that contains the auxiliary files that Flash uses to provide the interfaces for those such programs. AMF traffic is AMF traffic - so If I remember correctly, it doesn't care where it comes from, or which application you are running - and because of that, it should display some results when running Flex. Sorry I can't be more specific, but you should be able to find it (assuming you Flash installed, and it sounds like you do). Mike From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Phil MarstonSent: Wednesday, August 16, 2006 10:03 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] NetConnection Debugger for Flex2 Hi Marcelo,There is a post on this list back at end of June beginning July I think where I asked exactly the same question. One of the Adobe guys posted a trace function that does what you need. If you can't find the post I'll have a dig around and see if I can find the function when I have a moment.HTHPhilMarcelo de Moraes Serpa wrote: Hi, I´m just starting to use Flex Builder 2 and the Flex2 SDK and my test application uses the RemoteObjectAMF0 to connect to AMFPHP 1.2 services. I´ve searched everywhere for a debugger like Flash's NetConnection debugger but couldn´t find anything similar. Isn´t there anything like this bundled with Flex2? Seems I will have to purchase Charles or ServiceCapture... :/ Thanks in advance, Marcelo.-- __ Phil Marston Technology Enhanced Learning Centre for Learning Teaching University of Aberdeen Aberdeen AB24 3QY Email: [EMAIL PROTECTED] Tel: +44(0)1224 273329 Mob: +44(0)7798 723660 Web: http://www.abdn.ac.uk/clt/ __ The University of Aberdeen Open Day 29th August 2006 Booking is essential www.abdn.ac.uk/openday email [EMAIL PROTECTED] or call 0800 027 1495 __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: flex2 - how to cancel an event.preventDefault() in datagrid
i've modified my example to give me what i'm trying to achieve but its very ugly. [btw. i'm trying this approach because i should be able to do more sophisticated validations (asynchronous ones). without losing focus from the existing cell.] public function validateMe(event:DataGridEvent):void { var newData:String= TextInput(myGrid.itemEditorInstance).text; if(newData == ) { TextInput(myGrid.itemEditorInstance).errorString = ERROR; } else { // update dataprovider var record:Object=IList(myGrid.dataProvider).getItemAt(e.rowIndex); record[e.dataField] = TextInput(myGrid.itemEditorInstance).text; IList(myGrid.dataProvider).setItemAt(record, e.rowIndex); //destroy editor and setfocus to next cell myGrid.destroyItemEditor(); myGrid.editedItemPosition = {columnIndex:e.columnIndex+1, rowIndex:e.rowIndex}; } } --- In flexcoders@yahoogroups.com, bhaq1972 [EMAIL PROTECTED] wrote: Hi everyone, i'm trying a modified docs datgrid example where i call event.preventDefault() first, and then do the validation (example below). If the validation fails i show the errorString otherwise i want to continue. How do i cancel the event.preventDefault() (if that makes sense) regrds bod ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.controls.TextInput; import mx.events.*; [Bindable] public var initDG:Array = [{Company: 'Acme', Contact: 'Bob Jones', Phone: '413-555-1212', City: 'Boston', State: 'MA'}, {Company: 'Allied', Contact: 'Jane Smith', Phone: '617-555-3434', City: 'SanFrancisco', State: 'CA'} ]; public function validateData(event:DataGridEvent):void { event.preventDefault(); validateMe(event); } public function validateMe(event:DataGridEvent):void { var newData:String= TextInput(myGrid.itemEditorInstance).text; if(newData == ) { TextInput(myGrid.itemEditorInstance).errorString = ERROR; } else { // How do i cancel original preventDefault(); } } ]] /mx:Script mx:DataGrid id=myGrid dataProvider={initDG} editable=true itemEditEnd=validateData(event) mx:columns mx:DataGridColumn dataField=Company editable=false/ mx:DataGridColumn dataField=Contact/ mx:DataGridColumn dataField=Phone/ mx:DataGridColumn dataField=City/ mx:DataGridColumn dataField=State/ /mx:columns /mx:DataGrid /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] FDS, VOs, and ignoring client-side properties
We're using FDS on our project, and we're using a single DataStore with autoCommit=false on all of our DataServices. This way, we're able to have a single, application-wide save button to commit all the latest changes. This save button is enabled based upon on the DataStores' commitRequired property. In a few of my VOs, I have properties that do not have a corresponding property in my server-side POJO. The reson is that these properties are strictly used for keeping track of client-side state and are not persisted in our database. My problem is this: setting these properties on the client causes commitRequired to become true on our DataStore. This is sort of annyoing, as there really are no changes that need to be persisted. Of course, hitting the save button sends back the objects to the server where they are simply ignored because nothing has actually changed on them. So is there a way that I can force these properties to be ignored? Is there some type of undocumented metadata tag that I'm missing? I seem to remember something similar in Flex 1.5 to make serialization ignore a property, but this is a slightly different case. Jim -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Subversion SVN and the bin directory problems - copied .svn dirscausing confict
On Tuesday 15 August 2006 20:59, Jason wrote: conflict with the bin folder due to the copied .svn folders. I have gottern around it ATM by adding the bin directory to my ignore list in Tortoise SVN. It would be normal practice to not have your compilation targets (binary files) under version control, only your source files. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] XML parser chokes on un-typed xmlns
Hi everyone, I am having some difficulty parsing .Net web service results. The problem lies in the fact that Flexs XML parser doesnt like un-typed xmlns declarations of the type found by default in .Net web services. Try the following: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute creationComplete=doIt() mx:Script ![CDATA[ function doIt(){ var myXML:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema soap:Body a xmlns:soap=http://tempuri.org/ bHi/b /a /soap:Body /soap:Envelope trace(Node B from myXML: +myXML.descendants(b)); var myXML2:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema soap:Body a xmlns=http://tempuri.org/ bHi/b /a /soap:Body /soap:Envelope trace(Node B from myXML2: +myXML2.descendants(b)); } ]] /mx:Script /mx:Application This code results in the following traces: Node B from myXML: Hi Node B from myXML2: As you can see, the only difference between the two blocks of XML is that the successful one uses xmlns:soap= while the unsuccessful one uses xmlns=. While I am no SOAP expert, I dont believe the 2nd one is invalid syntax, so there should be no reason for the XML parser to ignore it, right? Anyone have a workaround for me that doesnt require modifying the web services? (I dont have administrative access to them). Thanks! -tom __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] SOT: Flash Player 9 distribution
On Monday 14 August 2006 21:04, Rick Root wrote: http://www.macromedia.com/go/getflashplayer Is there not a downloadable installer if you fill in the forms linked from the bottom of http://www.adobe.com/licensing/distribution/ ? -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] decimal numbers in financial applications
Dear Group, Java BigDecimal serialization to and from the Flash client appears very broken. At best I'd say it's just incomplete. How do those of you who write financial applications with currency or just simple applications which need fixed decimal support deal with this? For example, a number of 1.92 sent to the server in a Number ends up as 1.9199289457264239899814128875732421875 in the BigDecimal on the other end. If my BigDecimal had a scale of 2 the result is 1.91. I understand that Number is an IEEE-754 double-precision floating-point number, which is the problem here. If Flex is marketed as a piece of business software without good support for dollars and cents, fixed decimal numbers, accurate currency, in short - financial data which drives the business! (Having BigDecimal mentioned in the serialization documentation is so wrong in my mind with this kind of behavior.) Is there something I am missing? Is there a way to make this work correctly? If not, it looks as though I need to port BigDecimal to Actionscript. Thank you for your consideration. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Deserializing WebService call... Flex/Cairngorm
Yes, I'm not sure of the specifics myself but from my exploratory rummaging in the docs it looks like FDS handles all of that mapping. As I am using .NET on the server it looks like manual deserialization into my objects is the way forward. I have begun implementing my app with the factory methods you suggested and all appears to be working well. Shame I can't get the object mapping without using Java/FDS. Perhaps once I have got to grips with it a bit more I might look into writing some sort of component for the web service users amongst us, which , judging by the volume of posts on this group regarding web services, amounts to a fair few folk. Cheers Graham --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: There is a decent chance I am wrong about this but I think when you use RemoteObject with FDS you set up some sort of Java - AS class mapping in a config file. Ben --- In flexcoders@yahoogroups.com, grahampengelly graham@ wrote: Thanks Ben Franck for your help. Like you Franck I couldn't see why it would work to cast one completely unrelated thing to another but this is the way it appeared to be being done in the samples. Of course, what I hadn't got to grips with is that the two samples that I was studying are both using RemoteObject rather than WebService calls and consequently are returning something that can be cast... Thanks... Graham --- In flexcoders@yahoogroups.com, ben.clinkinbeard ben.clinkinbeard@ wrote: Nothing definitive here but I do have a couple of suggestions. Any time I see ObjectProxy mentioned in an error description, I immediately wonder if makeObjectsBindable is at fault. Try setting it to false on your WS and see what happens. Personally, I always use e4x as my resultFormat (for various reasons), so I don't have experience casting to a custom object but if you do end up needing to use Franck's suggested methodology I would certainly recommend creating a factory that will accept the SOAP return values and return an instance of your custom object. HTH, Ben --- In flexcoders@yahoogroups.com, grahampengelly graham@ wrote: I am just getting up to speed with the Cairngorm architecture and have been struggling with this problem for a while. I have got to the point where I am getting a response from my web service call that has the data in that I expect but I cannot seem to get it to deserialize into the object that I need. The code (I have used IResponder rather than the cairngorm Responder here as suggested during an earlier post here http://groups.yahoo.com/group/flexcoders/message/47366 ) public function result( data:Object ):void { var event:ResultEvent = data as ResultEvent; var testString:String = ; for each(var thing:Object in event.result) { testString += + thing + ; } //test alert 1 Alert.show(testString); //test alert 2 Alert.show(event.result.Id = + event.result.Id + , event.result.Name = + event.result.Name); var tObj:TestObj = event.result as TestObj; Alert.show(TestObj.Id = + tObj.Id); } The test alerts print out: test 1: Graham 1 test 2: event.result.Id = 1, event.result.Name = Graham The subsequent line throws an exception: TypeError: Error #1034: Type Coercion failed: cannot convert mx.utils::[EMAIL PROTECTED] to HASAW.ClientApp.Model.TestObj. The object that I am trying to create from the results looks like this: public class TestObj implements ValueObject { public var Id:int; public var Name:String; public function TestObj() { Id = 0; Name = ; } } I have tried various implementations and can't get the web service response to cast to TestObj. To be honest, I wouldn't have thought that it should cast to TestObj but I have followed all of the code samples for Cairngorm and they all do it like this. I am using .NET for the web service which may be an issue as the samples don't. It is returning the following SOAP in event.result.body ?xml version=1.0 encoding=utf-8 ? - # soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; soap:Body - # GetTesterResponse xmlns= - # GetTesterResult Id1/Id NameGraham/Name/GetTesterResult /GetTesterResponse
Re: [flexcoders] SOT: Flash Player 9 distribution
Try this link: http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash HTH, Alias On 8/14/06, Rick Root [EMAIL PROTECTED] wrote: I don't want to have to tell my client base *NOT* to download the Yahoo Toolbar, and it annoys the heck out of me that Adobe puts that on their download page and checks it by default. Are there any other options besides directing people to the adobe page herE: http://www.macromedia.com/go/getflashplayer Rick -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Deserializing WebService call... Flex/Cairngorm
I think that there is a difference in the return types of Remote objects and WebServices. I dont have any experience with remote objects, but its a Flex/Flash/CFC/FDS proprietary protocol I guess. And by nature, proprietary protocols are often much more powerful. For sure, with web services, you get a dynamic object that you cannot cast to anything. Cheers, Franck From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of grahampengelly Sent: Wednesday, August 16, 2006 11:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Deserializing WebService call... Flex/Cairngorm Thanks Ben Franck for your help. Like you Franck I couldn't see why it would work to cast one completely unrelated thing to another but this is the way it appeared to be being done in the samples. Of course, what I hadn't got to grips with is that the two samples that I was studying are both using RemoteObject rather than WebService calls and consequently are returning something that can be cast... Thanks... Graham --- In [EMAIL PROTECTED]ups.com, ben.clinkinbeard ben.clinkinbeard@... wrote: Nothing definitive here but I do have a couple of suggestions. Any time I see ObjectProxy mentioned in an error description, I immediately wonder if makeObjectsBindable is at fault. Try setting it to false on your WS and see what happens. Personally, I always use e4x as my resultFormat (for various reasons), so I don't have experience casting to a custom object but if you do end up needing to use Franck's suggested methodology I would certainly recommend creating a factory that will accept the SOAP return values and return an instance of your custom object. HTH, Ben --- In [EMAIL PROTECTED]ups.com, grahampengelly graham@ wrote: I am just getting up to speed with the Cairngorm architecture and have been struggling with this problem for a while. I have got to the point where I am getting a response from my web service call that has the data in that I expect but I cannot seem to get it to deserialize into the object that I need. The code (I have used IResponder rather than the cairngorm Responder here as suggested during an earlier post here http://groups.yahoo.com/group/flexcoders/message/47366 ) public function result( data:Object ):void { var event:ResultEvent = data as ResultEvent; var testString:String = ; for each(var thing:Object in event.result) { testString += + thing + ; } //test alert 1 Alert.show(testString); //test alert 2 Alert.show(event.result.Id = + event.result.Id + , event.result.Name = + event.result.Name); var tObj:TestObj = event.result as TestObj; Alert.show(TestObj.Id = + tObj.Id); } The test alerts print out: test 1: Graham 1 test 2: event.result.Id = 1, event.result.Name = Graham The subsequent line throws an exception: TypeError: Error #1034: Type Coercion failed: cannot convert mx.utils::ObjectPro[EMAIL PROTECTED] to HASAW.ClientApp.Model.TestObj. The object that I am trying to create from the results looks like this: public class TestObj implements ValueObject { public var Id:int; public var Name:String; public function TestObj() { Id = 0; Name = ; } } I have tried various implementations and can't get the web service response to cast to TestObj. To be honest, I wouldn't have thought that it should cast to TestObj but I have followed all of the code samples for Cairngorm and they all do it like this. I am using .NET for the web service which may be an issue as the samples don't. It is returning the following SOAP in event.result.body ?xml version=1.0 encoding=utf-8 ? - # soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema soap:Body - # GetTesterResponse xmlns= - # GetTesterResult Id1/Id NameGraham/Name /GetTesterResult /GetTesterResponse /soap:Body /soap:Envelope I know I could manually populate the object with the values but the objects I will be deserializing in the application are much more complex than this which would make a manual approach a pain. Thanks in advance... Graham __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO!
RE: [flexcoders] Re: Deserializing WebService call... Flex/Cairngorm
It would be great if we would have some component that could handle this, but Im afraid itll be extremely hard to accomplish: You would need some sort of a reflection API, and Im not sure if that exists in Flash/Flex. Itll be tricky to deal with nested custom objects and collections of nested custom objects Plus, there are always these subtle naming issues. It would be no option for me to start writing XML-files and the like in order to make the conversion automatic. Then, its better to program the conversions out in your own factory ActionScript methods. Another cue you could follow is to have the conversions automatically generated. Thats what Im after ... Cheers, Franck From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of grahampengelly Sent: Wednesday, August 16, 2006 5:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Deserializing WebService call... Flex/Cairngorm Yes, I'm not sure of the specifics myself but from my exploratory rummaging in the docs it looks like FDS handles all of that mapping. As I am using .NET on the server it looks like manual deserialization into my objects is the way forward. I have begun implementing my app with the factory methods you suggested and all appears to be working well. Shame I can't get the object mapping without using Java/FDS. Perhaps once I have got to grips with it a bit more I might look into writing some sort of component for the web service users amongst us, which , judging by the volume of posts on this group regarding web services, amounts to a fair few folk. Cheers Graham --- In [EMAIL PROTECTED]ups.com, ben.clinkinbeard ben.clinkinbeard@... wrote: There is a decent chance I am wrong about this but I think when you use RemoteObject with FDS you set up some sort of Java - AS class mapping in a config file. Ben --- In [EMAIL PROTECTED]ups.com, grahampengelly graham@ wrote: Thanks Ben Franck for your help. Like you Franck I couldn't see why it would work to cast one completely unrelated thing to another but this is the way it appeared to be being done in the samples. Of course, what I hadn't got to grips with is that the two samples that I was studying are both using RemoteObject rather than WebService calls and consequently are returning something that can be cast... Thanks... Graham --- In [EMAIL PROTECTED]ups.com, ben.clinkinbeard ben.clinkinbeard@ wrote: Nothing definitive here but I do have a couple of suggestions. Any time I see ObjectProxy mentioned in an error description, I immediately wonder if makeObjectsBindable is at fault. Try setting it to false on your WS and see what happens. Personally, I always use e4x as my resultFormat (for various reasons), so I don't have experience casting to a custom object but if you do end up needing to use Franck's suggested methodology I would certainly recommend creating a factory that will accept the SOAP return values and return an instance of your custom object. HTH, Ben --- In [EMAIL PROTECTED]ups.com, grahampengelly graham@ wrote: I am just getting up to speed with the Cairngorm architecture and have been struggling with this problem for a while. I have got to the point where I am getting a response from my web service call that has the data in that I expect but I cannot seem to get it to deserialize into the object that I need. The code (I have used IResponder rather than the cairngorm Responder here as suggested during an earlier post here http://groups.yahoo.com/group/flexcoders/message/47366 ) public function result( data:Object ):void { var event:ResultEvent = data as ResultEvent; var testString:String = ; for each(var thing:Object in event.result) { testString += + thing + ; } //test alert 1 Alert.show(testString); //test alert 2 Alert.show(event.result.Id = + event.result.Id + , event.result.Name = + event.result.Name); var tObj:TestObj = event.result as TestObj; Alert.show(TestObj.Id = + tObj.Id); } The test alerts print out: test 1: Graham 1 test 2: event.result.Id = 1, event.result.Name = Graham The subsequent line throws an exception: TypeError: Error #1034: Type Coercion failed: cannot convert mx.utils::ObjectPro[EMAIL PROTECTED] to HASAW.ClientApp.Model.TestObj. The object that I am trying to create from the results looks like this: public class TestObj implements ValueObject { public var Id:int; public var Name:String; public function TestObj() { Id = 0; Name = ; } } I have tried various implementations and can't get the web service response to cast to TestObj. To be honest, I wouldn't have thought that it should cast to
[flexcoders] Passing multiselect list to cfc
I am using a multi select list that holds all the states for the US. I need to pass the selected states to my cfc, but first I am trying to see how the information will be passed. Currently I am testing with the code below, but the code does not work. It does not display anything inside of the alert. Can someone show me what I am doing wrong. mx:Script ![CDATA[ import mx.utils.ObjectUtil; import mx.controls.Alert; private function test(){ Alert.show(stateList.selectedItems.label) } ]] /mx:Script -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Vertical TabNavigator or TabBar
It seems like this should be easy, but so far I am not making much progress.I am looking to create a tabNavigator or tabBar with a 90 degree rotation.I've tried using embedded fonts but when I do the rotation the text does not show. Any help is appreciated.Steve __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: XML parser chokes on un-typed xmlns
http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-flex-2as3/ Ben http://www.returnundefined.com/ --- In flexcoders@yahoogroups.com, Tom Lee [EMAIL PROTECTED] wrote: Hi everyone, I am having some difficulty parsing .Net web service results. The problem lies in the fact that Flex's XML parser doesn't like un-typed xmlns declarations of the type found by default in .Net web services. Try the following: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=doIt() mx:Script ![CDATA[ function doIt(){ var myXML:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; soap:Body a xmlns:soap=http://tempuri.org/ bHi/b /a /soap:Body /soap:Envelope trace(Node B from myXML: +myXML.descendants(b)); var myXML2:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; soap:Body a xmlns=http://tempuri.org/ bHi/b /a /soap:Body /soap:Envelope trace(Node B from myXML2: +myXML2.descendants(b)); } ]] /mx:Script /mx:Application This code results in the following traces: Node B from myXML: Hi Node B from myXML2: As you can see, the only difference between the two blocks of XML is that the successful one uses xmlns:soap= while the unsuccessful one uses xmlns=. While I am no SOAP expert, I don't believe the 2nd one is invalid syntax, so there should be no reason for the XML parser to ignore it, right? Anyone have a workaround for me that doesn't require modifying the web services? (I don't have administrative access to them). Thanks! -tom -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
re: [flexcoders] Re: MediaPlayback for Flex 2
You can use normal buttons and make them into a mediaPlayback component. I belive the syntax for stopiing video is VideoComponentId.play() and etc From: "Bruno Martins" [EMAIL PROTECTED]Sent: Tuesday, August 15, 2006 5:07 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: MediaPlayback for Flex 2 I know that the MediaDisplay now is the VideoDisplay but I need the MediaPlayback witch is a component that use the MediaDisplay and MediaController, however the Flex Framework 2 don't have any substitute to the MediaController and also the MediaPlayback. On 8/15/06, Renaun Erickson [EMAIL PROTECTED]com wrote: Name change "VideoDisplay" now.http://livedocs.macromedia.com/flex/2/langref/mx/controls/VideoDisplay.html --- In [EMAIL PROTECTED]ups.com, "Bruno Martins" [EMAIL PROTECTED] wrote: Any one know where I can find it? Tks.. -- Bruno Gustavo Martins Office: (11)3443-9527 experience everywhere http://www.dclick.com.br/blog -- Bruno Gustavo Martins Office: (11)3443-9527experience everywherehttp://www.dclick.com.br/blog -- Bruno Gustavo MartinsOffice: (11)3443-9527experience everywherehttp://www.dclick.com.br/blog __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: ViewStack.addChild // Code Check // Error
AHA! I figured out my own problem which always feels great. I was making the problem more complex than it was. So, just extended the ViewStack with each view (WebUserView and ManagerView), then since that already extends UIComponent and DisplayObject, I went ahead and just popped it on as a child to my VBox and voila. Now, I'll just feed it a parameter instead of a hard value. Solution below for anyone who may have the same problem! ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:view=com.desktopae.view.* minHeight=600 minWidth=990 creationComplete=init() mx:Style source=assets/css/global.css / mx:Script ![CDATA[ import com.desktopae.view.*; private var webUserView:WebUserView; private var managerView:ManagerView; private function init():void{ webUserView = new WebUserView(); mainVBox.addChild(webUserView); } ]] /mx:Script mx:VBox id=mainVBox height=600 width=990 top=20 styleName=applicationVBox mx:ApplicationControlBar dock=true width=100% mx:Image source=assets/img/desktopaelogo.gif / /mx:ApplicationControlBar /mx:VBox -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Parent Application Space?
I'm not sure what you are asking, but if you write an MXML component -- call it AddressForm.mxml -- like this mx:Form mx:TextInput mx:TextInput mx:Button /mx:Form then this gets transformed into public class AddressForm extends Form { ... } The file name becomes the class name. The top tag name becomes the base class name. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Samuel D. Colak Sent: Wednesday, August 16, 2006 5:29 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Parent Application Space? I mean the derived type not the class with the same name as the project. On 16/8/06 12:05, Samuel D. Colak [EMAIL PROTECTED]at-home.com wrote: Matt / All, Under the definition of an MXML object, what is the object type? Regards Samuel __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: XML parser chokes on un-typed xmlns
Thanks, Ben - I've seen this before (I believe you directed me to this page on a previous issue). However, I don't understand how it applies to my particular problem - how would you fix my example using the namespace directive? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, August 16, 2006 12:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-fl ex-2as3/ Ben http://www.returnundefined.com/ --- In flexcoders@yahoogroups.com, Tom Lee [EMAIL PROTECTED] wrote: Hi everyone, I am having some difficulty parsing .Net web service results. The problem lies in the fact that Flex's XML parser doesn't like un-typed xmlns declarations of the type found by default in .Net web services. Try the following: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=doIt() mx:Script ![CDATA[ function doIt(){ var myXML:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; soap:Body a xmlns:soap=http://tempuri.org/ bHi/b /a /soap:Body /soap:Envelope trace(Node B from myXML: +myXML.descendants(b)); var myXML2:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; soap:Body a xmlns=http://tempuri.org/ bHi/b /a /soap:Body /soap:Envelope trace(Node B from myXML2: +myXML2.descendants(b)); } ]] /mx:Script /mx:Application This code results in the following traces: Node B from myXML: Hi Node B from myXML2: As you can see, the only difference between the two blocks of XML is that the successful one uses xmlns:soap= while the unsuccessful one uses xmlns=. While I am no SOAP expert, I don't believe the 2nd one is invalid syntax, so there should be no reason for the XML parser to ignore it, right? Anyone have a workaround for me that doesn't require modifying the web services? (I don't have administrative access to them). Thanks! -tom -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] dispatching events on a change of a variable
Hi! I'm passing a string to my component with view:myComponent myVar=some string/ What I would like to do now is the following. When the value of myVar changes I would like to dispatch an event, which would tell me the current value of myVar. But now I don't know how to register this type on an event in myComponent so it will be fired every time the myVar changes. Can someone help me out? I'm really lost with these events and I looked thru Adobe Developmnent Guide but nothing usefull. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: XML parser chokes on un-typed xmlns
More explanation... Tom, the behavior you saw was correct. In your first case, defining the soap namespace prefix on a doesn't affect b, because b has no namespace prefix and is therefore in the undefined default namespace, not in the soap namespace. In your second case, you are defining a default namespace on a, which affects the child tag b. So descendants(b) doesn't find b. I didn't look at Ben's links, but they presumably explain how to programmatically access tags and attributes when you define a default namespace. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of ben.clinkinbeard Sent: Wednesday, August 16, 2006 9:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-flex-2as3/ Ben http://www.returnundefined.com/ --- In flexcoders@yahoogroups.com, Tom Lee [EMAIL PROTECTED] wrote: Hi everyone, I am having some difficulty parsing .Net web service results. The problem lies in the fact that Flex's XML parser doesn't like un-typed xmlns declarations of the type found by default in .Net web services. Try the following: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute creationComplete=doIt() mx:Script ![CDATA[ function doIt(){ var myXML:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema soap:Body a xmlns:soap=http://tempuri.org/ bHi/b /a /soap:Body /soap:Envelope trace(Node B from myXML: +myXML.descendants(b)); var myXML2:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema soap:Body a xmlns=http://tempuri.org/ bHi/b /a /soap:Body /soap:Envelope trace(Node B from myXML2: +myXML2.descendants(b)); } ]] /mx:Script /mx:Application This code results in the following traces: Node B from myXML: Hi Node B from myXML2: As you can see, the only difference between the two blocks of XML is that the successful one uses xmlns:soap= while the unsuccessful one uses xmlns=. While I am no SOAP expert, I don't believe the 2nd one is invalid syntax, so there should be no reason for the XML parser to ignore it, right? Anyone have a workaround for me that doesn't require modifying the web services? (I don't have administrative access to them). Thanks! -tom __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] dispatching events on a change of a variable
You would use an implicit setter... like so...myComponent.mxmlprivate var _myVar:ValueType;public function set myVar(value:ValueType):void{ if(value != null) { _myVar = value; callSomeFunction(); //because this setter gets called whenever myVar is updated on myComponent, this function will get called }}For more info, do a search on implicit getters and setters. HTH,BrendanOn 8/16/06, arnold_charming [EMAIL PROTECTED] wrote: Hi! I'm passing a string to my component with view:myComponent myVar=some string/ What I would like to do now is the following. When the value of myVar changes I would like to dispatch an event, which would tell me the current value of myVar. But now I don't know how to register this type on an event in myComponent so it will be fired every time the myVar changes. Can someone help me out? I'm really lost with these events and I looked thru Adobe Developmnent Guide but nothing usefull. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: Web services or FDS: which are you using?
this is actually a topic I've wondered about. I'm using RemoteObjects with CF/Java as it is just uber kewl to have this serialisation of AS-Java/CFC. Using webservices you lose this kewlness, but is it really a missed thing for you all using web services? Or maybe its the application type that can drive this, eh? A phat Flex app with some really large forms and complex data model my scream for Remote Objects, but a Flex app doing more display of data may not. ??? DKOn 8/16/06, Dave Wolf [EMAIL PROTECTED] wrote: Ben,We have been huge proponents of using Web Services with Flex fornearly two years now.The majority of the applications we develop forfolks use either SOAP or REST styled web services.Some of our clients do use CF and / or RemoteObject back-ends and we work into their infrastructures, but left to our own devices, ourreccomendation has always been Web Services.--Dave WolfCynergy Systems, Inc.Adobe Flex Alliance Partner http://www.cynergysystems.comhttp://www.cynergysystems.com/blogsEmail:[EMAIL PROTECTED]Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, ben.clinkinbeard[EMAIL PROTECTED] wrote: In my ongoing crusade to increase the attention given by Adobe to web service support in Flex, I decided to do a little impromptu survey. My feeling is that its a mistake to focus so heavily on FDS in regards to articles, tutorials and the like when such a small percentage of organizations will actually deploy the technology. So, which are you using? I am more interested in actual production apps, rather than personal projects used for learning or experimentation purposes. Personally, I am evaluating Flex as the front end for an application that relies heavily on .NET web services. Ben http://www.returnundefined.com/ --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: ASDoc now available on Labs
Hi Brian, I found out what was causing this strange error. There was an invalid attribute in the class comment that causes this error. There was an @description just like in the example : /** * Comments * @description * Comments */ I removed the @description and everthing is working fine now. thanks, Ricardo. --- In flexcoders@yahoogroups.com, Brian Deitte [EMAIL PROTECTED] wrote: Hi Ricardo, that looks like a different issue. Can you remove your package parameters and see if this fixes it? Do you have any special characters used with a package parameter? -Brian -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ricardopettine Sent: Tuesday, August 15, 2006 2:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ASDoc now available on Labs Hi, I was getting the same error The definition is in circular inheritance when using the doc-sources option. I tried to use the doc-classes and I got the following error for some classes: Loading configuration file D:\Java\Adobe\Flex Builder 2 Plug- in\Flex SDK 2\frame works\flex-config.xml An unexpected error occurred. Error #1085: The element type shortDescription must be terminated by the match ing end-tag /shortDescription. XSLT Error (javax.xml.transform.TransformerException): java.io.FileNotFoundException: output pathtoplevel_classes.xml Any ideas? thanks, Ricardo. --- In flexcoders@yahoogroups.com, Brian Deitte bdeitte@ wrote: Hi, I would just stick to doc-classes then. :) Well, I'm not sure why you'd get that with doc-sources. The compiler believes that you have something similar to a class A which extends B which extends A. If you could send me the files you use to reproduce this or a smaller test case, I can look into this for a later release. -Brian -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Williams Sent: Monday, August 14, 2006 3:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ASDoc now available on Labs Any Idea what would fire off the following: Error: The definition is in circular inheritance. I can get it going by specifying individual classes but when I use - doc-sources I get an output of a few of those errors. --- In flexcoders@yahoogroups.com, Brian Deitte bdeitte@ wrote: And I'll be trying to awaken myself from my hibernation on flexcoders, so if you have any questions about it, fire away. -Brian -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] XMPP AS3 class libraries on Labs
Hi there, I started playing around with the available XMPP(Jabber) classes on Labs but I've got some errors. Are those still under development or can already be used? Thanks, João Fernandes __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] decimal numbers in financial applications
We're considering adding decimal arithmetic to a future release, but I'm afraid that currently neither the player nor the Flex framework offers this. Decimal arithmetic is not a feature of _javascript_ or ECMAScript, the languages that we've based ActionScript on. So I'm curious how developers writing financial web applications in HTML and _javascript_ solve this problem. One way to deal with large numbers is to treat them as Strings and do all decimal arithmetic on the server, but that probably isn't practical for you. Another way might be to use Number to exactly store integral cents rather than fractional dollars. I believe you can store integers up to about 2^52 in a Number. It sounds like the docs are misleading... where exactly did you read about BigDecimal, so I can have the doc team review what they say? - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of busitech Sent: Wednesday, August 16, 2006 9:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] decimal numbers in financial applications Dear Group, Java BigDecimal serialization to and from the Flash client appears very broken. At best I'd say it's just incomplete. How do those of you who write financial applications with currency or just simple applications which need fixed decimal support deal with this? For example, a number of 1.92 sent to the server in a Number ends up as 1.9199289457264239899814128875732421875 in the BigDecimal on the other end. If my BigDecimal had a scale of 2 the result is 1.91. I understand that Number is an IEEE-754 double-precision floating-point number, which is the problem here. If Flex is marketed as a piece of business software without good support for dollars and cents, fixed decimal numbers, accurate currency, in short - financial data which drives the business! (Having BigDecimal mentioned in the serialization documentation is so wrong in my mind with this kind of behavior.) Is there something I am missing? Is there a way to make this work correctly? If not, it looks as though I need to port BigDecimal to Actionscript. Thank you for your consideration. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Passing multiselect list to cfc
Jeremy,selectedItems is an array, so in order to display your selections, you'd have to loop the selectedItems value instead:for(var i:int = 0; i stateList.selectedItems.length; i++){ trace(selection + i + = + stateList.selectedItems[i].label);}BrendanOn 8/16/06, Jeremy Rottman [EMAIL PROTECTED] wrote: I am using a multi select list that holds all the states for the US. I need to pass the selected states to my cfc, but first I am trying to see how the information will be passed. Currently I am testing with the code below, but the code does not work. It does not display anything inside of the alert. Can someone show me what I am doing wrong. mx:Script ![CDATA[ import mx.utils.ObjectUtil; import mx.controls.Alert; private function test(){ Alert.show(stateList.selectedItems.label) } ]] /mx:Script __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] dispatching events on a change of a variable
http://www.onflex.org/code/2006/08/mxml-writing-your-own-mutators-by.htmlhttp://www.onflex.org/ is a grat place for some code snippet examples.DKOn 8/16/06, arnold_charming [EMAIL PROTECTED] wrote:Hi!I'm passing a string to my component withview:myComponent myVar=some string/ What I would like to do now is the following. When the value of myVarchanges I would like to dispatch an event, which would tell me thecurrent value of myVar. But now I don't know how to register this type on an event in myComponent so it will be fired every time the myVarchanges. Can someone help me out? I'm really lost with these eventsand I looked thru Adobe Developmnent Guide but nothing usefull. --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/-- Douglas Knudsenhttp://www.cubicleman.com this is my signature, like it? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: Sample project for CRUD type application
It works one way - from the datasource to the text property. I am comming to flex as a VB programmer and I was looking to create a setup that was more like the traditional bound recordset type system. What I did instead was create my own datasource that has the concept of selectedItem and all the other things I need. Then I had to extend all the controls to add in binding inside the controls (so I just set dataProvider={mydatasource} dataPath=fieldIwant on the control. took a little extra work and I had to learn more of the framework that I anticipated (also had some help from some experts). But it is working well now and I have to write about 1/2 the code I would have the other way. --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 31 July 2006 17:50, Douglas Knudsen wrote: mx:Binding source={ myModel.foo } destination=myTextControl.text / mx:Binding source={myTextControl.text} destination=myModel.foo / mx:Text id=myTextControl / Does mx:Text id=myTextControl text={myModel.foo} / not work ? -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Returning query results to flex from CFC
old thread here...but...I just built a example app for my team here to share some Flex luv. Its a simple plain-jane datagrid populated with 500 rows from a database. I made three versions of the app:1) Using remoteobject and typed objects CFC to AS. 2) Using a REST call to return XML via a HTTPService3) Using a WebService to return untyped objects, Structs.#2 whipped the pants off 1 and was a bit faster then 3. I was really expecting 1 to be faster with all the AMF talk and all. I suppose 1 has a bit of over head on bith ends though to handle the objects. DKOn 7/25/06, Shannon Hicks [EMAIL PROTECTED] wrote: Actually, if you're using 7.02, you're wasting bandwidth if you consume CFC's via webservice instead of remoteobject. When you call a CFC via a remoteobject, CF does all the conversions for you as the data passes through the flashgateway. Also, when you're binding data, you should always use an ArrayCollection... using LastResult isn't reliable, according to Adobe. Shan From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of ericonansonSent: Monday, July 24, 2006 8:54 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: Returning query results to flex from CFC Using CF 7.02 and Datagrids is very easy now! Remember that the column names come through in CAPS. Example I wrote after the Flex Data Services session to test the speed of webservices. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxml layout=absolute !-- setup the webservice to call -- mx:WebService id=wsc wsdl= http://www.getpaidtoseeads.com/seeEmail.cfc?wsdl showBusyCursor=true useProxy=false !-- this allows for a parameter to be passed I am sending the MaxRows parameter in the cfquery tag -- mx:operation name=GetPostalCode mx:request xmlns= MaxRow {cbxMaxRow.value} /MaxRow /mx:request /mx:operation /mx:WebService !-- this is a combo box to select the rows to bring in -- mx:Button label=Get Records click=wsc.GetPostalCode.send() left= 412 top=10/ mx:ComboBox id=cbxMaxRow left=100 top=10 mx:Object label=100 value=100 / mx:Object label=500 value=500 / mx:Object label=1000 value=1000 / mx:Object label=1 value=1 / mx:Object label=2 value=2 / mx:Object label=4 value=4 / /mx:ComboBox !-- here is the easy part! see how the dataprovider is the webservice no extra arraycollection needed Format is webservice id then method or function name then lastResult-- mx:DataGrid id=dgEmail width=816 height=469 dataProvider={wsc.GetPostalCode.lastResult} x= 50 y=100 mx:columns !-- see how my dataField names are in caps it will not show data without that CF and FLex work that way -- mx:DataGridColumn headerText=Subscriber dataField= PKID/ mx:DataGridColumn headerText=Postal Code dataField= POSTALCODE/ mx:DataGridColumn headerText=Province dataField= PROVINCE/ /mx:columns /mx:DataGrid /mx:Application See if that makes life easier for you and all the CFer's out there. Kindest Regards, Eric --- In flexcoders@yahoogroups.com, michrx7 [EMAIL PROTECTED] wrote: I am trying to populate a datagrid with results from a cfc. This should be simple. I have written the simply Hello World cfc and gotten the string to display, but am really struggling getting a query to return and display. If someone would help it would be appreciated. Here is my CFC (getInfo.cfc): CFCOMPONENT displayname=admin_rpt_AllMembers CFFUNCTION name=getCompany access=remote returntype=query CFQUERY datasource=myDatabase name=getMem SELECT cvcontactID, cvcontactLast, cvcontactFirst FROM cvContact /CFQUERY CFRETURN getMem /CFFUNCTION /CFCOMPONENT Pretty straightforward as I'm only selecting some simple info out of the database. Now I have my flex app that should call the cfc, return the query, and list the info into a simple datagrid. Now I know it's making the calls to the cfc (using simple Alert.show() calls), but I can't get the data to display. Here is my mxml flex file: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical creationComplete=initApp(); mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.rpc.events.*; import mx.controls.Alert; [Bindable] public var companyInfo:ArrayCollection = null; public function initApp():void { myService.getCompany(); } public function resultHandler(event:ResultEvent):void { var p1:ArrayCollection = new ArrayCollection(); p1.source = event.result as Array; companyInfo = p1; } ]] /mx:Script mx:RemoteObject id=myService destination=ColdFusion source=admin_rpt_AllMembers showBusyCursor=true mx:method name=getCompany result=resultHandler (event) fault=Alert.show(event.fault.message)/ /mx:RemoteObject mx:DataGrid name=myGrid id=myGrid width=100% height=100% dataProvider={companyInfo} mx:columns mx:DataGridColumn headerText=ID dataField=cvcontactID/ mx:DataGridColumn headerText=Last Name
[flexcoders] Re: decimal numbers in financial applications
Gordon, Thank you very much for the reply. I'm very surprised that the decision was made at some point that support for fixed decimal numbers was not absolutely an essential and required part of the product and framework before release, when targeting the enterprise customer. We need an immediate solution beyond dumbing down the client side to only use strings. So much functionality would be given up in that scenario that I'd be ashamed and embarrased of our product in the end. I'm considering creating a port to Actionscript of BigDecimal for Javascript which is an open source project. See http://freshmeat.net/projects/js_bigdecimal/ Custom serialization is outlined on pg 1098 of the Developer's Guide. I'm hoping I can extend BigDecimal and implement Externalizable, create a new similar object in Actionscript, and get them to serialize/deserialize correctly. Hopefully there's nothing in the Java adapter standing in the way of making this work... Any help or advice on this would be appreciated. The BigDecimal is mentioned on page 1091 of the Developer's Guide as being deserialized to both int/uint and number, with no further explanation. As I've pointed out, BigDecimal is completely incompatible with both of these AS types. Matt -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: XML parser chokes on un-typed xmlns
Hi Tom, Sorry, I've not used the descendants method before and I just assumed the approach I use would work. If you use .. instead it will work as expected. namespace temp = http://tempuri.org/;; use namespace temp; trace(Node B from myXML2: + myXML2..b); HTH, Ben --- In flexcoders@yahoogroups.com, Tom Lee [EMAIL PROTECTED] wrote: Thanks, Ben - I've seen this before (I believe you directed me to this page on a previous issue). However, I don't understand how it applies to my particular problem - how would you fix my example using the namespace directive? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, August 16, 2006 12:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-fl ex-2as3/ Ben http://www.returnundefined.com/ --- In flexcoders@yahoogroups.com, Tom Lee design@ wrote: Hi everyone, I am having some difficulty parsing .Net web service results. The problem lies in the fact that Flex's XML parser doesn't like un-typed xmlns declarations of the type found by default in .Net web services. Try the following: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=doIt() mx:Script ![CDATA[ function doIt(){ var myXML:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; soap:Body a xmlns:soap=http://tempuri.org/ bHi/b /a /soap:Body /soap:Envelope trace(Node B from myXML: +myXML.descendants(b)); var myXML2:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; soap:Body a xmlns=http://tempuri.org/ bHi/b /a /soap:Body /soap:Envelope trace(Node B from myXML2: +myXML2.descendants(b)); } ]] /mx:Script /mx:Application This code results in the following traces: Node B from myXML: Hi Node B from myXML2: As you can see, the only difference between the two blocks of XML is that the successful one uses xmlns:soap= while the unsuccessful one uses xmlns=. While I am no SOAP expert, I don't believe the 2nd one is invalid syntax, so there should be no reason for the XML parser to ignore it, right? Anyone have a workaround for me that doesn't require modifying the web services? (I don't have administrative access to them). Thanks! -tom -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Web services or FDS: which are you using?
Well, I don't have anything to miss since I've not used FDS and don't have experience with Java or CF. I am currently working in a .NET shop, so WS are really the only viable choice (barring WebOrb or whatever). My app pulls in reams of data from the web services, and I like that I can receive it as XML. The .. operator is a godsend when you're dealing with data that might be 15 levels deep in the return 'object'. Ben --- In flexcoders@yahoogroups.com, Douglas Knudsen [EMAIL PROTECTED] wrote: this is actually a topic I've wondered about. I'm using RemoteObjects with CF/Java as it is just uber kewl to have this serialisation of AS-Java/CFC. Using webservices you lose this kewlness, but is it really a missed thing for you all using web services? Or maybe its the application type that can drive this, eh? A phat Flex app with some really large forms and complex data model my scream for Remote Objects, but a Flex app doing more display of data may not. ??? DK On 8/16/06, Dave Wolf [EMAIL PROTECTED] wrote: Ben, We have been huge proponents of using Web Services with Flex for nearly two years now. The majority of the applications we develop for folks use either SOAP or REST styled web services. Some of our clients do use CF and / or RemoteObject back-ends and we work into their infrastructures, but left to our own devices, our reccomendation has always been Web Services. -- Dave Wolf Cynergy Systems, Inc. Adobe Flex Alliance Partner http://www.cynergysystems.com http://www.cynergysystems.com/blogs Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, ben.clinkinbeard ben.clinkinbeard@ wrote: In my ongoing crusade to increase the attention given by Adobe to web service support in Flex, I decided to do a little impromptu survey. My feeling is that its a mistake to focus so heavily on FDS in regards to articles, tutorials and the like when such a small percentage of organizations will actually deploy the technology. So, which are you using? I am more interested in actual production apps, rather than personal projects used for learning or experimentation purposes. Personally, I am evaluating Flex as the front end for an application that relies heavily on .NET web services. Ben http://www.returnundefined.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Determine if a Class implements an Interface
Thanks guys for the responses... So, you think it would be faster to create a new instance and check 'is', even if the class was a visual component subclassed from like HBox or ChartBase? Sounds like I'll go with creating a new instance and checking it. Thanks again. Thunder --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: I'll bet that new'ing an instance of the class and using the 'is' operator on the instance will be faster than calling describeType() on the class and checking for an implementsInterface tag. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Tuesday, August 15, 2006 9:04 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Determine if a Class implements an Interface describeType should be able to get you that info I think. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thunderstumpgesatwork Sent: Tuesday, August 15, 2006 5:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Determine if a Class implements an Interface Hi all, I often use if (obj is MyClassOrInterface) { // do whatever } but it appears that only works with Instances not Classes. With just a Class, how can I tell if that class implements a particular interface or is of a particular base type? Do I have to create an instance of it and check the instance? I'm sure there must be another way... thanks in advance, Thunder __ var currentDomain:ApplicationDomain = ApplicationDomain.currentDomain; var psClass:Class = null; if (currentDomain.hasDefinition(sPropClass)) { psClass = Class(currentDomain.getDefinition(sPropClass)); } // below statement doesn't work! if ( (psClass != null) (psClass is IPropertySheet) ) { // make a new one of these classes. } -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: XML parser chokes on un-typed xmlns
At the risk of seeming dense: how would I fix my second example? Ive been through the help docs and Bens examples, but Im just not getting it. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gordon Smith Sent: Wednesday, August 16, 2006 1:26 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: XML parser chokes on un-typed xmlns More explanation... Tom, the behavior you saw was correct. In your first case, defining the soap namespace prefix on a doesn't affect b, because b has no namespace prefix and is therefore in the undefined default namespace, not in the soap namespace. In your second case, you are defining a default namespace on a, which affects the child tag b. So descendants(b) doesn't find b. I didn't look at Ben's links, but they presumably explain how to programmatically access tags and attributes when you define a default namespace. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of ben.clinkinbeard Sent: Wednesday, August 16, 2006 9:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-flex-2as3/ Ben http://www.returnundefined.com/ --- In flexcoders@yahoogroups.com, Tom Lee [EMAIL PROTECTED] wrote: Hi everyone, I am having some difficulty parsing .Net web service results. The problem lies in the fact that Flex's XML parser doesn't like un-typed xmlns declarations of the type found by default in .Net web services. Try the following: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute creationComplete=doIt() mx:Script ![CDATA[ function doIt(){ var myXML:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema soap:Body a xmlns:soap=http://tempuri.org/ bHi/b /a /soap:Body /soap:Envelope trace(Node B from myXML: +myXML.descendants(b)); var myXML2:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema soap:Body a xmlns=http://tempuri.org/ bHi/b /a /soap:Body /soap:Envelope trace(Node B from myXML2: +myXML2.descendants(b)); } ]] /mx:Script /mx:Application This code results in the following traces: Node B from myXML: Hi Node B from myXML2: As you can see, the only difference between the two blocks of XML is that the successful one uses xmlns:soap= while the unsuccessful one uses xmlns=. While I am no SOAP expert, I don't believe the 2nd one is invalid syntax, so there should be no reason for the XML parser to ignore it, right? Anyone have a workaround for me that doesn't require modifying the web services? (I don't have administrative access to them). Thanks! -tom __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Displaying data services results in a DataGrid
Hey all, I've created a simple application that uses FDS to retrieve data from a MySQL database to display in a datagrid. When the data returns, the datagrid is populated with the correct number of rows (I ran the query in MySQL Query Browser) but for some reason the rows are all the same. I'm not sure if data is being overwritten or what. I am doing printouts on the server side and just before the fill method (within my DAO class) returns, the results printed from iterating through the List object look correct (they are not all the same). So either there is a bug on the client side or something is going wrong in the transfer from server to client (Java to ActionScript). Has anyone run into this or have any ideas as to what the problem might be? I appreciate any help. Thanks, Chris -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: XML parser chokes on un-typed xmlns
Awesome! That's got it! Thanks so much. Seems odd that we have to manually declare these namespaces just to parse a little XML, doesn't it? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, August 16, 2006 2:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns Hi Tom, Sorry, I've not used the descendants method before and I just assumed the approach I use would work. If you use .. instead it will work as expected. namespace temp = http://tempuri.org/;; use namespace temp; trace(Node B from myXML2: + myXML2..b); HTH, Ben --- In flexcoders@yahoogroups.com, Tom Lee [EMAIL PROTECTED] wrote: Thanks, Ben - I've seen this before (I believe you directed me to this page on a previous issue). However, I don't understand how it applies to my particular problem - how would you fix my example using the namespace directive? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, August 16, 2006 12:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-fl ex-2as3/ Ben http://www.returnundefined.com/ --- In flexcoders@yahoogroups.com, Tom Lee design@ wrote: Hi everyone, I am having some difficulty parsing .Net web service results. The problem lies in the fact that Flex's XML parser doesn't like un-typed xmlns declarations of the type found by default in .Net web services. Try the following: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=doIt() mx:Script ![CDATA[ function doIt(){ var myXML:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; soap:Body a xmlns:soap=http://tempuri.org/ bHi/b /a /soap:Body /soap:Envelope trace(Node B from myXML: +myXML.descendants(b)); var myXML2:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; soap:Body a xmlns=http://tempuri.org/ bHi/b /a /soap:Body /soap:Envelope trace(Node B from myXML2: +myXML2.descendants(b)); } ]] /mx:Script /mx:Application This code results in the following traces: Node B from myXML: Hi Node B from myXML2: As you can see, the only difference between the two blocks of XML is that the successful one uses xmlns:soap= while the unsuccessful one uses xmlns=. While I am no SOAP expert, I don't believe the 2nd one is invalid syntax, so there should be no reason for the XML parser to ignore it, right? Anyone have a workaround for me that doesn't require modifying the web services? (I don't have administrative access to them). Thanks! -tom -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Changing State via VBox
I have a vbox within an accordion which when I click on I require to change the stae of the application. I have tried mx:VBox click=currentState='Details' without luck I've played around with putting it in an outside function but cannot get the right answer as of yet Any help much appreciated -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: XML parser chokes on un-typed xmlns
Don't get me started on default namespaces in Flex/AS3... :) --- In flexcoders@yahoogroups.com, Tom Lee [EMAIL PROTECTED] wrote: Awesome! That's got it! Thanks so much. Seems odd that we have to manually declare these namespaces just to parse a little XML, doesn't it? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, August 16, 2006 2:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns Hi Tom, Sorry, I've not used the descendants method before and I just assumed the approach I use would work. If you use .. instead it will work as expected. namespace temp = http://tempuri.org/;; use namespace temp; trace(Node B from myXML2: + myXML2..b); HTH, Ben --- In flexcoders@yahoogroups.com, Tom Lee design@ wrote: Thanks, Ben - I've seen this before (I believe you directed me to this page on a previous issue). However, I don't understand how it applies to my particular problem - how would you fix my example using the namespace directive? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, August 16, 2006 12:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-fl ex-2as3/ Ben http://www.returnundefined.com/ --- In flexcoders@yahoogroups.com, Tom Lee design@ wrote: Hi everyone, I am having some difficulty parsing .Net web service results. The problem lies in the fact that Flex's XML parser doesn't like un-typed xmlns declarations of the type found by default in .Net web services. Try the following: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=doIt() mx:Script ![CDATA[ function doIt(){ var myXML:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; soap:Body a xmlns:soap=http://tempuri.org/ bHi/b /a /soap:Body /soap:Envelope trace(Node B from myXML: +myXML.descendants(b)); var myXML2:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; soap:Body a xmlns=http://tempuri.org/ bHi/b /a /soap:Body /soap:Envelope trace(Node B from myXML2: +myXML2.descendants(b)); } ]] /mx:Script /mx:Application This code results in the following traces: Node B from myXML: Hi Node B from myXML2: As you can see, the only difference between the two blocks of XML is that the successful one uses xmlns:soap= while the unsuccessful one uses xmlns=. While I am no SOAP expert, I don't believe the 2nd one is invalid syntax, so there should be no reason for the XML parser to ignore it, right? Anyone have a workaround for me that doesn't require modifying the web services? (I don't have administrative access to them). Thanks! -tom -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: XML parser chokes on un-typed xmlns
I've been debating about whether it might not be worth it just to strip out all the xmlns declarations with a little regex... I talked it over briefly with the web service developers and they couldn't even really explain why those are present or what they are for... Just that Visual Studio puts them in by default. I understand that they might prevent collisions between nodes of the same name, but in our case that's irrelevant since we never use the same node name for multiple purposes. Another idea I had would be to automagically loop through all the nodes in the XML, find all the namespaces, and declare them... But frankly, I don't know enough about the topic to understand the downsides of doing something like that. What do you think of the idea? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, August 16, 2006 3:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns Don't get me started on default namespaces in Flex/AS3... :) --- In flexcoders@yahoogroups.com, Tom Lee [EMAIL PROTECTED] wrote: Awesome! That's got it! Thanks so much. Seems odd that we have to manually declare these namespaces just to parse a little XML, doesn't it? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, August 16, 2006 2:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns Hi Tom, Sorry, I've not used the descendants method before and I just assumed the approach I use would work. If you use .. instead it will work as expected. namespace temp = http://tempuri.org/;; use namespace temp; trace(Node B from myXML2: + myXML2..b); HTH, Ben --- In flexcoders@yahoogroups.com, Tom Lee design@ wrote: Thanks, Ben - I've seen this before (I believe you directed me to this page on a previous issue). However, I don't understand how it applies to my particular problem - how would you fix my example using the namespace directive? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, August 16, 2006 12:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-fl ex-2as3/ Ben http://www.returnundefined.com/ --- In flexcoders@yahoogroups.com, Tom Lee design@ wrote: Hi everyone, I am having some difficulty parsing .Net web service results. The problem lies in the fact that Flex's XML parser doesn't like un-typed xmlns declarations of the type found by default in .Net web services. Try the following: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=doIt() mx:Script ![CDATA[ function doIt(){ var myXML:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; soap:Body a xmlns:soap=http://tempuri.org/ bHi/b /a /soap:Body /soap:Envelope trace(Node B from myXML: +myXML.descendants(b)); var myXML2:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; soap:Body a xmlns=http://tempuri.org/ bHi/b /a /soap:Body /soap:Envelope trace(Node B from myXML2: +myXML2.descendants(b)); } ]] /mx:Script /mx:Application This code results in the following traces: Node B from myXML: Hi Node B from myXML2: As you can see, the only difference between the two blocks of XML is that the successful one uses xmlns:soap= while the unsuccessful one uses xmlns=. While I am no SOAP expert, I don't believe the 2nd one is invalid syntax, so there should be no reason for the XML parser to ignore it, right? Anyone have a workaround for me that doesn't require modifying the web services? (I don't have administrative access to them).
[flexcoders] Re: SOLVED: Operation.arguments is populated but nulls are sent
OK, this is ridiculous. All of a sudden, out of nowhere, the problem is back in full force. No amount of delay resolves the problem anymore. This is insane. --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: OK, its definitely a timing issue. Rather than dispatching the next CairngormEvent (that triggers the new call) right in my result handler, I moved the event dispatch to another function, and am calling that with a Timer set to a 1 millisecond delay. Works perfectly. So I am not sure what exactly the issue is, but its definitely related to timing. Very odd because my arguments object was always correctly populated (so its not a matter of vars not being ready), but the XML request that Flex generates was all fubar. Thanks, Ben --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote: I mean do a Project Clean to rebuild the SWF from scratch. Flashlog.txt would be in c:\documents and settings\account\flashlog.txt by default, though you may not have it if it's not configured. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Tuesday, August 15, 2006 9:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Operation.arguments is populated but nulls are sent This was built from scratch in Flex 2, never even had 1.5 installed. Not sure what you mean by 'build clean'. Where would flashlog.txt be? I will try clearing the bin folder tomorrow and see what happens. Thanks, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mchotin@ wrote: Maybe it's some odd timing problem? Any profiler settings from Flex 1.5 turned on? Have you looked to see if you have a flashlog.txt file that has any info in it? Running in the debugger (even with no breakpoints) would also let you see the output and if there's anything there. You've built clean I assume. Delete everything in the bin folder anyway (with FB closed) and see if that changes anything? Sounds strange, Matt From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Tuesday, August 15, 2006 11:54 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Operation.arguments is populated but nulls are sent OK, the issue seems to be isolated to my machine. The error began happening again, so I sent a coworker the link to the file on my machine. He can run the app successfully with no issues whatsoever, while I still cannot. I have tried clearing my cache, closing Flex Builder and restarting my machine but nothing seems to help. It seems like this has to be related to something getting screwed up on my machine because it also usually goes away by the time I come in the next day. Is there anything else I can try clearing or resetting? This has to be 'a bug', no? Thanks, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mchotin@ wrote: You should be calling op.send(), if you call GetDataByGrouping() you're ignoring the arguments. Matt From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Monday, August 14, 2006 2:14 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Operation.arguments is populated but nulls are sent I am having a very odd error, and it only happens sometimes. I am creating an object structure and then assigning that to the arguments property of my mx.rpc.soap.Operation object like this: op.arguments = args; I then call the SOAP method like this: var call:AsyncToken = service.GetDataByGrouping(); call.addResponder(responder); Sometimes (I've not figured out a pattern), Flex somehow loses all of the contents of the arguments property and sends nulls. It is sending the same number of nulls as there were properties though, so I am super confused. The Operation.arguments object is still populated with the correct data, but none of it gets sent. Does anyone have any idea what is going on here? I am pasting the entire method from my delegate below. // in the delegate
Re: [flexcoders] Re: XML parser chokes on un-typed xmlns
Another idea I had would be to automagically loop through all the nodes in the XML, find all the namespaces, and declare them... But frankly, I don't know enough about the topic to understand the downsides of doing something like that. What do you think of the idea? Class XML: AS3 function XML.namespaceDeclarations():Array Lists namespace declarations associated with the XML object in the context of its parent. Does that help? Cheers, Claus. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Hello
Hello there! This group is the best!! I' new in Flex, and I am a student who just begin to reveal the secrets of Flex! I have one project who I must build to 20 september, so can I get help from you?? The problem is: login in flex, with database in access!! How do this??? I read carfully pdf files but i can't understand yet !! Please, If someone want, and can, help me to resolve this problem! Tell me how to do this, send to me some code, ofcourse if you want.Live Flex 2.0 forever!! Thank you!P.S Sorry for bad english! and if someone want to write to me, send me with HELP DJN in subject field. Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: decimal numbers in financial applications
We need an immediate solution beyond dumbing down the client side to only use strings. So much functionality would be given up in that scenario that I'd be ashamed and embarrased of our product in the end. I don't see why, it comes to the same thing. Implementing a new type would effectively be putting a class between the regular int type and the application, and that class would either be handling the numbers as strings or as seperate integers internally anyway, so how is that any more or less embarrasing? ryanm -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] PopUp Windows 50% Transparent???
Hello All, Every time I create a popup, it's transparent around the entire border area. I even tried using code, to force the Alpha value - and it still insists on showing the application residing one layer below. Is this by design, and is there a way I can inhibit this behavior?? Thanks in advance for any help, Mike -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] PopUp Windows 50% Transparent???
If you're using TitleWindow you can set styleName=opaquePanel on it.BrendanOn 8/16/06, Mike Anderson [EMAIL PROTECTED] wrote: Hello All, Every time I create a popup, it's transparent around the entire border area. I even tried using code, to force the Alpha value - and it still insists on showing the application residing one layer below. Is this by design, and is there a way I can inhibit this behavior?? Thanks in advance for any help, Mike __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] CheckBox.......help needed
Any one have to logic to figure out if an item is check in a datagrid? any help is needed. thanks JoSh -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Posting ByteArray with URLRequest...
Thanks Matt, I had tried not setting the contentType (it's only in the code below as I grasped at straws to get things working). But the data still comes across without key/value pairs. The data is there server-side but appears to be unformatted (raw, as you say). I guess my question is - can ByteArray data only be posted as a Raw POST? Seems odd as that would essentially exclude binary posts to regular PHP / ASP / RoR server-side scripts with URLRequest? If I have to write a custom handler (or Base64 encode the binary data and post as a regular form post) that's fine - just want to make sure I wasn't missing the obvious. B. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Try not setting the contentType yourself and see what gets sent? It probably will just be raw binary data that you have to interpret on your own? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bondbeer Sent: Tuesday, August 15, 2006 4:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Posting ByteArray with URLRequest... Hi Guys, I've seen this question posted previously with no answer given. In the AS3 docs, it outlines that you can submit ByteArray data to a server-side script by setting the URLRequest.data property to the array. The problem is the docs don't seem to indicate how that data is sent server-side - i.e. what's the key/value pair used? My server-side code gets triggered, but the data sent doesn't look like a regular multipart form data that you would receive from a File upload. I can't parse the data. Here's what I'm doing (the dataToPost ByteArray will contain Bitmap data): public function postData(dataToPost:ByteArray):void { // Create a loader and init it's events var loader:URLLoader = new URLLoader(); configureListeners(loader); // Create a Request object var url:String = http://localhost/test/upload.aspx http://localhost/test/upload.aspx ; var request:URLRequest = new URLRequest(url); request.contentType = multipart/form-data; request.method = URLRequestMethod.POST; // Set the data request.data = dataToPost; try { // Execute the send loader.load(request); } catch (error:Error) { trace(Unable to load requested document.); } } Thanks for any insight! B. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: decimal numbers in financial applications
Creating a new class is the good option. It would be time comsuming, but would bring about the desired outcome, assuming everything could be worked out. If you read Gordon's post again, you will understand what I was not too excited about. I was not objecting to creating a new class, nor was this suggested, except by me. Gordon mentioned one option was to do all of the math strictly on the server, and pass strings back and forth. I'm sure you can see why this would be a last resort. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: XML parser chokes on un-typed xmlns
Thanks for your help on this, Claus and Ben. I'll keep looking into it and see if I can come up with something a little more dynamic. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, August 16, 2006 4:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns I went round and round with different ideas about how to deal with these issues shortly after I started working with Flex. I even had some issues using namespaceDeclarations() which, as Claus points out, should work in retrieving them. The solution I posted on my site was the best I was able to devise because the 'use namespace' directive provided the most flexible way to work with XML, but you can only define those types of namespaces with compile-time constants. For instance, you can't do this: namespace def = myXML.namespaceDeclarations()[0]; use namespace def; If someone figures out an easier and/or more flexible way I am definitely all ears though. Ben --- In flexcoders@yahoogroups.com, Tom Lee [EMAIL PROTECTED] wrote: I've been debating about whether it might not be worth it just to strip out all the xmlns declarations with a little regex... I talked it over briefly with the web service developers and they couldn't even really explain why those are present or what they are for... Just that Visual Studio puts them in by default. I understand that they might prevent collisions between nodes of the same name, but in our case that's irrelevant since we never use the same node name for multiple purposes. Another idea I had would be to automagically loop through all the nodes in the XML, find all the namespaces, and declare them... But frankly, I don't know enough about the topic to understand the downsides of doing something like that. What do you think of the idea? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, August 16, 2006 3:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns Don't get me started on default namespaces in Flex/AS3... :) --- In flexcoders@yahoogroups.com, Tom Lee design@ wrote: Awesome! That's got it! Thanks so much. Seems odd that we have to manually declare these namespaces just to parse a little XML, doesn't it? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, August 16, 2006 2:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns Hi Tom, Sorry, I've not used the descendants method before and I just assumed the approach I use would work. If you use .. instead it will work as expected. namespace temp = http://tempuri.org/;; use namespace temp; trace(Node B from myXML2: + myXML2..b); HTH, Ben --- In flexcoders@yahoogroups.com, Tom Lee design@ wrote: Thanks, Ben - I've seen this before (I believe you directed me to this page on a previous issue). However, I don't understand how it applies to my particular problem - how would you fix my example using the namespace directive? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, August 16, 2006 12:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-fl ex-2as3/ Ben http://www.returnundefined.com/ --- In flexcoders@yahoogroups.com, Tom Lee design@ wrote: Hi everyone, I am having some difficulty parsing .Net web service results. The problem lies in the fact that Flex's XML parser doesn't like un-typed xmlns declarations of the type found by default in .Net web services. Try the following: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=doIt() mx:Script ![CDATA[ function doIt(){ var myXML:XML = soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; soap:Body a xmlns:soap=http://tempuri.org/ bHi/b /a /soap:Body /soap:Envelope trace(Node B from myXML: +myXML.descendants(b));
[flexcoders] Re: Flex2-IIS-7.0.2 HTTP 405 on /flex2gateway/
I ran into a similar problem, 404 errors on RemoteObject invocations on CFC's. Files were all there, Flash Gateway enabled. The problem was, there was a file called license.properties, sitting in the C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\lib folder. It contained sn= and nothing else. Deleted the file, and the Flash Gateway services started working with Flex. Hope this helps for someone, Howard --- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED] wrote: Tariq, can you check that server instance web.xml file if the /flex2gateway is there? Maybe that instance wasn't updated correcly. João Fernandes On 8/10/06, Tariq Ahmed [EMAIL PROTECTED] wrote: Anyone encounter this issue before? When using a RemoteObject, which works fine on my development environment - doesn't work on this one server. Flash Remoting is enabled in the CF Admin. Looking at the IIS Log FIle, the 405 is coming from invoking /flex2gateway/ On machines that work, I can do http://hostname/flex2gateway and get at least an HTTP 500, but get a 404 on this problem machine. The main diff on the problem machine is that it's hosting multiple sites. Does anyone know how to set up a manual mapping to /flex2gateway/ (what does it map to?). I found this thread: http://www.boyzoid.com/blog/index.cfm/2006/3/24/Flex-Builder- 2Mystic-and-Multiple-URLs-on-one-server Which indicates that JVM higher than 1.4.2_05 is needed. This machine uses 1.4.2_09. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] PopUp Windows 50% Transparent???
Have you tried to set borderAlpha=1 (by default borderAlpha=0.4)? Benoit Hediard -Message d'origine- De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la part de Mike Anderson Envoyé : mercredi 16 août 2006 22:58 À : flexcoders@yahoogroups.com Objet : [flexcoders] PopUp Windows 50% Transparent??? Hello All, Every time I create a popup, it's transparent around the entire border area. I even tried using code, to force the Alpha value - and it still insists on showing the application residing one layer below. Is this by design, and is there a way I can inhibit this behavior?? Thanks in advance for any help, Mike -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: decimal numbers in financial applications
Hi, Matt. We worked closely with many enterprise customers, including financial ones, during our development phase and beta period, and support for decimal arithmetic was not a priority for them. I've also read many thousands of FlexCoders and Beta list emails during the Flex 1, 1.5, and 2 cycles, and I recall only a handful raising this issue. Like you, I'm surprised by this. I don't know whether most Flex developers simply haven't needed decimal arithmetic for the applications they are developing, or whether they're working around the lack of it in _javascript_, ECMAScript, ActionScript, and Flex by using some particular technique such as doing server-side computation, scaling to integers, or porting a library like you're considering. I believe the committee designing the next version of ECMAScript, which Adobe sits on, is considering adding a decimal type to the language. In the meantime, I think a community effort to port an open-source library would be great. Adobe would probably be happy to help make it available. However, given the relatively small percentage of our customers asking for this feature, it's unlikely that the Flex team will write or port such a library in the near future. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of busitech Sent: Wednesday, August 16, 2006 11:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: decimal numbers in financial applications Gordon, Thank you very much for the reply. I'm very surprised that the decision was made at some point that support for fixed decimal numbers was not absolutely an essential and required part of the product and framework before release, when targeting the enterprise customer. We need an immediate solution beyond dumbing down the client side to only use strings. So much functionality would be given up in that scenario that I'd be ashamed and embarrased of our product in the end. I'm considering creating a port to Actionscript of BigDecimal for _javascript_ which is an open source project. See http://freshmeat.net/projects/js_bigdecimal/ Custom serialization is outlined on pg 1098 of the Developer's Guide. I'm hoping I can extend BigDecimal and implement Externalizable, create a new similar object in Actionscript, and get them to serialize/deserialize correctly. Hopefully there's nothing in the Java adapter standing in the way of making this work... Any help or advice on this would be appreciated. The BigDecimal is mentioned on page 1091 of the Developer's Guide as being deserialized to both int/uint and number, with no further explanation. As I've pointed out, BigDecimal is completely incompatible with both of these AS types. Matt __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: Determine if a Class implements an Interface
Yes, that's what I think, but you can always try it both ways and use getTimer() to time a loop. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of thunderstumpgesatwork Sent: Wednesday, August 16, 2006 11:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Determine if a Class implements an Interface Thanks guys for the responses... So, you think it would be faster to create a new instance and check 'is', even if the class was a visual component subclassed from like HBox or ChartBase? Sounds like I'll go with creating a new instance and checking it. Thanks again. Thunder --- In [EMAIL PROTECTED]ups.com, Gordon Smith [EMAIL PROTECTED] wrote: I'll bet that new'ing an instance of the class and using the 'is' operator on the instance will be faster than calling describeType() on the class and checking for an implementsInterface tag. - Gordon From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Matt Chotin Sent: Tuesday, August 15, 2006 9:04 PM To: [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] Determine if a Class implements an Interface describeType should be able to get you that info I think. From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of thunderstumpgesatwork Sent: Tuesday, August 15, 2006 5:42 PM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Determine if a Class implements an Interface Hi all, I often use if (obj is MyClassOrInterface) { // do whatever } but it appears that only works with Instances not Classes. With just a Class, how can I tell if that class implements a particular interface or is of a particular base type? Do I have to create an instance of it and check the instance? I'm sure there must be another way... thanks in advance, Thunder __ var currentDomain:ApplicationDomain = ApplicationDomain.currentDomain; var psClass:Class = null; if (currentDomain.hasDefinition(sPropClass)) { psClass = Class(currentDomain.getDefinition(sPropClass)); } // below statement doesn't work! if ( (psClass != null) (psClass is IPropertySheet) ) { // make a new one of these classes. } __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: decimal numbers in financial applications
Hi Gordon, I appreciate your reply. Here's some more information for you, which might help. It looks to me like it's a one-way problem (client---server). Unless the user is doing data-entry on the Flash client, and then saves the data, this problem would appear not to effect them. This might explain why there's no outcry. For example, if I set the column to the right value in the database manually and then refresh the client view of the data, the value makes it down to the client unchanged, displays on the screen in Flash with the correct decimal value, and can be used in computations, which appear to be correct (so far). I hit the problem when I am creating or updating a record. Once Flash sends a new value to the server, and the Java adapter creates a new BigDecimal from the Number, the decimal portion gets changed ever so slightly. Then, the code must always round down just before assignment. If standard rounding were in place within the Java adapter, I would still not realize this problem exists. The wrong values are only off by one thousandths when dealing in hundredths. I am going to go forward with the porting or creation of the fixed decimal class, and will try to end up with BigDecimals on the other side. I'll let you know how it goes. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] XMPP AS3 class libraries on Labs
Hi Joao,Those libraries should work with the release version of Flex Builder. I will double check and make sure though. What errors are you running into?Also, I will be making an update to these libraries very soon. They are still under development and the next update should be much more stable. - DannyOn 8/16/06, João Fernandes [EMAIL PROTECTED] wrote: Hi there, I started playing around with the available XMPP(Jabber) classes on Labs but I've got some errors. Are those still under development or can already be used? Thanks, João Fernandes __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [SPAM] RE: [flexcoders] Re: decimal numbers in financial applications
We worked closely with many enterprise customers, including financial ones, during our development phase and beta period, and support for decimal arithmetic was not a priority for them. I've also read many thousands of FlexCoders and Beta list emails during the Flex 1, 1.5, and 2 cycles, and I recall only a handful raising this issue. The last app I worked on that dealt with money did all of the money calculations on the server side and used asynch calls to get pages of precalculated data for display. On the rare occasion that something needed to be calculated on the client, I just split the number at the decimal and dealt with each piece as an integer. ryanm -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Dispatch Event?
Hi Matt, Thanks, I found the error on the Web Service side of things and fixed it. Matt Chotin [EMAIL PROTECTED] wrote: We dont ship the source for the web service code. In looking at it the line number you give shouldnt have any errors, so I think that maybe its complaining about you passing a null into the web service? Im not sure about this though, I guess just make sure every argument to the method on the web service youre invoking is correct.MattFrom: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of ldyhwke24Sent: Tuesday, August 15, 2006 4:08 PMTo: [EMAIL PROTECTED]ups.comSubject: [flexcoders] Dispatch Event? I've been running tests with .NET web services and Flex and have come upon an error..[RPC Fault faultString="Error #1009: Cannot access a property or method of a null object reference." faultCode="EncodingError" faultDetail="null"]at mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/internal::invokePendingCall()[C:\dev\enterprise_gmc\frameworks\mx\rpc\soap\Operation.as:582at mx.rpc.soap::Operation/send()[C:\dev\enterprise_gmc\frameworks\mx\rpc\soap\Operation.as:492]at Function/http://adobe.com/AS3/2006/builtin::apply()at mx.rpc.soap.mxml::Operation/send()[C:\dev\enterprise_gmc\frameworks\mx\rpc\soap\mxml\Operation.as:139]at EditDragNDrop/___Button3_click()[C:\Documents and Settings\abratty\My Documents\Flex Builder 2\BasicTests\EditDragNDrop.mxml:120]but I've also seen the error while debugging:mx.rpc.soap.mxml::WebService/dispatchEventSource not found.I thought this would be in the SDK or Flex Builder 2? But, it's not on my local system.. can anyone give me a hint as to how to fix this?thanks! -Amy Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] XMPP AS3 class libraries on Labs
Hi Danny,I was trying to connect to GTalk since it implements Jabber. I had an error of security sandbox violation and it seems that they don't have a cross-domain policy file. I Installed locally wildfire ( jivesoftware.org) and It connects perfecly. I was looking for more details about what this library is composed. I looked for how to handle the roster but couldn't find anything.João Fernandes On 8/16/06, Daniel Dura [EMAIL PROTECTED] wrote: Hi Joao,Those libraries should work with the release version of Flex Builder. I will double check and make sure though. What errors are you running into?Also, I will be making an update to these libraries very soon. They are still under development and the next update should be much more stable. - DannyOn 8/16/06, João Fernandes [EMAIL PROTECTED] wrote: Hi there, I started playing around with the available XMPP(Jabber) classes on Labs but I've got some errors. Are those still under development or can already be used? Thanks, João Fernandes __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [SPAM] [flexcoders] Re: decimal numbers in financial applications
For example, if I set the column to the right value in the database manually and then refresh the client view of the data, the value makes it down to the client unchanged, displays on the screen in Flash with the correct decimal value, and can be used in computations, which appear to be correct (so far). No, you wouldn't want to use it in computations on the client because there are rounding problems with floating point math in AS (same as js). If you simply read it from the server side and display it in the client, it's just a string so it's always correct. Once you want to do math on it, neither AS or JS are safe for important calculations, which pretty much means that short of an applett or activex control, there is no such thing as a safe web client for financial calculations. ryanm -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Dynamic ViewStack (Cairngorm)
Kenny, I think States would be a better fit for what you are trying to do. Regardless, you could have the viewstack selected property index set to a bindable value so, selectedIndex="{model.accessLevel}"And in your ModelLocator (Cairngorm [Bindable] singleton)accessLevel : Number = 0;Then, any part of your application could update the value of the accessLevel attribute, say to 1, which would automatically make the screen change to the next View.lostinrecursion [EMAIL PROTECTED] wrote: Hi all,Quick one, I think. :)I have two Components in my application, based on a ViewStack. For thepurpose of simplicity, let's call them "AdminView" and "UserView".Essentially the two ViewStacks contain different screens (or the sameif applicable) dependent on the access level returned from the database.So we've got the application looking like this:ApplicationApplicationControlBar (with dataProvider set to a static id of"myViews", which will be the id of the loaded stack so that the menudisplays the correct screens)And then I want to load one of the views depending on the access levelwhich I will store in the Controller. So the Controller will dispatchthe event to the view once the access level is set. I know how to do that with no issue.I just don't know how I would "dynamically" set the MX tag to theproper view stack. For example, if it's an admin, the view would beview:AdminView and if it's a normal user, it would be view:UserViewAny suggestions?Thanks so much!-Kenny Get your email and more, right on the new Yahoo.com __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Web services or FDS: which are you using?
I hate to fly infrom nowhere... But I have an in-production Flex app fielded to several big customers. We are completely dependent on web services for a variety of arch reasons. I always appreciate any and all focus by Adobeto web services. -Steve Pruitt Exstream Software From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian DeitteSent: Tuesday, August 15, 2006 2:01 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Web services or FDS: which are you using? The person who is thinking about this the most lately isn't going to beable to answer your crusade. Pete Farland is out traveling in Australiaand other countries for his sabbatical, so you may want to bring this upagain in a month. -Brian -Original Message- From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of ben.clinkinbeard Sent: Tuesday, August 15, 2006 10:59 AM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Web services or FDS: which are you using? In my ongoing crusade to increase the attention given by Adobe to web service support in Flex, I decided to do a little impromptu survey. My feeling is that its a mistake to focus so heavily on FDS in regards to articles, tutorials and the like when such a small percentage of organizations will actually deploy the technology. So, which are you using? I am more interested in actual production apps, rather than personal projects used for learning or experimentation purposes. Personally, I am evaluating Flex as the front end for an application that relies heavily on .NET web services. Ben http://www.returnundefined.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] DataGridColumn custom itemRenderers
Barry, An itemRenderer can be a mxml component.It needs to be the fully-qualified class name. ie no namespaces here.It should be like: mx:DataGridColumnheaderText="Search" dataField=""itemRenderer="view.customcontrol.AcademicSearch"/ Get your email and more, right on the new Yahoo.com __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: Remoteobject help
Thanks Joao, I working with an ISP(cfdynamics.com) that isn't using 7, not 7.02. They say they have no plans to upgrade to 7.02. I take it I need either 7.02 OR FDS to use remoting? Thanks again. Derek -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of João FernandesSent: Tuesday, August 15, 2006 8:37 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Remoteobject help Derek,there is no need of FDS to use remoting. The 7.0.2 version is enough to use the new AMF3 with Flex2.For the web-inf part, point to the war folder and not the web-inf itself {jrun4-home}/servers/{serverInstance}/cfusion-ear/cfusion-war/ . João Fernandes On 8/9/06, flex-guitar [EMAIL PROTECTED]learning.com wrote: I've been trying to figure this out myself. Do you need FDS in order to set a project as CF Flash Remoting? I couldn't figure out how to select this option. (It always asked for a WEB-INF folder). Thanks, Derek -Original Message-From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com]On Behalf Of Douglas KnudsenSent: Wednesday, August 09, 2006 5:02 PMTo: [EMAIL PROTECTED]ups.comSubject: Re: [flexcoders] Re: Remoteobject help old thread but i just experienced this. Reason I had the issue was I failed to set up my Flex project correctly! You have to choose 'ColdFusion Flash Remoting Service' as a project type and go from there. Then the proper stuff is compiled into the SWF. DK On 7/27/06, Jeremy Rottman rottmanList@gmail.com wrote: ok well I got it to work with this code. But this isnt exactly how Iwant it to work. Do I have to use test.component name and do I haveto add the end point.?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"layout="absolute" mx:Script![CDATA[import mx.controls.Alert;import mx.rpc.Fault;import mx.rpc.events.FaultEvent;import mx.rpc.events.ResultEvent;private function qryService_userSearch(lastName){qryService.userSearch(lastName)}private function qryService_userSearch_Result(event:ResultEvent):void{ testDG.dataProvider = event.result;}private function qryService_userSearch_Fault(event:FaultEvent):void{ Alert.show(event.fault.message);}]]/mx:Scriptmx:RemoteObjectid="qryService"destination="ColdFusion" source="test.ROtest"result="qryService_userSearch_Result(event)"endpoint=" http://fx3.homesmartagent.com/flex2gateway/ "showBusyCursor="true"fault="qryService_userSearch_Fault(event)"/mx:Canvas x="0" y="0" width="100%" height="100%" mx:Label x="10" y="10" text="Name:"/mx:TextInput id="lastName" x="60" y="8"/mx:Button x="228" y="8" click="qryService_userSearch(lastName.text)" label="Button"/mx:DataGrid x="10" y="38" id="testDG" width="90%" height="100%" mx:columnsmx:DataGridColumn headerText="Column 1"dataField="fld_agentFullName"/mx:DataGridColumn headerText="Column 2" dataField="fld_agentId"/ mx:DataGridColumn headerText="Column 3" dataField="fld_agentEmail"//mx:columns/mx:DataGrid/mx:Canvas/mx:Application --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: flexcoders-unsubscr[EMAIL PROTECTED]com* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? __ NOD32 1.1699 (20060809) Information __This message was checked by NOD32 antivirus system.http://www.eset.com __ NOD32 1.1707 (20060815) Information __This message was checked by NOD32 antivirus system.http://www.eset.com __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software
[flexcoders] Object variable order
Hi, I am writing a flex application which hooks into an embedded system. Unfortunately I am writing the backend in C, since it is very limited, and I am required to handle a passed objects variables explicitly ( scan for known incoming order ) When I use a HTTPservice and GET method, I am finding that I get random variable order when hitting the webserver eg. mx:HTTPService method=GET id=feedRequest1 url=http://192.168.1.1/cgi-bin/hhpcgi; useProxy=false / . feedRequest2.send( {command: 'listrgrp', uid: '1', rgrp: '1' } ); When I look at the weblog ( server is boa ) I get my variables OK, but they come in random order GET /cgi-bin/hhpcgi?command=listgrpuid=1rgrp=1 GET /cgi-bin/hhpcgi?uid=1command=listgrprgrp=1 Can you set the specific order of GET variables coming out of an object ? Normally 99.9% of the time this wouldn't matter if you had the luxury of PHP, perl, Ruby... Any ideas on this one ? I want to keep the C side of things as simple as possible :) cheers -- Paul Arch --- Esidium Group Pty. Ltd. Ph: (08) 6461 4230 Fax: (08) 6461 4238 http://www.esidium.com.au Powering DataMate - www.datamate.com.au --- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Getting a problem trying to do a remote object in FLEX
Riding on Brians coat tails, youll want the following servlet definition and mapping in the web.xml file for your webapp. !-- MessageBroker Servlet -- servlet servlet-nameMessageBrokerServlet/servlet-name display-nameMessageBrokerServlet/display-name servlet-classflex.messaging.MessageBrokerServlet/servlet-class init-param param-nameservices.configuration.file/param-name param-value/WEB-INF/flex/services-config.xml/param-value /init-param init-param param-nameflex.write.path/param-name param-value/WEB-INF/flex/param-value /init-param load-on-startup1/load-on-startup /servlet . servlet-mapping servlet-nameMessageBrokerServlet/servlet-name url-pattern/messagebroker/*/url-pattern /servlet-mapping Best, Seth From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brian Deitte Sent: Tuesday, August 15, 2006 10:31 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Getting a problem trying to do a remote object in FLEX You don't have the necessary servlet set up in web.xml. I don't know the current FDS documentation, but I assume the details are in there, or just look in another Flex install for the expected info that should be in the web.xml. -Brian -Original Message- From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of laidezmon Sent: Tuesday, August 15, 2006 1:10 PM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Getting a problem trying to do a remote object in FLEX Here is the error I get when trying to access the remote object called simpleJava which is defined as a destination in my remote-config.xml file. Here is the Flex error. [RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/inte rnal::faultHandler() at mx.rpc::Responder/fault() at mx.rpc::AsyncRequest/fault() at mx.messaging::ChannelSet/::faultPendingSends() at mx.messaging::ChannelSet/channelFaultHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::di spatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.messaging::Channel/mx.messaging:Channel::connectFailed() at mx.messaging.channels::PollingChannel/mx.messaging.channels:Po llingChannel::connectFailed() at mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFCha nnel::statusHandler() Here is the JRUN Server inline error. 08/15 13:10:51 error Requested resource '/messagebroker/amf' (%2fmessagebroker%2famf) not found -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] VideoDisplay playheadTime problem
I had the same problem.I traced the videoDisplay.bytesLoaded and videoDisplay.bytesTotal.I noticed that if all the bytes had been loaded then u can forward the videofreely, other wise, the videoDisplay only forward 5or6 frames. 2006/8/9, bal_ketan [EMAIL PROTECTED]: I have a VideoDisplay component on my page. I need a forward functionality for the video. When i click on forward button it should go to the last frame of the video and stop there. Heres my code: myVideo.playheadTime = myVideo.totalTime; myVideo.validateNow(); myVideo.pause(); // not using stop since it will go to frame zero. When i click on forward it just goes 5 or 6 frames ahead and then pauses. If i remove the pause statement and keep clicking then it just goes on jumping 5 - 6 frames ahead and starts playing from there. Can anybody help pls. ? Ketan. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___