Re: [flexcoders] Keep combobox open to allow multiselect
Ram, The component you are trying to create shouldn´t exetend the combobox for two reasons, first you would have to override a lot of the combobox methods and second (and for me the most important) you would break the common sense of how a combobox should behave for example if it doesn´t close when you select an item when it closes? What you are going to show when the user select five items? If I where you I would make that componente based in the canvas or the vbox container and give it a diferent look form the combobox (after all as I said the feel is alredy diferent), you could use a label and a button (for the closed look) and a list with checkboxes itemEditors (for the opened look) Felipe On Thu, Jun 5, 2008 at 7:31 AM, rviswanathan [EMAIL PROTECTED] wrote: I am still not clear on how this can be done. I must use a combobox (this is a must-have for me). This is what I attempted... can you please give some pointers based on my code below? ?xml version=1.0 encoding=utf-8? mx:ComboBox xmlns:mx=http://www.adobe.com/2006/mxml; change=close() mx:Script ![CDATA[ override public function close(trigger:Event = null):void { //Do nothing } ]] /mx:Script mx:dropdownFactory mx:Component mx:List mx:itemRenderer mx:Component mx:CheckBox selectedField=isSelected click=onChange(event); mx:Script ![CDATA[ private function onChange(evt:Event):void { data.isSelected = !data.isSelected; } ]] /mx:Script /mx:CheckBox /mx:Component /mx:itemRenderer /mx:List /mx:Component /mx:dropdownFactory /mx:ComboBox Thanks Ram -- rviswanathan wrote: Hi I have created a combo box with a checkbox renderer on each of its items. When I select an entry in the combobox, the box closes automatically. I want to prevent his so that I can multiselect elements in the combobox. Is there a way to do this? Even if I extend the ComboBox and override its close method, the combobox still closes (and I realized that there is a private method in ComboBox.as called destroyDropdown() which gets called when the collection that the combobox holds changes. Thanks Ram -- View this message in context: http://www.nabble.com/Keep-combobox-open-to-allow-multiselect-tp17644507p17666884.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Felipe - http://bobfernandes.wordpress.com
Re: [flexcoders] Re: Is there a flex based Tag Cloud component?
Jeff, You can use the flowContainer component http://blog.3r1c.net/?p=89 to easely create a tag cloud component, all you need to do is add the methods to calculate de size based on your ratings. You can use a repeater based on your array. Felipe http://bobfernandes.wordpress.com On Thu, Jun 5, 2008 at 1:13 PM, Josh McDonald [EMAIL PROTECTED] wrote: You could use a grid full of Labels a custom UIComponent full of UITextfFelds, or you could most likely get away with basing it on the RichTextEditor component with a little thought. -Josh On Fri, Jun 6, 2008 at 1:29 AM, Body Works Studio [EMAIL PROTECTED] wrote: Thanks for the link, but thats a little to much. I just need to reproduce the typical tag cloud you see on a lot of blogs. I have the array of tags and will be adding in scores on how relevant they are. I think what I need to really know is what component will work. I am thinking make a label text will equal the text value, and size and style will be figured based on the score. The question is what component can I lay it out in so it auto wraps. Any ideas? Thanks for your time Jeff --- In flexcoders@yahoogroups.com, Andrew Wetmore [EMAIL PROTECTED] wrote: Are you susceptible to coding the thing in SwishMax and then using the resulting Flash movie as a plugin? Here is part one of a two-part tutorial about building a really cool linksphere: http://blog.swishzone.com/?p=73 -- Andrew Wetmore User Experience Director Open Learning Exchange - www.ole.org 978-319-7324 -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Felipe - http://bobfernandes.wordpress.com
Re: [flexcoders] DataGrid What is the limit?
Nadeem, I think you are confusing datagrid row count with datagrid´s dataProvider length. When you ask: What is the maximum row count that a DataGrid Component can display at a time? You are asking the size a datagrid can get in the screen, that´s why Cato Paus said 5000 X 5000 (5000 pixel of width and 5000 pixel of heigth). About the size of a datagrid dataProvider I don´t know if there is a real limit, I would say that the limit depends of the user machine since most of the processing is done in the user machine. One thing I can tell you if you are going to show that much of data I shouldn´t use any kind of itemRenderer, labelfunction or any other thing that add data management to each row. And if you are gonig to show that much of data you should consider to add a pagging funcionality to your grid. Felipe On Wed, Jun 4, 2008 at 9:13 AM, Nadeem Manzoor [EMAIL PROTECTED] wrote: Hello Fidel I tried searching the group for this topic but couldn't find anything on it. And Cato Paus says its 5000 by 5000, I need to show almost 50,000 records at a time in an application, How can i do that? And Fidel can you please give me the link for this already discussed topic Thanks Nadeem On Wed, Jun 4, 2008 at 2:25 PM, Fidel Viegas [EMAIL PROTECTED] wrote: On Wed, Jun 4, 2008 at 10:20 AM, Nadeem Manzoor [EMAIL PROTECTED] wrote: Hello Flex Gurus What is the maximum row count that a DataGrid Component can display at a time? Same Question is for Column so DataGrid Hi Nadeem, This topic has been discussed several times. Just do a search on the group and you will find quite a lot of answers to that. Fidel. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Thanks Nadeem Manzoor -- Felipe - http://bobfernandes.wordpress.com
Re: [flexcoders] Listening for a value change
Jeff, Look at setter and getter functions it´s just what you need. Felipe On Mon, Jun 2, 2008 at 10:40 AM, Jeff Douglas [EMAIL PROTECTED] wrote: This seems like this should be easy but I'm hititng my head against the wall trying to figure it out. I have the following String: [Bindable] var myString:String; The value of myString changes throughout the application. Based upon the value of myString I want to perform different tasks. How can I write a listener that determines 1) that the value has changed and 2) what the new value is? Thanks Jeff
Re: [flexcoders] FlexReport not showing report first time in tab navigator
Derrick, My guess is that you are setting the heigth and width to percent values, try to set it to an axplicity value. That´s because flex only know the size that things have when it draws them, so your percentage values would evaluate to 0. It´s just a guess but I had the same problem before and it took a while to figure it out. Felipe On Mon, Jun 2, 2008 at 10:53 AM, Derrick Anderson [EMAIL PROTECTED] wrote: I know there are many here who use FlexReport library so I hope somebody here can help with this. I am loading reports into a tab navigator, the reports do not show content until i switch tabs, then come back to that one. I suspect the 'show' event being dispatched does something to the content to make it re-appear but I'm not sure. When I load a report, I do it with the following lines in my function //CODE// var viewer:ReportViewer = new ReportViewer(); viewer.reportLabel = item.label; viewer.reportClass = item.data; viewer.label = item.label; reportsTabNavigator.addChild(DisplayObject(viewer)); //END CODE// ReportViewer just loads reports dynamically like so //CODE// private function generateDocument():void { var productivityReport:ProductivityReport; var productivityReportDP:ProductivityReportModel; //it's only setup for 1 report now, the ProductivityReport //get the names of the report and dataprovider classes var reportClass:String=com.winn.view.reports.+this.reportClass; var dpClass:String=com.winn.model.reports.+this.reportClass+Model; // create class references var ReportClassReference:Class = getDefinitionByName(reportClass) as Class; var DPClassReference:Class = getDefinitionByName(dpClass) as Class; DPClassReference.projectDSN = global.projectDSN; // instantiate report and dataprovider classes var report:Report = new ReportClassReference(); var source:Object = new DPClassReference(); // create the report document doc = new Document(report, source, PaperFormat.A4); doc.pdfScript = ; doc.pdfEnabled = true; //doc.title = Productivity Report; printPreview.doc = doc; }
[flexcoders] opinion about flex module
Hi, I´m working on an application that by the flex documentation it´s a great candidate to use flex module. It´s a big application where the user is only going to use one of its features each time. I´ve seen a lot modules topics on this and other lists tha I subscribe talking about problems with this aproach so I´m not so sure anymore if it´s a good idea to use it. Thats why I would like to hear from who has used it what they think about it. What are the pros and cons? Is it easy to pass information from one module to another? and things like that. Thanks in advanced Felipe
Re: [flexcoders] Setting variable to a Flex application thru the URL.
This is exactaly what you need: http://www.abdulqabiz.com/blog/archives/macromedia_flex/how_to_get_url.php He made a calss called querystring that´s prety ease to use anda do all the trick for you. Feipe On 5/30/07, dantragxh [EMAIL PROTECTED] wrote: I have an application that is made of a form that you fill up witch add arecord to a database, then send an email to a someone to let them know that this record just got added. I want to add a link to this email that would let the user go directly to the application record view page to show that specific record. With PHP and HTML, I would usally just put the id of the object in the URL(abc.ca/recordview.php?id=$value) but how can I do this with a flex application?