Re: [flexcoders] Re: Flex and SQL
On Friday 07 Sep 2007, [EMAIL PROTECTED] wrote: Just because you can, would you really recommend it? I know other people who've done that sort of thing. I wouldn't do it myself though. Depends what your requirements are. -- Tom Chiverton Helping to vitalistically revolutionize wireless technologies 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Does Adobe have plans for OplenGL Primitives or not?
On Saturday 08 Sep 2007, [EMAIL PROTECTED] wrote: I don't want to have to cater to Microlust Corp. of Redmond, but I see no other alternative if Adobe doesn't step up and make some plans to compete with SilverLight (took them almost 10 years to come up with something decent). What's that got to do with OpenGL ? It seems that for a long time Macromedia was using Shockwave for Director as the alternative, but it's old, heavy and convoluted we need a good addition of OpenGL Primitives to the Flash Plugin...Adobe, please ??? Why ? -- Tom Chiverton Helping to revolutionarily pursue value-added e-business 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] making optional itemRenderers
Hi, I have a datagrid which contains a itemRenderer that displays a drop down list, now I'd like to conditionally display these drop down lists, so they are not displayed in every row of the datagrid. Is there a way to turn on and off these drop down lists? Thanks
[flexcoders] Cairngorm or AS3 question please help
Hi, I'm using Cairngorm. On one of the Business Delegate classes, I got defined 3 services, instantiated on the Business delegate constructor. Here an example: class UserDelegate { private var userService: Object; private var adminService: Object; private var authorizationService: Object; private var responder : Responder; public function UserDelegate( responder : Responder ) { this.userService = ServiceLocator.getInstance().getService ( UserService ); this.adminService = ServiceLocator.getInstance().getService ( AdminService ); this.authorizationService = ServiceLocator.getInstance ().getService( AuthorizationService ); this.responder = responder; } } On one of my Cammand classes I create UserDelegate Object using new UserDelegate() this is supposed inturn to create the 3 services Object as seen in the code above. All is done I think, as expected. I call the Command object execute method, where I'm using ONE of the services in UserDelegate Object. Precisely I use authorizationService, and the behaviour is as expected. Then after using another Command instantiating the UserDelegate AGAIN, and using DIFFERENT service like userService, the reference is null. Because I'm creating a NEW UserDelegate so the service references souldn't be null. Can please please someone say where I got it wrong. Kind regards
[flexcoders] How to create a link in flex ??
Is there any tag something like mx:Link with flex to create a link. Flex Builder doesn't show any such tag, but it is some flex examples even by adobe. For sample example see link : http://livedocs.adobe.com/flex/15/flex_docs_en/wwhelp/wwhimpl/c ommon/html/wwhelp.htm?context=Flex_Documentationfile=0160.htm Thanks Regards, Baljeet
RE: [flexcoders] How to create a link in flex ??
Not exactly but you can create your own class that can help you achieve that... Just use a label and use the rollOver and rollOut handlers to set the style to underline the text. Also you may use the useHandCursor property. Best Regards, Nikhil Tuli. il n'y a rien tel que noir ou blanc, toutes sont différentes dégradés de gris Important: This e-mail, including any attachment(s) hereto, is intended only for the individual or entity to whom it is addressed. It may contain proprietary, confidential or privileged information or attorney work product belonging to Fidelity Business Services India Pvt. Ltd. (FBS India) or its affiliates. If you are not the intended recipient of this e-mail, or if you have otherwise received this e-mail in error, please immediately notify the sender via return e-mail and permanently delete the original mail, any print outs and any copies, including any attachments. Any dissemination, distribution, alteration or copying of this e-mail is strictly prohibited. The originator of this e-mail does not guarantee the security of this message and will not be responsible for any damages arising from any dissemination, distribution, alteration or copying of this message and/or any attachments to this message by a third party or as a result of any virus being passed on. Any comments or statements made in this are not necessarily those of FBS India or any other Fidelity entity. All e-mails sent from or to FBS India may be subject to our monitoring and recording procedures. FBS India is an Appointed Representative of Fidelity Investments International, which is authorized and regulated by the United Kingdom Financial Services Authority. Fidelity Investments International only gives information on its products and services and does not give investment advice to private clients based on individual circumstances. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Baljeet singh Sent: Monday, September 10, 2007 2:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to create a link in flex ?? Is there any tag something like mx:Link with flex to create a link. Flex Builder doesn't show any such tag, but it is some flex examples even by adobe. For sample example see link : http://livedocs.adobe.com/flex/15/flex_docs_en/wwhelp/wwhimpl/c http://livedocs.adobe.com/flex/15/flex_docs_en/wwhelp/wwhimpl/c ommon/html/wwhelp.htm?context=Flex_Documentationfile=0160.htm Thanks Regards, Baljeet
Re: [flexcoders] How to create a link in flex ??
On Monday 10 Sep 2007, [EMAIL PROTECTED] wrote: http://livedocs.adobe.com/flex/15/flex_docs_en/wwhelp/wwhimpl/c ommon/html/wwhelp.htm?context=Flex_Documentationfile=0160.htm That's Flex 1.5, which IIRC FlexBuilder doesn't support. Flex 2 and 3 have LinkButton though. -- Tom Chiverton Helping to appropriately revolutionize magnetic design-patterns 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Best Practices for XML Compression
I'd browsed thru that - looks like it requires at least PHP server-side. I'm working in a fairly basic IIS space. It kinda looks like the only thing FAR is doing is massaging/creating a zip in the format required by Flash. If it's that simple I should be able to find windows utils to do the same natively, yes? On 9/9/07, Mark Carolin [EMAIL PROTECTED] wrote: Have you seen this library? http://code.google.com/p/vanrijkom-flashlibs/ It may be a great way to save some bandwidth... Mark On 9/9/07, Steve Hueners [EMAIL PROTECTED] wrote: With e4x it's much more tempting to use XML for lots of my client/server traffic but the overhead is still going to be a problem. I've see a couple compression strategies outlined but most for AS2 and/or i'm not clear on server-side requirements. Is there a) any good overview of the topic; b) emerging consensus as to how best approach? thx --steve... -- 323-573-4352(c) AIM:bulbousbeans MSN:[EMAIL PROTECTED]
[flexcoders] TimeChooser, to accompany DateChooser
I am making this somewhat more complicated than necessary, as I could make a simple MXML component, but I am trying to develop a TimeChooser control based on the DateChooser. I believe I have the basic code written, I just can't quite get it to render properly. Can someone check it out and assist me? the code is at: http://ariel-jakobovits.com/AJ/flex.cfm
[flexcoders] Help Creating Tree from Complex XML
Hello, would someone be able to give some guidance in the construction of a tree control from complex XML. I am trying to create the following tree display Accounting --John Waters --Betty Smith Sales --Bob Long --Sam Schwartz Marketing --Howard Lyons Human Resources --Sue Taylor --Bill Montgomery using this XML as a starting point row user userID1/userID departmentAccounting/department firstnameJohn/firstname lastnameWaters/lastname email[EMAIL PROTECTED]/email officePhone555-1212/officePhone birthday1965-08-12/birthday /user ... /row Currently I am returning a similar XML stream from a MySQL database as e4X and it is bound to an XMLListCollection. This collection then is used as the dataProvider for my tree control. and department is used as the label. What I would like to see is all of the users of a given department are within one branch of the tree and when this brach is open I would see their first and last names. Currently, this set up creates a brach for listing the department for each user in the XMLListCollection and when this branch is opened, all of their data is contained. What is the process of grouping all departments together and then only displaying part of the XMLListCollection within the branch? Thanks for the help Don
[flexcoders] Re: Dragging and moving an image to a new location
There is no DragManager.acceptDrop(), only DragManager.acceptDragDrop(). But that doesn't allow re positioning the image. Anyone pls help. Basically, is there any way to access the image properties such as its X and Y location from action script? --- In flexcoders@yahoogroups.com, Sheriff [EMAIL PROTECTED] wrote: DragManager.acceptDrop() - Original Message From: alex_gky [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, September 9, 2007 9:28:35 AM Subject: [flexcoders] Dragging and moving an image to a new location Hi all, How do I achieve dragging an image and upon releasing the mouse button, the image moves to the new location? I have achieve till the drag drop stage using action script. But when the dragDrop() event is called, how do I use action script to update an image (say id=img1) to the new mouse cursor location? Please help. Cheers:) Alex !-- #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-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;} -- Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
[flexcoders] Flexunit
Hi. I try to do some tests cases with Flexunit, but i´m having a problem: When run my test the flash debug show that the assert fail, but in the test console the test status is SUCESS. What i´m doing wrong? Help?
Re: [flexcoders] making optional itemRenderers
On Monday 10 Sep 2007, [EMAIL PROTECTED] wrote: I have a datagrid which contains a itemRenderer that displays a drop down list, now I'd like to conditionally display these drop down lists, so they are not displayed in every row of the datagrid. I would do this within the itemRenderer itself - if it figures out it needs to not show the drop down, it can set the visible property. Obviously, make sure all that is triggered from your 'set data' method. -- Tom Chiverton Helping to greatly benchmark slick materials 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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: Creating Custom Events - I need help!
First time i try use like Robert said: mx:Metadata [Event (name=uploadCompleted, type=com.MultipleUploadFileEvent)] /mx:Metadata And still having same error. After, i try remove Metadata tag, and compiler said Cannot resolve attribute 'uploadCompleted' for component type com.MultiUploadFile. I don't wat can i do more. Some one can help? --- In flexcoders@yahoogroups.com, robertdx.tw [EMAIL PROTECTED] wrote: Thanks for the correction, Mayank. Robert --- In flexcoders@yahoogroups.com, Mayank mayank.kumar@ wrote: The metadata tag is only to assist your compiler and does not translate in any runtime code. Since you are using actionscript to dispatch and catch the event you can skip this tag. The application will work just fine. On 9/7/07, robertdx.tw robertdx.tw@ wrote: Hi, I think that you should state complete class path in metadata tag. something like: mx:Metadata [Event (name=uploadComplete,type=com.somdomain.MultipleUploadFileEvent)] /mx:Metadata otherwise, compiler won't know where the event class is. Good luck. Robert --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, danielvlopes danielvlopes@ wrote: Hello, I'm trying create a custom event, this event is dispatched completed upload of some files. But Event type 'MultipleUploadFileEvent' is unavailable. the erro appear. i think the reason is because i extended custom event from flash.event.Event and this custom event need to be extended of other package, but i don't who. Here is part of my code: My meta data is (extended of flash.event.Event): mx:Metadata [Event (name=uploadComplete, type=MultipleUploadFileEvent)] /mx:Metadata in function make upload i had de following code: refUploadFile.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, onUploadCompleteData); And in this moment (onUploadCompleteData) a try to dispatche event calling uploadComplete function: public function onUploadCompleteData(event:DataEvent):void { numCurrentUpload++; uploadProgress.visible=false; uploadForm.visible=true; if (numCurrentUpload arrUploadFiles.length) { startUpload(false); }else{ uploadComplete(event.data.toString()); } } this is the function to dispatch event: public function uploadComplete(xmlResult:String) :void{ var eventObj:MultiUploadFileEvent = new MultiUploadFileEvent(xmlResult,uploadComplete); dispatchEvent(eventObj); } Thanks everyone.
Re: [flexcoders] Re: private / getters and setters
ASDoc doesn't care about private vars, so it shouldn't/doesn't matter at all. Here's more or less what I use: // static constants // private vars // public vars // CONSTRUCTOR // override protected methods // protected methods // private methods // override public methods // public methods // implicit getter/setters regards, Muzak - Original Message - From: nathanpdaniel [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, September 10, 2007 4:19 AM Subject: [flexcoders] Re: private / getters and setters If you're ever interested in using ASDoc to document your classes, it states you should name the variable, followed by the setter, then the getter. i.e.: private var _a:Object; public function set a(value:Object):void { _a = value; } public function get a():Object { return _a; } This would be solely for documentation and future developers though - doesn't really effect your code either way! :D --- In flexcoders@yahoogroups.com, Sheriff [EMAIL PROTECTED] wrote: what is the best practice for this, show i always have the private variables on top and then getters/setters later or just group both of them right after the other private var _test:Number //Constructor here //events etcc //getters and setters or //construct //vents //private var_test:Number getters/setters
[flexcoders] Re: Cairngorm or AS3 question please help
Not sure of your exact problem but you generally create a one to one relationship between Delegates and Services. So you should probably have UserDelegate, AdminDelegate and AuthorizationDelegate, with each one mapping to the appropriate service. HTH, Ben --- In flexcoders@yahoogroups.com, jairokan [EMAIL PROTECTED] wrote: Hi, I'm using Cairngorm. On one of the Business Delegate classes, I got defined 3 services, instantiated on the Business delegate constructor. Here an example: class UserDelegate { private var userService: Object; private var adminService: Object; private var authorizationService: Object; private var responder : Responder; public function UserDelegate( responder : Responder ) { this.userService = ServiceLocator.getInstance().getService ( UserService ); this.adminService = ServiceLocator.getInstance().getService ( AdminService ); this.authorizationService = ServiceLocator.getInstance ().getService( AuthorizationService ); this.responder = responder; } } On one of my Cammand classes I create UserDelegate Object using new UserDelegate() this is supposed inturn to create the 3 services Object as seen in the code above. All is done I think, as expected. I call the Command object execute method, where I'm using ONE of the services in UserDelegate Object. Precisely I use authorizationService, and the behaviour is as expected. Then after using another Command instantiating the UserDelegate AGAIN, and using DIFFERENT service like userService, the reference is null. Because I'm creating a NEW UserDelegate so the service references souldn't be null. Can please please someone say where I got it wrong. Kind regards
[flexcoders] Creating a flash container and using in ActionScript
Hi coders, I have created a flash container using eclipse IDE for flex . There i have created a class using DisplayObjectConatiner and iam using this file in my Action Script. But the application does'nt display anything. But if iam using Panel it is displaying. Should I require any other files? Thanks, with regards, JJain - Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
[flexcoders] disable KeyUp/KeyDown on datagrid
Hi, i'm desperatly trying to disable keyboard events on a datagrid (it creates error in my code when it stayed pushed). I already tried event.preventDefault() but it does nothing at all. I tried also to disable the datagrid but keyboard event are still fired. Any idea ? Thanks, Cyril
Re: [flexcoders] How to create a link in flex ??
Link creates a borderless Button ...for this link tomperform some action a click handler must be there for the tag...this is what i think so.. Regards - Original Message From: Baljeet singh [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, September 10, 2007 2:24:14 PM Subject: [flexcoders] How to create a link in flex ?? Is there any tag something like mx:Link with flex to create a link. Flex Builder doesn't show any such tag, but it is some flex examples even by adobe. For sample example see link : http://livedocs. adobe.com/ flex/15/flex_ docs_en/wwhelp/ wwhimpl/c ommon/html/wwhelp. htm?context= Flex_Documentati onfile=0160 .htm Thanks Regards, Baljeet Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. http://autos.yahoo.com/carfinder/
[flexcoders] Using viewStack as dataProvider for List
Is it possible to use a viewStack as a dataProvider for a List or DataGrid ?. TabBar, LinkBar, etc.. have limitations that I could resolve by using itemRenderers and a list. I am not having much luck experimenting with the idea.
[flexcoders] Re: Cairngorm or AS3 question please help
Hi Ben, Thanks for your reply. I will try what you've said (1 to 1 relation). I'm just thinking, if I create a new UserDelegate in a different Command, that will be a new Object so the services defined would be freshly instatiated as well. The old Objects called in my first command will be garbage collected. But it seems even creating the new object is still referencing the old one. I can see your point a one to one relationship between delegates services, and that what I've seen a nearly all the examples on the net. But is it a necessity? The reason I'm doing it this way, is because the Business delegate I want it to be offering multiple tasks, so I want it to be a one point to look for doing calls to multiple service on the server-end. Thanks Jairo --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: Not sure of your exact problem but you generally create a one to one relationship between Delegates and Services. So you should probably have UserDelegate, AdminDelegate and AuthorizationDelegate, with each one mapping to the appropriate service. HTH, Ben --- In flexcoders@yahoogroups.com, jairokan jairokan@ wrote: Hi, I'm using Cairngorm. On one of the Business Delegate classes, I got defined 3 services, instantiated on the Business delegate constructor. Here an example: class UserDelegate { private var userService: Object; private var adminService: Object; private var authorizationService: Object; private var responder : Responder; public function UserDelegate( responder : Responder ) { this.userService = ServiceLocator.getInstance().getService ( UserService ); this.adminService = ServiceLocator.getInstance().getService ( AdminService ); this.authorizationService = ServiceLocator.getInstance ().getService( AuthorizationService ); this.responder = responder; } } On one of my Cammand classes I create UserDelegate Object using new UserDelegate() this is supposed inturn to create the 3 services Object as seen in the code above. All is done I think, as expected. I call the Command object execute method, where I'm using ONE of the services in UserDelegate Object. Precisely I use authorizationService, and the behaviour is as expected. Then after using another Command instantiating the UserDelegate AGAIN, and using DIFFERENT service like userService, the reference is null. Because I'm creating a NEW UserDelegate so the service references souldn't be null. Can please please someone say where I got it wrong. Kind regards
[flexcoders] Re: BUG with HTTPSERVICE [GZIP Support]?
Thank you all for your input. In turning-off the compression of the payload at the server level (GZIP),HTTPService works correctly. It seems that we have 2 different filters to compress data on our server. One of them does not work with FLEX .I will digg a little more to know the differences. I tested with Moxie 3(Nightly build of today) and the problem is NOT fixed. Thx-Claude --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: So it works if you do?: http://myserver/mycontext/mypage?value=XXX You might have to escape the special chars. Also, can you use POST instead of GET? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claude Hussenet Sent: Friday, September 07, 2007 4:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] BUG with HTTPSERVICE ? I am getting the following stacktrace when I am using the HTTPService for the following URL : http://myserver/mycontext/mypage?value=/ http://myserver/mycontext/mypage?value=/ I don't have a problem if I copy the URL in IE.I do get an XML response from the server. If I use a different URL with the same domain name,the HTTPService does work. Is the value/pair value=/ the issue ? Is there a workaround ? Thx-Claude [RPC Fault faultString=HTTP request error faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL: http://mystage.lehman.com/TSP/menu/selector/menu?path=/ http://mystage.lehman.com/TSP/menu/selector/menu?path=/ ]. URL: http://mystage.lehman.com/TSP/menu/selector/menu?path=/ http://mystage.lehman.com/TSP/menu/selector/menu?path=/ ] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::f http://www.adobe.com/2006/flex/mx/internal::f aultHandler() [C:\dev\enterprise_bali\frameworks\mx\rpc\AbstractInvoker.as:193] at mx.rpc::Responder/fault() [C:\dev\enterprise_bali\frameworks\mx\rpc\Responder.as:56] at mx.rpc::AsyncRequest/fault() [C:\dev\enterprise_bali\frameworks\mx\rpc\AsyncRequest.as:107] at DirectHTTPChannel.as$139::DirectHTTPMessageResponder/errorHandler() [C:\dev\enterprise_bali\frameworks\mx\messaging\channels\DirectHTTPCh annel.as:323] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE ventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()
[flexcoders] Source code of Moxie 3 .
It seems that the nightly build of Moxie 3 does not include all source code.For example,I could not find the content of the rpc package. (HTTPService) Is Adobe planning to bundle all the source code of Moxie 3 ? Thx-Claude
[flexcoders] Zinc discount
Hi all, I have had so many responses about the 50% discount I offered to all Flexcoders members I thought I would drop a FAQ onto the boards directly. Q. How do I get the discount? A. Email me directly at paul (dot) tunnicliffe (at) multidmedia (dot) com stating 'Flexcoders 50% discount' as the subject and you will receive a coupon code via email that will give you a discount when purchased via our online shop. Q. Is the discount just for one copy of Zinc? A. No - the coupon code can be used any amount of times and on any of our software until 5pm (EST) on Friday 14th September. Q. Why is the offer time limited? A. This is simply a chance for serious Flex developers to extend there Tool Kit with Zinc for fraction of the usual cost. Zinc is an industry standard when it comes to Flash, but most people don't know about its compatibility with Flex. Q. Can I buy by sending a Purchase Order? A. Yes - send your PO as normal stating 'Flexcoders 50%' as a reference and you will receive your software download within 2 to 4 hours of receipt. Thanks for the interest and feedback and I hope to hear from you all soon. Best regards, Paul Tunnicliffe New Business and Sales Executive Multidmedia Limited (MDM) http://www.multidmedia.com/ www.multidmedia.com TEL: +44 (0) 1902 837402 FAX: +44 (0) 1902 837401
[flexcoders] viewing source code
When I try to view some source code which has been downloaded to my computer, I had to open the FlexBuilder in this case it is not convinient. if I open the souce in a notepad It is also hard for me to switch between packages the best way to view source code I deem is to view that in WebPages by right click and just select view source but how do I do that when I have downloaded the code any ideas ,thank you guys ,your answer will be highly appreciated
[flexcoders] How to build on command line?
Hi, what steps do I need to take to build a flex project from the command line? I've had a look at mxmlc and it's options, but it doesn't give me any clear clues about what parameters I need to pass through to it. Are there any good examples out there? Cheers, Mark
Re: [flexcoders] How to build on command line?
The simplest use I can think of: mxmlc -output=path/to/whatever.swf -file-specs=path/to/whatever.mxml There are a bunch more options available but that should at least get you an swf. John On Sep 10, 2007, at 9:23 AM, Mark Ingram wrote: Hi, what steps do I need to take to build a flex project from the command line? I’ve had a look at mxmlc and it’s options, but it doesn’t give me any clear clues about what parameters I need to pass through to it. Are there any good examples out there? Cheers, Mark
RE: [flexcoders] How to build on command line?
Actually, the simplest is to pass a single option, an MXML file with application at its root, to mxmlc (file-specs is the default so you dont need to specify that): mxmlc MyApp.mxml This outputs a SWF file of the same name in the same directory. The Using the application compiler section in the Building and Deploying book is interspersed with example usage of mxmlc. That section starts here: http://livedocs.adobe.com/flex/201/html/compilers_123_23.html hth, -matt horn flex docs -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Robinson Sent: Monday, September 10, 2007 10:24 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to build on command line? The simplest use I can think of: mxmlc -output=path/to/whatever.swf -file-specs=path/to/whatever.mxml There are a bunch more options available but that should at least get you an swf. John On Sep 10, 2007, at 9:23 AM, Mark Ingram wrote: Hi, what steps do I need to take to build a flex project from the command line? I've had a look at mxmlc and it's options, but it doesn't give me any clear clues about what parameters I need to pass through to it. Are there any good examples out there? Cheers, Mark
Re: [flexcoders] How to build on command line?
On Monday 10 Sep 2007, [EMAIL PROTECTED] wrote: The simplest use I can think of: mxmlc -output=path/to/whatever.swf -file-specs=path/to/whatever.mxml You don't even need -file-specs mxmlc foo.mxml -output=path/to/whatever.swf should do. -- Tom Chiverton Helping to elementarily coordinate dynamic users 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Circumstances for Button sized by default
Why is it that when I create a Button as a child of a custom component I have to give it a width and a height, whereas creating one in straight MXML or AS in an application auto sizes it to fit the label? Thanks, Ben
RE: [flexcoders] How to build on command line?
That's great, thanks. I've outputted the compiler options from FlexBuilder, rather than use this complete file, should I just take the relevant sections and apply these on the command line? Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Robinson Sent: 10 September 2007 15:24 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to build on command line? The simplest use I can think of: mxmlc -output=path/to/whatever.swf -file-specs=path/to/whatever.mxml There are a bunch more options available but that should at least get you an swf. John On Sep 10, 2007, at 9:23 AM, Mark Ingram wrote: Hi, what steps do I need to take to build a flex project from the command line? I've had a look at mxmlc and it's options, but it doesn't give me any clear clues about what parameters I need to pass through to it. Are there any good examples out there? Cheers, Mark
[flexcoders] Mousewheel on a scrollbar (List or combobox)
Hey, I'm trying to figure out on how to use the mousewheel on a list or a combobox, but I'm not getting anywhere. DataGrid and TextArea have an option called mouseWheelEnabled, I'd like to have this option also for a List or a ComboBox. I was thinking of extending ScrollBar and adding a method which makes scrolling with the mousewheel possible. But how do you enable it for all the scrollbars in an application? I was thinking of maybe calling the new class with ClassReference in my CSS file, but I'm not sure on which element I should add it. Any help would be great! For a few examples check out: www.scrapblog.com (comboBox with fonts or Lists in the Accordion)
[flexcoders] Re: How to expand TREE Node children by clicking folder icon instead of triangle
I tested your code but didn't get good luck with that as-well. I am still trying to open my tree node from folder icon instead of triangle; I used expandItem method but on my tree node click event for some reason it opens all the nodes of the tree. --- In flexcoders@yahoogroups.com, hardaur55 [EMAIL PROTECTED] wrote: Mubasher, Hi, I'm doing the same thing you are. You can see some code that makes it happen at http://tech.groups.yahoo.com/group/flexcoders/message/86441 However, you'll run into the same problem I am : ( H --- In flexcoders@yahoogroups.com, mubasherhaneef mubasherhaneef@ wrote: I have a question regarding opening of tree branch node; In a tree, a branch node can contain multiple child nodes, and, by default, appears as a folder icon with a disclosure triangle that lets users open and close the folder but I was trying to open child node/folder, when user will click either on triangle or on folder icon. I tried the below mentioned code but that expands all the nodes children of tree instead of expanding one node children; Any help, suggestions or code example should be appreciated. Regards, Mubasher mx:Script ![CDATA[ public function treeChanged(event:Event):void { selectedNode=Tree(event.target).selectedItem as XML; if([EMAIL PROTECTED] == My node){ //myTree.expandItem(treeData,true); myTree.expandChildrenOf(myTree.dataProvider[0],true); } ]] /mx:Script mx:XML id=treeData node label=root Node node label=My node node label=myNode1 data=myNode1/ node label=myNode2 data=myNode2/ node label=myNode3 data=myNode3/ /node node label=My Profile node label=Change Password data=password/ node label=Personal data=personal/ node label=Contact Info data=contact/ /node /node /mx:XML mx:Tree id=myTree width=100% height=100% labelField=@label backgroundColor=#BEC7CC showRoot=true useHandCursor=true dataProvider={treeData} change=treeChanged(event)/
Re: [flexcoders] How to build on command line?
Depending on how you want to work from the command-line, there are also automated ways of doing it, using ant or maven. For one-shot efforts, or to test things out it's probably not worth it, but if you're going to build often from the command-line, you might want to consider using an automated build system and configure it to work with your config. regards, Christian. On 10-Sep-07, at 10:30 AM, Mark Ingram wrote: That's great, thanks. I've outputted the compiler options from FlexBuilder, rather than use this complete file, should I just take the relevant sections and apply these on the command line? Thanks, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Robinson Sent: 10 September 2007 15:24 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to build on command line? The simplest use I can think of: mxmlc -output=path/to/whatever.swf -file-specs=path/to/whatever.mxml There are a bunch more options available but that should at least get you an swf. John On Sep 10, 2007, at 9:23 AM, Mark Ingram wrote: Hi, what steps do I need to take to build a flex project from the command line? I've had a look at mxmlc and it's options, but it doesn't give me any clear clues about what parameters I need to pass through to it. Are there any good examples out there? Cheers, Mark
[flexcoders] Re: How to expand TREE Node children by clicking folder icon instead of triangle
Hi Hardaur, Your code just start working but now I am in the same problem that you were in; Have you sorted out the problem (http://tech.groups.yahoo.com/group/flexcoders/message/86441 )? Thanks for the earlier help; Regards, Mubasher --- In flexcoders@yahoogroups.com, mubasherhaneef [EMAIL PROTECTED] wrote: I tested your code but didn't get good luck with that as-well. I am still trying to open my tree node from folder icon instead of triangle; I used expandItem method but on my tree node click event for some reason it opens all the nodes of the tree. --- In flexcoders@yahoogroups.com, hardaur55 gander@ wrote: Mubasher, Hi, I'm doing the same thing you are. You can see some code that makes it happen at http://tech.groups.yahoo.com/group/flexcoders/message/86441 However, you'll run into the same problem I am : ( H --- In flexcoders@yahoogroups.com, mubasherhaneef mubasherhaneef@ wrote: I have a question regarding opening of tree branch node; In a tree, a branch node can contain multiple child nodes, and, by default, appears as a folder icon with a disclosure triangle that lets users open and close the folder but I was trying to open child node/folder, when user will click either on triangle or on folder icon. I tried the below mentioned code but that expands all the nodes children of tree instead of expanding one node children; Any help, suggestions or code example should be appreciated. Regards, Mubasher mx:Script ![CDATA[ public function treeChanged(event:Event):void { selectedNode=Tree(event.target).selectedItem as XML; if([EMAIL PROTECTED] == My node){ //myTree.expandItem(treeData,true); myTree.expandChildrenOf(myTree.dataProvider[0],true); } ]] /mx:Script mx:XML id=treeData node label=root Node node label=My node node label=myNode1 data=myNode1/ node label=myNode2 data=myNode2/ node label=myNode3 data=myNode3/ /node node label=My Profile node label=Change Password data=password/ node label=Personal data=personal/ node label=Contact Info data=contact/ /node /node /mx:XML mx:Tree id=myTree width=100% height=100% labelField=@label backgroundColor=#BEC7CC showRoot=true useHandCursor=true dataProvider={treeData} change=treeChanged(event)/
[flexcoders] Re: font in comboBox and Title not the same
It was as bold. I did not specify this myself, it must be the default style. I find that if I don't use the embeded font it works correctly. So it seems that the componenet is somehow using the normal and bold version of the local font correctly. I think that using an embedded font that is either normal or bold fails for both area since one or the other weight is missing. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I just noticed you set fontStyle in the declarations. In the original problem, did the CB's label show as normal or bold? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Schuenke Sent: Friday, September 07, 2007 12:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: font in comboBox and Title not the same If I switch the main style to the bold font, then the label is rendered correctly, but the items in the list are now wrong! How can I set a style that works for both?? Jeff --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Alex Harui aharui@ wrote: The CB label is usually in Bold isn't it? You have to embed a bold font as well. From: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of Jeff Schuenke Sent: Friday, September 07, 2007 8:59 AM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Re: font in comboBox and Title not the same .zoomStyle{ right: 10; bottom: 10; padding-right: 10; fontFamily: myVerdanaFont; fontSize: 12; fontStyle: normal; kerning: true; } where myVerdanaFont is embedded as follows: [Embed(source='resources/verdana.ttf', fontWeight='normal', fontName='myVerdanaFont', mimeType='application/x-font', flashType='true' )] private var font1:Class; --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Alex Harui aharui@ wrote: What does the stylesheet look like? 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 Jeff Schuenke Sent: Friday, September 07, 2007 7:56 AM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] font in comboBox and Title not the same I have set the font for a comboBox using a styleSheet. The font in the drop list changes but not the font displayed as a label. You can see this here http://www.miragevideo.com/sample.gif http://www.miragevideo.com/sample.gif http://www.miragevideo.com/sample.gif http://www.miragevideo.com/sample.gif How can I set the font for the label as well? thanks, Jeff
RE: [flexcoders] making optional itemRenderers
I advise starting with one of the existing item renderers. They are optimized for performance already. Using a container and or high level components is easy, but will have performance issues if you display a lot of data. I recently modified ListItemRenderer.as to add some conditional controls. I found that adding the child components in the set data() or commitProperties() methods was slow, because these methods get called very often. I opted to create all the controls in createChildren(), then toggle the visibility, set the position and set the data in set data(). Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Monday, September 10, 2007 4:45 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] making optional itemRenderers On Monday 10 Sep 2007, [EMAIL PROTECTED] wrote: I have a datagrid which contains a itemRenderer that displays a drop down list, now I'd like to conditionally display these drop down lists, so they are not displayed in every row of the datagrid. I would do this within the itemRenderer itself - if it figures out it needs to not show the drop down, it can set the visible property. Obviously, make sure all that is triggered from your 'set data' method. -- Tom Chiverton Helping to greatly benchmark slick materials 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Re: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?
Sorry to be obtuse, but this is still giving me problems... (BTW Many thanks Alex for looking into the image issue, that's very helpful) So I have a renderer that will have a few textfields, and I want to extend ListItemRenderer. The rows will be of different heights due to different amounts of text in the textfields, and the item renderer should not display a scrollbar of any kind. My questions: 1) Where should I set the .text values for my textfields--that is, what actually displays? Do I set it in set data() or in commitProperties()? 2) How much of ListItemRenderer's methods should I override? It looks like I need to do most of them--createChildren() to create my textfields, commitProperties() to set all their values (or do I--see 1), measure() to get the sizes, updateDisplayList() to lay everything out, and get and set data(). Do I need to call super.methodName() on all these? If so, what does extending ListItemRenderer get me that I couldn't get by writing a custom UIComponent? 3) I had been thinking of get and set data() as ways of referring to the object being listed, where _data is an instance of the value object I am listing. Is this right? What is listData? Thanks for not having called me a dumbass so far, at least not out loud, OK DAH On Sep 7, 2007, at 5:47 PM, Alex Harui wrote: Yes, you should deal with listData in commitProperties or later. That's why it is only one level of hairy. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Friday, September 07, 2007 3:08 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help? “listData is available when … commitProperties runs” and commitProperties runs after set data(), yes? So if a renderer needs to use listData, it should do that work in commitProperties. Right? That clears up some questions I had about ListItemRenderer. That’s 0.2 orders of magnitude less hairy. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Friday, September 07, 2007 5:52 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help? The rules are: listData is set for you and should never be modified by the renderer. listData is available when the dataChange event fires or commitProperties runs explicitWidth should be set so use that to your advantage. Is there any way you can know by the url of the image what its height will be? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Ham Sent: Friday, September 07, 2007 2:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help? It should only be one level of hairy, not three... LOL. Sorry, I wax hyperbolic late in the day, when the caffeine has jacked me up and Flex has dragged me behind its car for a ways. I'll dig around in measure() and see what I can do. Do I need to worry about setting listData when I subclass ListItemRenderer? I am getting null object reference errors around it... OK DAH -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Composite ID with Hibernate
Hi everyone! I'm new to this group and I'd be very grateful if anyone could help me or give me any tips. Here is my problem: I'm developing a FDS application with database connection and I've mapped the relational database to POJO's with Hibernate (using hibernate tools). In the relational database, I have a table which maps a N:M relationship between two entities and this table has a composite primary key as the following example shows: MODELMODEL_PACKPACK idid_model id engine id_pack name cab inclusion category bed ... id_model and id_pack is the composite primary key of MODEL_PACK table. Hibernate tools generates a specific class which contains the composite primary key. When I try to access to a row from PACK table through an object which maps MODEL table using MODEL_PACK I get the following exception: [RPC Fault faultString=Unable to invoke a get operation on destination 'ModelsPacks.hibernate' due to the following error: class org.hibernate.PropertyAccessException:exception getting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) getter of com.fds.proyecto.hibernate.ModelPackId.?. faultCode=Server.Processing faultDetail=null] at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/interna l::dispatchFaultEvent() [C:\dev\enterprise_bali\frameworks\mx\data\ConcreteDataService.as:1602 ] at ConcreteDataService.as$76::DataListRequestResponder/fault() [C:\dev\enterprise_bali\frameworks\mx\data\ConcreteDataService.as:4453 ] at mx.rpc::AsyncRequest/fault() [C:\dev\enterprise_bali\frameworks\mx\rpc\AsyncRequest.as:107] at NetConnectionChannel.as$40::NetConnectionMessageResponder/NetConnectio nChannel.as$40:NetConnectionMessageResponder::statusHandler() [C:\dev\enterprise_bali\frameworks\mx\messaging\channels\NetConnection Channel.as:470] at mx.messaging::MessageResponder/status() [C:\dev\enterprise_bali\frameworks\mx\messaging\MessageResponder.as:22 5] I have the following classes in Action Script: Model ModelPackPack id:int; id:ModelPackId; id:String engine:string;model:Models; category:String; ... pack:Packs; ... packs:ArrayCollection;inclusion:String; models:ArrayCollection Which correspond to the appropriate classes in java. ModelPackId is a class that represents the composite primary key of the MODEL_PACK table: modelCode:int; packCode:String; public function toString():String { return modelCode + : + packCode; } Having an object of type model: m:Model; I get the error when I try: m.packs.getItemAt(1).pack In the data-management-config.xml I have three destinations; models.hibernate, ModelsPacks.hibernate and packs.hibernate: destination id=models.hibernate ... one-to-many property=packs destination=ModelsPacks.hibernate lazy=true/ ... destination id=ModelsPacks.hibernate identity property=id type=com.fds.proyecto.hibernate.ModelPackId/ many-to-one property=model destination=models.hibernate lazy=true/ many-to-one property=pack destination=packs.hibernate lazy=true/ . destination id=packs.hibernate . one-to-many property=models destination=ModelsPacks.hibernate lazy=true/ .. I've tried a lot of solutions but they didn't work. I hope that anyone can help me. Thanks in advance, Carlos
[flexcoders] Cairngorm with File Posting
Anybody have experience posting files in Cairngorm? If so, how would I go about structuring it (seperating the the commands and the business)? Are there any examples of this out there? Boybles
RE: [flexcoders] How to build on command line?
Well that's exactly what I'm planning to do. I have a development server setup and I have a powershell script which can checkout specific revisions of code. The next step from here is to build those revisions and that's when I hit the brick wall :-) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christian Edward Gruber Sent: 10 September 2007 16:09 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to build on command line? Depending on how you want to work from the command-line, there are also automated ways of doing it, using ant or maven. For one-shot efforts, or to test things out it's probably not worth it, but if you're going to build often from the command-line, you might want to consider using an automated build system and configure it to work with your config. regards, Christian. On 10-Sep-07, at 10:30 AM, Mark Ingram wrote: That's great, thanks. I've outputted the compiler options from FlexBuilder, rather than use this complete file, should I just take the relevant sections and apply these on the command line? Thanks, Mark From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of John Robinson Sent: 10 September 2007 15:24 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] How to build on command line? The simplest use I can think of: mxmlc -output=path/to/whatever.swf -file-specs=path/to/whatever.mxml There are a bunch more options available but that should at least get you an swf. John On Sep 10, 2007, at 9:23 AM, Mark Ingram wrote: Hi, what steps do I need to take to build a flex project from the command line? I've had a look at mxmlc and it's options, but it doesn't give me any clear clues about what parameters I need to pass through to it. Are there any good examples out there? Cheers, Mark
Re: [flexcoders] How to build on command line?
Well, there are instructions around for using Ant, I believe. I use maven myself and just released v1.1 of the flex maven plugin. These tend to be a bit more robust than using a shell script, and both can include configuration to interact with your CVS/SVN/whatever server. You're right though, the documentation on the command-line approach to flex compilation is a little weak, and lots of options are documented without a lot of real-world examples, sadly. I would tend to take the simplest approach first, only adding the options you know you are using based on your FB settings, and add what you need on top. I've little familiarity with relevant ANT builds of flex, but if you decide to try out maven and are having any trouble, shoot me an e- mail, and I'll try to help. Christian. On 10-Sep-07, at 11:24 AM, Mark Ingram wrote: Well that's exactly what I'm planning to do. I have a development server setup and I have a powershell script which can checkout specific revisions of code. The next step from here is to build those revisions and that's when I hit the brick wall :-) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christian Edward Gruber Sent: 10 September 2007 16:09 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to build on command line? Depending on how you want to work from the command-line, there are also automated ways of doing it, using ant or maven. For one-shot efforts, or to test things out it's probably not worth it, but if you're going to build often from the command-line, you might want to consider using an automated build system and configure it to work with your config. regards, Christian. On 10-Sep-07, at 10:30 AM, Mark Ingram wrote: That's great, thanks. I've outputted the compiler options from FlexBuilder, rather than use this complete file, should I just take the relevant sections and apply these on the command line? Thanks, Mark From: flexcoders@yahoogroups.com mailto:flexcoders %40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of John Robinson Sent: 10 September 2007 15:24 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] How to build on command line? The simplest use I can think of: mxmlc -output=path/to/whatever.swf -file-specs=path/to/whatever.mxml There are a bunch more options available but that should at least get you an swf. John On Sep 10, 2007, at 9:23 AM, Mark Ingram wrote: Hi, what steps do I need to take to build a flex project from the command line? I've had a look at mxmlc and it's options, but it doesn't give me any clear clues about what parameters I need to pass through to it. Are there any good examples out there? Cheers, Mark
[flexcoders] transitions between states in components
I've got an app that has multiple states, and a component in that app that has multiple states. When the main app sets from=* to=* then the component ALSO seems to use that transition. Is there a way of scoping transitions so that the component uses it's own * transition, and the main application uses IT's * transition? By id perhaps?
[flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid
Oops spoke too soon. I'm getting a TypeError: Error #1009: Cannot access a property or method of a null object reference when I click on the datagrid to send the ID. The code hasn't changed since the example below, but I'm not sure how to troubleshoot this one. public function onSelectFirstGrid(event:Event):void { orgProgramRequest.addEventListener(Event.COMPLETE, onResult) //var params:Object = new Object(); //params['id'] = dgOrg.selectedItem.orgID; orgProgramRequest.send(dgOrg.selectedItem.orgID); } public function onResult(e:ResultEvent):void { var xmlResult:XML = e.result as XML; trace(xmlResult.toXMLString()); //is that the xml you expected? var xlResult:XMLList = xmlResult.children(); //or other expression trace(xlResult.length()); //is that the right expression? dg2data = new XMLListCollection(xlResult) trace(dg2data.getItemAt(0).toXMLString()); } [Bindable] public var dg2data: XMLListCollection; --- In flexcoders@yahoogroups.com, its_llpj [EMAIL PROTECTED] wrote: That's it! Thanks Tracy! Thanks everyone! --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Ah, yes of course, it almost certainly is. I suggest, in verbose style: var xmlResult:XML = e.result as XML; trace(xmlResult.toXMLString()); //is that the xml you expected? var xlResult:XMLList = xmlResult.children(); //or other expression trace(xlResult.length()); //is that the right expression? dg2data = new XMLListCollection(xlResult) trace(dg2data.getItemAt(0).toXMLString()); //to make It easy to know the dataField Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Thursday, September 06, 2007 2:03 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Populating XMLListCollection and sending it to a Datagrid e.result may be XML and not XMLListCollection. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Thursday, September 06, 2007 10:28 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Populating XMLListCollection and sending it to a Datagrid Are you sure onResult is getting called? If so, trace out dg2data.toXMLString() to make sure you have what you expect. You should see readable xml. Make sure name is a first generation child node name in the item node. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of its_llpj Sent: Thursday, September 06, 2007 12:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Populating XMLListCollection and sending it to a Datagrid Hello, I'm trying to populate a datagrid. Here is my code. Everything works, but when I use the dataProvider dg2data within my datagrid it comes back empty. I know there is data there, but not sure if I'm missing something. public function onSelectFirstGrid(event:Event):void { myRequest.addEventListener(Event.COMPLETE, onResult) myRequest.send(dg.selectedItem.myID); } private function onResult(e:ResultEvent):void { dg2data = e.result as XMLListCollection; } private function onFault(e:FaultEvent):void { Alert.show(e.fault.message, Could not load); } [Bindable] public var dg2data: XMLListCollection; My DataGrid mx:DataGrid id=dg2 width=100% height=100% rowCount=10 dataProvider={dg2data} mx:columns mx:DataGridColumn dataField=name headerText=Name / /mx:columns /mx:DataGrid Thanks!
Re: [flexcoders] How to build on command line?
Jumping in a bit late here... but, I build on the command line using ant after checking code out of a cvs repos. Here are the pertinent sections from my build script... !-- Need this in order to define the flex tasks that we will use -- taskdef resource=flexTasks.tasks classpath=${proj.dir.thirdparty}/flex/ant_tasks/flexTasks.jar / !-- compile the flex code -- target name=compileFlex depends=cleanFlex echo message=building flex source/ mxmlc file=${tait-flex.dir.src}/MainView.mxml output=${proj-flex.dir.bin}/MainView.swf actionscript-file-encoding=UTF-8 keep-generated-actionscript=true accessible=false incremental=false load-config filename=${proj.dir.flex}/frameworks/flex-config.xml/ source-path path-element=${proj-flex.dir.src}/ compiler.library-path dir=${proj-flex.dir.thirdparty}/adobe/ append=true include name=libs / include name=datavisualization.swc / /compiler.library-path /mxmlc echo message=done building flex source/ /target Notes: You will need to download the flexTasks.jar jar http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks file, and you may not need the datavisualization stuff... I have that for AdvancedDataGrid. hth Scott Mark Ingram wrote: Well that's exactly what I'm planning to do. I have a development server setup and I have a powershell script which can checkout specific revisions of code. The next step from here is to build those revisions and that's when I hit the brick wall J *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Christian Edward Gruber *Sent:* 10 September 2007 16:09 *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] How to build on command line? Depending on how you want to work from the command-line, there are also automated ways of doing it, using ant or maven. For one-shot efforts, or to test things out it's probably not worth it, but if you're going to build often from the command-line, you might want to consider using an automated build system and configure it to work with your config. regards, Christian. On 10-Sep-07, at 10:30 AM, Mark Ingram wrote: That's great, thanks. I've outputted the compiler options from FlexBuilder, rather than use this complete file, should I just take the relevant sections and apply these on the command line? Thanks, Mark From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of John Robinson Sent: 10 September 2007 15:24 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] How to build on command line? The simplest use I can think of: mxmlc -output=path/to/whatever.swf -file-specs=path/to/whatever.mxml There are a bunch more options available but that should at least get you an swf. John On Sep 10, 2007, at 9:23 AM, Mark Ingram wrote: Hi, what steps do I need to take to build a flex project from the command line? I've had a look at mxmlc and it's options, but it doesn't give me any clear clues about what parameters I need to pass through to it. Are there any good examples out there? Cheers, Mark
RE: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?
I would start with UIComponent. You probably don't need much in LIR. In fact, I'd make a copy of LIR and rename it and erase the guts of createChildren, commitProperties, measure, and updateDisplayList. You shouldn't need to touch getters/setters of data/listData. Create the textfields in createChildren. Stuff the .text properties from the data object in commitProperties Calc measuredHeight in measure() something like this: Override protected function measure() { Tf1.width = explicitWidth * .2; Tf2.width = explicitWidth * .8; measuredHeight = Math.max(tf1.textHeight, tf2.textHeight); measuredHeight += (some padding) } Set their final positions in UDL Good luck. This is hairy-level-one so there are no dumb questions. -Alex PS: listData is part of IDropInListItemRenderer, which could allow this renderer to pick and choose its properties based on which column it is in. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Ham Sent: Monday, September 10, 2007 8:27 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help? Sorry to be obtuse, but this is still giving me problems... (BTW Many thanks Alex for looking into the image issue, that's very helpful) So I have a renderer that will have a few textfields, and I want to extend ListItemRenderer. The rows will be of different heights due to different amounts of text in the textfields, and the item renderer should not display a scrollbar of any kind. My questions: 1) Where should I set the .text values for my textfields--that is, what actually displays? Do I set it in set data() or in commitProperties()? 2) How much of ListItemRenderer's methods should I override? It looks like I need to do most of them--createChildren() to create my textfields, commitProperties() to set all their values (or do I--see 1), measure() to get the sizes, updateDisplayList() to lay everything out, and get and set data(). Do I need to call super.methodName() on all these? If so, what does extending ListItemRenderer get me that I couldn't get by writing a custom UIComponent? 3) I had been thinking of get and set data() as ways of referring to the object being listed, where _data is an instance of the value object I am listing. Is this right? What is listData? Thanks for not having called me a dumbass so far, at least not out loud, OK DAH On Sep 7, 2007, at 5:47 PM, Alex Harui wrote: Yes, you should deal with listData in commitProperties or later. That's why it is only one level of hairy. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Friday, September 07, 2007 3:08 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help? listData is available when ... commitProperties runs and commitProperties runs after set data(), yes? So if a renderer needs to use listData, it should do that work in commitProperties. Right? That clears up some questions I had about ListItemRenderer. That's 0.2 orders of magnitude less hairy. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Friday, September 07, 2007 5:52 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help? The rules are: listData is set for you and should never be modified by the renderer. listData is available when the dataChange event fires or commitProperties runs explicitWidth should be set so use that to your advantage. Is there any way you can know by the url of the image what its height will be? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Ham Sent: Friday, September 07, 2007 2:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help? It should only be one level of hairy, not three... LOL. Sorry, I wax hyperbolic late in the day, when the caffeine has jacked me up and Flex has dragged me behind its car for a ways. I'll dig around in measure() and see what I can do. Do I need to worry about setting listData when I subclass ListItemRenderer? I am getting null object reference errors around it... OK DAH -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid
What is the full stack trace? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of its_llpj Sent: Monday, September 10, 2007 8:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid Oops spoke too soon. I'm getting a TypeError: Error #1009: Cannot access a property or method of a null object reference when I click on the datagrid to send the ID. The code hasn't changed since the example below, but I'm not sure how to troubleshoot this one. public function onSelectFirstGrid(event:Event):void { orgProgramRequest.addEventListener(Event.COMPLETE, onResult) //var params:Object = new Object(); //params['id'] = dgOrg.selectedItem.orgID; orgProgramRequest.send(dgOrg.selectedItem.orgID); } public function onResult(e:ResultEvent):void { var xmlResult:XML = e.result as XML; trace(xmlResult.toXMLString()); //is that the xml you expected? var xlResult:XMLList = xmlResult.children(); //or other expression trace(xlResult.length()); //is that the right expression? dg2data = new XMLListCollection(xlResult) trace(dg2data.getItemAt(0).toXMLString()); } [Bindable] public var dg2data: XMLListCollection; --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , its_llpj [EMAIL PROTECTED] wrote: That's it! Thanks Tracy! Thanks everyone! --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: Ah, yes of course, it almost certainly is. I suggest, in verbose style: var xmlResult:XML = e.result as XML; trace(xmlResult.toXMLString()); //is that the xml you expected? var xlResult:XMLList = xmlResult.children(); //or other expression trace(xlResult.length()); //is that the right expression? dg2data = new XMLListCollection(xlResult) trace(dg2data.getItemAt(0).toXMLString()); //to make It easy to know the dataField Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Alex Harui Sent: Thursday, September 06, 2007 2:03 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Populating XMLListCollection and sending it to a Datagrid e.result may be XML and not XMLListCollection. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Tracy Spratt Sent: Thursday, September 06, 2007 10:28 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Populating XMLListCollection and sending it to a Datagrid Are you sure onResult is getting called? If so, trace out dg2data.toXMLString() to make sure you have what you expect. You should see readable xml. Make sure name is a first generation child node name in the item node. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of its_llpj Sent: Thursday, September 06, 2007 12:13 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Populating XMLListCollection and sending it to a Datagrid Hello, I'm trying to populate a datagrid. Here is my code. Everything works, but when I use the dataProvider dg2data within my datagrid it comes back empty. I know there is data there, but not sure if I'm missing something. public function onSelectFirstGrid(event:Event):void { myRequest.addEventListener(Event.COMPLETE, onResult) myRequest.send(dg.selectedItem.myID); } private function onResult(e:ResultEvent):void { dg2data = e.result as XMLListCollection; } private function onFault(e:FaultEvent):void { Alert.show(e.fault.message, Could not load); } [Bindable] public var dg2data: XMLListCollection; My DataGrid mx:DataGrid id=dg2 width=100% height=100% rowCount=10 dataProvider={dg2data} mx:columns mx:DataGridColumn dataField=name headerText=Name / /mx:columns /mx:DataGrid Thanks!
[flexcoders] Re: How to expand TREE Node children by clicking folder icon instead of triangle
Hardaur, My code is working perfectly with trick myTree.selectedIndex=-1; Hope it will help you if you are still in tree node de-selection problem; if(myTree.isItemOpen(selectedNode)){ myTree.expandItem(selectedNode, false, true); myTree.selectedIndex =-1; }else{ myTree.expandItem(selectedNode, true, true); myTree.selectedIndex =-1; } } Regards, Mubasher --- In flexcoders@yahoogroups.com, mubasherhaneef [EMAIL PROTECTED] wrote: Hi Hardaur, Your code just start working but now I am in the same problem that you were in; Have you sorted out the problem (http://tech.groups.yahoo.com/group/flexcoders/message/86441 )? Thanks for the earlier help; Regards, Mubasher --- In flexcoders@yahoogroups.com, mubasherhaneef mubasherhaneef@ wrote: I tested your code but didn't get good luck with that as-well. I am still trying to open my tree node from folder icon instead of triangle; I used expandItem method but on my tree node click event for some reason it opens all the nodes of the tree. --- In flexcoders@yahoogroups.com, hardaur55 gander@ wrote: Mubasher, Hi, I'm doing the same thing you are. You can see some code that makes it happen at http://tech.groups.yahoo.com/group/flexcoders/message/86441 However, you'll run into the same problem I am : ( H --- In flexcoders@yahoogroups.com, mubasherhaneef mubasherhaneef@ wrote: I have a question regarding opening of tree branch node; In a tree, a branch node can contain multiple child nodes, and, by default, appears as a folder icon with a disclosure triangle that lets users open and close the folder but I was trying to open child node/folder, when user will click either on triangle or on folder icon. I tried the below mentioned code but that expands all the nodes children of tree instead of expanding one node children; Any help, suggestions or code example should be appreciated. Regards, Mubasher mx:Script ![CDATA[ public function treeChanged(event:Event):void { selectedNode=Tree(event.target).selectedItem as XML; if([EMAIL PROTECTED] == My node){ //myTree.expandItem(treeData,true); myTree.expandChildrenOf(myTree.dataProvider[0],true); } ]] /mx:Script mx:XML id=treeData node label=root Node node label=My node node label=myNode1 data=myNode1/ node label=myNode2 data=myNode2/ node label=myNode3 data=myNode3/ /node node label=My Profile node label=Change Password data=password/ node label=Personal data=personal/ node label=Contact Info data=contact/ /node /node /mx:XML mx:Tree id=myTree width=100% height=100% labelField=@label backgroundColor=#BEC7CC showRoot=true useHandCursor=true dataProvider={treeData} change=treeChanged(event)/
RE: [flexcoders] Re: How to expand TREE Node children by clicking folder icon instead of triangle
To deselect, set selectedIndex = -1 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mubasherhaneef Sent: Monday, September 10, 2007 8:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to expand TREE Node children by clicking folder icon instead of triangle Hi Hardaur, Your code just start working but now I am in the same problem that you were in; Have you sorted out the problem (http://tech.groups.yahoo.com/group/flexcoders/message/86441 http://tech.groups.yahoo.com/group/flexcoders/message/86441 )? Thanks for the earlier help; Regards, Mubasher --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , mubasherhaneef [EMAIL PROTECTED] wrote: I tested your code but didn't get good luck with that as-well. I am still trying to open my tree node from folder icon instead of triangle; I used expandItem method but on my tree node click event for some reason it opens all the nodes of the tree. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , hardaur55 gander@ wrote: Mubasher, Hi, I'm doing the same thing you are. You can see some code that makes it happen at http://tech.groups.yahoo.com/group/flexcoders/message/86441 http://tech.groups.yahoo.com/group/flexcoders/message/86441 However, you'll run into the same problem I am : ( H --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , mubasherhaneef mubasherhaneef@ wrote: I have a question regarding opening of tree branch node; In a tree, a branch node can contain multiple child nodes, and, by default, appears as a folder icon with a disclosure triangle that lets users open and close the folder but I was trying to open child node/folder, when user will click either on triangle or on folder icon. I tried the below mentioned code but that expands all the nodes children of tree instead of expanding one node children; Any help, suggestions or code example should be appreciated. Regards, Mubasher mx:Script ![CDATA[ public function treeChanged(event:Event):void { selectedNode=Tree(event.target).selectedItem as XML; if([EMAIL PROTECTED] == My node){ //myTree.expandItem(treeData,true); myTree.expandChildrenOf(myTree.dataProvider[0],true); } ]] /mx:Script mx:XML id=treeData node label=root Node node label=My node node label=myNode1 data=myNode1/ node label=myNode2 data=myNode2/ node label=myNode3 data=myNode3/ /node node label=My Profile node label=Change Password data=password/ node label=Personal data=personal/ node label=Contact Info data=contact/ /node /node /mx:XML mx:Tree id=myTree width=100% height=100% labelField=@label backgroundColor=#BEC7CC showRoot=true useHandCursor=true dataProvider={treeData} change=treeChanged(event)/
RE: [flexcoders] Mousewheel on a scrollbar (List or combobox)
mouseWheel should already work on list and combobox dropdowns. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kevintuhumury Sent: Monday, September 10, 2007 7:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Mousewheel on a scrollbar (List or combobox) Hey, I'm trying to figure out on how to use the mousewheel on a list or a combobox, but I'm not getting anywhere. DataGrid and TextArea have an option called mouseWheelEnabled, I'd like to have this option also for a List or a ComboBox. I was thinking of extending ScrollBar and adding a method which makes scrolling with the mousewheel possible. But how do you enable it for all the scrollbars in an application? I was thinking of maybe calling the new class with ClassReference in my CSS file, but I'm not sure on which element I should add it. Any help would be great! For a few examples check out: www.scrapblog.com (comboBox with fonts or Lists in the Accordion)
RE: [flexcoders] How to build on command line?
Hi, thanks all for responding, I may have a look spawning a Nant task from Powershell to get the checkout / compilation done. The reason I used Powershell was because I can get it integrated with an asp.net page and display the results via the web (useful for doing remote builds on a server). Cheers, Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott - FastLane Sent: 10 September 2007 16:47 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to build on command line? Jumping in a bit late here... but, I build on the command line using ant after checking code out of a cvs repos. Here are the pertinent sections from my build script... !-- Need this in order to define the flex tasks that we will use -- taskdef resource=flexTasks.tasks classpath=${proj.dir.thirdparty}/flex/ant_tasks/flexTasks.jar / !-- compile the flex code -- target name=compileFlex depends=cleanFlex echo message=building flex source/ mxmlc file=${tait-flex.dir.src}/MainView.mxml output=${proj-flex.dir.bin}/MainView.swf actionscript-file-encoding=UTF-8 keep-generated-actionscript=true accessible=false incremental=false load-config filename=${proj.dir.flex}/frameworks/flex-config.xml/ source-path path-element=${proj-flex.dir.src}/ compiler.library-path dir=${proj-flex.dir.thirdparty}/adobe/ append=true include name=libs / include name=datavisualization.swc / /compiler.library-path /mxmlc echo message=done building flex source/ /target Notes: You will need to download the flexTasks.jar jar http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks file, and you may not need the datavisualization stuff... I have that for AdvancedDataGrid. hth Scott Mark Ingram wrote: Well that's exactly what I'm planning to do. I have a development server setup and I have a powershell script which can checkout specific revisions of code. The next step from here is to build those revisions and that's when I hit the brick wall :-) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christian Edward Gruber Sent: 10 September 2007 16:09 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to build on command line? Depending on how you want to work from the command-line, there are also automated ways of doing it, using ant or maven. For one-shot efforts, or to test things out it's probably not worth it, but if you're going to build often from the command-line, you might want to consider using an automated build system and configure it to work with your config. regards, Christian. On 10-Sep-07, at 10:30 AM, Mark Ingram wrote: That's great, thanks. I've outputted the compiler options from FlexBuilder, rather than use this complete file, should I just take the relevant sections and apply these on the command line? Thanks, Mark From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of John Robinson Sent: 10 September 2007 15:24 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] How to build on command line? The simplest use I can think of: mxmlc -output=path/to/whatever.swf -file-specs=path/to/whatever.mxml There are a bunch more options available but that should at least get you an swf. John On Sep 10, 2007, at 9:23 AM, Mark Ingram wrote: Hi, what steps do I need to take to build a flex project from the command line? I've had a look at mxmlc and it's options, but it doesn't give me any clear clues about what parameters I need to pass through to it. Are there any good examples out there? Cheers, Mark
RE: [flexcoders] Circumstances for Button sized by default
In Flex, parents size their children. Any child of a mx.core.Container subclass will be sized according to layout rules. Any child of UIComponent is waiting to be told by your code what its final size is. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Monday, September 10, 2007 7:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Circumstances for Button sized by default Why is it that when I create a Button as a child of a custom component I have to give it a width and a height, whereas creating one in straight MXML or AS in an application auto sizes it to fit the label? Thanks, Ben
RE: [flexcoders] Source code of Moxie 3 .
Rpc is a different swc and thus different source project. You sure it isn't there? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claude Hussenet Sent: Monday, September 10, 2007 6:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Source code of Moxie 3 . It seems that the nightly build of Moxie 3 does not include all source code.For example,I could not find the content of the rpc package. (HTTPService) Is Adobe planning to bundle all the source code of Moxie 3 ? Thx-Claude
RE: [flexcoders] Using viewStack as dataProvider for List
Possible if you write your own ICOllectionView wrapper. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ben Marchbanks Sent: Monday, September 10, 2007 6:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using viewStack as dataProvider for List Is it possible to use a viewStack as a dataProvider for a List or DataGrid ?. TabBar, LinkBar, etc.. have limitations that I could resolve by using itemRenderers and a list. I am not having much luck experimenting with the idea.
[flexcoders] goto flex command?
How do you jump to a section of a page or panel kinda like how you can in html.. like Go To Top of Page? Thanks Dylan
[flexcoders] Streaming object from swf client to JSP page
I was thinking of streaming an specific object like xml ,Image to an JSP page ,any ideas? Your reply will be highly appreciated
RE: [flexcoders] Re: font in comboBox and Title not the same
It was or is? The CB defaults to bold in the label, non-bold in the dropdown. Depending on how you applied this style decl, I would have expected the CB to be non-bold in both places. When you embed a font, you have to embed both font files (bold and normal) for a CB or other scenario like that. Cam you strip it down to a simple test case? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Schuenke Sent: Monday, September 10, 2007 8:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: font in comboBox and Title not the same It was as bold. I did not specify this myself, it must be the default style. I find that if I don't use the embeded font it works correctly. So it seems that the componenet is somehow using the normal and bold version of the local font correctly. I think that using an embedded font that is either normal or bold fails for both area since one or the other weight is missing. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: I just noticed you set fontStyle in the declarations. In the original problem, did the CB's label show as normal or bold? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Jeff Schuenke Sent: Friday, September 07, 2007 12:41 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: font in comboBox and Title not the same If I switch the main style to the bold font, then the label is rendered correctly, but the items in the list are now wrong! How can I set a style that works for both?? Jeff --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Alex Harui aharui@ wrote: The CB label is usually in Bold isn't it? You have to embed a bold font as well. 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 Jeff Schuenke Sent: Friday, September 07, 2007 8:59 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Re: font in comboBox and Title not the same .zoomStyle{ right: 10; bottom: 10; padding-right: 10; fontFamily: myVerdanaFont; fontSize: 12; fontStyle: normal; kerning: true; } where myVerdanaFont is embedded as follows: [Embed(source='resources/verdana.ttf', fontWeight='normal', fontName='myVerdanaFont', mimeType='application/x-font', flashType='true' )] private var font1:Class; --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Alex Harui aharui@ wrote: What does the stylesheet look like? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of Jeff Schuenke Sent: Friday, September 07, 2007 7:56 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] font in comboBox and Title not the same I have set the font for a comboBox using a styleSheet. The font in the drop list changes but not the font displayed as a label. You can see this here http://www.miragevideo.com/sample.gif http://www.miragevideo.com/sample.gif http://www.miragevideo.com/sample.gif http://www.miragevideo.com/sample.gif http://www.miragevideo.com/sample.gif http://www.miragevideo.com/sample.gif http://www.miragevideo.com/sample.gif http://www.miragevideo.com/sample.gif How can I set the font for the label as well? thanks, Jeff
RE: [flexcoders] Re: Dragging and moving an image to a new location
It depends on the layout rules for the parent of the image. If it is a canvas or you are using absolute positioning, call move() on the image. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of alex_gky Sent: Monday, September 10, 2007 4:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Dragging and moving an image to a new location There is no DragManager.acceptDrop(), only DragManager.acceptDragDrop(). But that doesn't allow re positioning the image. Anyone pls help. Basically, is there any way to access the image properties such as its X and Y location from action script? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Sheriff [EMAIL PROTECTED] wrote: DragManager.acceptDrop() - Original Message From: alex_gky [EMAIL PROTECTED] To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Sunday, September 9, 2007 9:28:35 AM Subject: [flexcoders] Dragging and moving an image to a new location Hi all, How do I achieve dragging an image and upon releasing the mouse button, the image moves to the new location? I have achieve till the drag drop stage using action script. But when the dragDrop() event is called, how do I use action script to update an image (say id=img1) to the new mouse cursor location? Please help. Cheers:) Alex !-- #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-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-trans form: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;pa dding-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-hei ght: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;} -- __ Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
Re: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?
Alex, In fact, I'd make a copy of LIR and rename it and erase the guts of createChildren, commitProperties, measure, and updateDisplayList. You shouldn't need to touch getters/setters of data/listData. Should I call super.methodName() on the ones I am overriding? Create the textfields in createChildren. Stuff the .text properties from the data object in commitProperties Calc measuredHeight in measure() something like this: Override protected function measure() { Tf1.width = explicitWidth * .2; Tf2.width = explicitWidth * .8; measuredHeight = Math.max(tf1.textHeight, tf2.textHeight); measuredHeight += (some padding) } Set their final positions in UDL Good luck. This is hairy-level-one so there are no dumb questions. Thanks! I'm in this to win it! OK DAH
RE: [flexcoders] disable KeyUp/KeyDown on datagrid
Depends on whose listening. Keyboard events are not cancelable so you use stopImmediatePropagation instead of preventDefault(). Maybe it isn't the DG that's listening though. Maybe it is the renderers? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Cyril Sent: Monday, September 10, 2007 2:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] disable KeyUp/KeyDown on datagrid Hi, i'm desperatly trying to disable keyboard events on a datagrid (it creates error in my code when it stayed pushed). I already tried event.preventDefault() but it does nothing at all. I tried also to disable the datagrid but keyboard event are still fired. Any idea ? Thanks, Cyril
[flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid
TypeError: Error #1009: Cannot access a property or method of a null object reference. at c100/onResult()[/Users/pjb54/src/berkleycenter_development/public/bin/c100.mxml:52] at c100/__orgProgramRequest_result()[/Users/pjb54/src/berkleycenter_development/public/bin/c100.mxml:98] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[C:\dev\enterprise_bali\frameworks\mx\rpc\http\mxml\HTTPService.as:247] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[C:\dev\enterprise_bali\frameworks\mx\rpc\AbstractInvoker.as:168] at mx.rpc::Responder/result()[C:\dev\enterprise_bali\frameworks\mx\rpc\Responder.as:48] at mx.rpc::AsyncRequest/acknowledge()[C:\dev\enterprise_bali\frameworks\mx\rpc\AsyncRequest.as:82] at DirectHTTPChannel.as$139::DirectHTTPMessageResponder/completeHandler()[C:\dev\enterprise_bali\frameworks\mx\messaging\channels\DirectHTTPChannel.as:359] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::onComplete() Line 52 is: trace(xmlResult.toXMLString()); Line 98 is part of the HTTPService: mx:HTTPService id=orgProgramRequest url=http://localhost:3000/organizations/flex_programs; showBusyCursor=true result=onResult(event) fault=onFault(event) method=POST useProxy=false/ Thanks! --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: What is the full stack trace? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of its_llpj Sent: Monday, September 10, 2007 8:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid Oops spoke too soon. I'm getting a TypeError: Error #1009: Cannot access a property or method of a null object reference when I click on the datagrid to send the ID. The code hasn't changed since the example below, but I'm not sure how to troubleshoot this one. public function onSelectFirstGrid(event:Event):void { orgProgramRequest.addEventListener(Event.COMPLETE, onResult) //var params:Object = new Object(); //params['id'] = dgOrg.selectedItem.orgID; orgProgramRequest.send(dgOrg.selectedItem.orgID); } public function onResult(e:ResultEvent):void { var xmlResult:XML = e.result as XML; trace(xmlResult.toXMLString()); //is that the xml you expected? var xlResult:XMLList = xmlResult.children(); //or other expression trace(xlResult.length()); //is that the right expression? dg2data = new XMLListCollection(xlResult) trace(dg2data.getItemAt(0).toXMLString()); } [Bindable] public var dg2data: XMLListCollection; --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , its_llpj its_llpj@ wrote: That's it! Thanks Tracy! Thanks everyone! --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: Ah, yes of course, it almost certainly is. I suggest, in verbose style: var xmlResult:XML = e.result as XML; trace(xmlResult.toXMLString()); //is that the xml you expected? var xlResult:XMLList = xmlResult.children(); //or other expression trace(xlResult.length()); //is that the right expression? dg2data = new XMLListCollection(xlResult) trace(dg2data.getItemAt(0).toXMLString()); //to make It easy to know the dataField Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Alex Harui Sent: Thursday, September 06, 2007 2:03 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Populating XMLListCollection and sending it to a Datagrid e.result may be XML and not XMLListCollection. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Tracy Spratt Sent: Thursday, September 06, 2007 10:28 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Populating XMLListCollection and sending it to a Datagrid Are you sure
RE: [flexcoders] Help Creating Tree from Complex XML
You'll probably have to transform the data to match company department label=Accounting user/user /department Then a custom labelFunction that determines what label. Then a custom dataDescriptor that denies that user has any children (or convert all subchildren to attributes). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of donvoltz Sent: Monday, September 10, 2007 3:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Help Creating Tree from Complex XML Hello, would someone be able to give some guidance in the construction of a tree control from complex XML. I am trying to create the following tree display Accounting --John Waters --Betty Smith Sales --Bob Long --Sam Schwartz Marketing --Howard Lyons Human Resources --Sue Taylor --Bill Montgomery using this XML as a starting point row user userID1/userID departmentAccounting/department firstnameJohn/firstname lastnameWaters/lastname email[EMAIL PROTECTED] mailto:johnwaters%40aol.com /email officePhone555-1212/officePhone birthday1965-08-12/birthday /user ... /row Currently I am returning a similar XML stream from a MySQL database as e4X and it is bound to an XMLListCollection. This collection then is used as the dataProvider for my tree control. and department is used as the label. What I would like to see is all of the users of a given department are within one branch of the tree and when this brach is open I would see their first and last names. Currently, this set up creates a brach for listing the department for each user in the XMLListCollection and when this branch is opened, all of their data is contained. What is the process of grouping all departments together and then only displaying part of the XMLListCollection within the branch? Thanks for the help Don
Re: [flexcoders] Circumstances for Button sized by default
Hi Ben, The reason is in any Container subclass IE Box, Canavs etc, the Layout class actually calls setActualSize() on the button child. Since you are using a custom component that does not have or implement a Layout class, you must call, button.setActualSize(button.getExplicitOrMeasuredWidth(), button.getExplicitOrMeasuredHeight()); The containers Layout class essentially does the above with more space checking etc. Peace, Mike PS All components that are not children of a Layout contianer must be sized a Button is no exception. On 9/10/07, ben.clinkinbeard [EMAIL PROTECTED] wrote: Why is it that when I create a Button as a child of a custom component I have to give it a width and a height, whereas creating one in straight MXML or AS in an application auto sizes it to fit the label? Thanks, Ben -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] How to build on command line?
Nice. Is that up and searchable on the web (other than in this archive)? It'd be a nice thing to put up on a wiki somewhere. Christian. On 10-Sep-07, at 11:46 AM, Scott - FastLane wrote: Jumping in a bit late here... but, I build on the command line using ant after checking code out of a cvs repos. Here are the pertinent sections from my build script... !-- Need this in order to define the flex tasks that we will use -- taskdef resource=flexTasks.tasks classpath=$ {proj.dir.thirdparty}/flex/ant_tasks/flexTasks.jar / !-- compile the flex code -- target name=compileFlex depends=cleanFlex echo message=building flex source/ mxmlc file=${tait-flex.dir.src}/MainView.mxml output=${proj-flex.dir.bin}/MainView.swf actionscript-file-encoding=UTF-8 keep-generated-actionscript=true accessible=false incremental=false load-config filename=$ {proj.dir.flex}/frameworks/flex-config.xml/ source-path path-element=${proj-flex.dir.src}/ compiler.library-path dir=${proj- flex.dir.thirdparty}/adobe/ append=true include name=libs / include name=datavisualization.swc / /compiler.library-path /mxmlc echo message=done building flex source/ /target Notes: You will need to download the flexTasks.jar jar http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks file, and you may not need the datavisualization stuff... I have that for AdvancedDataGrid. hth Scott Mark Ingram wrote: Well that's exactly what I'm planning to do. I have a development server setup and I have a powershell script which can checkout specific revisions of code. The next step from here is to build those revisions and that's when I hit the brick wall J *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Christian Edward Gruber *Sent:* 10 September 2007 16:09 *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] How to build on command line? Depending on how you want to work from the command-line, there are also automated ways of doing it, using ant or maven. For one-shot efforts, or to test things out it's probably not worth it, but if you're going to build often from the command-line, you might want to consider using an automated build system and configure it to work with your config. regards, Christian. On 10-Sep-07, at 10:30 AM, Mark Ingram wrote: That's great, thanks. I've outputted the compiler options from FlexBuilder, rather than use this complete file, should I just take the relevant sections and apply these on the command line? Thanks, Mark From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of John Robinson Sent: 10 September 2007 15:24 To: flexcoders@yahoogroups.com mailto:flexcoders %40yahoogroups.com Subject: Re: [flexcoders] How to build on command line? The simplest use I can think of: mxmlc -output=path/to/whatever.swf -file-specs=path/to/ whatever.mxml There are a bunch more options available but that should at least get you an swf. John On Sep 10, 2007, at 9:23 AM, Mark Ingram wrote: Hi, what steps do I need to take to build a flex project from the command line? I've had a look at mxmlc and it's options, but it doesn't give me any clear clues about what parameters I need to pass through to it. Are there any good examples out there? Cheers, Mark
[flexcoders] Re: Circumstances for Button sized by default
Thanks guys, that makes sense. --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: Why is it that when I create a Button as a child of a custom component I have to give it a width and a height, whereas creating one in straight MXML or AS in an application auto sizes it to fit the label? Thanks, Ben
RE: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help?
Yes, as a matter of practice, you should always call super.methodName() unless you know for sure you don't want the underlying behavior. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Ham Sent: Monday, September 10, 2007 9:17 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help? Alex, In fact, I'd make a copy of LIR and rename it and erase the guts of createChildren, commitProperties, measure, and updateDisplayList. You shouldn't need to touch getters/setters of data/listData. Should I call super.methodName() on the ones I am overriding? Create the textfields in createChildren. Stuff the .text properties from the data object in commitProperties Calc measuredHeight in measure() something like this: Override protected function measure() { Tf1.width = explicitWidth * .2; Tf2.width = explicitWidth * .8; measuredHeight = Math.max(tf1.textHeight, tf2.textHeight); measuredHeight += (some padding) } Set their final positions in UDL Good luck. This is hairy-level-one so there are no dumb questions. Thanks! I'm in this to win it! OK DAH
RE: [flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid
Your results are not in XML. Maybe you need to specify resultFormat=e4x? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of its_llpj Sent: Monday, September 10, 2007 9:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid TypeError: Error #1009: Cannot access a property or method of a null object reference. at c100/onResult()[/Users/pjb54/src/berkleycenter_development/public/bin/c1 00.mxml:52] at c100/__orgProgramRequest_result()[/Users/pjb54/src/berkleycenter_develop ment/public/bin/c100.mxml:98] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven tFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal ::dispatchRpcEvent http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent ()[C:\dev\enterprise_bali\frameworks\mx\rpc\http\mxml\HTTPService.as:247 ] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resu ltHandler http://www.adobe.com/2006/flex/mx/internal::resultHandler ()[C:\dev\enterprise_bali\frameworks\mx\rpc\AbstractInvoker.as:168] at mx.rpc::Responder/result()[C:\dev\enterprise_bali\frameworks\mx\rpc\Resp onder.as:48] at mx.rpc::AsyncRequest/acknowledge()[C:\dev\enterprise_bali\frameworks\mx\ rpc\AsyncRequest.as:82] at DirectHTTPChannel.as$139::DirectHTTPMessageResponder/completeHandler()[C :\dev\enterprise_bali\frameworks\mx\messaging\channels\DirectHTTPChannel .as:359] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven tFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::onComplete() Line 52 is: trace(xmlResult.toXMLString()); Line 98 is part of the HTTPService: mx:HTTPService id=orgProgramRequest url=http://localhost:3000/organizations/flex_programs http://localhost:3000/organizations/flex_programs showBusyCursor=true result=onResult(event) fault=onFault(event) method=POST useProxy=false/ Thanks! --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: What is the full stack trace? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of its_llpj Sent: Monday, September 10, 2007 8:35 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid Oops spoke too soon. I'm getting a TypeError: Error #1009: Cannot access a property or method of a null object reference when I click on the datagrid to send the ID. The code hasn't changed since the example below, but I'm not sure how to troubleshoot this one. public function onSelectFirstGrid(event:Event):void { orgProgramRequest.addEventListener(Event.COMPLETE, onResult) //var params:Object = new Object(); //params['id'] = dgOrg.selectedItem.orgID; orgProgramRequest.send(dgOrg.selectedItem.orgID); } public function onResult(e:ResultEvent):void { var xmlResult:XML = e.result as XML; trace(xmlResult.toXMLString()); //is that the xml you expected? var xlResult:XMLList = xmlResult.children(); //or other expression trace(xlResult.length()); //is that the right expression? dg2data = new XMLListCollection(xlResult) trace(dg2data.getItemAt(0).toXMLString()); } [Bindable] public var dg2data: XMLListCollection; --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , its_llpj its_llpj@ wrote: That's it! Thanks Tracy! Thanks everyone! --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: Ah, yes of course, it almost certainly is. I suggest, in verbose style: var xmlResult:XML = e.result as XML; trace(xmlResult.toXMLString()); //is that the xml you expected? var xlResult:XMLList = xmlResult.children(); //or other expression trace(xlResult.length()); //is that the right expression? dg2data = new XMLListCollection(xlResult) trace(dg2data.getItemAt(0).toXMLString()); //to make It easy to know the dataField Tracy 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 Alex Harui Sent: Thursday, September 06, 2007 2:03 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Populating XMLListCollection and sending it to a
Re: [flexcoders] How to build on command line?
Christian - I'll post it on my blog http://blog.fastlanesw.com tmw or so... btw: check out the latest post that I just put up there. It shows a sample flex calendar app based on the work done by Ely Greenfield on Quietly Scheming. Scott Christian Edward Gruber wrote: Nice. Is that up and searchable on the web (other than in this archive)? It'd be a nice thing to put up on a wiki somewhere. Christian. On 10-Sep-07, at 11:46 AM, Scott - FastLane wrote: Jumping in a bit late here... but, I build on the command line using ant after checking code out of a cvs repos. Here are the pertinent sections from my build script... !-- Need this in order to define the flex tasks that we will use -- taskdef resource=flexTasks.tasks classpath=$ {proj.dir.thirdparty}/flex/ant_tasks/flexTasks.jar / !-- compile the flex code -- target name=compileFlex depends=cleanFlex echo message=building flex source/ mxmlc file=${tait-flex.dir.src}/MainView.mxml output=${proj-flex.dir.bin}/MainView.swf actionscript-file-encoding=UTF-8 keep-generated-actionscript=true accessible=false incremental=false load-config filename=$ {proj.dir.flex}/frameworks/flex-config.xml/ source-path path-element=${proj-flex.dir.src}/ compiler.library-path dir=${proj- flex.dir.thirdparty}/adobe/ append=true include name=libs / include name=datavisualization.swc / /compiler.library-path /mxmlc echo message=done building flex source/ /target Notes: You will need to download the flexTasks.jar jar http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks file, and you may not need the datavisualization stuff... I have that for AdvancedDataGrid. hth Scott Mark Ingram wrote: Well that's exactly what I'm planning to do. I have a development server setup and I have a powershell script which can checkout specific revisions of code. The next step from here is to build those revisions and that's when I hit the brick wall J -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *Christian Edward Gruber *Sent:* 10 September 2007 16:09 *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] How to build on command line? Depending on how you want to work from the command-line, there are also automated ways of doing it, using ant or maven. For one-shot efforts, or to test things out it's probably not worth it, but if you're going to build often from the command-line, you might want to consider using an automated build system and configure it to work with your config. regards, Christian. On 10-Sep-07, at 10:30 AM, Mark Ingram wrote: That's great, thanks. I've outputted the compiler options from FlexBuilder, rather than use this complete file, should I just take the relevant sections and apply these on the command line? Thanks, Mark 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 John Robinson Sent: 10 September 2007 15:24 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders %40yahoogroups.com Subject: Re: [flexcoders] How to build on command line? The simplest use I can think of: mxmlc -output=path/to/whatever.swf -file-specs=path/to/ whatever.mxml There are a bunch more options available but that should at least get you an swf. John On Sep 10, 2007, at 9:23 AM, Mark Ingram wrote: Hi, what steps do I need to take to build a flex project from the command line? I've had a look at mxmlc and it's options, but it doesn't give me any clear clues about what parameters I need to pass through to it. Are there any good examples out there? Cheers, Mark
Re: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--SUCCESS
It is working! For future generations, here is what I did: * Created a custom class that extends ListItemRenderer. * Overrode createChildren, measure, commitProperties, and updateDisplayList as Alex described, calling super on each. The only glitch here is I had to set label.visible == false in UDL because the label is duplicating one of the fields I am setting. Also, to get measuredHeight in measure(), I had to do getExplicitOrMeasuredHeight () on my textfield. When I set measuredHeight based on the textfield.height, all the rows were the same height, about 50-75 px. * No get or set data() or listData() in my new class. No other methods at all actually, except the ones listed above. The long national nightmare is over! Many thanks Alex and Tracy for your patient and informative replies. OK DAH Yes, as a matter of practice, you should always call super.methodName() unless you know for sure you don’t want the underlying behavior. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Ham Sent: Monday, September 10, 2007 9:17 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help? Alex, In fact, I'd make a copy of LIR and rename it and erase the guts of createChildren, commitProperties, measure, and updateDisplayList. You shouldn't need to touch getters/setters of data/listData. Should I call super.methodName() on the ones I am overriding? Create the textfields in createChildren. Stuff the .text properties from the data object in commitProperties Calc measuredHeight in measure() something like this: Override protected function measure() { Tf1.width = explicitWidth * .2; Tf2.width = explicitWidth * .8; measuredHeight = Math.max(tf1.textHeight, tf2.textHeight); measuredHeight += (some padding) } Set their final positions in UDL Good luck. This is hairy-level-one so there are no dumb questions. Thanks! I'm in this to win it! OK DAH -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Source code of Moxie 3 .
I couldn't find it in my install folder either.. where is it supposed to be? Thanks, Sam --- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Monday, September 10, 2007 12:12 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Source code of Moxie 3 . Rpc is a different swc and thus different source project. You sure it isn't there? _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claude Hussenet Sent: Monday, September 10, 2007 6:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Source code of Moxie 3 . It seems that the nightly build of Moxie 3 does not include all source code.For example,I could not find the content of the rpc package. (HTTPService) Is Adobe planning to bundle all the source code of Moxie 3 ? Thx-Claude
[flexcoders] Re: Source code of Moxie 3 .
The directorie sdk/frameworks/projects/framework/src/mx/rpc contains one file : IResponse.as Thx-Claude --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Rpc is a different swc and thus different source project. You sure it isn't there? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claude Hussenet Sent: Monday, September 10, 2007 6:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Source code of Moxie 3 . It seems that the nightly build of Moxie 3 does not include all source code.For example,I could not find the content of the rpc package. (HTTPService) Is Adobe planning to bundle all the source code of Moxie 3 ? Thx-Claude
[flexcoders] Re: Text display in a ComboBox
Hi again, is this really such a difficult thing? I was thinking about to write my own class that inherits from ComboBox and then I could access the internal text field that is used to display the text. Did anybody try this before? Regards Markus --- In flexcoders@yahoogroups.com, kramus0 [EMAIL PROTECTED] wrote: Hi, I have a simple question concerning the text display in a (closed) ComboBox. Is it possible to reduce the offset of the displayed text from the upper left corner? My ComboBox seems to be large enough for the text but by default I have an offset of 6 pixels to the top and around 4 pixels to the right. Thanks for your help. Regards Markus
[flexcoders] Zooming effect modifies scale, correct?
Hi, I've got some popups that I'm literally popping up (VH1 pop-up video style, for those that remember it) and to get the effect I simply applied the ZoomEffect to them. The result is basically right, but depending on what's in the popup I'm detecting some weirdness. Here's what I see: As the object zooms up or down, some objects scale while others just change size. At first, I thought it was just text-based stuff, so I switched to an embedded font and that helped quite a bit. But then I noticed some text areas and labels were actually truncating text as the popup was shrinking. I tried disabling autolayout, but that just resulted in getting some scrollbars in some unwanted places... So... my guess is that many of the UI components are doing stuff based on unscaledWidth and unscaledHeight and essentially thinking to hard about how to draw themselves. My expectation would be that I could use the Zoom effect to shrink something to 50% and it would look identical to the 100% with everything half the size. In reality, its more like I went in and manually adjusted the size of everything by 50% (width=200 to width=100, etc.)., which is not the same thing (at least, not in my graphics book). What I'm thinking is that I'm going to have to do a manual effect where I render the popup at 100%, capture it into a bitmap, zoom that bitmap and swap the bitmap for the real thing when its at 100%. Anyone tackled this issue before? Am I missing something? Troy.
[flexcoders] Click instead of mouseover to display sub-menu
By default submenu from a Menu control are displayed by mouving over a menutem. Is it possible to change the behavior so a click on the menu item triggers the display of the submenu. I have looked the code of the Menu class and it does not seem easy to overload the mouseOverHandler method.The method uses private field such as anchorRow without any accessors method. Is there any other than cut and paste the menu and menuevent classes to reach my requirement ? Thx-Claude
[flexcoders] Efficiently loading hundreds of images for a slideshow
Hi all, I am developing an application to display a sequence of 2d data contour plots to show the evolution of a physical system (global climate in this case) as a function of time. In this application there are many different quantities (temperature, pressure, rainfall, etc, etc) that the user could choose to plot, so I opted *not* to embed all possible animation sequences into the SWF. Rather, when the user requests a certain variable to view, I transfer those images to the SWF via URLRequest calls. Note, that although this is for a scientific purpose, this application is essentially just an image slideshow because the data plots that comprise an animation have all been generated ahead of time. Now, each animation has between 100 and 250 images. So rather than waiting for all images to arrive, I begin the animation, displaying the images that have arrived as they come (i.e. I stream the animation). For an animation of 50 or fewer images, this approach works very well. However, if I have 60+ images, then the image loading really gets bogged down. Here is my procedure: //Create an instance of the Loader class. myLoader = new Loader(); // load a particular image // and listen for Event.COMPLETE (not shown) myLoader.load( new URLRequest(imageLocation) ); // once the image is loaded, add this image // to an array that holds all of the animation images imageArray.push( Bitmap(myLoader.content) ); // and repeat until there are no more images left to load // The animation is displayed in an Image component located // on a Flex 2 MXML application. The image's source property // is bound to currentImage which is a reference to a particular // Bitmap in the imageArray Array. I find that the image loading + Bitmap generation takes about 0.1 to 0.2 seconds per image for the first ~50 images (this is fine because the animation frame rate is set to 0.5 seconds per image, so the loader keeps up), but after image 60+ it can take 3-5+ seconds per image, which becomes problematic! Can anyone suggest a more efficient way to deal with the loading and display of hundreds of images. I am curious as to what bogs down the image loading+Bitmap generation, but I am also open to new approaches entirely if appropriate! Essentially, all I have to do is make a slideshow that displays hundreds of images loaded on the fly with some time delay between each image. I imagine that this is a fairly standard thing (though I haven't found examples online yet). Thank you very much for your help, and I look forward to your responses, James
[flexcoders] FB3: src and config
I have my source in a src directory, rather than at the project level. I have been unable to get the compiler to find a config file as follows: mx:XML id=config source=config/config.xml /mx:XML unless the config directory is under src. This didn't work either: ../config/config.xml Nor did adding config as an external source path in Flex Builder. Is a project layout with src and config at the same level feasible? I must be missing something silly. Thanks in advance
Re: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--P.S.
It is working! No sooner said than undone! I am trying to add a LinkButton to my renderer, and it won't show up! Its label and x position are being set correctly, but it doesn't display! Gah! Is there something special about adding LinkButtons that I don't know about? Help! OK DAH For future generations, here is what I did: * Created a custom class that extends ListItemRenderer. * Overrode createChildren, measure, commitProperties, and updateDisplayList as Alex described, calling super on each. The only glitch here is I had to set label.visible == false in UDL because the label is duplicating one of the fields I am setting. Also, to get measuredHeight in measure(), I had to do getExplicitOrMeasuredHeight () on my textfield. When I set measuredHeight based on the textfield.height, all the rows were the same height, about 50-75 px. * No get or set data() or listData() in my new class. No other methods at all actually, except the ones listed above. The long national nightmare is over! Many thanks Alex and Tracy for your patient and informative replies. OK DAH Yes, as a matter of practice, you should always call super.methodName() unless you know for sure you don’t want the underlying behavior. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Ham Sent: Monday, September 10, 2007 9:17 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help? Alex, In fact, I'd make a copy of LIR and rename it and erase the guts of createChildren, commitProperties, measure, and updateDisplayList. You shouldn't need to touch getters/setters of data/listData. Should I call super.methodName() on the ones I am overriding? Create the textfields in createChildren. Stuff the .text properties from the data object in commitProperties Calc measuredHeight in measure() something like this: Override protected function measure() { Tf1.width = explicitWidth * .2; Tf2.width = explicitWidth * .8; measuredHeight = Math.max(tf1.textHeight, tf2.textHeight); measuredHeight += (some padding) } Set their final positions in UDL Good luck. This is hairy-level-one so there are no dumb questions. Thanks! I'm in this to win it! OK DAH -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] FB3: src and config
Richard, AS FB3 is still very much in beta, you probably should post your issue to the FB3 private beta forum. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Monday, September 10, 2007 1:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] FB3: src and config I have my source in a src directory, rather than at the project level. I have been unable to get the compiler to find a config file as follows: mx:XML id=config source=config/config.xml /mx:XML unless the config directory is under src. This didn't work either: ../config/config.xml Nor did adding config as an external source path in Flex Builder. Is a project layout with src and config at the same level feasible? I must be missing something silly. Thanks in advance -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] Cairngorm with File Posting
If you make a VO class with a FileReference as one of its members, you'll be able to pass that VO with a Cairngorm Event back through a command class to a business delegate, which would handle the actual posting. Code samples of the actual posting are available in the AS3 docs. of One thing you will have to deal with is FileReference going out of scope if only declared as var within a function, so your original FileReference object needs to be in a scope that is at least somewhat persistent. Check out this blog entry :http://my.opera.com/darylducharme/blog/2007/05/17/losing-filereference- scope. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of boybles Sent: Monday, September 10, 2007 11:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm with File Posting Anybody have experience posting files in Cairngorm? If so, how would I go about structuring it (seperating the the commands and the business)? Are there any examples of this out there? Boybles -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] Cairngorm or AS3 question please help
Hmmm First of all, what is returning from ServiceLocator.getInstance().getService() is of type mx.rpc.remoting.RemoteObject, not Object, and these need to be pre-defined in your Services.mxml file. Have you done this? ServiceLocator is your repository of service definitions, not your UserDelegate class. All you would be doing in a delegate class is making a call to your pre-defined services. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jairokan Sent: Monday, September 10, 2007 4:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm or AS3 question please help Hi, I'm using Cairngorm. On one of the Business Delegate classes, I got defined 3 services, instantiated on the Business delegate constructor. Here an example: class UserDelegate { private var userService: Object; private var adminService: Object; private var authorizationService: Object; private var responder : Responder; public function UserDelegate( responder : Responder ) { this.userService = ServiceLocator.getInstance().getService ( UserService ); this.adminService = ServiceLocator.getInstance().getService ( AdminService ); this.authorizationService = ServiceLocator.getInstance ().getService( AuthorizationService ); this.responder = responder; } } On one of my Cammand classes I create UserDelegate Object using new UserDelegate() this is supposed inturn to create the 3 services Object as seen in the code above. All is done I think, as expected. I call the Command object execute method, where I'm using ONE of the services in UserDelegate Object. Precisely I use authorizationService, and the behaviour is as expected. Then after using another Command instantiating the UserDelegate AGAIN, and using DIFFERENT service like userService, the reference is null. Because I'm creating a NEW UserDelegate so the service references souldn't be null. Can please please someone say where I got it wrong. Kind regards -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] verticalOriginCount horizontalOriginCount to customize a Flex chart axis
Hi, I try to customize a Flex 2.0 Chart with an Horizontal axis representing the days of the week: [TFS|SMTWTFS|SMTWTFS|SMTWTF|..] with an alternate vertical background color for each week. I am using a background style for the grid for this: .backgroundStyle { direction:vertical; verticalFill:#FF; verticalAlternateFill:#EE; verticalShowOrigin: true; verticalChangeCount: 7; verticalOriginCount: 3; verticalTickAligned: true; } mx:backgroundElements mx:GridLines styleName=backgroundStyle mx:horizontalStroke mx:Stroke color=#aa weight=0 alpha=0.3/ /mx:horizontalStroke /mx:GridLines /mx:backgroundElements It works fine, expect that the verticalOriginCount option does not seem to work (I want the color to change on sunday which is the 3rd day on my axis). The alternate color always start for the first value of the horizontal axis. I would like to specify an offset. Does an anybody know how to make this work, or is it a know chart flex bug? I could not find any sample of information on this issue anywhere... Thanks. -Francois Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
[flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid
That's it. Forgot abt e4x. By the way, is it possible to add multiple functions to the datagrid itemClick? ex: itemClick=onSelectFirstGrid(event);onSelectSecondGrid(event)? thanks again! --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Your results are not in XML. Maybe you need to specify resultFormat=e4x? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of its_llpj Sent: Monday, September 10, 2007 9:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid TypeError: Error #1009: Cannot access a property or method of a null object reference. at c100/onResult()[/Users/pjb54/src/berkleycenter_development/public/bin/c1 00.mxml:52] at c100/__orgProgramRequest_result()[/Users/pjb54/src/berkleycenter_develop ment/public/bin/c100.mxml:98] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven tFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal ::dispatchRpcEvent http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent ()[C:\dev\enterprise_bali\frameworks\mx\rpc\http\mxml\HTTPService.as:247 ] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resu ltHandler http://www.adobe.com/2006/flex/mx/internal::resultHandler ()[C:\dev\enterprise_bali\frameworks\mx\rpc\AbstractInvoker.as:168] at mx.rpc::Responder/result()[C:\dev\enterprise_bali\frameworks\mx\rpc\Resp onder.as:48] at mx.rpc::AsyncRequest/acknowledge()[C:\dev\enterprise_bali\frameworks\mx\ rpc\AsyncRequest.as:82] at DirectHTTPChannel.as$139::DirectHTTPMessageResponder/completeHandler()[C :\dev\enterprise_bali\frameworks\mx\messaging\channels\DirectHTTPChannel .as:359] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven tFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::onComplete() Line 52 is: trace(xmlResult.toXMLString()); Line 98 is part of the HTTPService: mx:HTTPService id=orgProgramRequest url=http://localhost:3000/organizations/flex_programs http://localhost:3000/organizations/flex_programs showBusyCursor=true result=onResult(event) fault=onFault(event) method=POST useProxy=false/ Thanks! --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: What is the full stack trace? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of its_llpj Sent: Monday, September 10, 2007 8:35 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid Oops spoke too soon. I'm getting a TypeError: Error #1009: Cannot access a property or method of a null object reference when I click on the datagrid to send the ID. The code hasn't changed since the example below, but I'm not sure how to troubleshoot this one. public function onSelectFirstGrid(event:Event):void { orgProgramRequest.addEventListener(Event.COMPLETE, onResult) //var params:Object = new Object(); //params['id'] = dgOrg.selectedItem.orgID; orgProgramRequest.send(dgOrg.selectedItem.orgID); } public function onResult(e:ResultEvent):void { var xmlResult:XML = e.result as XML; trace(xmlResult.toXMLString()); //is that the xml you expected? var xlResult:XMLList = xmlResult.children(); //or other expression trace(xlResult.length()); //is that the right expression? dg2data = new XMLListCollection(xlResult) trace(dg2data.getItemAt(0).toXMLString()); } [Bindable] public var dg2data: XMLListCollection; --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , its_llpj its_llpj@ wrote: That's it! Thanks Tracy! Thanks everyone! --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: Ah, yes of course, it almost certainly is. I suggest, in verbose style: var xmlResult:XML = e.result as XML; trace(xmlResult.toXMLString()); //is that the xml you expected? var xlResult:XMLList = xmlResult.children(); //or other expression trace(xlResult.length()); //is that the right expression? dg2data = new XMLListCollection(xlResult) trace(dg2data.getItemAt(0).toXMLString()); //to make It easy to know the dataField Tracy From: flexcoders@yahoogroups.com
Re: [flexcoders] RELEASE: maven-flex2-plugin 1.1 released
That is great. And how about modules? Are they supported? Any planning? VELO On 9/10/07, Christian Gruber [EMAIL PROTECTED] wrote: Greetings all, I have just released maven-flex2-plugin v1.1. This is a plugin to allow flex applications to be built via the Maven automated build system. Changes include: * Fix: Calls to mxmlc and compc may fail if command-line is too long on windows. * Old version of maven-dependency-plugin is used which causes conflicts in some large recursive projects. * Add -licenses.license product serial-number to compiler options as well as a few quality and documentation fixes. The project is available on googlecode at http://code.google.com/p/israfil-mojo, and the actual code is available on the main maven repositories (or should be within a day of this e-mail as the new update is propagated to their servers.) The project documentation can be found at http://www.israfil.net/projects/mojo/maven-flex2-plugin/. Any further issues can be logged at the googlecode site which has an issue (bug) tracker. Thanks for all the issues logged - there are still ones left, and I'll be working on them and some new features over the next two months. My plan is to release more frequently with smaller increments of change. regards, Christian.
RE: [flexcoders] Cairngorm or AS3 question please help
Actually I'm looking at Cairngorm 2.2 - possibly earlier versions aren't strongly typing objects returned. It would be ro:RemoteObject = ServiceLocator.getInstance().getRemoteObject('userService') in 2.2. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Monday, September 10, 2007 2:13 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Cairngorm or AS3 question please help Hmmm First of all, what is returning from ServiceLocator.getInstance().getService() is of type mx.rpc.remoting.RemoteObject, not Object, and these need to be pre-defined in your Services.mxml file. Have you done this? ServiceLocator is your repository of service definitions, not your UserDelegate class. All you would be doing in a delegate class is making a call to your pre-defined services. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jairokan Sent: Monday, September 10, 2007 4:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm or AS3 question please help Hi, I'm using Cairngorm. On one of the Business Delegate classes, I got defined 3 services, instantiated on the Business delegate constructor. Here an example: class UserDelegate { private var userService: Object; private var adminService: Object; private var authorizationService: Object; private var responder : Responder; public function UserDelegate( responder : Responder ) { this.userService = ServiceLocator.getInstance().getService ( UserService ); this.adminService = ServiceLocator.getInstance().getService ( AdminService ); this.authorizationService = ServiceLocator.getInstance ().getService( AuthorizationService ); this.responder = responder; } } On one of my Cammand classes I create UserDelegate Object using new UserDelegate() this is supposed inturn to create the 3 services Object as seen in the code above. All is done I think, as expected. I call the Command object execute method, where I'm using ONE of the services in UserDelegate Object. Precisely I use authorizationService, and the behaviour is as expected. Then after using another Command instantiating the UserDelegate AGAIN, and using DIFFERENT service like userService, the reference is null. Because I'm creating a NEW UserDelegate so the service references souldn't be null. Can please please someone say where I got it wrong. Kind regards -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] MAX Session Scheduler - does it exist?
Ben, Go to https://secure.adobemax2007.com/na/register/login/ , login and you'll see the personal agenda link on the left. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Monday, September 10, 2007 2:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] MAX Session Scheduler - does it exist? I've seen a couple of people mention it but can't seem to find it anywhere. Am I on crazy pills? Thanks, Ben -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Re: [flexcoders] Efficiently loading hundreds of images for a slideshow
I find that the image loading + Bitmap generation takes about 0.1 to 0.2 seconds per image for the first ~50 images (this is fine because the animation frame rate is set to 0.5 seconds per image, so the loader keeps up), but after image 60+ it can take 3-5+ seconds per image, which becomes problematic! It sounds as if you may be running into memory issues. How large are your images (dimensions)? After 60+ images you may be getting a delay as memory starts to swap to/from virtual memory to service the allocation of the bitmap data. One way to work around this would be to ditch older images... of course, if the user wanted to loop or control the playback, this would be problematic, but depending on the UI scenario you may be able to rely on the browser's cache. You could also potentially generate a FLV on the server based on the images the user requests. I know you can use ffmpeg (I think) to generate FLVs, perhaps you can also use it to generate a FLV based on an image sequence. You could then just stream the FLV to them, which would internally (and natively) handle on the memory issues more efficiently and gracefully). Troy.
RE: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--P.S.
Did you call setActualSize on it? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Ham Sent: Monday, September 10, 2007 10:58 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--P.S. It is working! No sooner said than undone! I am trying to add a LinkButton to my renderer, and it won't show up! Its label and x position are being set correctly, but it doesn't display! Gah! Is there something special about adding LinkButtons that I don't know about? Help! OK DAH For future generations, here is what I did: * Created a custom class that extends ListItemRenderer. * Overrode createChildren, measure, commitProperties, and updateDisplayList as Alex described, calling super on each. The only glitch here is I had to set label.visible == false in UDL because the label is duplicating one of the fields I am setting. Also, to get measuredHeight in measure(), I had to do getExplicitOrMeasuredHeight () on my textfield. When I set measuredHeight based on the textfield.height, all the rows were the same height, about 50-75 px. * No get or set data() or listData() in my new class. No other methods at all actually, except the ones listed above. The long national nightmare is over! Many thanks Alex and Tracy for your patient and informative replies. OK DAH Yes, as a matter of practice, you should always call super.methodName() unless you know for sure you don't want the underlying behavior. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Ham Sent: Monday, September 10, 2007 9:17 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help? Alex, In fact, I'd make a copy of LIR and rename it and erase the guts of createChildren, commitProperties, measure, and updateDisplayList. You shouldn't need to touch getters/setters of data/listData. Should I call super.methodName() on the ones I am overriding? Create the textfields in createChildren. Stuff the .text properties from the data object in commitProperties Calc measuredHeight in measure() something like this: Override protected function measure() { Tf1.width = explicitWidth * .2; Tf2.width = explicitWidth * .8; measuredHeight = Math.max(tf1.textHeight, tf2.textHeight); measuredHeight += (some padding) } Set their final positions in UDL Good luck. This is hairy-level-one so there are no dumb questions. Thanks! I'm in this to win it! OK DAH -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid
Yes, that should work. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of its_llpj Sent: Monday, September 10, 2007 11:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid That's it. Forgot abt e4x. By the way, is it possible to add multiple functions to the datagrid itemClick? ex: itemClick=onSelectFirstGrid(event);onSelectSecondGrid(event)? thanks again! --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Your results are not in XML. Maybe you need to specify resultFormat=e4x? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of its_llpj Sent: Monday, September 10, 2007 9:06 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid TypeError: Error #1009: Cannot access a property or method of a null object reference. at c100/onResult()[/Users/pjb54/src/berkleycenter_development/public/bin/c1 00.mxml:52] at c100/__orgProgramRequest_result()[/Users/pjb54/src/berkleycenter_develop ment/public/bin/c100.mxml:98] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven tFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal http://www.adobe.com/2006/flex/mx/internal ::dispatchRpcEvent http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent ()[C:\dev\enterprise_bali\frameworks\mx\rpc\http\mxml\HTTPService.as:247 ] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resu http://www.adobe.com/2006/flex/mx/internal::resu ltHandler http://www.adobe.com/2006/flex/mx/internal::resultHandler http://www.adobe.com/2006/flex/mx/internal::resultHandler ()[C:\dev\enterprise_bali\frameworks\mx\rpc\AbstractInvoker.as:168] at mx.rpc::Responder/result()[C:\dev\enterprise_bali\frameworks\mx\rpc\Resp onder.as:48] at mx.rpc::AsyncRequest/acknowledge()[C:\dev\enterprise_bali\frameworks\mx\ rpc\AsyncRequest.as:82] at DirectHTTPChannel.as$139::DirectHTTPMessageResponder/completeHandler()[C :\dev\enterprise_bali\frameworks\mx\messaging\channels\DirectHTTPChannel .as:359] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven tFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::onComplete() Line 52 is: trace(xmlResult.toXMLString()); Line 98 is part of the HTTPService: mx:HTTPService id=orgProgramRequest url=http://localhost:3000/organizations/flex_programs http://localhost:3000/organizations/flex_programs http://localhost:3000/organizations/flex_programs http://localhost:3000/organizations/flex_programs showBusyCursor=true result=onResult(event) fault=onFault(event) method=POST useProxy=false/ Thanks! --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: What is the full stack trace? 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 its_llpj Sent: Monday, September 10, 2007 8:35 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid Oops spoke too soon. I'm getting a TypeError: Error #1009: Cannot access a property or method of a null object reference when I click on the datagrid to send the ID. The code hasn't changed since the example below, but I'm not sure how to troubleshoot this one. public function onSelectFirstGrid(event:Event):void { orgProgramRequest.addEventListener(Event.COMPLETE, onResult) //var params:Object = new Object(); //params['id'] = dgOrg.selectedItem.orgID; orgProgramRequest.send(dgOrg.selectedItem.orgID); } public function onResult(e:ResultEvent):void { var xmlResult:XML = e.result as XML; trace(xmlResult.toXMLString()); //is that the xml you expected? var xlResult:XMLList = xmlResult.children(); //or other expression trace(xlResult.length()); //is that the right expression? dg2data = new XMLListCollection(xlResult) trace(dg2data.getItemAt(0).toXMLString()); } [Bindable] public var dg2data: XMLListCollection; --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[flexcoders] Compressing animations
I've got a bunch of animations that are bitmap-based. They are normally 6-12 frames, usually 64x64 in size. Right now I just store each frame separately as a PNG. Each frame of the animation doesn't change dramatically, so I realize there's some wasted space, and I'm at the point where I'm try to trim the download time for my app by as much as possible. What are my options for some quick wins here? Animated GIF isn't an option as I need the the full 32-bit RGBA pixel. I could of course write my own codec that stored per-frame deltas and regenerated the bitmaps at load time (I just need over-the-wire compression), but I'd rather not at this point. Would FLV be an option? I'm not real educated on the codec so I don't know how well it works in lossless (its pixel-art) situations, if at all. I also don't know if it'd be appropriate for animations as short as 6-12 frames. Anyone with experience have any suggestions? Troy.
[flexcoders] How to get Textinput position?
Hi guys :) I am working on flex, and looks hard to get the target object x and y position. do you have any ideas? Cheers THANKS ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; viewSourceURL=srcview/index.html mx:Script ![CDATA[ import mx.core.IFlexDisplayObject; import mx.core.UIComponent; import mx.controls.Alert; private function createMsg(event:Event):void { var target:UIComponent = UIComponent(event.currentTarget); var alert:Alert; Alert.show(the X position of LABEL 1 is +event.currentTarget.x, Show Me, Alert.YES | Alert.NO) } ]] /mx:Script mx:Panel mx:Form mx:FormItem label=Label mx:TextInput focusOut=createMsg(event);/ /mx:FormItem mx:FormItem label=Label mx:TextInput/ /mx:FormItem mx:FormItem label=Labe3 mx:TextInput/ /mx:FormItem /mx:Form /mx:Panel /mx:Application
RE: [flexcoders] Zooming effect modifies scale, correct?
One of the problems is that fonts don't scale well at all and layout differently at different scales. Your idea of zooming a bitmap might be best. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Troy Gilbert Sent: Monday, September 10, 2007 10:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Zooming effect modifies scale, correct? Hi, I've got some popups that I'm literally popping up (VH1 pop-up video style, for those that remember it) and to get the effect I simply applied the ZoomEffect to them. The result is basically right, but depending on what's in the popup I'm detecting some weirdness. Here's what I see: As the object zooms up or down, some objects scale while others just change size. At first, I thought it was just text-based stuff, so I switched to an embedded font and that helped quite a bit. But then I noticed some text areas and labels were actually truncating text as the popup was shrinking. I tried disabling autolayout, but that just resulted in getting some scrollbars in some unwanted places... So... my guess is that many of the UI components are doing stuff based on unscaledWidth and unscaledHeight and essentially thinking to hard about how to draw themselves. My expectation would be that I could use the Zoom effect to shrink something to 50% and it would look identical to the 100% with everything half the size. In reality, its more like I went in and manually adjusted the size of everything by 50% (width=200 to width=100, etc.)., which is not the same thing (at least, not in my graphics book). What I'm thinking is that I'm going to have to do a manual effect where I render the popup at 100%, capture it into a bitmap, zoom that bitmap and swap the bitmap for the real thing when its at 100%. Anyone tackled this issue before? Am I missing something? Troy.
Re: [flexcoders] FB3: src and config
Fair enough. But it would be good to have confirmation that people are doing this successfully in FB2. Thanks for the pointer, though. Richard, AS FB3 is still very much in beta, you probably should post your issue to the FB3 private beta forum. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Monday, September 10, 2007 1:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] FB3: src and config I have my source in a src directory, rather than at the project level. I have been unable to get the compiler to find a config file as follows: mx:XML id=config source=config/config.xml /mx:XML unless the config directory is under src. This didn't work either: ../config/config.xml Nor did adding config as an external source path in Flex Builder. Is a project layout with src and config at the same level feasible? I must be missing something silly. Thanks in advance -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] Click instead of mouseover to display sub-menu
You could try a custom datadescriptor that pretends the menuitem is not a branch, captures mouseDown, resets the branch flag and fakes a mouseOver. How do you dismiss a submenu? mouseOut or another click? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claude Hussenet Sent: Monday, September 10, 2007 10:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Click instead of mouseover to display sub-menu By default submenu from a Menu control are displayed by mouving over a menutem. Is it possible to change the behavior so a click on the menu item triggers the display of the submenu. I have looked the code of the Menu class and it does not seem easy to overload the mouseOverHandler method.The method uses private field such as anchorRow without any accessors method. Is there any other than cut and paste the menu and menuevent classes to reach my requirement ? Thx-Claude
[flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid
It sure did... loving this stuff... thanks Alex --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Yes, that should work. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of its_llpj Sent: Monday, September 10, 2007 11:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid That's it. Forgot abt e4x. By the way, is it possible to add multiple functions to the datagrid itemClick? ex: itemClick=onSelectFirstGrid(event);onSelectSecondGrid(event)? thanks again! --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Your results are not in XML. Maybe you need to specify resultFormat=e4x? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of its_llpj Sent: Monday, September 10, 2007 9:06 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid TypeError: Error #1009: Cannot access a property or method of a null object reference. at c100/onResult()[/Users/pjb54/src/berkleycenter_development/public/bin/c1 00.mxml:52] at c100/__orgProgramRequest_result()[/Users/pjb54/src/berkleycenter_develop ment/public/bin/c100.mxml:98] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven tFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal http://www.adobe.com/2006/flex/mx/internal ::dispatchRpcEvent http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent ()[C:\dev\enterprise_bali\frameworks\mx\rpc\http\mxml\HTTPService.as:247 ] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resu http://www.adobe.com/2006/flex/mx/internal::resu ltHandler http://www.adobe.com/2006/flex/mx/internal::resultHandler http://www.adobe.com/2006/flex/mx/internal::resultHandler ()[C:\dev\enterprise_bali\frameworks\mx\rpc\AbstractInvoker.as:168] at mx.rpc::Responder/result()[C:\dev\enterprise_bali\frameworks\mx\rpc\Resp onder.as:48] at mx.rpc::AsyncRequest/acknowledge()[C:\dev\enterprise_bali\frameworks\mx\ rpc\AsyncRequest.as:82] at DirectHTTPChannel.as$139::DirectHTTPMessageResponder/completeHandler()[C :\dev\enterprise_bali\frameworks\mx\messaging\channels\DirectHTTPChannel .as:359] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven tFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::onComplete() Line 52 is: trace(xmlResult.toXMLString()); Line 98 is part of the HTTPService: mx:HTTPService id=orgProgramRequest url=http://localhost:3000/organizations/flex_programs http://localhost:3000/organizations/flex_programs http://localhost:3000/organizations/flex_programs http://localhost:3000/organizations/flex_programs showBusyCursor=true result=onResult(event) fault=onFault(event) method=POST useProxy=false/ Thanks! --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: What is the full stack trace? 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 its_llpj Sent: Monday, September 10, 2007 8:35 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid Oops spoke too soon. I'm getting a TypeError: Error #1009: Cannot access a property or method of a null object reference when I click on the datagrid to send the ID. The code hasn't changed since the example below, but I'm not sure how to troubleshoot this one. public function onSelectFirstGrid(event:Event):void { orgProgramRequest.addEventListener(Event.COMPLETE, onResult) //var params:Object = new Object(); //params['id'] = dgOrg.selectedItem.orgID; orgProgramRequest.send(dgOrg.selectedItem.orgID); } public function onResult(e:ResultEvent):void { var xmlResult:XML = e.result as XML; trace(xmlResult.toXMLString()); //is that the xml you expected? var xlResult:XMLList = xmlResult.children(); //or other expression trace(xlResult.length());
RE: [flexcoders] How to get Textinput position?
Might be event.currentTarget.parent.x. There is no Label1 in your sample. Also see localToGlobal From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexawesome Sent: Monday, September 10, 2007 11:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to get Textinput position? Hi guys :) I am working on flex, and looks hard to get the target object x and y position. do you have any ideas? Cheers THANKS ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml viewSourceURL=srcview/index.html mx:Script ![CDATA[ import mx.core.IFlexDisplayObject; import mx.core.UIComponent; import mx.controls.Alert; private function createMsg(event:Event):void { var target:UIComponent = UIComponent(event.currentTarget); var alert:Alert; Alert.show(the X position of LABEL 1 is +event.currentTarget.x, Show Me, Alert.YES | Alert.NO) } ]] /mx:Script mx:Panel mx:Form mx:FormItem label=Label mx:TextInput focusOut=createMsg(event);/ /mx:FormItem mx:FormItem label=Label mx:TextInput/ /mx:FormItem mx:FormItem label=Labe3 mx:TextInput/ /mx:FormItem /mx:Form /mx:Panel /mx:Application
Re: [flexcoders] RELEASE: maven-flex2-plugin 1.1 released
Not yet. Please do put it up on the issues list. also, if you have experience with configuring/building modules using the command-line compilers, then please put in some suggestions as to how you'd like them configured, and what command-line equivalents you want support for. Thanks, Christian. On 10-Sep-07, at 2:26 PM, Marvin Froeder wrote: That is great. And how about modules? Are they supported? Any planning? VELO On 9/10/07, Christian Gruber [EMAIL PROTECTED] wrote: Greetings all, I have just released maven-flex2-plugin v1.1. This is a plugin to allow flex applications to be built via the Maven automated build system. Changes include: * Fix: Calls to mxmlc and compc may fail if command-line is too long on windows. * Old version of maven-dependency-plugin is used which causes conflicts in some large recursive projects. * Add -licenses.license product serial-number to compiler options as well as a few quality and documentation fixes. The project is available on googlecode at http://code.google.com/p/israfil-mojo, and the actual code is available on the main maven repositories (or should be within a day of this e- mail as the new update is propagated to their servers.) The project documentation can be found at http://www.israfil.net/projects/mojo/maven-flex2-plugin/. Any further issues can be logged at the googlecode site which has an issue (bug) tracker. Thanks for all the issues logged - there are still ones left, and I'll be working on them and some new features over the next two months. My plan is to release more frequently with smaller increments of change. regards, Christian.
RE: [flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid
Yes, separate them with semicolons, just as you have done. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of its_llpj Sent: Monday, September 10, 2007 2:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid That's it. Forgot abt e4x. By the way, is it possible to add multiple functions to the datagrid itemClick? ex: itemClick=onSelectFirstGrid(event);onSelectSecondGrid(event)? thanks again! --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Your results are not in XML. Maybe you need to specify resultFormat=e4x? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of its_llpj Sent: Monday, September 10, 2007 9:06 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid TypeError: Error #1009: Cannot access a property or method of a null object reference. at c100/onResult()[/Users/pjb54/src/berkleycenter_development/public/bin/c1 00.mxml:52] at c100/__orgProgramRequest_result()[/Users/pjb54/src/berkleycenter_develop ment/public/bin/c100.mxml:98] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven tFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal http://www.adobe.com/2006/flex/mx/internal ::dispatchRpcEvent http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent ()[C:\dev\enterprise_bali\frameworks\mx\rpc\http\mxml\HTTPService.as:247 ] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resu http://www.adobe.com/2006/flex/mx/internal::resu ltHandler http://www.adobe.com/2006/flex/mx/internal::resultHandler http://www.adobe.com/2006/flex/mx/internal::resultHandler ()[C:\dev\enterprise_bali\frameworks\mx\rpc\AbstractInvoker.as:168] at mx.rpc::Responder/result()[C:\dev\enterprise_bali\frameworks\mx\rpc\Resp onder.as:48] at mx.rpc::AsyncRequest/acknowledge()[C:\dev\enterprise_bali\frameworks\mx\ rpc\AsyncRequest.as:82] at DirectHTTPChannel.as$139::DirectHTTPMessageResponder/completeHandler()[C :\dev\enterprise_bali\frameworks\mx\messaging\channels\DirectHTTPChannel .as:359] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven tFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::onComplete() Line 52 is: trace(xmlResult.toXMLString()); Line 98 is part of the HTTPService: mx:HTTPService id=orgProgramRequest url=http://localhost:3000/organizations/flex_programs http://localhost:3000/organizations/flex_programs http://localhost:3000/organizations/flex_programs http://localhost:3000/organizations/flex_programs showBusyCursor=true result=onResult(event) fault=onFault(event) method=POST useProxy=false/ Thanks! --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: What is the full stack trace? 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 its_llpj Sent: Monday, September 10, 2007 8:35 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Populating XMLListCollection and sending it to a Datagrid Oops spoke too soon. I'm getting a TypeError: Error #1009: Cannot access a property or method of a null object reference when I click on the datagrid to send the ID. The code hasn't changed since the example below, but I'm not sure how to troubleshoot this one. public function onSelectFirstGrid(event:Event):void { orgProgramRequest.addEventListener(Event.COMPLETE, onResult) //var params:Object = new Object(); //params['id'] = dgOrg.selectedItem.orgID; orgProgramRequest.send(dgOrg.selectedItem.orgID); } public function onResult(e:ResultEvent):void { var xmlResult:XML = e.result as XML; trace(xmlResult.toXMLString()); //is that the xml you expected? var xlResult:XMLList = xmlResult.children(); //or other expression trace(xlResult.length()); //is that the right expression? dg2data = new XMLListCollection(xlResult) trace(dg2data.getItemAt(0).toXMLString()); } [Bindable] public var dg2data: XMLListCollection; --- In flexcoders@yahoogroups.com
[flexcoders] scrollRect confusion
hi. i'm loading an image at runtime into an image component. i want the component to have horizontal and vertical scrollbars. the image is 300x300 and the image i'm loading in is 500x500. i thought i could simply define a rectangle for the 'scrollRect' property of the image but it doesn't appear to be working. am i correct in thinking that i can do this? here's the code (init() is called on creationComplete): [Bindable] private var viewPort:Rectangle; private function init():void{ viewPort = new Rectangle(0, 0, 500, 500); } mx:Image width=300 height=300 showBusyCursor=true source={myRuntimeImage} scrollRect={viewPort}/ any tips are appreciated. - thank you. -- matt.
[flexcoders] Java Development in Flex Builder
HI I have just posted small Tip on how you can do Java Development in Flex Builder. http://www.suketuvyas.com/2007/09/10/java-development-in-flex-builder/ Hope this will help some developers. Thank You, Suketu Vyas http://www.suketuvyas.com
Re: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--P.S.
Did you call setActualSize on it? That fixed it! Not sure why, but that fixed it. Thanks again, OK DAH -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Ham Sent: Monday, September 10, 2007 10:58 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--P.S. It is working! No sooner said than undone! I am trying to add a LinkButton to my renderer, and it won't show up! Its label and x position are being set correctly, but it doesn't display! Gah! Is there something special about adding LinkButtons that I don't know about? Help! OK DAH For future generations, here is what I did: * Created a custom class that extends ListItemRenderer. * Overrode createChildren, measure, commitProperties, and updateDisplayList as Alex described, calling super on each. The only glitch here is I had to set label.visible == false in UDL because the label is duplicating one of the fields I am setting. Also, to get measuredHeight in measure(), I had to do getExplicitOrMeasuredHeight () on my textfield. When I set measuredHeight based on the textfield.height, all the rows were the same height, about 50-75 px. * No get or set data() or listData() in my new class. No other methods at all actually, except the ones listed above. The long national nightmare is over! Many thanks Alex and Tracy for your patient and informative replies. OK DAH Yes, as a matter of practice, you should always call super.methodName() unless you know for sure you don't want the underlying behavior. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Ham Sent: Monday, September 10, 2007 9:17 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Unwanted scrollbars on my List itemRenderer--measure() help? Alex, In fact, I'd make a copy of LIR and rename it and erase the guts of createChildren, commitProperties, measure, and updateDisplayList. You shouldn't need to touch getters/setters of data/listData. Should I call super.methodName() on the ones I am overriding? Create the textfields in createChildren. Stuff the .text properties from the data object in commitProperties Calc measuredHeight in measure() something like this: Override protected function measure() { Tf1.width = explicitWidth * .2; Tf2.width = explicitWidth * .8; measuredHeight = Math.max(tf1.textHeight, tf2.textHeight); measuredHeight += (some padding) } Set their final positions in UDL Good luck. This is hairy-level-one so there are no dumb questions. Thanks! I'm in this to win it! OK DAH -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/ flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links