RE: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid
are you asking how to reset an arraycollection back to zero values? Glenn From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Monday, April 07, 2008 5:30 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid If the service returned an empty AC, I would verify that the DG has really been assigned that empty AC. Read back the dataProvider on the DG and see what its length is. You can also try to manually reset the DG to an empty AC and see if it refreshes that way. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jovialrandor Sent: Sunday, April 06, 2008 5:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid Alex, the HTTPService returns an empty arraycollection, but the datagrid still has the values from the last call. How do I in the code refresh the arraycollection, since the 'refresh ()' did not work? Thanks --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: I would think that your service should return an empty array collection, or return a failure. If it returns an empty array collection it should refresh. If it returns a failure, then you should set the arraycollection to an empty arraycollection on failure From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of jovialrandor Sent: Saturday, April 05, 2008 9:16 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] How can I clear an ArrayCollection or Datagrid I use a HTTPService to load data into an ArrayCollection which is used for a datagrid. For example I type in a parameter A to the HTTPService that returns data that gets loaded in to ArrayCollectin. However when I when resend the HTTPservice with parameter B that returns no data, the datagrid still displays the value of parameter A. I've tried: httpservice.send(); // To get new values arraycollection.refresh(). // To refresh the datagrid. But no luck. Thanks image001.png
RE: [flexcoders] Re: Force skin state
Take a look at this http://www.asfusion.com/blog/entry/stateful-skins-in-flex-3e-color-transitio ns-in-buttons-now-possible Glenn From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jfrumar Sent: Sunday, April 06, 2008 11:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Force skin state Do we have an answer to this yet? I want to know too! I know you can call currentState='state' on an embedded flash component, but how can you do the same thing with a skin? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , rleuthold [EMAIL PROTECTED] wrote: Hi, Is there a way to force a component to have a specific skin state (e.g. 'd like to set a tab of a tab navigator to the upSkin state). thanks_rico image001.png
[flexcoders] Hi, there. Nice to meet you. I made somthing with FLEX
I live in Tokyo. I made a FLEXed meta search site. Please, Check this http://www.metarace.net/ out. I'm hungry. Give me any comment about this site. Best Regards. ^^
[flexcoders] Profiling AIR apps
Hello Flexies, Can anyone tell me how to start the profiler for an AIR app or point me to a blog/page with some relevant information. After I hit the profile my app button, all I get after a few seconds is a 'Socket timeout.' message on the console. I have read the page at http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Performance_and_Memory_Profiling but I cannot find any relevant info there that helps me. Any info would be greatly appreciated as I desperately need to plug some leaky holes in my app. Cheers Vaan
Re: [flexcoders] Automated User Interface Testing
On Friday 04 Apr 2008, kallebertell wrote: Is there some other options which I haven't looked into? The one that Adobe test the SDK with ? It's in the source repository. -- Tom Chiverton Helping to continuously transform interactive meta-services on: http://thefalken.livejournal.com 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. 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 Solicitors Regulation Authority. 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 2500. 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.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] AdvancedDataGrid performance poll
Hi, I am conducting two performance polls for AdvancedDataGrid. If you don't mind spending a minute and provide valuable feedback please visit http://flexpearls.blogspot.com/2008/03/datechooser-with-support-for.html Thanks! Sreenivas
[flexcoders] Copying all data from one column of DataGrid to another column
Hi all, I am using an dataGrid control. I want to have a functionality by which i can copy the entire column of a DataGrid to another column of the same DataGrip. Any pointers / help will be highly appreciated. Thanks: Bali
Re: [flexcoders] Copying all data from one column of DataGrid to another column
It seems the following should do it: //assuming this setup mx:DataGrid id=theGrid dataProvider={_dataGridAC} ... private function copyColumnData(ac:ArrayCollection, sourceDataField:String, destDataField:String):void { //you could use the real object type here instead of Object for each(var obj:Object in _dataGridAC) { //checks for hasOwnProperty not necessary if you are using strongly typed objects if(obj.hasOwnProperty(sourceDataField) obj.hasOwnProperty(destDataField)) { obj[destDataField] = obj[sourceDataField]; } } //we have changed the grid provider behind the scenes, so invalidate the list to update the display theGrid.invalidateList(); } hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://blog.fastlanesw.com Baljeet singh wrote: Hi all, I am using an dataGrid control. I want to have a functionality by which i can copy the entire column of a DataGrid to another column of the same DataGrip. Any pointers / help will be highly appreciated. Thanks: Bali
[flexcoders] Flex Soap and Https
Hello, Is it possible to call Soap service thru https, with WebService Class, il the server need Basic Authentication ? Thanks Jean
[flexcoders] Problem with OC4J web services and Flex3 SOAPEncoder
Hello! I got a problem trying to execute a web service running in Oracle OC4j 10.1.3.3, and a client side with Flex3. I generated the scripts for using the web service using Flex builder 3, but it's not making a valid call to web service. I debugged the call operation to the Flex SOAPEncoder which seems to generate an invalid soap message. The SOAPEncoder generates the following message; SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/ envelope/ xmlns=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; SOAP-ENV:Body tns:getDocuments xmlns:tns=http://modultek.atonpdm.document/; tns:getDocuments tns:String_1service manual/tns:String_1 /tns:getDocuments /tns:getDocuments /SOAP-ENV:Body /SOAP-ENV:Envelope Where the correct working soap message should be; SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/ envelope/ xmlns=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; SOAP-ENV:Body tns:getDocuments xmlns:tns=http://modultek.atonpdm.document/; tns:String_1service manaual/tns:String_1 /tns:getDocuments /SOAP-ENV:Body /SOAP-ENV:Envelope Problem in the first message is that Flex SOAPEncoder generates an extra tns:getDocuments child tag, and Oracle app server can't handle it. Has someone any idea why SOAPEncoder is generating the extra operation tag, and is this behaviour configurable somehow or is the soapencoder broken? The wsdl is included in the following; ?xml version=1.0 encoding=UTF-8 ? - definitions xmlns=http://schemas.xmlsoap.org/wsdl/; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:xsd=http:// www.w3.org/2001/XMLSchema xmlns:mime=http://schemas.xmlsoap.org/ wsdl/mime/ xmlns:tns=http://modultek.atonpdm.document/; name=DocumentOperationsService targetNamespace=http:// modultek.atonpdm.document/ - types - schema xmlns=http://www.w3.org/2001/XMLSchema; xmlns:wsdl=http:// schemas.xmlsoap.org/wsdl/ xmlns:xsi=http://www.w3.org/2001/ XMLSchema-instance xmlns:soap11-enc=http://schemas.xmlsoap.org/soap/ encoding/ targetNamespace=http://modultek.atonpdm.document/; elementFormDefault=qualified - complexType name=SimpleDocumentDM - sequence element name=docGroupDesc type=string nillable=true / element name=docRev type=string nillable=true / element name=docId type=string nillable=true / element name=docGroup type=string nillable=true / element name=docDesc1 type=string nillable=true / element name=docDesc2 type=string nillable=true / element name=docCode type=string nillable=true / element name=docDesc3 type=string nillable=true / element name=docDesc4 type=string nillable=true / /sequence /complexType element name=getDocuments type=tns:getDocuments / - complexType name=getDocuments - sequence element name=String_1 type=string nillable=true / /sequence /complexType element name=getDocumentsResponse type=tns:getDocumentsResponse / - complexType name=getDocumentsResponse - sequence element name=return type=tns:CollectionOfSimpleDocumentDM nillable=true / /sequence /complexType - complexType name=CollectionOfSimpleDocumentDM - sequence element name=item type=tns:SimpleDocumentDM minOccurs=0 maxOccurs=unbounded / /sequence /complexType element name=getSimpleDocumentInformation type=tns:getSimpleDocumentInformation / - complexType name=getSimpleDocumentInformation - sequence element name=String_1 type=string nillable=true / /sequence /complexType element name=getSimpleDocumentInformationResponse type=tns:getSimpleDocumentInformationResponse / - complexType name=getSimpleDocumentInformationResponse - sequence element name=return type=tns:SimpleDocumentDM nillable=true / /sequence /complexType /schema /types - message name=DocumentOperations_getDocuments part name=parameters element=tns:getDocuments / /message - message name=DocumentOperations_getDocumentsResponse part name=parameters element=tns:getDocumentsResponse / /message - message name=DocumentOperations_getSimpleDocumentInformation part name=parameters element=tns:getSimpleDocumentInformation / /message - message name=DocumentOperations_getSimpleDocumentInformationResponse part name=parameters element=tns:getSimpleDocumentInformationResponse / /message - portType name=DocumentOperations - operation name=getDocuments input message=tns:DocumentOperations_getDocuments / output message=tns:DocumentOperations_getDocumentsResponse / /operation - operation name=getSimpleDocumentInformation input message=tns:DocumentOperations_getSimpleDocumentInformation / output message=tns:DocumentOperations_getSimpleDocumentInformationResponse / /operation /portType - binding name=DocumentOperationsSoapHttp type=tns:DocumentOperations soap:binding style=document transport=http://schemas.xmlsoap.org/ soap/http / - operation name=getDocuments soap:operation soapAction= / - input soap:body use=literal / /input - output soap:body use=literal / /output
Re: [flexcoders] Hi, there. Nice to meet you. I made somthing with FLEX
Hi The site is very nice... The effects are super. Hope you will work better and make it perfect. Also I have a doubt, are you using RSS feeders to get those data If yes, How did you connect the RSS feeders to Flex.?.. And if I delete QA questions will it hide from my page or delete from the main application... I hope you will answer me for the above Anyway excellent work Keep always this spirit... Chitra
[flexcoders] Re: AIR app crashing on start
Hi Alex, yes, it appears hung and not crashed, bad choice of words in my part. Getting to the point, all files are visible, not a file permission problem also. Tried exporting a release build with all the files just in case and still no result, reinstalled runtime, still no luck... Also when commenting out all code (i.e: just using an empty WindowedApplication), css, etc. it just sits there again. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: So it isn't really crashing, but appears hung? Check the -app.xml to make sure it is visible, etc.
[flexcoders] Determining text control's height in a ListItemRenderer.
Hi, I have made a custom control by extending the ListItemRenderer to use as an itemRenderer with a list control. This custom component has some images and text controls. But I am having trouble sizing the Text controls. The Text control can have a varying width depending upon the width of the component, but then how do I set the height of the Text control? The list is set to use variable row heights. I referred to http://tech.groups.yahoo.com/group/flexcoders/message/105824 which seems to be a similar problem, but I am not able to figure it out. Thanks for any help.
[flexcoders] XML Escape Charater handling
Hi i m new to flex. I wanted to know is there any special way i can hadle Escape Character in Flex or i would have to write a wrapper myself to replace a with lt if it appears in my string .. Thanks Sohil
Re: [flexcoders] Re: Question about DisplayObject.hitTestPoint() and the shapeFlag
On Apr 4, 2008, at 5:54 PM, Eric Cooper wrote: FWIW, I decided to write my own hit test using dot products for concave polygons. I will need to do something a bit more involved for convex polygons, but I don't need that immediately. Give this a shot. This is from my AS3 boolean library I'm working on. I originally wrote the library for AS2 but recently decided to revisit it for a possible project. - jon /** * Point inside polygon using winding number method * q Point2d A point 2d structure with x,y properties * p Polygon A polygon as an array of points in clockwise order * returns Boolean Point is inside polygon if winding (w) number is != 0 */ private function pointInsidePolygon(q:Point2d, p:Polygon):Boolean { var n:int = p.length; var w:int = 0; for (i=0; in; i++) { var ip:int = (i+1)%n; if ( ( p[i].y q.y ) != ( p[ip].y q.y ) ) { if ( p[i].x = q.x ) { if ( p[ip].x q.x ) { w += 2 * ( p[ip].y p[i].y ) - 1; } else { if ( ( (p[i].x-q.x)*(p[ip].y-q.y) - (p[ip].x-q.x)*(p[i].y-q.y) 0 ) == ( p[ip].y p[i].y ) ) { w += 2 * ( p[ip].y p[i].y ) - 1; } } } else { if ( p[ip].x q.x ) { if ( ( (p[i].x-q.x)*(p[ip].y-q.y) - (p[ip].x-q.x)*(p[i].y-q.y) 0 ) == ( p[ip].y p[i].y ) ) { w += 2 * ( p[ip].y p[i].y ) - 1; } } } } } return (w!=0) ? true:false; }
[flexcoders] Allow Muitlple Selection with shift key
Hi friends, I want multiple selection with shift key instead of control key in component List. Control key is defaultly specified by Adobe. Thanks, with regards, JJain - You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
Re: [flexcoders] Re: Question about DisplayObject.hitTestPoint() and the shapeFlag
On Apr 7, 2008, at 8:46 AM, Jon Bradley wrote: /** * Point inside polygon using winding number method * q Point2d A point 2d structure with x,y properties * p Polygon A polygon as an array of points in clockwise order * returns Boolean Point is inside polygon if winding (w) number is != 0 */ Forgot to add that the parameter p for the polygon is a closed loop where p[0] == p[n]. cheers, jon
[flexcoders] Flex SuperTabBar skin not updated when selecting tab programmatically
I'm using several SuperTabNavigators (They 're awesome !) from flexlib (Thanxs for flexlib ! ) but I have one problem (not able to solve it since weeks). After loading the contents for the SuperTabNavigator I'd like to select the first tab - superTabNav.selectedChild or superTabNav.selectedIndex. This works well, but sometimes the skin of the associated Tab header (SuperTabBar child) is not set to its upSkin. Does anybody have an idea why this happens ? _rico
Re: [flexcoders] TDD, code coverage, UI automation and what the neighbours are up to...
On Saturday 05 Apr 2008, Barry Beattie wrote: wouldn't it be great if Flex apps could do the same within FlexBuilder? Leaving aside the QTP integration Flex has had since v2, UI automation is already in the source repository (check out the last steps of the build process). -- Tom Chiverton Helping to efficiently seize vertical channels on: http://thefalken.livejournal.com 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. 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 Solicitors Regulation Authority. 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 2500. 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.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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: Problem dropping items on a Canvas
thanks man... but if I set alpha to 0, the items I drop in the Container are invisible ( also have alpha 0 ). any other ideas? --- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: set the color then alpha=0; - Original Message From: Daniel [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 5, 2008 8:25:53 PM Subject: [flexcoders] Problem dropping items on a Canvas Hey guys! I'm trying to drop some items (treeItems to be specific) in a Canvas, but it seems the DRAG_ENTER event is not being dispatched, so the listener in the Canvas can't accept the drag. This is fixed when I set a color to the Canvas, but I need the Canvas to be transparent ( at least to preserve its default color ). Does anyone know why this happens? Thanx, DaN !-- #ygrp-mkp{ border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;} #ygrp-mkp hr{ border:1px solid #d8d8d8;} #ygrp-mkp #hd{ color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;} #ygrp-mkp #ads{ margin-bottom:10px;} #ygrp-mkp .ad{ padding:0 0;} #ygrp-mkp .ad a{ color:#ff;text-decoration:none;} -- !-- #ygrp-sponsor #ygrp-lc{ font-family:Arial;} #ygrp-sponsor #ygrp-lc #hd{ margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;} #ygrp-sponsor #ygrp-lc .ad{ margin-bottom:10px;padding:0 0;} -- !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-reco { margin-bottom:20px;padding:0px;} #ygrp-reco #reco-head { font-weight:bold;color:#ff7900;} #reco-grpname{ font-weight:bold;margin-top:10px;} #reco-category{ font-size:77%;} #reco-desc{ font-size:77%;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a{ text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc{ background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o{font-size:0;} .MsoNormal{ margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} .replbq{margin:4;} -- You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com
[flexcoders] Re: Question regarding mx:List and itemRenderer
Thank you very much tracy, I have been reading about it and it is working perfectly now. Of course have to set up a few different tweaks ;) --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Yes. Google: Alex Harui itemRenderer recycle You will find a full explanation and lots of example code. Briefly: For performance reasons, the list-based conponents only renderer enough UI elements to display what is visible to the user , plus a few for buffering. Anytime you interact with the List (or DG), like scroll, or update the underlying data, Flex manipulates the underlying list and sends the changed dataProvider item object to the appropriate itemRenderer, which must use that data to change its appearance as needed. In this recycle process, the framework calls the itemRenderer's set data() function, passing in the new item object. This means your item renderer must override set data(o:Object), and then use that passed in data to set itself up. Best practice is to save the data in a var, then call invalidateProperties(). This makes the framework, at the correct, optimized time, call the item renderer's commitProperties() method. You should do the actual UI work in this function, using the data you saved in set data(); All this is in the interest of performance on large lists. See Alex's blog for all the details. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tchredeemed Sent: Friday, April 04, 2008 3:05 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Question regarding mx:List and itemRenderer I do have a custom itemRenderer, and I am not doing anything to handle recycling. Got any documentation I can read regarding the issue? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: You have a custom item renderer, is that correct? If so, are you properly handling recycling, by using override set data() and invalidateProperties()? Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of tchredeemed Sent: Friday, April 04, 2008 11:18 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Question regarding mx:List and itemRenderer Why is it that, when I have two lists, if I drag between the two of them, sometimes the itemRenderer will display data / colors from an incorrect item in the List. For instance: List A: [ item 1 ] [ item 2 ] List B: [ item 3 ] [ item 4 ] If I move [ item 2 ] to List b: List A: [ item 1 ] List B: [ item 3 ] [ item 4 ] [ item 2 ] Then I move [ item 4 ] to List A: List A: [ item 1 ] [ item 4 ] List B: [ item 3 ] [ item 2 ] [ item 4 ] will display some properties that [ item 2 ] should have, seemingly because I put it in [ item 2 ]'s position in List A. Is this common and is there something simple to fix this?
Re: [flexcoders] Fail to apply UITextFormat to UITextField in custom Component
Instead of using defaultTextFormat, try setting the text and then calling myText.setTextFormat(myFormat). Also calling addchild and then setting the formatting may make a difference but it's been a while since i looked at this stuff so it might not. If neither of these things help and i have some time later today I'll try to get into it. - Daniel Freiman On Sun, Apr 6, 2008 at 10:25 PM, brianrusseldavis [EMAIL PROTECTED] wrote: This thread seems to be the only help out there for UITextField and Formatting it via UITextFormat. The Adobe documentation fails to provide a working example. So I guess I will pose the question here with a very very simple example. Why is the following code wrong? The text displays but the font size is not changing. ?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.core.UITextFormat; import mx.core.UITextField; private function init():void { var myText:UITextField = new UITextField; var myFormat:UITextFormat = new UITextFormat(this.systemManager); myFormat.size = 30 myText.defaultTextFormat = myFormat myText.validateNow(); myText.text = Hello Hello Hello! addChild(myText); } ]] /mx:Script /mx:Application Brian Russel Davis http://www.brickabracka.com/learning b[at]brickabracka[dot]com ndkamp wrote: Styles can override text formating when the parent of a UITextField is invalidated, but only having some formatting overridden is a little weird. no, all of the formatting is overridden. Functionality for setting format based on style is in the UITextField class, I think the function is validateNow() thanks dan, that pointed me to the right direction. I traced validateNow() in UITextField where the format is set using styles - overriding all of the formatting that might have been applied using UITextFormat. I did toggle styleChangedFlag to false and voilà - all the formatting using UITextFormat were applied. Now I have the choice to extend UITextFormat and to override validateNow() or just use Styles for all the formatting and forget about UITextFormat, which is probably the recommended way - just getting started with flex you see. thanks again, solved. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: Styles can override text formating when the parent of a UITextField is invalidated, but only having some formatting overridden is a little weird. Functionality for setting format based on style is in the UITextField class, I think the function is validateNow(), but I not 100% certain about that. For future reference, I asked about font type because embeding fonts incorrectly could account for the described behavior (as I originally understood it), and the rendering engine for device fonts (in very few and specific cases) also has its own quirks. - Dan Freiman On Feb 4, 2008 10:53 AM, ndkamp [EMAIL PROTECTED] wrote: ok, I found that if i wrap the textField in a sprite and add this in createChildren, then formatting will be applied correctly: var wrapper:Sprite = new Sprite(); wrapper.addChild(txt); this.addChild(wrapper); Well, i'm not really comfortable with this but I think I need to look closer at styles, since formats seem to get overriden when a TextField is add directly to the component...? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, ndkamp ndkamp@ wrote: dan, thanks for your answer. I'm using device and/or embedded fonts, but right here I don't really care about the fonts. I'm just puzzled why the formatting doesn't seem to work for me. I'm using UITextFormat, because of the options it gives me with anti-aliasing and measuring. A I tried using TextFormat but that wont help. I did not look at styling and skinning, so I'm not sure if the formats get overriden by styles in a later stage by the framework. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Daniel Freiman FreimanCQ@ wrote: Are you using embeded or device fonts? Also, is there a reason you are using UITextFormat instead of TextFormat? Even when using with a UITextField, 99% of the time using UITextFormat instead of TextFormat is unnecessary and makes thing more complicated. - Dan Freiman On Feb 4, 2008 9:22 AM, ndkamp ndkamp@ wrote: Thanks for your answer. I know the text and orange background are ok, but the formats won't show. Are you really getting bold text, what about the size and color? what if you add: format.italic = true, format.underline = true; format.font = Georgia; Do they show? can't get the formats to work. Im
[flexcoders] BlazeDS + Jetty
Anyone had put BlazeDS to run inside Jetty? Look on google for this. Found almost nothing. VELO
Re: [flexcoders] Allow Muitlple Selection with shift key
Hello JJain, This component might help you: http://blog.dclick.com.br/2007/10/25/selecionando-multiplos-itens-sem-o-ctrl/ The content is not in English but the code is straightforward. All you have to change is a line in mouseDownHandler: from: event.ctrlKey = true; to: event.ctrlKey = event.shiftKey; On Mon, Apr 7, 2008 at 9:15 AM, jitendra jain [EMAIL PROTECTED] wrote: Hi friends, I want multiple selection with shift key instead of control key in component List. Control key is defaultly specified by Adobe. Thanks, with regards, JJain -- You rock. That's why Blockbuster's offering you one month of Blockbuster Total Accesshttp://us.rd.yahoo.com/evt=47523/*http://tc.deals.yahoo.com/tc/blockbuster/text5.com, No Cost. -- Marcelo Curi Savioli D-Click Web Mobile Solutions [EMAIL PROTECTED] www.dclick.com.br/blog www.dclick.com.br
[flexcoders] Using Embedded and System Fonts in same text field
Hi everyone, I'm having some trouble with embedded fonts. I have read many many threads/posts about embedded fonts and haven't really gotten anywhere so far. No matter what I have tried I cannot seem to apply an embedded font to a section of text and have a system font applied to another section of text within the same text field. It almost seems as if you are restricted to using either system fonts or embedded fonts in the same text field. Iv'e got a sample application below which allows me to apply multiple fonts to different selections with a text field - however when I pick one of my embedded fonts, a default system font is used in its place: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=creationComplete(event) mx:Style source=.\stylesheets\primary.css/ mx:VBox id=vb mx:Label text=My Title fontFamily=AdLib RM/ mx:TextArea id=textArea fontSize=26 width=200 height=50/ mx:ComboBox id=fontComboBox dataProvider={fontFamilyArray} labelField=fontName change=fontComboBox_change(event)/ /mx:VBox mx:Script ![CDATA[ use namespace mx_internal; [Bindable] private var fontFamilyArray:Array; private function creationComplete(event:Event):void { fontFamilyArray = Font.enumerateFonts(true); fontFamilyArray.sortOn(fontName, Array.CASEINSENSITIVE); } private function fontComboBox_change(event:Event):void { var tf:TextFormat = textArea.getTextField().getTextFormat(); var beginIndex:int = textArea.getTextField ().selectionBeginIndex; var endIndex:int = textArea.getTextField().selectionEndIndex; tf.font = fontComboBox.selectedLabel; textArea.getTextField().setTextFormat(tf, beginIndex, endIndex); textArea.invalidateDisplayList(); textArea.validateDisplayList(); } ]] /mx:Script /mx:Application I know the font has been embedded correctly because the label control has the correct font applied to it. If I initialise the font property on the text area to my embedded font (fontFamily=AdLib RM) then when I start typing into the text area the font is correct - and I can select any of the other embedded fonts and they work fine. But selecting a system font for part of the text now causes the text to become hidden. Any advice would be grately appreciated. Cheers, Andy.
[flexcoders] Re: AIR app crashing on start
Found the problem, sort of, I had monkeypatched FlexSprite and as soon as I rolled back to a version without the patch it worked fine. Maybe the patched FlexSprite class is not being properly compiled into the .air file, but shouldn't it work, since it works when running/debugging the application from Flex Builder? --- In flexcoders@yahoogroups.com, Joao Coelho [EMAIL PROTECTED] wrote: Hi Alex, yes, it appears hung and not crashed, bad choice of words in my part. Getting to the point, all files are visible, not a file permission problem also. Tried exporting a release build with all the files just in case and still no result, reinstalled runtime, still no luck... Also when commenting out all code (i.e: just using an empty WindowedApplication), css, etc. it just sits there again.
[flexcoders] Re: How can I clear an ArrayCollection or Datagrid
Hi Alex, I believe that there is a bug/feature with binding HTTPService result to a DataGrid. If HTTPService returns empty result (null), DataGrid won't be cleared from a previous values. To overcome this problem I had to use a dataProvider variable(ArrayCollection) which I clear every time before the request and then copy values from HTTPService. Before this topic I thought that this is feature, but after I saw your comments it is definitely a bug :) PS I have not found any other way of resetting the DataGrid. If you assign dataProvider to an empty ArrayCollection it won't help (presumably because DataGrid needs collectionChange event and nothing else) Cheers, Dmitri. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: If the service returned an empty AC, I would verify that the DG has really been assigned that empty AC. Read back the dataProvider on the DG and see what its length is. You can also try to manually reset the DG to an empty AC and see if it refreshes that way. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jovialrandor Sent: Sunday, April 06, 2008 5:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid Alex, the HTTPService returns an empty arraycollection, but the datagrid still has the values from the last call. How do I in the code refresh the arraycollection, since the 'refresh ()' did not work? Thanks --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: I would think that your service should return an empty array collection, or return a failure. If it returns an empty array collection it should refresh. If it returns a failure, then you should set the arraycollection to an empty arraycollection on failure From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of jovialrandor Sent: Saturday, April 05, 2008 9:16 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] How can I clear an ArrayCollection or Datagrid I use a HTTPService to load data into an ArrayCollection which is used for a datagrid. For example I type in a parameter A to the HTTPService that returns data that gets loaded in to ArrayCollectin. However when I when resend the HTTPservice with parameter B that returns no data, the datagrid still displays the value of parameter A. I've tried: httpservice.send(); // To get new values arraycollection.refresh(). // To refresh the datagrid. But no luck. Thanks
[flexcoders] AIR SQL - Datatype issues
Hey all, I've looked at the documentation about 400 times now and can't seem to find myself an example of using a column of datatype Date within AIR SQL. I know that it's been customized to use Actionscript / JavaScript Date objects, but I can't get it to work properly for the life of me. Any examples or pointers? Cheers, !k
[flexcoders] Re: HttpService post error 2032:iostream error
Install Wireshark sniffer and check the contents of the packets. I am inclined to think that this problem is on a server side. PS What is on the server side? --- In flexcoders@yahoogroups.com, longxjyh [EMAIL PROTECTED] wrote: When I use HttpService to send data by post method,I encounter a problem.I find if the length of the post data is over 1022,then flex rises the runtime error 2032.However the data is sended to server wholelly and the server has accepted all the data without any error.I can't understand why flex rises such error.The problem exists only in IE.In firefox ,it's ok,no problem.
Re: [flexcoders] Using Embedded and System Fonts in same text field
I'm 99.9% sure that what you're attempting can't be done. The livedocs for TextField says that TextField has a flag (embedFonts) that indicates whether embeded or device fonts are used, so it's hard to see how both could ever be used at the same time. - Dan Freiman On Mon, Apr 7, 2008 at 9:52 AM, a.hawksworth230 [EMAIL PROTECTED] wrote: Hi everyone, I'm having some trouble with embedded fonts. I have read many many threads/posts about embedded fonts and haven't really gotten anywhere so far. No matter what I have tried I cannot seem to apply an embedded font to a section of text and have a system font applied to another section of text within the same text field. It almost seems as if you are restricted to using either system fonts or embedded fonts in the same text field. Iv'e got a sample application below which allows me to apply multiple fonts to different selections with a text field - however when I pick one of my embedded fonts, a default system font is used in its place: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=creationComplete(event) mx:Style source=.\stylesheets\primary.css/ mx:VBox id=vb mx:Label text=My Title fontFamily=AdLib RM/ mx:TextArea id=textArea fontSize=26 width=200 height=50/ mx:ComboBox id=fontComboBox dataProvider={fontFamilyArray} labelField=fontName change=fontComboBox_change(event)/ /mx:VBox mx:Script ![CDATA[ use namespace mx_internal; [Bindable] private var fontFamilyArray:Array; private function creationComplete(event:Event):void { fontFamilyArray = Font.enumerateFonts(true); fontFamilyArray.sortOn(fontName, Array.CASEINSENSITIVE); } private function fontComboBox_change(event:Event):void { var tf:TextFormat = textArea.getTextField().getTextFormat(); var beginIndex:int = textArea.getTextField ().selectionBeginIndex; var endIndex:int = textArea.getTextField().selectionEndIndex; tf.font = fontComboBox.selectedLabel; textArea.getTextField().setTextFormat(tf, beginIndex, endIndex); textArea.invalidateDisplayList(); textArea.validateDisplayList(); } ]] /mx:Script /mx:Application I know the font has been embedded correctly because the label control has the correct font applied to it. If I initialise the font property on the text area to my embedded font (fontFamily=AdLib RM) then when I start typing into the text area the font is correct - and I can select any of the other embedded fonts and they work fine. But selecting a system font for part of the text now causes the text to become hidden. Any advice would be grately appreciated. Cheers, Andy.
[flexcoders] Re: GIS and Flex
We are developing software system that includes flex-client and jboss- server communicating via SOAP-web services. Now we need to add GIS-functionality, that is we need to show some objects on the map on the flex-client. Our system will run in private network and customers will not have internet access. so the requirements for solution we are looking for, are as follows : 1. flex GIS API for client side 2. server that can be installed in private network and can handle all necessary GIS data 3. GIS data (digital cartographic maps and aerial/satellite imagery) for specific geographical area stored locally with certain detail level. any points to possible solution will be appreciated.
[flexcoders] remoteObject and secureJSON on CF
Is flex's remoteObject compatible with secureJSON, secureJSONPrefix and verifyClient() in ColdFusion? I was reading Ray's article on securing Ajax and I don't want to break my Flex/AIR applications if I start using these features/functions. http://www.adobe.com/devnet/coldfusion/articles/ajax_security.html Thanks, Chad
[flexcoders] Re: Datatip in datagrid not working properly
Thank you very much for your reply. So it seems the documentation is not correct regarding datatips. Please help me understand your statement, Otherwise, it should require clipped text. --- Does this mean that if I used another function or property it would work as I want it to? How do I accomplish showing a tooltip/datatip-like feature only for cells with clipped text? Thanks, Stuart --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: If you used dataTipFunction, it will show up regardless of clipping. Otherwise, it should require clipped text. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of stuartward Sent: Sunday, April 06, 2008 2:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Datatip in datagrid not working properly I have enabled showDataTips in the columns of a datagrid. The datatips show up for all cells regardless of whether the text is clipped or not. According to the Flex 3 documentation: If you enable data tips, they only appear for fields where the data is clipped. I only want to show the datatip for cells that have clipped text. What am I doing wrong? Thanks for your help, Stuart
[flexcoders] Re: flickr api key - callback url
Are you using as3flickrlib? http://code.google.com/p/as3flickrlib/ --- In flexcoders@yahoogroups.com, slee_usa [EMAIL PROTECTED] wrote: I am trying to write a flex app which connects to flickr service. I need to make the authentication work, and provide the callback url. This url should be something like auth.php for the php app. For the flex app what do I need to provide a callback? Thanks. Sean
Re: [flexcoders] AIR SQL - Datatype issues
On Mon, Apr 7, 2008 at 4:22 PM, Kevin Aebig [EMAIL PROTECTED] wrote: Hey all, I've looked at the documentation about 400 times now and can't seem to find myself an example of using a column of datatype Date within AIR SQL. I know that it's been customized to use Actionscript / JavaScript Date objects, but I can't get it to work properly for the life of me. Any examples or pointers? The database engine used in Air is SQLite. I am not that experienced with SQLite, but I suppose that there should be a DATE and TIME datatypes. I have seen people use Text and Real for storing date values. So, just do a search on the web for sqlite. All the best, Fidel.
[flexcoders] Runtime CSS Switching at App Startup
I have an application that needs to be styled based on a URL variable. I'm having trouble applying the style BEFORE the application starts displaying controls. When the app loads, a login Panel is displayed in the default look and feel (gray) until the StyleManager runs as part of an init method called from the creationComplete method. So basically, the default style is initially shown for a split second and then it switches to the correct style. How can I force the style to load before the UI is displayed? I've tried calling the StyleManager in preinitialize functions, but that isn't working. Any thoughts would be appreciated. Thanks! MC
[flexcoders] Adding Shape Objects to Canvas control
Hello All, I am trying to add my custom shape objects (which create several different shape types), to a different type of container, and I am having some difficulties. From my experience, you can directly add a Shape (flash.display.shape) as children to UIComponents, but you cannot add them to a Canvas Control. When I try to add a Shape to Canvas controls, Flex tries to cast the Object as a UIComponent. My question is, how can I convert my custom shape objects, so that they can be added to Canvas controls? Do I need to wrap my objects into a different type of component (UIComponent). The reason I like Shapes, is because they are so lightweight - but if there is a better way, I'd be very interested in hearing about it. Thank you in advance for all your help on this. Mike
[flexcoders] Re: Text Styles In FLEX 2
Well, you can also set the properties in AS, or extend the component to use a hard-coded value, or extend the component to set the values based on content or on some externally maintained value. What is your goal? Tracy --- In flexcoders@yahoogroups.com, Chris Kennon [EMAIL PROTECTED] wrote: Thanks, So the following is the only solution? mx:Text width=200 mx:text Please use our site to find the technical books you need./ mx:text /mx:Text On Apr 5, 2008, at 1:45 PM, Tracy Spratt wrote: mx:Text mx:text Please use our site to find the technical books you need./ mx:text /mx:Text
RE: [flexcoders] AIR SQL - Datatype issues
Hi Fidel, Actually, the version of SQLite that AIR uses has been customized to implement dates as julian dates and stores them as REAL. My issue arises in that I'm getting the dates originally from a MySQL DateTime column and still want to be able to use that form of formatting to query the local database with date ranges and ordering. It would be nice if there were better examples of using the AIR SQL engine. !k _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Fidel Viegas Sent: Monday, April 07, 2008 9:52 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AIR SQL - Datatype issues On Mon, Apr 7, 2008 at 4:22 PM, Kevin Aebig [EMAIL PROTECTED] mailto:kevin%40keslabs.com com wrote: Hey all, I've looked at the documentation about 400 times now and can't seem to find myself an example of using a column of datatype Date within AIR SQL. I know that it's been customized to use Actionscript / JavaScript Date objects, but I can't get it to work properly for the life of me. Any examples or pointers? The database engine used in Air is SQLite. I am not that experienced with SQLite, but I suppose that there should be a DATE and TIME datatypes. I have seen people use Text and Real for storing date values. So, just do a search on the web for sqlite. All the best, Fidel.. http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/msgI d=109106/stime=1207584342/nc1=4507179/nc2=3848644/nc3=5170406
RE: [flexcoders] how do you guys handle reporting?
I use an iFrame window, so the report is inside a panel that is inside the main application. If you want more please visit http://www.themidnightcoders.com/blog/2006/12/mixing-html-and-flex-using-ifr ame.html. Cristy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Derrick Anderson Sent: Monday, April 07, 2008 12:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] how do you guys handle reporting? can i ask how you integrate that with your flex app? do u just send them to another window that loads the sql reporting services? thanks, d. On Sun, Apr 6, 2008 at 4:18 PM, Pavel Cristian Gabriel [EMAIL PROTECTED] wrote: I am using Microsoft SQL Server Reporting Services. It is integrated to Microsoft SQL Server (Database), the deployment of the reports is on the Web and they have Excel, Word, PDF, TIFF, or .XML format files for exporting these reports. I want to mention some other features. You can subscribe to a report based on a schedule and you can receive it on your email (for example). Another interesting feature (for me) is the ability to jump from a report to another report (hyperlink). Cristy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Derrick Anderson Sent: Sunday, April 06, 2008 9:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] how do you guys handle reporting? hi, i have a crm application that I am going to start adding reports to. I haven't done much with reports in flex, and i'm looking for a nice reporting solution. I know all about FlexReport but it seems very new in development and i need something more robust like the report builder included in ColdFusion or Crystal Reports. so how do you guys handle reports in your applications? thanks, d.
RE: [flexcoders] weird NumericStepper question / script
I have a change event handler on each. It would perform the logic and adjust the other three. Or is it the logic itself you are asking about? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks Sent: Saturday, April 05, 2008 5:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] weird NumericStepper question / script I've got 4 NumericSteppers; and the problem I'm having is one I can't get my head 'round: the values of all the NumericSteppers have to add up to 100. On the whole I could easily check via a 'submit' button if they don't addup, but I'd like to check on any of the stepper's 'change' function -- what I was thinking was: As a one is going up, the maximum of all the others goes down in a cycle (ie if someone is putting numB, then C then D -- they're max slowly goes down. If the max value of a numeric stepper meets the current value of that stepper, and there's no more 'room' -- then the user can't keep increasing the size of the current numeric. Is this making sense? In other words, how does one tie in the value of one stepper with another to equal 100. Sure, having 2 steppers makes it easier somewhat, but with 4 I don't know how best to pay attention to them all while still keeping the numbers validating. I'd appreciate any thoughts.
[flexcoders] Re: Connecting 2 mxml files in flex
First we need to be understand your question. One does not connect two mxml files. mxml is a source code format, not a runtime entity. The source code files do not necessarily have any relation to the runtime architecture. You must phrase your question in terms of the runtime functionality you desire. Running Flex apps consist of components. Components can be assembled and instantiated in many ways. Options include sub-components, Containers, Navigation Components, SWFLoader, ModuleLoader, and separete applications (maybe a few more). Communication between run time component instances can also be done in many ways. Before we can help, we need to know more about your application functionality, and how your have implemented that functionality. If you have not begun to implement it yet, start with the docs, Tracy --- In flexcoders@yahoogroups.com, munnya_bdm1 [EMAIL PROTECTED] wrote: Hello guys, Does ne1 kno bout, how 2 connect two mxml filesi m currntly doin a prjct,in which i want to access contents of one component in mxml(A) into another mxml(B)..Is there ne way of doin so..for example u can create a textbox in a.mxml and access its text in b.mxml...both mxml are in same project THANK YOU
RE: [flexcoders] XML Escape Charater handling
What is the context of your question? Sometimes you can use CDATA, sometimes escape()/unescape(), sometimes manually use HTML entities and sometimes it in not necessary to do anything. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sohilrupani Sent: Monday, April 07, 2008 7:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] XML Escape Charater handling Hi i m new to flex. I wanted to know is there any special way i can hadle Escape Character in Flex or i would have to write a wrapper myself to replace a with lt if it appears in my string .. Thanks Sohil
Re: [flexcoders] GroupBox component
Fidel: You can find one in this library - source and all. http://code.google.com/p/jwopitz-lib/ Thanks -Pat www.datanotion.com On Thu, Apr 3, 2008 at 5:27 AM, Fidel Viegas [EMAIL PROTECTED] wrote: Hi all, Does anyone know how to emulate a GroupBox or knows of a ready made component? Thanks in advance, Fidel.
Re: [flexcoders] Drop anywhere to remove
that's what I was afraid of - anyone know of any other ways around it? You'll have to create a new DragProxy class to change this behavior. To do this, you'll need to monkey patch (google it, you'll find it) the framework's DragProxy class. Once you do that, you can change the logic it uses for allowing a drop, or simply insert your remove code directly. Another option is to simply do the checking in addition to the work the DragManager does. So, when you start the drag operation, start listening on the stage (or SystemManager) for the mouse up event. When the mouse up event occurs, look at the currentTarget or target (or do a hitTest) to figure out where the mouse up occurred. If its in a trash it section of the screen, do the delete. You can also listen for mouse move and update the drag proxy cursor as it goes performing the same tests. Its the beauty of the event system, and the fact that (as far as I can remember) the DragProxy class isn't consuming the mouse events. Troy.
RE: [flexcoders] Re: Datatip in datagrid not working properly
What he is saying is that if you simply enable dataTips, Then Flex should show the value of the column's dataField property, but only if it is too long to fit in the cell. However, If you are using a dataTipFunction, you are responsible for showing/not Showing the dataTip. Are you seeing differently? And you are not using a dataTipFunction to build the dataTip? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of stuartward Sent: Monday, April 07, 2008 11:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Datatip in datagrid not working properly Thank you very much for your reply. So it seems the documentation is not correct regarding datatips. Please help me understand your statement, Otherwise, it should require clipped text. --- Does this mean that if I used another function or property it would work as I want it to? How do I accomplish showing a tooltip/datatip-like feature only for cells with clipped text? Thanks, Stuart --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: If you used dataTipFunction, it will show up regardless of clipping. Otherwise, it should require clipped text. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of stuartward Sent: Sunday, April 06, 2008 2:34 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Datatip in datagrid not working properly I have enabled showDataTips in the columns of a datagrid. The datatips show up for all cells regardless of whether the text is clipped or not. According to the Flex 3 documentation: If you enable data tips, they only appear for fields where the data is clipped. I only want to show the datatip for cells that have clipped text. What am I doing wrong? Thanks for your help, Stuart
[flexcoders] Re: HttpService post error 2032:iostream error
I believe I've run into the same problem. I haven't checked the length of the POST data, but I'll bet it's over 1022 bytes. This is under Windows XP, Internet Explorer, and the latest Flash (9,0,115,0). I'm seeing the same behavior with Opera under Windows. Firefox is fine, Apple Safari (under Windows) is fine too. Firefox under Linux is fine. The data gets to the server okay. It seems that the problem is related to the Flash ActiveX wrapper. I'm communicating with Amazon S3, so I don't have a lot of control over the settings. If I got more information with the error, I could ignore it. But all I get is 2032 Stream Error. Very frustrating and scary for my customers (over 50% of which use IE). I haven't tried WireShark under Windows, but I'm afraid I just don't have much control over what Amazon S3 responds with. Carlos --- In flexcoders@yahoogroups.com, Dmitri Girski [EMAIL PROTECTED] wrote: Install Wireshark sniffer and check the contents of the packets. I am inclined to think that this problem is on a server side. PS What is on the server side? --- In flexcoders@yahoogroups.com, longxjyh longxjyh@ wrote: When I use HttpService to send data by post method,I encounter a problem.I find if the length of the post data is over 1022,then flex rises the runtime error 2032.However the data is sended to server wholelly and the server has accepted all the data without any error.I can't understand why flex rises such error.The problem exists only in IE.In firefox ,it's ok,no problem.
[flexcoders] Re: HttpService post error 2032:iostream error
I checked the packets with Charles (www.xk72.com/charles) under Windows. The request body is over 1KB. The response packet just says 204 No Content. There is no body. Obviously, the ActiveX wrapper is taking this to mean that something went wrong. Again, since I have no information other than Error 2032, I don't see how I can safely ignore these errors. Carlos --- In flexcoders@yahoogroups.com, Dmitri Girski [EMAIL PROTECTED] wrote: Install Wireshark sniffer and check the contents of the packets. I am inclined to think that this problem is on a server side. PS What is on the server side? --- In flexcoders@yahoogroups.com, longxjyh longxjyh@ wrote: When I use HttpService to send data by post method,I encounter a problem.I find if the length of the post data is over 1022,then flex rises the runtime error 2032.However the data is sended to server wholelly and the server has accepted all the data without any error.I can't understand why flex rises such error.The problem exists only in IE.In firefox ,it's ok,no problem.
Re: [flexcoders] AIR SQL - Datatype issues
Hey Kevin, Heres an example of some sql text on a SQLStatement that I use in an AIR app I'm building. I use a dateformatter for the actual date output i.e '2008-04-06' and if I need the time component, I just build up and replace the end of the text with my vars, its not pretty but it works fine. The thing to watch out for is that AS regards 12am as 24 rather than 00. Hope that helps.. Cheers Vaan select * from Foo where bar_id = 2 and datetime(date) = datetime('2008-04-06 00:00:00'); Kevin Aebig wrote: Hey all, I’ve looked at the documentation about 400 times now and can’t seem to find myself an example of using a column of datatype Date within AIR SQL. I know that it’s been customized to use Actionscript / JavaScript Date objects, but I can’t get it to work properly for the life of me. Any examples or pointers? Cheers, !k -- Flexcoders Mailing List FAQ: 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Example of connecting to Microsoft Olap server
Hi all, I have found posts stating that Flex can connect to an Olap server. I have found examples of Flex connecting to Xml data for Olap. What I am looking for is Flex connecting to Olap directly using msmdpump.dll I'd like to see what it can do. Do I specify what dimensions, members, filters etc there are, it gets the data and displays it, do I just give it the connection and the user can pick those things are does it do both? If anyone can shed any more light on connecting to msmdpump.dll it would be much appreciated as i'm completely stumped. Kind regards, Phil Jeary
RE: [flexcoders] Determining text control's height in a ListItemRenderer.
When I did this, I did not extend ListItemRenderer, but rather copied it an modfied the code. ListItemRenderer does properly handle height and width measurement. You could look at the code, specifically in the measure() method, to see what you need to do to duplicate the functionality. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of geraldshastri Sent: Monday, April 07, 2008 7:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Determining text control's height in a ListItemRenderer. Hi, I have made a custom control by extending the ListItemRenderer to use as an itemRenderer with a list control. This custom component has some images and text controls. But I am having trouble sizing the Text controls. The Text control can have a varying width depending upon the width of the component, but then how do I set the height of the Text control? The list is set to use variable row heights. I referred to http://tech.groups.yahoo.com/group/flexcoders/message/105824 http://tech.groups.yahoo.com/group/flexcoders/message/105824 which seems to be a similar problem, but I am not able to figure it out. Thanks for any help.
[flexcoders] Local file access
One of the noticeable differences between Silverlight and Flash is the way they handle local file access. In Flash we have to upload a file to the server before we can gain access to the file's contents. In Silverlight you get access to the file as soon as it is selected by the user. My question is if anyone knows if the way Flash does it is because of security concerns (meaning Silverlight might have to change), or not (meaning Flash 'could' change)? I have to say that I really like the way Silverlight handles it as there is no round-trip delay before a user can start using the file in your RIA. *Steve Mathews* *Senior Software Engineer* e [EMAIL PROTECTED] *Flypaper Studio, Inc.* 2999 North 44th Street, Suite 200 Phoenix, AZ 85018 www.flypaper.net
RE: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid
I have used AC API method removeAll() to clear an AC, and it properly updates the UI. Assigning an empty AC should do it as well, though. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Monday, April 07, 2008 12:30 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid If the service returned an empty AC, I would verify that the DG has really been assigned that empty AC. Read back the dataProvider on the DG and see what its length is. You can also try to manually reset the DG to an empty AC and see if it refreshes that way. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jovialrandor Sent: Sunday, April 06, 2008 5:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid Alex, the HTTPService returns an empty arraycollection, but the datagrid still has the values from the last call. How do I in the code refresh the arraycollection, since the 'refresh ()' did not work? Thanks --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: I would think that your service should return an empty array collection, or return a failure. If it returns an empty array collection it should refresh. If it returns a failure, then you should set the arraycollection to an empty arraycollection on failure From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of jovialrandor Sent: Saturday, April 05, 2008 9:16 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] How can I clear an ArrayCollection or Datagrid I use a HTTPService to load data into an ArrayCollection which is used for a datagrid. For example I type in a parameter A to the HTTPService that returns data that gets loaded in to ArrayCollectin. However when I when resend the HTTPservice with parameter B that returns no data, the datagrid still displays the value of parameter A. I've tried: httpservice.send(); // To get new values arraycollection.refresh(). // To refresh the datagrid. But no luck. Thanks
RE: [flexcoders] Re: Datatip in datagrid not working properly
Most of the time, folks just need to pick out one field from the data object, often the same as the label. Leaving dataTipFunction as null and setting dataField works for those situations. If dataTipFunction is not null, the datatips are always shown. If you must use dataTipFunction, I would subclass the item renderer and alter then its tooltip property is null. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of stuartward Sent: Monday, April 07, 2008 8:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Datatip in datagrid not working properly Thank you very much for your reply. So it seems the documentation is not correct regarding datatips. Please help me understand your statement, Otherwise, it should require clipped text. --- Does this mean that if I used another function or property it would work as I want it to? How do I accomplish showing a tooltip/datatip-like feature only for cells with clipped text? Thanks, Stuart --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: If you used dataTipFunction, it will show up regardless of clipping. Otherwise, it should require clipped text. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of stuartward Sent: Sunday, April 06, 2008 2:34 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Datatip in datagrid not working properly I have enabled showDataTips in the columns of a datagrid. The datatips show up for all cells regardless of whether the text is clipped or not. According to the Flex 3 documentation: If you enable data tips, they only appear for fields where the data is clipped. I only want to show the datatip for cells that have clipped text. What am I doing wrong? Thanks for your help, Stuart
[flexcoders] Error building Flex through Ant
We are attempting to build our project using Ant so that we can include Flex in our continuous build process. We are getting a strange namespace error when attempting to build using the mxmlc compiler. We created a simple HelloWorld project to verify the error was not in our project structure. Ant fails to build the project, but FlexBuilder has no problems. Here are the code snippets and error message: Error Message: compile-flex: [mxmlc] Loading configuration file C:\flex_sdk\frameworks\flex-config.xml [mxmlc] C:\eclipse_workspaces\RRS\HelloWorld\src\HelloWorld.mxml(8): Error: Unknown namespace http://www.w3.org/2000/xmlns/ on attribute http://www.adobe.com/2006/mxml (only default attribute namespaces are supported). [mxmlc] BUILD FAILED C:\eclipse_workspaces\RRS\HelloWorld\build-flex.xml:14: mxmlc task failed Example code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; horizontalAlign=center verticalAlign=middle width=300 height=200 creationComplete=creationCompleteHandler(event); mx:Script ![CDATA[ import flash.events.MouseEvent; import mx.events.FlexEvent; private function creationCompleteHandler(event:FlexEvent):void { // Listen for the click event on the Button control myButton.addEventListener (MouseEvent.CLICK, clickHandler); } private function clickHandler ( event:Event ):void { myLabel.text = Hello, World!; } ]] /mx:Script mx:Panel title=My Application horizontalAlign=center paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10 mx:Label id=myLabel width=180 fontWeight=bold fontSize=24/ mx:Button id=myButton label=Click Me! / /mx:Panel /mx:Application Ant Build File: ?xml version=1.0? project default=compile-flex basedir=. name=Compile Flex Tasks property environment=env/ taskdef resource=flexTasks.tasks classpath=${env.FLEX_HOME}/ant/lib/flexTasks.jar / taskdef name=mxmlc classname=flex.ant.MxmlcTask classpath=${env.FLEX_HOME}/ant/lib/flexTasks.jar / !-- Define Properties -- property name=FLEX_HOME value=${env.FLEX_HOME}/ property name=APP_ROOT value=src/ target name=compile-flex mxmlc file=${APP_ROOT}/HelloWorld.mxml output=${APP_ROOT}/HelloWorld.swf keep-generated-actionscript=true load-config filename=${FLEX_HOME}/frameworks/flex-config.xml/ source-path path-element=${APP_ROOT}/ /mxmlc /target /project
Re: [flexcoders] Profiling AIR apps
In the words of Dr Evil 'throw me a frikkin bone here ok'. Cmon someone must be using the profiler on AIR apps out there. I'm not asking for hand holding, just a confirmation that it even works would be start. Is there someting I need to config, coz at the moment all i get is socket timeout messages on the console and all the profiler buttons are grayed out, inaccessible. Cheers Vaan
RE: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid
I ran a simple test of DataGrid binding to arraycollection. If I set an empty array collection, the DataGrid resets properly. If the HTTPService returns an empty ArrayCollection I would expect the DG to also reset, but I don't have time to test that out. If it returns null, I'm not sure what it will generate, but again, if you detect that it returns null and set the array collection to an empty array collection it should reset the DG. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dmitri Girski Sent: Monday, April 07, 2008 8:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid Hi Alex, I believe that there is a bug/feature with binding HTTPService result to a DataGrid. If HTTPService returns empty result (null), DataGrid won't be cleared from a previous values. To overcome this problem I had to use a dataProvider variable(ArrayCollection) which I clear every time before the request and then copy values from HTTPService. Before this topic I thought that this is feature, but after I saw your comments it is definitely a bug :) PS I have not found any other way of resetting the DataGrid. If you assign dataProvider to an empty ArrayCollection it won't help (presumably because DataGrid needs collectionChange event and nothing else) Cheers, Dmitri. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: If the service returned an empty AC, I would verify that the DG has really been assigned that empty AC. Read back the dataProvider on the DG and see what its length is. You can also try to manually reset the DG to an empty AC and see if it refreshes that way. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of jovialrandor Sent: Sunday, April 06, 2008 5:13 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid Alex, the HTTPService returns an empty arraycollection, but the datagrid still has the values from the last call. How do I in the code refresh the arraycollection, since the 'refresh ()' did not work? Thanks --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: I would think that your service should return an empty array collection, or return a failure. If it returns an empty array collection it should refresh. If it returns a failure, then you should set the arraycollection to an empty arraycollection on failure 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 jovialrandor Sent: Saturday, April 05, 2008 9:16 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] How can I clear an ArrayCollection or Datagrid I use a HTTPService to load data into an ArrayCollection which is used for a datagrid. For example I type in a parameter A to the HTTPService that returns data that gets loaded in to ArrayCollectin. However when I when resend the HTTPservice with parameter B that returns no data, the datagrid still displays the value of parameter A. I've tried: httpservice.send(); // To get new values arraycollection.refresh(). // To refresh the datagrid. But no luck. Thanks
RE: [flexcoders] Query related to ItemRenderer
Look at the examples on my blog (blogs.adobe.com/aharui) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jehanzeb Musani Sent: Monday, April 07, 2008 7:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Query related to ItemRenderer Hello, I have written item renderer for an application. The item renderers bascially change the background color of datagrid's column based on different conditions. For example, item renderers for Ask Price and Ask Volums set alternating background colors that is different from the rest of the columns. The problem I am having is that datagrid's default selection and highlight colors are not visible on the columns for which I have specified my custom item renderes. I have attached herewith the snapshot of the datagrid. The snapshot depicts the same scenario described above. I would like to know how the columns for which item renderes have been defined can have the same behavior as that of rest of datagrid's columns when a row selected or mouse points over a row (highlighting case). Regards, Jehanzeb __ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com http://tc.deals.yahoo.com/tc/blockbuster/text5.com
RE: [flexcoders] Determining text control's height in a ListItemRenderer.
You should set the Text's width to some portion of the item renderer's explicitWidth before measuring the Text. Note that ListItemRenderer already does wordwrapping and uses TextField instead of the heavier Text component. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of geraldshastri Sent: Monday, April 07, 2008 4:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Determining text control's height in a ListItemRenderer. Hi, I have made a custom control by extending the ListItemRenderer to use as an itemRenderer with a list control. This custom component has some images and text controls. But I am having trouble sizing the Text controls. The Text control can have a varying width depending upon the width of the component, but then how do I set the height of the Text control? The list is set to use variable row heights. I referred to http://tech.groups.yahoo.com/group/flexcoders/message/105824 http://tech.groups.yahoo.com/group/flexcoders/message/105824 which seems to be a similar problem, but I am not able to figure it out. Thanks for any help.
RE: [flexcoders] AIR SQL - Datatype issues
Hi Vaan, Thanks... I just found references to using a specific date function which I'm going to try out. convert string to datetime object: strftime('%Y-%m-%d %H:%M:%S','timeStringShouldGoHere','localtime') Cheers, !k -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Vaan S Lanko Sent: Monday, April 07, 2008 10:39 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AIR SQL - Datatype issues Hey Kevin, Heres an example of some sql text on a SQLStatement that I use in an AIR app I'm building. I use a dateformatter for the actual date output i.e '2008-04-06' and if I need the time component, I just build up and replace the end of the text with my vars, its not pretty but it works fine. The thing to watch out for is that AS regards 12am as 24 rather than 00. Hope that helps.. Cheers Vaan select * from Foo where bar_id = 2 and datetime(date) = datetime('2008-04-06 00:00:00'); Kevin Aebig wrote: Hey all, I've looked at the documentation about 400 times now and can't seem to find myself an example of using a column of datatype Date within AIR SQL. I know that it's been customized to use Actionscript / JavaScript Date objects, but I can't get it to work properly for the life of me. Any examples or pointers? Cheers, !k -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Profiling AIR apps
It works. I use, Run Profile AppName and it starts the profiler as well as your application after you set the options. !k _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Vaan S Lanko Sent: Monday, April 07, 2008 11:24 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Profiling AIR apps In the words of Dr Evil 'throw me a frikkin bone here ok'. Cmon someone must be using the profiler on AIR apps out there. I'm not asking for hand holding, just a confirmation that it even works would be start. Is there someting I need to config, coz at the moment all i get is socket timeout messages on the console and all the profiler buttons are grayed out, inaccessible. Cheers Vaan
Re: [flexcoders] AIR SQL - Datatype issues
CREATE TABLE tbl_test ( testID INTEGER PRIMARY KEY AUTOINCREMENT , field1 DATE ) All of the following work: INSERT INTO tbl_test (field1) VALUES ('now') INSERT INTO tbl_test (field1) VALUES ('2008-04-07 20:57:44') INSERT INTO tbl_test (field1) VALUES ('2008-04-07') INSERT INTO tbl_test (field1) VALUES (CURRENT_TIMESTAMP) More info on this page: http://livedocs.adobe.com/flex/3/langref/localDatabaseSQLSupport.html Look for: Date and time formatting functions and Time formats (about 3/4 down the page). regards, Muzak - Original Message - From: Kevin Aebig [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, April 07, 2008 5:22 PM Subject: [flexcoders] AIR SQL - Datatype issues Hey all, I've looked at the documentation about 400 times now and can't seem to find myself an example of using a column of datatype Date within AIR SQL. I know that it's been customized to use Actionscript / JavaScript Date objects, but I can't get it to work properly for the life of me. Any examples or pointers? Cheers, !k -- Flexcoders Mailing List FAQ: 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Blazeds sqladmin processing resultSet List data
I'm trying to get ArrayCollection mapped to an array using the Blazeds turnkey sample code. In the sqladmin example, they are creating a List object in the Java code by executing the SQL query and storing it like this: // relevant code... while (rs.next()) { row=new HashMap(); for (int i = 1; i = colCount; i++) { row.put(rsmd.getColumnName(i), rs.getString(i)); } list.add(row); } } Then they put this result in a dataGrid: mx:DataGrid id=dg dataProvider={resultSet} width=100% height=100%/ and the following method. private function resultHandler(event:ResultEvent):void{ resultSet = ArrayCollection(event.result); } I'd like to display the same data in a chart, but I don't know how to do this. What I'd like to do is something like this: //pseudo code Horizontal Axis (x) = Data from Column 1 Vertical Axis (y) = Data from Column 2 ..or something like that. Anyone know what class the HashMap/List is sending back so that I can convert the info into Dates or numbers or somethow get it to show up on the chart? I was trying something like this, but it doesn't work: var axisArray:ArrayCollection = new ArrayCollection; for each (var obj:Object in resultSet) { var f:Number = new Number(obj); result.addItem(f); } // axis data provider = axisArray
[flexcoders] Re: How can I clear an ArrayCollection or Datagrid
Assigning an empty AC should do it as well, though. Nope, it didn't work for me. I had this problem with both DataGrid AdvancedDataGrid and ended up with intermediate ArrayCollection.
[flexcoders] Re: How can I clear an ArrayCollection or Datagrid
removeAll() should do exactly what you are looking for, but only if your dataGrid's dataprovider is bound to the arrayCollection. If your dataGrid is not bound to the arrayCollection, the dataGrid will not change as data in the arrayCollection changes (unless you have accounted for this programatically elsewhere). If you do not want to use binding, the easiest thing would be to add a collection_change eventListener on the arrayCollection so you can clear out or update the dataGrid as the arrayCollection data changes. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: I have used AC API method removeAll() to clear an AC, and it properly updates the UI. Assigning an empty AC should do it as well, though. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Monday, April 07, 2008 12:30 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid If the service returned an empty AC, I would verify that the DG has really been assigned that empty AC. Read back the dataProvider on the DG and see what its length is. You can also try to manually reset the DG to an empty AC and see if it refreshes that way. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jovialrandor Sent: Sunday, April 06, 2008 5:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid Alex, the HTTPService returns an empty arraycollection, but the datagrid still has the values from the last call. How do I in the code refresh the arraycollection, since the 'refresh ()' did not work? Thanks --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Alex Harui aharui@ wrote: I would think that your service should return an empty array collection, or return a failure. If it returns an empty array collection it should refresh. If it returns a failure, then you should set the arraycollection to an empty arraycollection on failure From: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of jovialrandor Sent: Saturday, April 05, 2008 9:16 AM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] How can I clear an ArrayCollection or Datagrid I use a HTTPService to load data into an ArrayCollection which is used for a datagrid. For example I type in a parameter A to the HTTPService that returns data that gets loaded in to ArrayCollectin. However when I when resend the HTTPservice with parameter B that returns no data, the datagrid still displays the value of parameter A. I've tried: httpservice.send(); // To get new values arraycollection.refresh(). // To refresh the datagrid. But no luck. Thanks
[flexcoders] Re: how do you guys handle reporting?
I would love to see a report builder/formater added to FlexBuilder, much like what is available for ColdFusion. --- In flexcoders@yahoogroups.com, Pavel Cristian Gabriel [EMAIL PROTECTED] wrote: I use an iFrame window, so the report is inside a panel that is inside the main application. If you want more please visit http://www.themidnightcoders.com/blog/2006/12/mixing-html-and-flex- using-ifr ame.html. Cristy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Derrick Anderson Sent: Monday, April 07, 2008 12:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] how do you guys handle reporting? can i ask how you integrate that with your flex app? do u just send them to another window that loads the sql reporting services? thanks, d. On Sun, Apr 6, 2008 at 4:18 PM, Pavel Cristian Gabriel [EMAIL PROTECTED] wrote: I am using Microsoft SQL Server Reporting Services. It is integrated to Microsoft SQL Server (Database), the deployment of the reports is on the Web and they have Excel, Word, PDF, TIFF, or .XML format files for exporting these reports. I want to mention some other features. You can subscribe to a report based on a schedule and you can receive it on your email (for example). Another interesting feature (for me) is the ability to jump from a report to another report (hyperlink). Cristy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Derrick Anderson Sent: Sunday, April 06, 2008 9:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] how do you guys handle reporting? hi, i have a crm application that I am going to start adding reports to. I haven't done much with reports in flex, and i'm looking for a nice reporting solution. I know all about FlexReport but it seems very new in development and i need something more robust like the report builder included in ColdFusion or Crystal Reports. so how do you guys handle reports in your applications? thanks, d.
RE: [flexcoders] AIR SQL - Datatype issues
Hey Muzak, I've actually tried a few of those from references at SQLite websites but to no avail. I think it has something to do with the way the DB is handling data typing as I've heard that SQLite will actually allow unique datatypes to each cell instead of column. Thanks a lot for the examples... hopefully something clicks. Cheers, !k -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Monday, April 07, 2008 1:12 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AIR SQL - Datatype issues CREATE TABLE tbl_test ( testID INTEGER PRIMARY KEY AUTOINCREMENT , field1 DATE ) All of the following work: INSERT INTO tbl_test (field1) VALUES ('now') INSERT INTO tbl_test (field1) VALUES ('2008-04-07 20:57:44') INSERT INTO tbl_test (field1) VALUES ('2008-04-07') INSERT INTO tbl_test (field1) VALUES (CURRENT_TIMESTAMP) More info on this page: http://livedocs.adobe.com/flex/3/langref/localDatabaseSQLSupport.html Look for: Date and time formatting functions and Time formats (about 3/4 down the page). regards, Muzak - Original Message - From: Kevin Aebig [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, April 07, 2008 5:22 PM Subject: [flexcoders] AIR SQL - Datatype issues Hey all, I've looked at the documentation about 400 times now and can't seem to find myself an example of using a column of datatype Date within AIR SQL. I know that it's been customized to use Actionscript / JavaScript Date objects, but I can't get it to work properly for the life of me. Any examples or pointers? Cheers, !k -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: HttpService post error 2032:iostream error
OK, guys, I'll try to summarise my painful experience with HTTPService. Things which could go wrong: - HTTPService settings, i.e. type of the parameters object. You should check that if you send XML, the type of the object is XML and content-type is application/xml - I had a lot of mysterious problems with #2032 error, so I ended up with a solution to create HTTPService object, send data and then disconnect() it and kill (assign a null). As soon as the FlashPlayer code is closed unfortunately we have no idea how it works with sockets and what are the real error codes we get. -requests could be cached by the browser/server, to prevent this it is a good idea always add some random number parameter to the request URL (someURL?nocache=xyz) -server side (PHP) magic sequence to prevent caching header('Pragma: bogus'); header('Cache-control: bogus'); similar things should be done for other servers, check Judah's blog: http://www.judahfrangipane.com/blog/?p=87 header('Expires: 0') - causes a lot of #2032's - error #2032 could be produced in certain cases when server replies with unexpected response. Usually we see #1090 - XML parser error, but sometimes, #2032 is thrown. I happens when server replies with anythinh else rather then 200 code and also some problems with PHP - it is always wise to check server logs for any errors. -combination Apache2 + SSL + Gentoo + HTTPService does not work. This is just a matter of fact. I didn't have time nor resources to investigate it further, but FreeBSD + Apache1 + SSL + HTPPService works seamlessly. I suspect that Apache2+SSL + FlashPlayer have some problem with packet resends during the error recovery - this is the only result I've got looking through megs of Wireshark logfiles. The result of this combination was #2032 error due to the timeouts in the network - if SSL connection is dropped there was a little chance that it will be renegotiated again. PS I have not dealt with Charles, but I highly recommend Wireshark - this thing sits at the lowest level and allows you to see the raw network packets. And it is free. Cheers, Dmitri.
RE: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid
Well, it worked for me in a simple test. I'd be interested in your scenario to see why it was different. Maybe you had bindings that overwrote your manual updating. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dmitri Girski Sent: Monday, April 07, 2008 11:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid Assigning an empty AC should do it as well, though. Nope, it didn't work for me. I had this problem with both DataGrid AdvancedDataGrid and ended up with intermediate ArrayCollection.
RE: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid
If you've assigned an arraycollection (as opposed to an array) to the DataGrid but are not using binding, the DataGrid will refresh when you call removeAll(). Whether you use binding or not, once the DG has a reference to an arraycollection instance and you change that instance, the datagrid will notice. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jmfillman Sent: Monday, April 07, 2008 11:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid removeAll() should do exactly what you are looking for, but only if your dataGrid's dataprovider is bound to the arrayCollection. If your dataGrid is not bound to the arrayCollection, the dataGrid will not change as data in the arrayCollection changes (unless you have accounted for this programatically elsewhere). If you do not want to use binding, the easiest thing would be to add a collection_change eventListener on the arrayCollection so you can clear out or update the dataGrid as the arrayCollection data changes. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: I have used AC API method removeAll() to clear an AC, and it properly updates the UI. Assigning an empty AC should do it as well, though. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Alex Harui Sent: Monday, April 07, 2008 12:30 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid If the service returned an empty AC, I would verify that the DG has really been assigned that empty AC. Read back the dataProvider on the DG and see what its length is. You can also try to manually reset the DG to an empty AC and see if it refreshes that way. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of jovialrandor Sent: Sunday, April 06, 2008 5:13 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid Alex, the HTTPService returns an empty arraycollection, but the datagrid still has the values from the last call. How do I in the code refresh the arraycollection, since the 'refresh ()' did not work? Thanks --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Alex Harui aharui@ wrote: I would think that your service should return an empty array collection, or return a failure. If it returns an empty array collection it should refresh. If it returns a failure, then you should set the arraycollection to an empty arraycollection on failure 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 jovialrandor Sent: Saturday, April 05, 2008 9:16 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] How can I clear an ArrayCollection or Datagrid I use a HTTPService to load data into an ArrayCollection which is used for a datagrid. For example I type in a parameter A to the HTTPService that returns data that gets loaded in to ArrayCollectin. However when I when resend the HTTPservice with parameter B that returns no data, the datagrid still displays the value of parameter A. I've tried: httpservice.send(); // To get new values arraycollection.refresh(). // To refresh the datagrid. But no luck. Thanks
[flexcoders] Re: Question about DisplayObject.hitTestPoint() and the shapeFlag
jon, thanks! my polygons are only triangles and quadrilaterals at this point, but your method works beautifully for concave quads. I did have to change one line (which appears a few times) in order to compile: w += 2 * ( p[ip].y p[i].y ) - 1; became: w += 2 * (( p[ip].y p[i].y ) ? 1 : 0) - 1; I am new to AS, so this may have been unnecessary or they may have been a more elegant way to do this. thanks again. -eric --- In flexcoders@yahoogroups.com, Jon Bradley [EMAIL PROTECTED] wrote: On Apr 7, 2008, at 8:46 AM, Jon Bradley wrote: /** * Point inside polygon using winding number method * q Point2d A point 2d structure with x,y properties * p Polygon A polygon as an array of points in clockwise order * returns Boolean Point is inside polygon if winding (w) number is != 0 */ Forgot to add that the parameter p for the polygon is a closed loop where p[0] == p[n]. cheers, jon
[flexcoders] Re: Error building Flex through Ant
We are only getting this error when building from Eclipse. --- In flexcoders@yahoogroups.com, Nicholas Watson [EMAIL PROTECTED] wrote: We are attempting to build our project using Ant so that we can include Flex in our continuous build process. We are getting a strange namespace error when attempting to build using the mxmlc compiler. We created a simple HelloWorld project to verify the error was not in our project structure. Ant fails to build the project, but FlexBuilder has no problems. Here are the code snippets and error message: Error Message: compile-flex: [mxmlc] Loading configuration file C:\flex_sdk\frameworks\flex-config.xml [mxmlc] C:\eclipse_workspaces\RRS\HelloWorld\src\HelloWorld.mxml(8): Error: Unknown namespace http://www.w3.org/2000/xmlns/ on attribute http://www.adobe.com/2006/mxml (only default attribute namespaces are supported). [mxmlc] BUILD FAILED C:\eclipse_workspaces\RRS\HelloWorld\build-flex.xml:14: mxmlc task failed Example code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; horizontalAlign=center verticalAlign=middle width=300 height=200 creationComplete=creationCompleteHandler(event); mx:Script ![CDATA[ import flash.events.MouseEvent; import mx.events.FlexEvent; private function creationCompleteHandler(event:FlexEvent):void { // Listen for the click event on the Button control myButton.addEventListener (MouseEvent.CLICK, clickHandler); } private function clickHandler ( event:Event ):void { myLabel.text = Hello, World!; } ]] /mx:Script mx:Panel title=My Application horizontalAlign=center paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10 mx:Label id=myLabel width=180 fontWeight=bold fontSize=24/ mx:Button id=myButton label=Click Me! / /mx:Panel /mx:Application Ant Build File: ?xml version=1.0? project default=compile-flex basedir=. name=Compile Flex Tasks property environment=env/ taskdef resource=flexTasks.tasks classpath=${env.FLEX_HOME}/ant/lib/flexTasks.jar / taskdef name=mxmlc classname=flex.ant.MxmlcTask classpath=${env.FLEX_HOME}/ant/lib/flexTasks.jar / !-- Define Properties -- property name=FLEX_HOME value=${env.FLEX_HOME}/ property name=APP_ROOT value=src/ target name=compile-flex mxmlc file=${APP_ROOT}/HelloWorld.mxml output=${APP_ROOT}/HelloWorld.swf keep-generated-actionscript=true load-config filename=${FLEX_HOME}/frameworks/flex-config.xml/ source-path path-element=${APP_ROOT}/ /mxmlc /target /project
[flexcoders] Flex 3 GA Designer doesn't work with my modules
In Flex 3 Beta I had no issues doing this, in Flex 3 GA it does not work and I'm wondering if any of you have seen this issue. I have extended Module to MyModule and added code that I need. My Flex builder is setup into three projects. AppProject, ModuleProject, and FrameworkProject. My Framework is compiled to my.swc and is in the lib folder of both ModuleProject and AppProject. Both have the swc correctly setup in the project properties. When I open one of my Modules in code view it works great. But when I go over to design view I get an error message in the middle of the design view with the the text An unknown item is declared as teh root of your MXML document. Switch to source mode to correct it. In the Problems view it shows a warning: Design mode: Cannot load my.swc (reason: ERROR: Load Verify). It may require classes (such as Adobe AIR components) that are not supported by design mode. Check the Eclipse error log for more details. This used to come up just fine in design view with Flex 3 beta. If I remove my.swc from my ModuleProject and instead add a new source file that points to the src folder of my FrameworkProject it works. But I don't want this as it causes compiles to be much longer and it is not the way I need it to work since our customers will be able to build their own Modules based off of our Framework and I don't want to give them anything more than a swc. Any suggestions? Thanks, Dale
[flexcoders] Air and linking out from a minibrowser
I have a mini-browser air client, when a user hits a link, i want them to be linked out with their preferred browser. I hear this requires javascript, any tutorials on this? Thanks, Patrick
[flexcoders] Package installs and Air
I have the air client already, when somebody doesn't have an air client is the package install for the air runtime included automatically? If not, how do I include it, please? Thanks, Patrick
Re: [flexcoders] Re: how do you guys handle reporting?
i signed up for a jira account but have yet to receive my confirmation email, else i'd go in there and submit a feature request. On Mon, Apr 7, 2008 at 3:01 PM, jmfillman [EMAIL PROTECTED] wrote: I would love to see a report builder/formater added to FlexBuilder, much like what is available for ColdFusion. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pavel Cristian Gabriel [EMAIL PROTECTED] wrote: I use an iFrame window, so the report is inside a panel that is inside the main application. If you want more please visit http://www.themidnightcoders.com/blog/2006/12/mixing-html-and-flex- using-ifr ame.html. Cristy From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Derrick Anderson Sent: Monday, April 07, 2008 12:48 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] how do you guys handle reporting? can i ask how you integrate that with your flex app? do u just send them to another window that loads the sql reporting services? thanks, d. On Sun, Apr 6, 2008 at 4:18 PM, Pavel Cristian Gabriel [EMAIL PROTECTED] wrote: I am using Microsoft SQL Server Reporting Services. It is integrated to Microsoft SQL Server (Database), the deployment of the reports is on the Web and they have Excel, Word, PDF, TIFF, or .XML format files for exporting these reports. I want to mention some other features. You can subscribe to a report based on a schedule and you can receive it on your email (for example). Another interesting feature (for me) is the ability to jump from a report to another report (hyperlink). Cristy From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Derrick Anderson Sent: Sunday, April 06, 2008 9:46 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] how do you guys handle reporting? hi, i have a crm application that I am going to start adding reports to. I haven't done much with reports in flex, and i'm looking for a nice reporting solution. I know all about FlexReport but it seems very new in development and i need something more robust like the report builder included in ColdFusion or Crystal Reports. so how do you guys handle reports in your applications? thanks, d.
[flexcoders] Re: Unable to send HTTP parameters via Socket Digest Auhtorization
I am not sure why but I am using HTTP/1.1 and sending the request string with '/r/n/r/n' at the end sends the request and I receive the response...but the TCP socket is not closed. Thus the request just hangs for 5 seconds until finally the socket is killed on one end. Any ideas why the socket is not properly closed when I receive the response? GET /app/myaction.action HTTP/1.1 Host: www.mydomain.com Authorization:Basic ZGV2MTpwYXNzd29yZA== --- In flexcoders@yahoogroups.com, Dave Cragg [EMAIL PROTECTED] wrote: On 3 Apr 2008, at 22:11, e_baggg wrote: anyone see anything wrong with this?: POST /xmsv2/api/usermgmt/createUser.cmd HTTP/1.0 Host: www.example.com I don't think HTTP/1.0 supports the Host header. Can you try with HTTP/ 1.1 Authorization: Digest username=dev, realm=myapp, nonce=e0cc32f1f78566187e90a49547ec07f8, uri=/admin/createUser.cmd, qop=auth, nc=2, cnonce=0a4f113b, response=aecf8d679c507f1d194db5463b0c1695, opaque=217361470610c797d3e04ab317280cc5 Content-Type: text/plain username=aaafirstName=alastName=aapassword=aemailAddress=aaa After each line is \r\n and the last line has \r\n\r\n When you say the last line has \r\n\r\n, do you mean after the Content- Type header? If not, that's where it should go. You don't have a Content-Length header. I think this is required in requests from the client. Cheers Dave
[flexcoders] Re: HttpService post error 2032:iostream error
I found a workaround. I can tell Amazon S3 that I want to do a redirect. Now the response code is 303 See Other, which does not generate the error. Opera under Windows suffers from the same problem (not Firefox), although it apparently does not use the ActiveX adaptor. It uses the PlugIn. I don't explain them, just report them. Carlos --- In flexcoders@yahoogroups.com, Dmitri Girski [EMAIL PROTECTED] wrote: OK, guys, I'll try to summarise my painful experience with HTTPService. Things which could go wrong: - HTTPService settings, i.e. type of the parameters object. You should check that if you send XML, the type of the object is XML and content-type is application/xml - I had a lot of mysterious problems with #2032 error, so I ended up with a solution to create HTTPService object, send data and then disconnect() it and kill (assign a null). As soon as the FlashPlayer code is closed unfortunately we have no idea how it works with sockets and what are the real error codes we get. -requests could be cached by the browser/server, to prevent this it is a good idea always add some random number parameter to the request URL (someURL?nocache=xyz) -server side (PHP) magic sequence to prevent caching header('Pragma: bogus'); header('Cache-control: bogus'); similar things should be done for other servers, check Judah's blog: http://www.judahfrangipane.com/blog/?p=87 header('Expires: 0') - causes a lot of #2032's - error #2032 could be produced in certain cases when server replies with unexpected response. Usually we see #1090 - XML parser error, but sometimes, #2032 is thrown. I happens when server replies with anythinh else rather then 200 code and also some problems with PHP - it is always wise to check server logs for any errors. -combination Apache2 + SSL + Gentoo + HTTPService does not work. This is just a matter of fact. I didn't have time nor resources to investigate it further, but FreeBSD + Apache1 + SSL + HTPPService works seamlessly. I suspect that Apache2+SSL + FlashPlayer have some problem with packet resends during the error recovery - this is the only result I've got looking through megs of Wireshark logfiles. The result of this combination was #2032 error due to the timeouts in the network - if SSL connection is dropped there was a little chance that it will be renegotiated again. PS I have not dealt with Charles, but I highly recommend Wireshark - this thing sits at the lowest level and allows you to see the raw network packets. And it is free. Cheers, Dmitri.
[flexcoders] AMF development with remote dev server
I'm just getting started with AMF. WebOrb backend, but I'm on a Mac. Is it possible to set up a FlexBuilder 3 project so I can connect to the remote endpoint. All the instructions I've found talk about running a local server. Can I copy server-config.xml somewhere in my project? Or just web share a folder containing it? Thanks for any tips.
[flexcoders] Re: How can I clear an ArrayCollection or Datagrid
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I ran a simple test of DataGrid binding to arraycollection. If I set an empty array collection, the DataGrid resets properly. well, I am pretty sure it did not work with AdvancedDataGrid - it was a first time I've bumped into this problem. It was AdvancedDataGrid from a Flex3 Beta 2 when I discovered it. Dmitri. If the HTTPService returns an empty ArrayCollection I would expect the DG to also reset, but I don't have time to test that out. If it returns null, I'm not sure what it will generate, but again, if you detect that it returns null and set the array collection to an empty array collection it should reset the DG. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dmitri Girski Sent: Monday, April 07, 2008 8:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid Hi Alex, I believe that there is a bug/feature with binding HTTPService result to a DataGrid. If HTTPService returns empty result (null), DataGrid won't be cleared from a previous values. To overcome this problem I had to use a dataProvider variable(ArrayCollection) which I clear every time before the request and then copy values from HTTPService. Before this topic I thought that this is feature, but after I saw your comments it is definitely a bug :) PS I have not found any other way of resetting the DataGrid. If you assign dataProvider to an empty ArrayCollection it won't help (presumably because DataGrid needs collectionChange event and nothing else) Cheers, Dmitri. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: If the service returned an empty AC, I would verify that the DG has really been assigned that empty AC. Read back the dataProvider on the DG and see what its length is. You can also try to manually reset the DG to an empty AC and see if it refreshes that way. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of jovialrandor Sent: Sunday, April 06, 2008 5:13 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: How can I clear an ArrayCollection or Datagrid Alex, the HTTPService returns an empty arraycollection, but the datagrid still has the values from the last call. How do I in the code refresh the arraycollection, since the 'refresh ()' did not work? Thanks --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: I would think that your service should return an empty array collection, or return a failure. If it returns an empty array collection it should refresh. If it returns a failure, then you should set the arraycollection to an empty arraycollection on failure 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 jovialrandor Sent: Saturday, April 05, 2008 9:16 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] How can I clear an ArrayCollection or Datagrid I use a HTTPService to load data into an ArrayCollection which is used for a datagrid. For example I type in a parameter A to the HTTPService that returns data that gets loaded in to ArrayCollectin. However when I when resend the HTTPservice with parameter B that returns no data, the datagrid still displays the value of parameter A. I've tried: httpservice.send(); // To get new values arraycollection.refresh(). // To refresh the datagrid. But no luck. Thanks
[flexcoders] Re: HttpService post error 2032:iostream error
Thank you for your reply. I've done a lot of research on this problem. None of the usual causes/solutions to 2032 errors appear to apply. This is an HTTP POST without using SSL. It's not a caching problem. Caching is an issue with GET commands, I know that the request really goes out, and the body changes with every post. I know that the content type is fine. Clearly, it's the 204 No Content return status that is messing things up. Unless I can get Amazon to return something different, I'm stuck. In the meantime, I see no choice but to silently throw away these errors. Horrible, I know, but I have no choice. I've used WireShark under Linux. Charles has a nicer interface and gives the same information that I'm looking for. Carlos --- In flexcoders@yahoogroups.com, Dmitri Girski [EMAIL PROTECTED] wrote: OK, guys, I'll try to summarise my painful experience with HTTPService. Things which could go wrong: - HTTPService settings, i.e. type of the parameters object. You should check that if you send XML, the type of the object is XML and content-type is application/xml - I had a lot of mysterious problems with #2032 error, so I ended up with a solution to create HTTPService object, send data and then disconnect() it and kill (assign a null). As soon as the FlashPlayer code is closed unfortunately we have no idea how it works with sockets and what are the real error codes we get. -requests could be cached by the browser/server, to prevent this it is a good idea always add some random number parameter to the request URL (someURL?nocache=xyz) -server side (PHP) magic sequence to prevent caching header('Pragma: bogus'); header('Cache-control: bogus'); similar things should be done for other servers, check Judah's blog: http://www.judahfrangipane.com/blog/?p=87 header('Expires: 0') - causes a lot of #2032's - error #2032 could be produced in certain cases when server replies with unexpected response. Usually we see #1090 - XML parser error, but sometimes, #2032 is thrown. I happens when server replies with anythinh else rather then 200 code and also some problems with PHP - it is always wise to check server logs for any errors. -combination Apache2 + SSL + Gentoo + HTTPService does not work. This is just a matter of fact. I didn't have time nor resources to investigate it further, but FreeBSD + Apache1 + SSL + HTPPService works seamlessly. I suspect that Apache2+SSL + FlashPlayer have some problem with packet resends during the error recovery - this is the only result I've got looking through megs of Wireshark logfiles. The result of this combination was #2032 error due to the timeouts in the network - if SSL connection is dropped there was a little chance that it will be renegotiated again. PS I have not dealt with Charles, but I highly recommend Wireshark - this thing sits at the lowest level and allows you to see the raw network packets. And it is free. Cheers, Dmitri.
Re: [flexcoders] Re: Question about DisplayObject.hitTestPoint() and the shapeFlag
On Apr 7, 2008, at 2:30 PM, Eric Cooper wrote: w += 2 * (( p[ip].y p[i].y ) ? 1 : 0) - 1; Ah yup. I didn't compile that bit yet. That was my reference code from the previous project and just copy/ pasted it with the change for function name and comments. I guess I shouldn't be surprised that didn't compile. :) best, jon
Re: [flexcoders] Runtime CSS Switching at App Startup
Marrittw For your solution I guess you could call applicationComplete Handler. And works most of time. For your function unload the default and than load yours. Regards Igor Costa On 4/7/08, merrittwchapman [EMAIL PROTECTED] wrote: I have an application that needs to be styled based on a URL variable. I'm having trouble applying the style BEFORE the application starts displaying controls. When the app loads, a login Panel is displayed in the default look and feel (gray) until the StyleManager runs as part of an init method called from the creationComplete method. So basically, the default style is initially shown for a split second and then it switches to the correct style. How can I force the style to load before the UI is displayed? I've tried calling the StyleManager in preinitialize functions, but that isn't working. Any thoughts would be appreciated. Thanks! MC -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] AIR SQL - Datatype issues
I'm working on an (AIR) SQLite Admin tool, and the examples are what I use (in the app) so they do work. The DB's used however are created with the app itself, so maybe that has something to do with it. If you're interested in trying the app (still a work in progress) shoot me a mail: regards, Muzak - Original Message - From: Kevin Aebig [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, April 07, 2008 9:02 PM Subject: RE: [flexcoders] AIR SQL - Datatype issues Hey Muzak, I've actually tried a few of those from references at SQLite websites but to no avail. I think it has something to do with the way the DB is handling data typing as I've heard that SQLite will actually allow unique datatypes to each cell instead of column. Thanks a lot for the examples... hopefully something clicks. Cheers, !k -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Monday, April 07, 2008 1:12 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AIR SQL - Datatype issues CREATE TABLE tbl_test ( testID INTEGER PRIMARY KEY AUTOINCREMENT , field1 DATE ) All of the following work: INSERT INTO tbl_test (field1) VALUES ('now') INSERT INTO tbl_test (field1) VALUES ('2008-04-07 20:57:44') INSERT INTO tbl_test (field1) VALUES ('2008-04-07') INSERT INTO tbl_test (field1) VALUES (CURRENT_TIMESTAMP) More info on this page: http://livedocs.adobe.com/flex/3/langref/localDatabaseSQLSupport.html Look for: Date and time formatting functions and Time formats (about 3/4 down the page). regards, Muzak -- Flexcoders Mailing List FAQ: 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Flex Code Behind issue
Very Stange behavior. I´ve tested your code and couldn´t get same error. Log a bug for it. Regards Igor Costa On 4/6/08, firdosht [EMAIL PROTECTED] wrote: Hey guys, so I have created a simple flex proj mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute themeColor=#0EFF02 mx:Script ![CDATA[ private function onOver(evt:Event):void{ trace(onOver : +evt.currentTarget ); test.setStyle(backgroundColor,0xff00ff); } private function onOut(evt:Event):void{ trace(onOut : +evt.currentTarget ); test.setStyle(backgroundColor,0x00); } ]] /mx:Script mx:Canvas id=test x=118 y=136 width=443 height=133 themeColor=#099FFF backgroundColor=#D7 rollOver=onOver(event); rollOut=onOut(event); mx:Button x=39 y=35 label=Button/ /mx:Canvas /mx:Application So basically all the code above does is changes the backgroundColor of the Canvas. It works fine Now if I make a MXML Component using the Code Behind Method * *mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute themeColor=#0EFF02 xmlns:ns1=item.* ns1:ListItem x=80 y=48/ /mx:Application *ListItem.mxml* item:CListItem xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 xmlns:item=item.* mx:Button x=65 y=61 label=Button/ /item:CListItem * CListItem.as* package item { import flash.events.MouseEvent; import mx.containers.Canvas; import mx.events.FlexEvent; public class CListItem extends Canvas { public function CListItem() { super(); this.addEventListener(FlexEvent.CREATION_COMPLETE, onComponentLoaded); } private function onMouseOver(evt:MouseEvent):void{ trace(CListItem.onMouseOver :); this.setStyle(backgroundColor,0xff00ff); } private function onMouseOut(evt:MouseEvent):void{ trace(CListItem.onMouseOut); this.setStyle(backgroundColor,0x00); } private function onComponentLoaded(evt:FlexEvent):void{ this.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver); this.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut); } } } Now when I mouse over the Button component the onMouseOut function gets called and there is a flicker in the backgroundColor. If I dont use the Code Behind Method then the onMouseOut function does not get called when I rollOver the button. Can anyone explain this strange behavior? Thanks Cheers Firdosh -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] BlazeDS + Jetty
Velo Once the Jetty is found in JoNas and JBoss, it´s just a matter of Libraries to start running. Same configuration you have to install in JBoss will works fine in Jetty too. Regards Igor Costa www.igorcosta.org On 4/7/08, VELO [EMAIL PROTECTED] wrote: Anyone had put BlazeDS to run inside Jetty? Look on google for this. Found almost nothing. VELO -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Flex SuperTabBar skin not updated when selecting tab programmatically
Rico If you´re trying using the Flex 3 SDK, this problem happens. Please Check out the last sources from the project. Maybe Doug already fix it. That´s because of StyleProxy acomming to Flex 3 SDK. Flex 2 works smooth. Regards Igor Costa www.igorcosta.org On 4/7/08, rleuthold [EMAIL PROTECTED] wrote: I'm using several SuperTabNavigators (They 're awesome !) from flexlib (Thanxs for flexlib ! ) but I have one problem (not able to solve it since weeks). After loading the contents for the SuperTabNavigator I'd like to select the first tab - superTabNav.selectedChild or superTabNav.selectedIndex. This works well, but sometimes the skin of the associated Tab header (SuperTabBar child) is not set to its upSkin. Does anybody have an idea why this happens ? _rico -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Flex Soap and Https
Jean This Could help your for while http://weblogs.macromedia.com/lin/archives/2008/04/how_to_access_f.cfm Regards Igor Costa www.igorcosta.org On 4/7/08, Szabo Jean [EMAIL PROTECTED] wrote: Hello, Is it possible to call Soap service thru https, with WebService Class, il the server need Basic Authentication ? Thanks Jean -- Igor Costa www.igorcosta.com www.igorcosta.org
[flexcoders] Re: how do you guys handle reporting?
I continue to use CF Report Builder, cfdocument, etc. for reporting in my Flex apps. I create a flex report using AdvancedDataGrid, etc. and then use the same CFCs to generate cf reports. I simple add a button bar at the top of the Flex report that opens the CF reports in a new browser tab. Works well and customers like it. Don --- In flexcoders@yahoogroups.com, Derrick Anderson [EMAIL PROTECTED] wrote: hi, i have a crm application that I am going to start adding reports to. I haven't done much with reports in flex, and i'm looking for a nice reporting solution. I know all about FlexReport but it seems very new in development and i need something more robust like the report builder included in ColdFusion or Crystal Reports. so how do you guys handle reports in your applications? thanks, d.
[flexcoders] datagord sorting
Hello all. once the datagrid is populated if any column header is clicked the datagrid is sorted. Now how can I take it back to its original state. The original state means the way the data was displayed when it was first loaded in the data grid. Regards...
[flexcoders] Re: AMF development with remote dev server
Hi Richard, Copy the config xml files from /weborb30/WEB-INF/flex to your local box and compile the project with the local version of the files. The only change you need to make is in services-config.xml. Locate the my-anf channel and change the endpoint URI to be an absolute URL pointing to your dev server. Also, keep in mind you might need to put crossdomain.xml in place on the remote server. Cheers, Mark --- In flexcoders@yahoogroups.com, Richard Rodseth [EMAIL PROTECTED] wrote: I'm just getting started with AMF. WebOrb backend, but I'm on a Mac. Is it possible to set up a FlexBuilder 3 project so I can connect to the remote endpoint. All the instructions I've found talk about running a local server. Can I copy server-config.xml somewhere in my project? Or just web share a folder containing it? Thanks for any tips.
Re: [flexcoders] Re: AMF development with remote dev server
Thanks for the suggestion, Mark. Do you mean I should just create a server-less FlexBuilder project, and place those files inside my src directory? Someone else suggested that one can ignore the config files completely, and build up the RemoteObject from scratch in ActionScript. On Mon, Apr 7, 2008 at 3:34 PM, Mark Piller [EMAIL PROTECTED] wrote: Hi Richard, Copy the config xml files from /weborb30/WEB-INF/flex to your local box and compile the project with the local version of the files. The only change you need to make is in services-config.xml. Locate the my-anf channel and change the endpoint URI to be an absolute URL pointing to your dev server. Also, keep in mind you might need to put crossdomain.xml in place on the remote server. Cheers, Mark --- In flexcoders@yahoogroups.com, Richard Rodseth [EMAIL PROTECTED] wrote: I'm just getting started with AMF. WebOrb backend, but I'm on a Mac. Is it possible to set up a FlexBuilder 3 project so I can connect to the remote endpoint. All the instructions I've found talk about running a local server. Can I copy server-config.xml somewhere in my project? Or just web share a folder containing it? Thanks for any tips.
[flexcoders] FontWeight of Selected Item in DataGrid
Greetings - Any way to change the fontWeight of the selected cell in a dataGrid? Seems like there ought to be... cheers, ethan
[flexcoders] FontWeight of Selected Item in DataGrid
Greetings - Any way to change the fontWeight of the selected cell in a dataGrid? Seems like there ought to be... cheers, ethan
Re: [flexcoders] Re: GIS and Flex
elf1435 wrote: so the requirements for solution we are looking for, are as follows : 1. flex GIS API for client side 2. server that can be installed in private network and can handle all necessary GIS data 3. GIS data (digital cartographic maps and aerial/satellite imagery) for specific geographical area stored locally with certain detail level. any points to possible solution will be appreciated. have a look at esri's arcGIS server--actually you'll have to wait for the next release for the flex API. if you can't wait have a look at esri's arcIMS product though you'll have to roll your own flex bits. if either is too steep take a look at mapServer + postGIS, again you'll have to roll your own flex bits.
[flexcoders] Re: AMF development with remote dev server
Yes, either one of the approach is valid. I do prefer to have config files in place as it results in fewer lines of code. You do not have to put the config files into src, just somewhere on the computer. When you reference services-config.xml in the -services compiler argument, make sure to use absolute path to the file. Cheers, Mark --- In flexcoders@yahoogroups.com, Richard Rodseth [EMAIL PROTECTED] wrote: Thanks for the suggestion, Mark. Do you mean I should just create a server-less FlexBuilder project, and place those files inside my src directory? Someone else suggested that one can ignore the config files completely, and build up the RemoteObject from scratch in ActionScript. On Mon, Apr 7, 2008 at 3:34 PM, Mark Piller [EMAIL PROTECTED] wrote: Hi Richard, Copy the config xml files from /weborb30/WEB-INF/flex to your local box and compile the project with the local version of the files. The only change you need to make is in services-config.xml. Locate the my-anf channel and change the endpoint URI to be an absolute URL pointing to your dev server. Also, keep in mind you might need to put crossdomain.xml in place on the remote server. Cheers, Mark --- In flexcoders@yahoogroups.com, Richard Rodseth rrodseth@ wrote: I'm just getting started with AMF. WebOrb backend, but I'm on a Mac. Is it possible to set up a FlexBuilder 3 project so I can connect to the remote endpoint. All the instructions I've found talk about running a local server. Can I copy server-config.xml somewhere in my project? Or just web share a folder containing it? Thanks for any tips.
[flexcoders] Adding a UITextField to a UIComponent
I have a component that extends UIComponent. I am adding several display objects to it--a FlexShape, Image, and UITextField. I've overridden createChildren() to construct each of the component objects. However at run-time the addChild call for the UITextField is throwing an RTE indicating that the UITextField's antiAliasType must be non-null. Anyone run across this; and, if so, any known workarounds? FYI -- The text for the field is set at some time after adding the actual label string. TIA, ed
RE: [flexcoders] datagord sorting
Try re-assigning the dataProvider. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hworke Sent: Monday, April 07, 2008 6:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] datagord sorting Hello all. once the datagrid is populated if any column header is clicked the datagrid is sorted. Now how can I take it back to its original state. The original state means the way the data was displayed when it was first loaded in the data grid. Regards...
[flexcoders] CVS server and flex builder
Did any one installed CVS server on his/her desktop and used it with Flex builder? Was that difficult to configure?
RE: [flexcoders] Adding a UITextField to a UIComponent
Search the archives. Someone else had this problem recently. I don't remember the resolution. The global style selector has a default fontAntiAliasType. Unless you've overridden it, or somehow found a way to get validateNow to run before the styles are hooked up, you shouldn't get this error. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of esaltelli Sent: Monday, April 07, 2008 5:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Adding a UITextField to a UIComponent I have a component that extends UIComponent. I am adding several display objects to it--a FlexShape, Image, and UITextField. I've overridden createChildren() to construct each of the component objects. However at run-time the addChild call for the UITextField is throwing an RTE indicating that the UITextField's antiAliasType must be non-null. Anyone run across this; and, if so, any known workarounds? FYI -- The text for the field is set at some time after adding the actual label string. TIA, ed