[flexcoders] flexTasks.jar for Flex 2.0
Hi All, Is there a different flexTasks.jar for Flex 2.0 ? I am trying to build my project in Flex 2.0 with jar I downloaded from http://www.adobe.com/devnet/flex/articles/flex_ant_pt2.html and it is giving me error: Unable to run compc, but runs fine for Flex 3.0 projects. Thanks Arpan
[flexcoders] Controlling Datagrid with Keyboard : Tab and Spacebar
Hi All, I am struggling from a long time implementing tabbing in Datagrid in Flex 2. Is there any issue with controlling datagrid with keyboard? I have a datagrid with 5 columns: Radio Button Chekbox TextInput Label Label Label //i need both renderer and editor same rendererIsEditor = true; Now I have to implement tabbing such that, focus comes to radio button then in same row to checkbox then to textiput then goes to next row radio button. Also when I press spacebar radio button or checkbox should get selected. Tabbing is working fine but when i select any radio button with spacebar and then move on to next radio button and select it, the previous one is sometimes not unselected but doing trace() it says false, also sometimes more than one radio button gets selected, scrolling the grid produces same issue. I even checked the skin class that sets the radio button selected skin but it is selecting only one. Thanks Arpan Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com
[flexcoders] using addChild() or includeInLayout ?
Hi All, Is it better to create controls dynamically using addChild() or write the mxml for all the controls and use includeInLayout and visible property to show / hide the controls? Thanks Arpan Cricket on your mind? Visit the ultimate cricket website. Enter http://beta.cricket.yahoo.com
[flexcoders] Performance issue in creating a Slide Show?
Hi All, I am creating a slide show with images, i have three solutions for this, can anyone help me out which one is better: 1. Load all the images in a ViewStack and show them one by one with effect. In this case all the images need to be loaded at the local machine from server. 2. Use Canvas instead of ViewStack and load the images and store it in an array and use removeChild and addChild at Canvas to show them. 3. Add only one image on the Canvas and change the source property of the image object for next image, in which case image will always get loaded from the server. Can anyone help me out as which approach will be best in terms of performance and is there any other way? Thanks Arpan - Get the freedom to save as many mails as you wish. Click here to know how.
[flexcoders] Timer running fast in Firefox than in IE with same time interval?
Hi All, I have a list with many items which moves automatically by using a timer. Timer is set to 10 ms i.e. after every 10 ms second it fires an event which moves the items in the list by some distance. In IE it runs fine but in Firefox it runs very fast, i am not getting how can a timer change it's time in firfox. thanks arpan Chat on a cool, new interface. No download required. Go to http://in.messenger.yahoo.com/webmessengerpromo.php
[flexcoders] How to change the position of the tooltip in a column chart?
Hi All, I need to change the position of the small circle that comes when we mouseover any column in a columnchart which displays the tooltip. It come at the top of each column and I want to display it at the bottom of the column. Can anyone tell the class in which this behavior is implemented? Thanks arpan Why delete messages? Unlimited storage is just a click away. Go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html
[flexcoders] When chart legend is set to Tahoma font, shows bold even though fontWeight in normal?
Hi All, I am having problem with Tahoma font when used in any chart legend. When i set the legend font to Tahoma it shows me bold font even though fontWeight in normal. Is this is a bug? Thanks Arpan 5, 50, 500, 5000 - Store N number of mails in your inbox. Go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html
[flexcoders] How can I make the title of any graph clickable?
Hi All, I want to make the title of any graph clickable. I want to make a handcursor when user hovers over the horizontal or vertical title of any chart and receive click event over that. Thanks Arpan Chat on a cool, new interface. No download required. Go to http://in.messenger.yahoo.com/webmessengerpromo.php
Re: [flexcoders] Error with htmlText property of TextArea - Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type?
Thanks Dan, i am now able to get rid of this error. what i am doing is, when IOErrorEvent is fired i am removing the images from the htmlText and just displaying the text. - Original Message From: Daniel Freiman [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, October 28, 2007 10:39:49 PM Subject: Re: [flexcoders] Error with htmlText property of TextArea - Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type? Ok, if you're getting this from an rss feed then you're not going to like this. Also this solution uses mx_internal. If you don't know what that is, it's a set of methods/properties, that adobe says may change so they should be used with extreme care because your code might break on updates. However, in this case we're using it once to avoid creating a subclass so I think it's a fair trade. import mx.core.mx_internal ; use namespace mx_internal; // this line should be right after the import statements. ... textArea.htmlText = rssText; textArea.validatePr operties( ); // initializes image loaders var textField:UITextFie ld = textArea.getTextFie ld(); // mx_internal line to get textField of TextArea for (each imageID in rssText) { // how you actually implement this psuedo code line depends on the rssText you already have var loader:Loader = textField.getImageR eference( imageID) as Loader; var loaderInfo:LoaderIn fo = loader.contentLoade rInfo; if (loaderInfo. bytesLoaded != loaderInfo.bytesTot al) { // it would be pointless to add listeners to loaders that have completed loaderInfo.addEvent Listener( IOErrorEvent. IO_ERROR, imageLoaderErrorLis tener); // you might want to use weakReference here for memory management if it works. } } public function imageLoaderErrorLis tener(event: IOErrorEvent) :void { // inform user if you want. } - Dan Freiman On 10/28/07, arpan srivastava [EMAIL PROTECTED] com wrote: Hi Dan, There is no stacktrace, this is the only thing i get. - Original Message From: Daniel Freiman [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Saturday, October 27, 2007 9:02:27 PM Subject: Re: [flexcoders] Error with htmlText property of TextArea - Error #2044: Unhandled IOErrorEvent: . text=Error #2124: Loaded file is an unknown type? Can you post the stack trace from the error? - Dan Freiman On 10/27/07, arpan srivastava [EMAIL PROTECTED] com wrote: Hi All, i am creating a rss reader for which i am using TextArea to display RSS description which is simple html text. Sometimes i am getting this error: Error #2044: Unhandled IOErrorEvent: . text=Error #2124: Loaded file is an unknown type I have also put a try and catch but it is not getting caught. Also, TextArea does not have any IOErrorEvent event. I think it is due to loading of images from img, it comes very randomly. Can anyone help me with this problem? -- Thanks, Arpan _ _ _ _ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail. yahoo.com _ _ _ _ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail. yahoo.com !-- #ygrp-mkp{ border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;} #ygrp-mkp hr{ border:1px solid #d8d8d8;} #ygrp-mkp #hd{ color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;} #ygrp-mkp #ads{ margin-bottom:10px;} #ygrp-mkp .ad{ padding:0 0;} #ygrp-mkp .ad a{ color:#ff;text-decoration:none;} -- !-- #ygrp-sponsor #ygrp-lc{ font-family:Arial;} #ygrp-sponsor #ygrp-lc #hd{ margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;} #ygrp-sponsor #ygrp-lc .ad{ margin-bottom:10px;padding:0 0;} -- !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color
Re: [flexcoders] Error with htmlText property of TextArea - Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type?
Hi Dan, There is no stacktrace, this is the only thing i get. - Original Message From: Daniel Freiman [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, October 27, 2007 9:02:27 PM Subject: Re: [flexcoders] Error with htmlText property of TextArea - Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type? Can you post the stack trace from the error? - Dan Freiman On 10/27/07, arpan srivastava [EMAIL PROTECTED] com wrote: Hi All, i am creating a rss reader for which i am using TextArea to display RSS description which is simple html text. Sometimes i am getting this error: Error #2044: Unhandled IOErrorEvent: . text=Error #2124: Loaded file is an unknown type I have also put a try and catch but it is not getting caught. Also, TextArea does not have any IOErrorEvent event. I think it is due to loading of images from img, it comes very randomly. Can anyone help me with this problem? -- Thanks, Arpan _ _ _ _ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail. yahoo.com !-- #ygrp-mkp{ border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;} #ygrp-mkp hr{ border:1px solid #d8d8d8;} #ygrp-mkp #hd{ color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;} #ygrp-mkp #ads{ margin-bottom:10px;} #ygrp-mkp .ad{ padding:0 0;} #ygrp-mkp .ad a{ color:#ff;text-decoration:none;} -- !-- #ygrp-sponsor #ygrp-lc{ font-family:Arial;} #ygrp-sponsor #ygrp-lc #hd{ margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;} #ygrp-sponsor #ygrp-lc .ad{ margin-bottom:10px;padding:0 0;} -- !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-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;} -- __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[flexcoders] Error with htmlText property of TextArea - Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type?
Hi All, i am creating a rss reader for which i am using TextArea to display RSS description which is simple html text. Sometimes i am getting this error: Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type I have also put a try and catch but it is not getting caught. Also, TextArea does not have any IOErrorEvent event. I think it is due to loading of images from img, it comes very randomly. Can anyone help me with this problem? -- Thanks, Arpan __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[flexcoders] Error 2025 with images in TextArea?
Hi All, I am pasting a mail below. I am facing the same problem while displaying html in textarea. I didn't find any answers to this. Can anyone help with problem? --Message- I'm working on a quick little RSS Reader and having some trouble. I've got a DG on one side, which then populates a textArea on the other side. Here's the feed (mine) http://www.red-omega.com/blog/rss.cfm?mode=full When I hit the entry Blogito Ergo Sum when I click to entry in the DG I get the below. It seems to happen when entries have images linked from other sites. [SWF] Users:johnwilker:Documents:Flex Builder 2:360FlexRSS:bin:main-debug.swf - 972,300 bytes after decompression getting the feed: http://www.red-omega.com/blog/rss.cfm?mode=full You Selected index: 7 You Selected index: 8 ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.text::TextField/set htmlText() at mx.core::UITextField/set htmlText()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UITextField.as:319] at mx.controls::TextArea/mx.controls:TextArea::commitProperties()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\TextArea.as:1841] at mx.core::UIComponent/validateProperties()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:5300] at mx.managers::LayoutManager/mx.managers:LayoutManager::validateProperties()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:517] at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiation()[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\LayoutManager.as:667] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7909] at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:7852] at flash.utils::Timer/flash.utils:Timer::_timerDispatch() at flash.utils::Timer/flash.utils:Timer::tick() Any thoughts? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[flexcoders] not able to load svg format images?
Hi All, I am making an application which will run on server and loads image files. My application supports png,jpg,gif but I am not able to load svg format. I am using SWFLoader to load the file? Thanks Arpan Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545433
[flexcoders] how can i read an excel file from my local system?
Hi All, how can i read an excel file from my local system in my flex application. I have all the data in an excel file which i need to read and draw graphs? I have used HTTPService to read text files, but this doesn't work with excel files? Thanks arpan Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.com/
[flexcoders] Getting two tooltips on same label ?
Hi All, I have created a ticker type application in which I scroll labels inside a HorizontalList. When I enter a long text in the label like of 200 words, and I move my mouse over that label I get two same tooltips, one after another. The other tooltip shows after the time set in showDelay property and shows up at a slightly different position. I am manually creating tootip using ToolTipManager.createToolTip(). I have checked my code and the function where I am creating tooltip is called only once. Can you tell where the problem is and how to solve ? Thanks Arpan Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. http://tv.yahoo.com/
Re: [flexcoders] How to create Repeater in Actionscript only?
Hi Tom, How can convert this code in actionscript? mx:Repeater id=rp dataProvider={dp} mx:Button height=49 width=50 label={String(rp.currentItem)} click=Alert.show(String(event.currentTarget.getRepeaterItem()) + ' pressed')/ /mx:Repeater - Original Message From: Tom Chiverton [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, June 8, 2007 7:55:53 PM Subject: Re: [flexcoders] How to create Repeater in Actionscript only? On Friday 08 Jun 2007, arpan srivastava wrote: Is there anyway i can use Repeater in actionscript You can create all MXML components from AS. var obj:Repeater=new Repeater(); -- Tom Chiverton Helping to economically transform corporate content 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 Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/
[flexcoders] How to create Repeater in Actionscript only?
Hi All, Is there anyway i can use Repeater in actionscript (only actionscript, no mxml).? can anyone send me a small code like that created in the help documents for creating buttons from 1 to 10 in Actionscript only? Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.com/
Re: [flexcoders] Help !!! Getting error when change RowHeight and then Scroll Datagrid
Hi Alex, I tried to use invalidateList() but it didn't worked out, I also tried out calling updateList() but it was also giving error when i change the fontsize again and again. finally i registered a upadateComplete event and wrote following and it worked. private function updateCompleteHandler(event:FlexEvent):void{ while(rowInfo.length listItems.length){ rowInfo.pop(); } } I don't know if this is correct or not but it is working for me. - Original Message From: Alex Harui [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, June 7, 2007 1:20:08 AM Subject: RE: [flexcoders] Help !!! Getting error when change RowHeight and then Scroll Datagrid Try calling invalidateList( ) (not invalidateDisplayLi st()) after you change the font size From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of arpan srivastava Sent: Wednesday, June 06, 2007 10:07 AM To: Flex Coders Subject: [flexcoders] Help !!! Getting error when change RowHeight and then Scroll Datagrid Hi All, I have a datagrid in which rowheight depends upon the fontSize. If i increase the fontSize rowheight increases and if i decrease the font size rowheight decreases. but at runtime when i change the fontsize , and scroll the grid i get error.I observed that when rowheight changes rowInfo is not updated like listItems. At this time rowInfo = 14 listItems = 10 TypeError: Error #1010: A term is undefined and has no properties. at mx.controls. listClasses: :ListBase/ mx.controls. listClasses: ListBase: :scrollVerticall y()[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\controls\ listClasses\ ListBase. as:5346] at mx.controls: :DataGrid/ mx.controls: DataGrid: :scrollVerticall y()[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\controls\ DataGr! id. as:1923] at mx.controls. listClasses: :ListBase/ set verticalScrollPosit ion()[C:\ dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ listClasses\ ListBase. as:1043] at mx.controls: :DataGrid/ mx.controls: DataGrid: :scrollHandler( )[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\controls\ DataGrid. as:1720] at flash.events: :EventDispatcher /flash.events: EventDispatcher: :dispatchEventFu nction() at flash.events: :EventDispatcher /dispatchEvent( ) at mx.core::UIComponen t/dispatchEvent( )[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\core\ UIComponent. as:8323] at mx.controls. scrollClasses: :ScrollBar/h! ttp://www.adobe. com/2006/ flex/mx/internal ::dispatchScroll Event()[C: \dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ scrollClasses\ ScrollBar. as:1096] at mx.controls. scrollClasses: :ScrollBar/http://www.adobe. com/2006/ flex/mx/internal ::lineScroll( )[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\controls\ scrollClasses\ ScrollBar. as:1058] at mx.controls. scrollClasses: :ScrollBar/ mx.controls. scrollClasses: ScrollBar: :downArrow_ buttonDownHandle r()[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\controls\ scrollClasses\ ScrollBar. as:1160] at flash.events: :EventDispatcher /flash.events: EventDispatcher: :dispatchEventFu nction() at flash.events: :EventDispatcher /dispatchEvent( ) at mx.core::UIComponen t/dispatchEvent( )[C:\dev\ flex_201_ gmc\sdk\fr! amewor ks\mx\core\ UIComponent. as:8323] at mx.controls: :Button/http://www.adobe. com/2006/ flex/mx/internal ::buttonPressed( )[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\controls\ Button.as: 1988] at mx.controls: :Button/mx. controls: Button::mouseDow nHandler( )[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\controls\ Button.as: 2234] Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. !-- #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
[flexcoders] Help !!! Getting error when change RowHeight and then Scroll Datagrid
Hi All, I have a datagrid in which rowheight depends upon the fontSize. If i increase the fontSize rowheight increases and if i decrease the font size rowheight decreases. but at runtime when i change the fontsize , and scroll the grid i get error.I observed that when rowheight changes rowInfo is not updated like listItems. At this time rowInfo = 14 listItems = 10 TypeError: Error #1010: A term is undefined and has no properties. at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::scrollVertically()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\listClasses\ListBase.as:5346] at mx.controls::DataGrid/mx.controls:DataGrid::scrollVertically()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\DataGrid.as:1923] at mx.controls.listClasses::ListBase/set verticalScrollPosition()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\listClasses\ListBase.as:1043] at mx.controls::DataGrid/mx.controls:DataGrid::scrollHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\DataGrid.as:1720] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:8323] at mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx/internal::dispatchScrollEvent()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\scrollClasses\ScrollBar.as:1096] at mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx/internal::lineScroll()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\scrollClasses\ScrollBar.as:1058] at mx.controls.scrollClasses::ScrollBar/mx.controls.scrollClasses:ScrollBar::downArrow_buttonDownHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\scrollClasses\ScrollBar.as:1160] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:8323] at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::buttonPressed()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\Button.as:1988] at mx.controls::Button/mx.controls:Button::mouseDownHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\Button.as:2234] Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
[flexcoders] Help ! fontWeight style in datagrid once applied does not change?
Hi, I am facing problem when setting fontWeight property of datagrid to bold. when I start my datagrid i set fontWeight to bold and it works but at runtime when i set the property to normal no change is reflected. All other properties are changing like color, fontSize etc. only fontWeight once applied is not changed. Thanks Arpan Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
[flexcoders] Please help!! Reduce alpha value of a color in a bitmap image?
Hi all, I am facing a lot of problem with bitmap image. Can anyone tell me a filter with which i can reduce the alpha value of a particular color. e.g. suppse i have a flag of Japan in which there is a white rectangle with a red circle in between and I want to reduce the alpha value of only white color not the red one. how can I do that? Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
[flexcoders] how to add different skins to each button in a Buttonbar?
Hi All, I have two buttons in a buttonbar, and in one button I have to make a triangle in upward direction and in other a triangle in downward direction to show up and down direction. var a:Array = new Array(); var temp:Object = new Object(); temp[labelField] = First; temp[iconField] = TriangleDownSkin; a.push(temp); temp = new Object(); temp[labelField] = Second; temp[iconField] = TriangleUpSkin; a.push(temp); buttonBar.labelField = labelField; buttonBar.iconField = iconField; buttonBar.dataProvider = a; and TriangleUpSkin class is implemented as below: public class TriangleUpSkin extends ProgrammaticSkin { public function TriangleUpSkin() { super(); } override protected function updateDisplayList(w:Number, h:Number):void{ var g:Graphics = graphics; g.moveTo(w / 2,h/4); g.lineTo((3*w)/4, (3*h)/4); g.lineTo(w / 4,(3*h)/4); g.lineTo(w / 2,h/4 ); g.endFill(); } } Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545433
[flexcoders] How to create skin for buttons in a ButtonBar?
Hi All, I have two buttons in a buttonbar, and in one button I have to make a triangle in upward direction and in other a triangle in downward direction to show up and down directions. I tried the following code but was not able to get the triangle. Here is what i did: var a:Array = new Array(); var temp:Object = new Object(); temp[labelField] = First; temp[iconField] = TriangleDownSkin; a.push(temp); temp = new Object(); temp[labelField] = Second; temp[iconField] = TriangleUpSkin; a.push(temp); buttonBar.labelField = labelField; buttonBar.iconField = iconField; buttonBar.dataProvider = a; and TriangleUpSkin class is implemented as below: public class TriangleUpSkin extends ProgrammaticSkin { public function TriangleUpSkin() { super(); } override protected function updateDisplayList(w:Number, h:Number):void{ var g:Graphics = graphics; g.moveTo(w / 2,h/4); g.lineTo((3*w)/4, (3*h)/4); g.lineTo(w / 4,(3*h)/4); g.lineTo(w / 2,h/4 ); g.endFill(); } } i cannot embed any file, is there anyway i can create triangle? Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front
[flexcoders] Is there any event fired after sorting the datagrid ?
Hi All, Is there any event fired after sorting the datagrid. I mean if I click the datagrid header then DataGridEvent.HEADER_RELEASE event is fired and rows get sorted, now i want an event to be fired when the sorting is done. I tried CollectionEvent.COLLECTION_CHANGE but didn't worked. Thanks Arpan __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[flexcoders] columns does not appear in column chart with large dataset?
Hi All, I have created a column chart, but when if my dataprovider becomes large than at one point no columns are displayed. I tried to adjust columnWidthRatio but didn't worked. I am sending a code snippet. Here i am creating the dataprovider with 500 records (I have more records in real application) and width is set to 200 but nothing is getting displayed. mx:Script![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var expenses:ArrayCollection = new ArrayCollection(); private function createDP():void{ for(var i:int = 0 ; i 1000 ; i++){ expenses.addItem({Month:(Jan + i.toString()), Profit:i}); } } ]]/mx:Script mx:Panel title=Column Chart Controls Example height=100% width=100% layout=horizontal mx:ColumnChart id=ColumnChart height=300 width=200 showDataTips=true dataProvider={expenses} initialize=createDP() mx:horizontalAxis mx:CategoryAxis categoryField=Month/ /mx:horizontalAxis mx:series mx:ColumnSeries id=columns yField=Profit displayName=Profit/ /mx:series /mx:ColumnChart /mx:Panel Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
[flexcoders] timeout happens with large amount of data?
Hi All, I am getting this error when I give a large amount of data to my datagrid that consists of a line chart and bar chart in it's columns. Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds. at mx.managers.layoutClasses::PriorityQueue/removeSmallestChild() at mx.managers::LayoutManager/validateClient() at mx.core::UIComponent/validateNow() at mx.controls.dataGridClasses::DataGridBase/mx.controls.dataGridClasses:DataGridBase::drawItem() at mx.controls.dataGridClasses::DataGridBase/mx.controls.dataGridClasses:DataGridBase::makeRowsAndColumns() at mx.controls::DataGrid/mx.controls:DataGrid::makeRowsAndColumns() at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::updateDisplayList() at mx.controls::DataGrid/mx.controls:DataGrid::updateDisplayList() to fix this I did following and it worked: scriptTimeLimit=500 scriptRecursionLimit=5 but is there any other way around ? Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/
[flexcoders] Urgent! add one property to property dialog box ?
Hi All, I want to add a version number to my swf file so that it appears in the property dialog box that is displayed when we right mouse click on the swf file and go to properties. I want to add my own parameter to it named version number which will display my version number. How can I do this? Thanks Arpan Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/
[flexcoders] How to know the position of the column in a datagrid?
Hi All, How can I know the position of the columns in a datagrid when they are repositioned by drag and drop? I want to store the position of the columns when they are moved. The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
[flexcoders] create a column chart that also goes below the x-axis?
Hi All, I want to create a column chart that also goes below the x-axis, such that the columns can be seen above and below the x-axis.I tried by increasing the minimum value of vertical axis but didn't worked. Thanks, arpan Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html
[flexcoders] error when scroll datagrid vertically?
Hi All, I am facing a weird problem with datagrid. I have added a custom itemrenderer in my datatgrid which draws a bullet graph in one of the columns. Now everything is fine except when I scroll it vertically it throws error( written below) . I tried to debug the application and found that in scrollVertically() method of ListBase class there is for loop at line number 5344, here the code is like this: for (i = lockedRowCount; i rowCount; i++) { numCols = listItems[i].length; var bVisible:Boolean = false; ... ... Now this code should run till i is less than rowCount, but I observed that if rowCount = 15 and listItems.length = 14 then after i executes the code for 14 it increments and also executes for 15. I am not getting the cause for this behaviour, is it a bug in flex. Error: TypeError: Error #1010: A term is undefined and has no properties. at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::scrollVertically()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\listClasses\ListBase.as:5346] at mx.controls::DataGrid/mx.controls:DataGrid::scrollVertically()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\DataGrid.as:1923] at com.flex.MyDataGrid::myDataGrid/com.flex.MyDataGrid:myDataGrid::scrollVertically()[C:\Documents and Settings\someone\My Documents\Flex Builder 2\SampleWidget\com\flex\MyDataGrid\myDataGrid.as:24] at mx.controls.listClasses::ListBase/set verticalScrollPosition()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\listClasses\ListBase.as:1043] at mx.controls::DataGrid/mx.controls:DataGrid::scrollHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\DataGrid.as:1720] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:8323] at mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx/internal::dispatchScrollEvent()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\scrollClasses\ScrollBar.as:1096] at mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx/internal::lineScroll()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\scrollClasses\ScrollBar.as:1058] at mx.controls.scrollClasses::ScrollBar/mx.controls.scrollClasses:ScrollBar::downArrow_buttonDownHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\scrollClasses\ScrollBar.as:1160] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:8323] at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::buttonPressed()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\Button.as:1988] at mx.controls::Button/mx.controls:Button::mouseDownHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\Button.as:2234] Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com
Re: [flexcoders] Re: error when scroll datagrid vertically?
Hi Michael, Can you tell me how to check for post 60726? - Original Message From: michael_ramirez44 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, February 19, 2007 9:00:57 PM Subject: [flexcoders] Re: error when scroll datagrid vertically? Hey Guys, I have had a similar problem. Check out message post 60726 Michael Ramirez --- In [EMAIL PROTECTED] ups.com, Ciarán [EMAIL PROTECTED] .. wrote: Hi, I am facing a weird problem with datagrid. I have added a custom itemrenderer in my datatgrid which draws a bullet graph in one of the columns. It sounds like a problem with your itemRenderer. for (i = lockedRowCount; i rowCount; i++) { numCols = listItems[i] .length; var bVisible:Boolean = false; ... ... Now this code should run till i is less than rowCount, but I observed that if rowCount = 15 and listItems.length = 14 then after i executes the code for 14 it increments and also executes for 15. listItems.length does nothing to determine the length of the loop. The condition is i rowCount, so if rowCount = 15, and listItems.length = 14, that makes perfect sense. The loop will run from lockedRowCount to 15 (counting from 0 to 15 yeilds 14 = listItems.length) . lockedRowCount is The index of the first row in the control that scrolls. listItems is a collection of itemRenderers (one for each row in each column of your DataGrid) Can you post a code example (it would help to see the itemRenderer and the Data Grid declaration. Best Regards, Ciarán I am not getting the cause for this behaviour, is it a bug in flex. Error: TypeError: Error #1010: A term is undefined and has no properties. at mx.controls. listClasses: :ListBase/ mx.controls. listClasses: ListBase: :sc rollVertically( ) [C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ listClasses\ ListBase. a s:5346] at mx.controls: :DataGrid/ mx.controls: DataGrid: :scrollVerticall y() [C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ DataGrid. as:1923] at com.flex.MyDataGrid ::myDataGrid/ com.flex. MyDataGrid: myDataGrid: :scroll Vertically() [C:\Documents and Settings\someone\ My Documents\Flex Builder 2\SampleWidget\ com\flex\ MyDataGrid\ myDataGrid. as:24] at mx.controls. listClasses: :ListBase/ set verticalScrollPosit ion() [C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ listClasses\ ListBase. a s:1043] at mx.controls: :DataGrid/ mx.controls: DataGrid: :scrollHandler( ) [C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ DataGrid. as:1720] at flash.events: :EventDispatcher /flash.events: EventDispatcher: :dispatchEv entFunction( ) at flash.events: :EventDispatcher /dispatchEvent( ) at mx.core::UIComponen t/dispatchEvent( ) [C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:8323] at mx.controls. scrollClasses: :ScrollBar/http://www.adobe. com/2006/ flex/mx /internal::dispatch ScrollEvent( ) [C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ scrollClasses\ ScrollBa r.as:1096] at mx.controls. scrollClasses: :ScrollBar/http://www.adobe. com/2006/ flex/mx /internal::lineScro ll() [C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ scrollClasses\ ScrollBa r.as:1058] at mx.controls. scrollClasses: :ScrollBar/ mx.controls. scrollClasses: ScrollB ar::downArrow_ buttonDownHandle r() [C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ scrollClasses\ ScrollBa r.as:1160] at flash.events: :EventDispatcher /flash.events: EventDispatcher: :dispatchEv entFunction( ) at flash.events: :EventDispatcher /dispatchEvent( ) at mx.core::UIComponen t/dispatchEvent( ) [C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:8323] at mx.controls: :Button/http://www.adobe. com/2006/ flex/mx/internal ::button Pressed() [C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ Button.as: 1988] at mx.controls: :Button/mx. controls: Button::mouseDow nHandler( ) [C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ Button.as: 2234] _ _ __ Want to start your own business? Learn how on Yahoo! Small Business. !-- #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;
[flexcoders] how and when is updateDisplayList called ?
Hi all, Can anyone tell how and when is updateDisplayList called ? I always call super.updateDisplayList() when ever I override it. I created a datagrid which contains line graph in one of it's columns. Now once I removed super.updateDisplayList() from the my itemrenderer and still it was working . Also if i want to change property of some component like color do i want to call invalidateDisplayList()? Thanks, Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com
[flexcoders] error when including a swc ?
Hi All, I have a SWC file, but when i try to load it in any project it gives error: Error: unable to load xyz.swc : multiple points and one thing more, how do you compile a Flex Library Project. Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/
Re: [flexcoders] datagrid row moves up to the header when scrolled?
Hi Tom, I am using custom item renderers to draw charts. Datagrid contains only charts. What i found is that when i scroll fast then all the rows move up. it's like the first row moves upto the header and all other also leaving a blank space at bottom. ? - Original Message From: Tom Chiverton [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, January 15, 2007 5:01:02 PM Subject: Re: [flexcoders] datagrid row moves up to the header when scrolled? On Friday 12 January 2007 14:39, arpan srivastava wrote: I am facing lot of problem with datagrid. In my datagrid i have area chart in each cell. When i scroll the datagrid down, then first row moves upto the header instead of disappearing and extra comes from down, Are you using custom item renders ? -- Tom Chiverton Helping to confidentially maximize eigth-generation channels 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 Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/
[flexcoders] Is there anywway i can get the axis labels?
Hi all, Is there anywway i can get the axis labels seprately. i tried with getLabelEstimate() but it gives me all the labels where as in the chart it shows only few labels. i want the labels that are shown in the chart. I have to show them seprately . Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/
[flexcoders] datagrid row moves up to the header when scrolled?
Hi All, I am facing lot of problem with datagrid. In my datagrid i have area chart in each cell. When i scroll the datagrid down, then first row moves upto the header instead of disappearing and extra comes from down, so if you have rowcount as 3 you will see 4 rows with one row on the header. Is this a performance issue or a flex bug ? Have a burning question? Go to www.Answers.yahoo.com and get answers from real people who know.
[flexcoders] row data overlaps the datagrid header while scrolling ?
Hi all, I facing a lot of problem with datagrid, in my datagrid user can change the fontsize of the text in the rows, and row height varies to reflect that change. example : if I change the font size from 8 to 12 then the rowheight will increase by some amount. Now when row height increases or decreases, the datagrid height remains contant, but rowcount varies.Everything working fine but when I scroll the datagrid, at some point while scrolling the row data come over the header, it overlapps the header. and when i reach the last, there is an empty row at the bottom. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[flexcoders] How to lock a column in a datagrid ?
Hi , I want that user should not be able to drag the first column of my datagrid. User can drag other columns but not the first one. It should be locked, like we can lock a column in excel sheet. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [flexcoders] How to align text in middle in a row ?
Hi eren, I thought of this, but then I have many columns so how to populate the value of text, because if i extend with HBox I won't get ListData, then how to know which value to display for that column - Original Message From: eren bali [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, December 23, 2006 5:32:01 PM Subject: Re: [flexcoders] How to align text in middle in a row ? ok than set your itemrenderer to a custom hbox like this: HBox verticalAlign=middle String id=text / Label text={text} / /HBox i did not compile this, do nop copy/paste On 12/19/06, arpan srivastava [EMAIL PROTECTED] com wrote: textAlign attribute will place the text in horizontally in center , I want to place it vertically in center of the row. it's like in a text box text always starts from top left corner, i want to start it from vertically middle of the text box - Original Message From: david_gal-reyniez [EMAIL PROTECTED] To: [EMAIL PROTECTED] ups.com flexcoders@yahoogroups.com Sent: Monday, December 18, 2006 9:11:13 PM Subject: RE: [flexcoders] How to align text in middle in a row ? Hi Arpan, There is an the attribute which is named textAlign for the Object DataGridColumn . Is that the information you need? David De : [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] De la part de arpan srivastava Envoyé : lundi 18 décembre 2006 16:32 À : [EMAIL PROTECTED] ups.com Objet : Re: [flexcoders] How to align text in middle in a row ? Sorry, I want to place the text vertically aligned in the middle. - Original Message From: eren bali [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Monday, December 18, 2006 7:17:55 PM Subject: Re: [flexcoders] How to align text in middle in a row ? set that label 100% width, and textAlign=center if this does not work use it inside a vbox On 12/18/06, arpan srivastava [EMAIL PROTECTED] com wrote: Hi, How can i center the text horizontally inside a row in a datagrid. I have also created an itemrenderer which extends Label, but you can only align the text vertically. I want it to be in center of the row. _ _ _ _ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail. yahoo.com -- Eren BAL© Invento Studios _ _ _ _ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail. yahoo.com * * * * * * * * * * * * Coface facilite les échanges entre les entreprises partout dans le monde. Pour cela, elle offre à toutes les entreprises des solutions pour gérer, financer et protéger leur Poste clients : information et notation mondiale d'entreprises, gestion et recouvrement de créances , affacturage et assurance-cré dit. Coface est notée AA par Fitch Ratings, Aa3 par Moody's et AA- par Standard Poor's. Coface facilitates business-to- business trade throughout the world by offering companies solutions to help them manage, finance and protect their receivables : information and company ratings, receivables management, receivables finance and protection. Coface is rated AA by Fitch ratings, Aa3 by Moody's and AA- by Standard Poor's. * * * * * * _ _ _ _ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Eren BALİ Invento Studios !-- #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
[flexcoders] What is this error - Array and Array cannot be reconciled - ?
Hi I am getting this error : VerifyError: Error #1068: Array and Array cannot be reconciled. I am not getting why? I have created a popup, which contains components like colorpicker, textarea etc. and I am passing the seected values when user presses save button. I am storing these values in a dictionary where key is the component name and firing a custom event and passing the whole dictionary. I am also passing an array which is one of the value in the dictionary. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [flexcoders] How to align text in middle in a row ?
Sorry, I want to place the text vertically aligned in the middle. - Original Message From: eren bali [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, December 18, 2006 7:17:55 PM Subject: Re: [flexcoders] How to align text in middle in a row ? set that label 100% width, and textAlign=center if this does not work use it inside a vbox On 12/18/06, arpan srivastava [EMAIL PROTECTED] com wrote: Hi, How can i center the text horizontally inside a row in a datagrid. I have also created an itemrenderer which extends Label, but you can only align the text vertically. I want it to be in center of the row. _ _ _ _ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Eren BALİ Invento Studios !-- #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;} -- __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [flexcoders] How to align text in middle in a row ?
textAlign attribute will place the text in horizontally in center , I want to place it vertically in center of the row. it's like in a text box text always starts from top left corner, i want to start it from vertically middle of the text box - Original Message From: david_gal-reyniez [EMAIL PROTECTED] To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Monday, December 18, 2006 9:11:13 PM Subject: RE: [flexcoders] How to align text in middle in a row ? Hi Arpan, There is an the attribute which is named textAlign for the Object DataGridColumn . Is that the information you need? David De : [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] De la part de arpan srivastava Envoyé : lundi 18 décembre 2006 16:32 À : [EMAIL PROTECTED] ups.com Objet : Re: [flexcoders] How to align text in middle in a row ? Sorry, I want to place the text vertically aligned in the middle. - Original Message From: eren bali [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Monday, December 18, 2006 7:17:55 PM Subject: Re: [flexcoders] How to align text in middle in a row ? set that label 100% width, and textAlign=center if this does not work use it inside a vbox On 12/18/06, arpan srivastava [EMAIL PROTECTED] com wrote: Hi, How can i center the text horizontally inside a row in a datagrid. I have also created an itemrenderer which extends Label, but you can only align the text vertically. I want it to be in center of the row. _ _ _ _ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Eren BAL© Invento Studios _ _ _ _ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail. yahoo.com * * * * * * * * * * * * Coface facilite les échanges entre les entreprises partout dans le monde. Pour cela, elle offre à toutes les entreprises des solutions pour gérer, financer et protéger leur Poste clients : information et notation mondiale d'entreprises, gestion et recouvrement de créances , affacturage et assurance-crédit. Coface est notée AA par Fitch Ratings, Aa3 par Moody's et AA- par Standard Poor's. Coface facilitates business-to- business trade throughout the world by offering companies solutions to help them manage, finance and protect their receivables : information and company ratings, receivables management, receivables finance and protection. Coface is rated AA by Fitch ratings, Aa3 by Moody's and AA- by Standard Poor's. * * * * * * !-- #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
[flexcoders] How to align text in middle in a row ?
Hi, How can i center the text horizontally inside a row in a datagrid. I have also created an itemrenderer which extends Label, but you can only align the text vertically. I want it to be in center of the row. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [flexcoders] How to draw a circle at a point in a line chart?
Hi Sandeep, I have added a Plot Series for drawing circles, if you want a circle at a specific point you can create an itemrenderer and then add it to the plot series example: plotS.setStyle(itemRenderer,new ClassFactory(myCircleItemRenderer)); Here you can override the data property and draw the circle at the point you want. - Original Message From: Sandeep Malik [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, December 12, 2006 10:01:46 AM Subject: [flexcoders] How to draw a circle at a point in a line chart? We have an issue. We're drawing a line chart and at some particular point on the line chart, we want to draw a circle. Does anyone know how to do this? Any help is appreciated. Thanks and Regards, Sandeep !-- #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;} -- Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com
Re: [flexcoders] Chart inside a datagrid
Hi , Maybe you can send just an array of column names in the itemrenderer by setting the properties for itemrenderer and in the itemrenderer you pick out values of those column names from the data property. i suppose the values for which you are plotting the chart are in a single row. - Original Message From: jnewport [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, December 13, 2006 4:19:20 AM Subject: [flexcoders] Chart inside a datagrid Wondering if anyone has seen a tutorial or example of how to place a chart inside a dataGridColumn? I assume it would be via itemRenderer, but not sure how you would set the data property to accept multiple values. Maybe its just as easy as sending the dataGridColumn an array of values to plot on the chart? Thx for you suggestions. !-- #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;} -- Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now.
[flexcoders] grouping of rows in a datagrid ?
Hi, In my datagrid I want to group rows.Suppose I have a datagrid with rows : Col_1Col_2 N2 N3 N3 W 4 W 5 W 5 S6 S7 S8 E7 E5 E43 Now I want to group it such that the column that needs to be grouped should contain only one entry of the value for that row, like this. hope you get this Col_1Col_2 --- 2 N 3 3 --- 4 W 5 5 -- 6 S 7 8 - 7 E5 43 Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now.
[flexcoders] problem with horizontalScrollbar for datagrid ?
Hi, I am designing a datagrid and I have many number of columns. When I do horizontalScrollPolicy = ScrollPolicy.OFF. it tries to adjust it making it small, and with horizontalScrollPolicy = ScrollPolicy.Auto it createas a horizontal scroll bar. but problem is that I am getting a empty column at the end and as there is a vertical scrollbar also, so the contents get hidden before vertical scroll bar for the last column. Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com
[flexcoders] adding a CSS programmatically in .as file ?
Hi, Is there anyway we can add CSS programmatically in .as file rather than adding in the mxml file with mx:style / tag. Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com
Re: [flexcoders] adding a CSS programmatically in .as file ?
I have a CSS for my component. Now to use that CSS I include it by writing mx:style source=/ in the mxml file. i don't want to write anything in the mxml. Can I include the CSS inside .as file ? - Original Message From: Shannon Hicks [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, December 4, 2006 10:00:11 AM Subject: RE: [flexcoders] adding a CSS programmatically in .as file ? It's setStyle() you're looking for. Shan From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of arpan srivastava Sent: Sunday, December 03, 2006 10:26 PM To: Flex Coders; Flex Components Subject: [flexcoders] adding a CSS programmatically in .as file ? Hi, Is there anyway we can add CSS programmatically in .as file rather than adding in the mxml file with mx:style / tag. Access over 1 million songs - Yahoo! Music Unlimited. !-- #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;} -- Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now.
[flexcoders] wrap header text in datagrid ?
Hi , I want to wrap header text in the datagrid. I did wordWrap = true; but not working. Need a quick answer? Get one in minutes from people who know. Ask your question on www.Answers.yahoo.com
[flexcoders] Re: [flexcomponents] Re: wrap header text in datagrid ?
Hi Pablo, i did headerWordWrap= true it is working, but the problem is that I am creating my own datagrid component in which I specifying the rowheight to be 6% of the total height, so that it resizes accordingly. Now in this i need to keep the header height also same as rowheight or else it shows a extra empty row at the end. // set the height myDataGrid.headerHeight = myDataGrid.rowHeight = int((height * 6) / 100); myDataGrid.height = myDataGrid.measureHeightOfItems(-1,rowCount); - arpan - Original Message From: Pablo Rangel [EMAIL PROTECTED] To: flexcomponents@yahoogroups.com Sent: Saturday, December 2, 2006 9:49:54 PM Subject: [flexcomponents] Re: wrap header text in datagrid ? Arpan, Try using headerWordWrap= true instead of wordWrap=true I just tested it and it works for me. -pablo --- In flexcomponents@ yahoogroups. com, arpan srivastava arpan30_cs@ ... wrote: Hi , I want to wrap header text in the datagrid. I did wordWrap = true; but not working. _ _ _ _ _ _ Need a quick answer? Get one in minutes from people who know. Ask your question on www.Answers. yahoo.com !-- #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;} -- Have a burning question? Go to www.Answers.yahoo.com and get answers from real people who know.
[flexcoders] How can I create a footer for my datagrid ?
Hi , How can I create a footer for my datagrid. Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com
[flexcoders] change properties in itemRenderer at runtime ?
Hi, I have created an itemRenderer for the datagrid. I have lots of properties in the itemRenderer that can be set at rumtime by the user. How to set those properties in my itemRenderer. This is what I did: lineChartColumn.itemRenderer = new ClassFactory(gridItemRenderer); Now in gridItemRenderer.as I have properties to set e.g. colors. So if user changes the properties how can i set those properties in gridItemRenderer.as ?
[flexcoders] creating line chart using action script
Hi , I need to draw a linechart using only actionscript. I have done following: private var cat:CategoryAxis; private var lineS:LineSeries; this.dataProvider = _myDataProvider; cat = new CategoryAxis(); cat.categoryField = interval; cat.dataProvider = chartDataProvider; this.horizontalAxis = cat; lineS = new LineSeries(); lineS.yField = data; lineS.dataProvider = _myDataProvider; this.series = new Array(lineS); this.height=400; this.width=400; this.showDataTips=true; Now where should I write this code. I have written it in initllize() function, but it is not working. My class is extending LineChart
[flexcoders] resizing the datagrid ?
Hi , I facing a lot of problem for resizing the datagrid. I have created a datagrid component which I am placing in a HBox. I have to set the size of datagrid in percentage to make it resizable. Can anyone tell me what properties of datagrid can I set in percentage, I need to keep rowcount constant, that means rowheight will vary, now if I set pecentageHeight to some value say 90%, it calculates the rowheight and also the rowcount on it's own, so sometimes I get a extra empty row at the bottom and sometimes the last row appears half.
[flexcoders] padding in the text in cells in a datagrid
Hi , How to give padding to text in the cells. In my datagrid I have numbers which are right aligned, but they are too much right aligned, the text in last column touches the scroll bar. Can I have padding in the text?
[flexcoders] drawing a stack of rectangle ?
Hi, I am drawing a stack which contans rectangles of different depending on some value. rectangles are drawn but they are overlapping each other by 1 or 2 pixels at the end. I have to highlight the rectangles also, for that I am creating a rectangle on mouseOver event and adding the rectangle on the same rectangle that I am highlighting, but this way the lower border of the highlighter gets covered by the rectangle below that.
[flexcoders] How can i call drawHighlightIndicator() of datagrid from my code ?
Hi all, How can i call drawHighlightIndicator() of datagrid from my code. I am having a single coulmn chart which refers to one of the columns in the datagrid. I want to highlight the corresponding row in datagrid when I rollover the block in the chart. I have got the rowIndex. Initially I wrote a method which draws a rectangle over the datagrid row, but that method fails sometimes. I wnat to call drawHighlightIndicator() , but i am not able to set it's first and last parameters. drawHighlightIndicator( indicator:Sprite, - where to get this parameter x:Number, y:Number, width:Number, height:Number, color:uint, itemRenderer:IListItemRenderer - can i get this from listItem )
[flexcoders] Can I have an image on every datagrid row
Hi Can I have an image on every datagrid row. I used Image class but, I cannot add the image object into a FlexShape of which my datagrid row is made.
Re: [flexcoders] Re: Remove the row selection from the datagrid
Hi Tim, I did myDataGrid.selectable=false but this will stop dispatching the MouseOver event and it will not even highlight the row. I will try to explain you in detail. I created a combobox from where you can change the font size of the text in the row. Now if you click on a row it gets selected and the fontcolor becomes black (no matter what color it was before). This default behaviour and I want to change this thing. I have overriden the drawSelectionIndicator() so that it does not draw the selection indicator, but still if I click on any row and then change the font size or font color, the font color of the clicked row becomes black. - Original Message From: Tim Hoff [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, November 17, 2006 2:30:29 PM Subject: [flexcoders] Re: Remove the row selection from the datagrid Hi Arpan, Whenever I've experienced unexpected colors, trying to set a style, it's usually been a typo or an unsupported property. I'm not sure what you're trying to acheive, but DataGrid does have a selectable property; that might solve your problem. If not, does the text turn black if you remove your extended class? I would start by checking the syntax (#FF, 0xFF); punctuation if you will. If everthing's cool there, then check again. myDataGrid.selectab le=false ; might be a good option, that doesn't require extra code. -TH _ _ Tim Hoff Cynergy Systems, Inc. http://www.cynergys ystems.com Office: 866-CYNERGY --- In [EMAIL PROTECTED] ups.com, arpan srivastava [EMAIL PROTECTED] .. wrote: Hi All, I don't want the datagrid selection i.e. whenever you click on a row it gets selected. for this I overrided the drawSelectionInidic ator() and left it empty. Now if I click on any row it is not selected but when I change the font color/font size of the text in the by setStyle() then the text in the row that I clicked turns black. I think this is a default behavior but does anyone know how to override it. !-- #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;} --
[flexcoders] Extra empty row at the bottom of the data grid
Hi, My application has a datagrid inside a panel which gets populated from a XML. Everything works fine but when I resize the browser window,I change the rowheight to make the grid bigger but, then when I scroll for the last row one extra empty row comes at the bottom.I have also overrided configureScrollBars() function and inside it i have written: this.listContent.height = rowHeight * rowCount; it is still not working. Please help. Thanks
[flexcoders] Remove the row selection from the datagrid
Hi All, I don't want the datagrid selection i.e. whenever you click on a row it gets selected. for this I overrided the drawSelectionInidicator() and left it empty. Now if I click on any row it is not selected but when I change the font color/font size of the text in the by setStyle() then the text in the row that I clicked turns black. I think this is a default behavior but does anyone know how to override it.
Re: [flexcoders] Q. How can I change the property of a row in a datagrid? Please help...
Hi, I am sorry for sending the code so late. This code is written in a ".as" file. I am calling this function on mouseOver event of the list . Now here,"GridComponent" is the "mxml" file name and "gridObj" is the static object containing the reference of the datagrid.I have also got the index of the row and I have to highlight that row, by changing alpha or anything.public function changeBackground(index:Number,highlight:Boolean):void{ var myGrid:DataGrid = GridComponent.gridObj; var item:Object = (mGrid.dataProvider as ArrayCollection).getItemAt(index); ...} I tried to change the property of the "item" object but it is for a cell only, not the row. Is there anyway I can get the row of the datagrid, using the index.- Original Message From: Igor Costa [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Friday, November 3, 2006 10:05:43 PMSubject: Re: [flexcoders] Q. How can I change the property of a row in a datagrid? Please help... Can you provide part of your code, it's hard to undrestand what you want to.Regards.On 11/3/06, arpan30_cs [EMAIL PROTECTED] com wrote: I have list that displays some values, now when i select some value from the list corresponding row in the grid should get highlighted. I have got the row number, and I want to change the "alpha" of that row. Method "setPropertiesAt( )" is not present in this version of Flex, I am working on Flex 2. -- - ---Igor Costawww.igorcosta. com __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___