[flexcoders] Update to Flex SDK 3.5 Released
Hello Flexcoders - The Flex team has released an update to the 3.5 SDK that addresses an issue with the Flex-based AIR auto-update UI packaged within the SDK (SDK-24766https://bugs.adobe.com/jira/browse/SDK-24766). The refreshed build, SDK 3.5a, has only a few files modified in order to fix this issue and this change does not affect the signing and caching of the SDK 3.5 RSLs originally released in December. We encourage all developers using SDK 3.5 to upgrade their build to SDK 3.5a to continue their development. The SDK 3.5a can be found in the Latest Milestone Release Build table here: http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3. Thank you, Deepa Subramaniam Flex SDK Product Manager
RE: [flexcoders] Building components at runtime
This is definitely possible, and is essentially what Flash Builder's Design View does (FB's Design View is just a large Flex application) under the hood. You will want to parse your XML and build up Flex objects at runtime (using the new operator), set properties on the objects based on the attribute values in the XML data (by setting properties directly, using setStyle() to set style attributes, etc) and add the newly created objects to the display list while mimicking the correct containment hierarchy. I'll leave it up to knowledgeable folks on this list to point you to community/blogosphere resources. deepa Flex SDK Team -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of prodanzr Sent: Wednesday, November 04, 2009 8:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Building components at runtime Hi all Thanks to the success of my first Flex application I've been asked to write a new one that is required to build the user interface from XML data it receives from a server. So the app sends a request to an HTTP Server and gets XML back that signifies such things as username, string, maxlength=40; startdate, date and so on from which the app would build a component and display it, capture values and send them back to the server. So far all my (limited) Flex work has been MXML-specified user interfaces so I'd like to ask if people think this idea is hard to implement in ActionScript (I assume it's doable) and if there are any examples anywhere I could look at? Thanks Paul -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Re: Does DataGroup support XML?
In Flex 4/Spark, the dataProvider contract is limited to IList implementations (the Flex framework provides several IList implementations straight out of the box like ArrayCollection, ArrayList, XMLListCollection, XMLList, etc). We decided to do this to reduce complexity which in our dataProvider-aware controls. As part of this, we now don't auto-wrap raw data like Array or XML into ArrayCollections or XMLListCollections, which is why you need to do that manually. Cheers, Deepa Subramaniam Flex SDK Engineer From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of dorkie dork from dorktown Sent: Friday, October 23, 2009 3:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Does DataGroup support XML? For future reference XMLList needs to be wrapped in XMLListCollection: !-- An item renderer function can be defined in order to display a mix of data and graphical items. -- s:DataGroup itemRenderer=CommentItemRenderer x=10 y=140 width=100% dataProvider={new XMLListCollection(XML(content1.lastResult).posts.post)} s:layout s:VerticalLayout gap=10/ /s:layout /s:DataGroup On Fri, Oct 23, 2009 at 1:07 PM, dorkie dork from dorktown dorkiedorkfromdorkt...@gmail.commailto:dorkiedorkfromdorktown%40gmail.com wrote: I am converting my Repeater code to DataGroup code and it doesn't appear to support XML in the dataProvider. Does it support XML or is it something I'm doing? Here is the error message: TypeError: Error #1034: Type Coercion failed: cannot convert xmll...@505bb7e9 to mx.collections.IList. Here is the code: !-- An item renderer function can be defined in order to display a mix of data and graphical items. -- s:DataGroup itemRenderer=CommentItemRenderer x=10 y=140 dataProvider={XML(content1.lastResult).posts.post} s:layout s:VerticalLayout/ /s:layout /s:DataGroup Thanks
RE: [flexcoders] Menubar Styling
You can style the MenuBar by setting styles as attributes, or through ActionScript, on the MenuBar directly. To style the menus popped open by the MenuBar, you can loop through them in ActionScript and set styles on the Menu instances as appropriate. To loop through the MenuBar, you can use the getMenuAt() method which returns Menu objects. To figure out how many Menus the MenuBar has, check the length of the MenuBar's menus property. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nicholas Watson Sent: Friday, June 20, 2008 8:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Menubar Styling I have a menubar where I want the items on the menubar to be one color and size, and the items in the drop downs to be another color and style. I can't find any information on doing this. Can someone help me out? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Styling of Invalid Inputs (Urgent)
Check out the errorColor style on UIComponent. This controls the color of the highlight when validation fails on a user interface control. By default, its red. deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ethan Miller Sent: Wednesday, January 16, 2008 10:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Styling of Invalid Inputs (Urgent) Greetings - This question concerns the styling of inputs and the special invalid tooltip produced when a validator declares some input to be invalid. The Flex docs correctly point out that the invalid tooltip color can be controlled using the .errorTip css class selector, however this has no effect of the border drawn around the invalid input, ie it stays red. Thus if I set borderColor in .errorTip to green, I get a RED border on the invalid input but with a GREEN error message tooltip, not good. Any suggestions on how to control the invalid input border color? I've tried using the invalid event to manipulate borderColor, themeColor, styleName, etc. all to no effect. I have to deliver this code today so any help would be very much appreciated! cheers, ethan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] PopUpButton issue
This chunk of code was added on purpose, to avoid problematic memory leaks with popup components. In Jira you can see it was fixed to address SDK bug 13104. We were not correctly unregistering popup children when necessary. Your workaround is correct, so feel safe using it :) https://bugs.adobe.com/jira/browse/SDK-13104 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Melby Sent: Wednesday, January 16, 2008 5:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] PopUpButton issue I have a PopUpButton on which I am setting a Menu as the popUp property. I have found that the popUp attribute is being nulled when the PopUpButton is removed from the stage... which causes my button to not function properly when added back to the stage. I traced the issue to the following code in PopUpButton.as which appears to be incorrect. In this code the _popUp member (backing for the popUp setters and getters) is nulled. private function removedFromStageHandler(event:Event):void { // Ensure we've unregistered ourselves from PopupManager, else // we'll be leaked. if (_popUp) { PopUpManager.removePopUp(_popUp); _popUp = null; } } To workaround this issue I had to listen for the addedToStage event in my view that uses this component and re-set the popUp property each time as follows. /** * Called each time this view is added to the stage. We need this to work * around an issue where the PopUpButton has a null popUp * property each time it has been removed from the stage. */ public function handleAddedToStage():void{ if(this.createButton != null this._buttonMenu != null){ this.createButton.popUp = _buttonMenu; } } Has anybody else seen this? Can somebody please let me know if this is a bug in the toolkit? The workaround works fine... but seems like it should not be necessary. Thanks Scott -- Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] Using Popup menu
Check out the PopUpManager and examples in the documentation. This shows exactly how off a button click event you can create a popup component. deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Preet Sent: Tuesday, January 15, 2008 11:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using Popup menu Hi All, Iam working using login page in my app am using username, password to give username and password, when I click on submit button it will validate the user name and password upto here working fine. I am using another button for change password when I click on change password button a new popup menu or window is tobe displayed. can anyone suggest mw how to use popups for such buttons. Thanks in Advance.. --Tomt
RE: [flexcoders] Bolding a ContextMenuItem or NativeMenuItem
Unfortunately this is not possible with the current ContextMenu API's. People have popped up Flex Menus upon right-click by the user (ie: simulating context menus) and the Flex menu control allows for rich styling. deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hmmmbeer3 Sent: Tuesday, January 15, 2008 5:51 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Bolding a ContextMenuItem or NativeMenuItem Hi, I cant seem to find a way to bold (eg indicate default status) of a dynamically created context menu item (or NativeMenuItem); i really need to do this as different items on a datagrid have different defaults (which get executed on a double click) and the user really needs a visual clue as to what the default is. Traditionally, this has been to bold the item. Cheers, Radek -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] PopUpButton issue
There were intricacies with the PopUpManager logic which, I think, led to this solution. The framework changelist (available on labs) would have more details. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Melby Sent: Wednesday, January 16, 2008 12:47 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] PopUpButton issue Deepa - Thanks! It seems you could avoid the memory leak without nulling _popUp couldn't you? i.e. just call PopUpManager.removePopUp(_popUp) without the following line that nulls the reference. Is that not right? Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com Deepa Subramaniam wrote: This chunk of code was added on purpose, to avoid problematic memory leaks with popup components. In Jira you can see it was fixed to address SDK bug 13104. We were not correctly unregistering popup children when necessary. Your workaround is correct, so feel safe using it :) https://bugs.adobe.com/jira/browse/SDK-13104 https://bugs.adobe.com/jira/browse/SDK-13104 -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Scott Melby Sent: Wednesday, January 16, 2008 5:38 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] PopUpButton issue I have a PopUpButton on which I am setting a Menu as the popUp property. I have found that the popUp attribute is being nulled when the PopUpButton is removed from the stage... which causes my button to not function properly when added back to the stage. I traced the issue to the following code in PopUpButton.as which appears to be incorrect. In this code the _popUp member (backing for the popUp setters and getters) is nulled. private function removedFromStageHandler(event:Event):void { // Ensure we've unregistered ourselves from PopupManager, else // we'll be leaked. if (_popUp) { PopUpManager.removePopUp(_popUp); _popUp = null; } } To workaround this issue I had to listen for the addedToStage event in my view that uses this component and re-set the popUp property each time as follows. /** * Called each time this view is added to the stage. We need this to work * around an issue where the PopUpButton has a null popUp * property each time it has been removed from the stage. */ public function handleAddedToStage():void{ if(this.createButton != null this._buttonMenu != null){ this.createButton.popUp = _buttonMenu; } } Has anybody else seen this? Can somebody please let me know if this is a bug in the toolkit? The workaround works fine... but seems like it should not be necessary. Thanks Scott -- Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] Styling of Invalid Inputs (Urgent)
I'd suggest filing an ECR. You could also grab the error tooltip instance from the tooltip manager position it as you desire. The docs have a slightly similar example to this: http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhel p.htm?context=LiveDocs_Book_Partsfile=tooltips_074_13.html Except in that example they create the tooltip themselves (which is also an option for you) :-) deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ethan Miller Sent: Wednesday, January 16, 2008 12:20 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Styling of Invalid Inputs (Urgent) Ah yes, that works. Thank you so much! Another related question... .errorTip lets you control the placement position of the errorTip, ie borderTipRight, errorTipBelow, etc. however while these options change the direction of the graphical pointer leaving the error tip, the tip itself doesn't change position, ie if you set errorTipBelow, the pointer now points up, but since the tip didn't move, the input field is still to the left, and the pointer is pointing up at nothing... Note to Adobe... sure would be great if changing borderStyle on .errorTip also changed the tip position... the Callout component does this cheers, ethan Check out the errorColor style on UIComponent. This controls the color! of the highlight when valida! tion fai ls on a user interface control. By default, its red. deepa -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Ethan Miller Sent: Wednesday, January 16, 2008 10:06 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroup!%0d%0a%20s.com Subject: [flexcoders] Styling of Invalid Inputs (Urgent) Greetings - This question concerns the styling of inputs and the special invalid tooltip produced when a validator declares some input to be invalid. The Flex docs correctly point out that the invalid tooltip color can be controlled using the .errorTip css class selector, however this has no effect of the border! drawn around the invalid input, ie it stays red. Thus if I set borderColor in .errorTip to green, I get a RED border on the invalid input but with a GREEN error message tooltip, not good. Any suggestions on how to control the invalid input border color? I've tried using the invalid event to manipulate borderColor, themeColor, styleName, etc. all to no effect. I have to deliver this code today so any help would be very much appreciated! cheers! , ethan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] Flash player fullscreen and text inputs
I just talked to a colleague about this. Apparently this is definitely possible in AIR, with FullScreenMode.FULL_SCREEN_INTERACTIVE. In the browser player, its not supported. People have had varying success with setting focus into an HTML textfield after the app goes fullscreen and then capturing keystrokes and sending it back to Flash via the ExternalInterface APIs. Goodluck, deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Anzer Sent: Monday, January 14, 2008 9:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flash player fullscreen and text inputs Hi, Is there any work around to support inputs in Flash player full screen mode? Regards, http://www.digitalmesh.com http://www.digitalmesh.com/
RE: [flexcoders] Flash player fullscreen and text inputs
Its important to note that this was a security measure added to the player to avoid phishing scams. You may want to consider whether AIR would be more appropriate for your project. More info here: http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deepa Subramaniam Sent: Tuesday, January 15, 2008 11:29 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flash player fullscreen and text inputs I just talked to a colleague about this. Apparently this is definitely possible in AIR, with FullScreenMode.FULL_SCREEN_INTERACTIVE. In the browser player, its not supported. People have had varying success with setting focus into an HTML textfield after the app goes fullscreen and then capturing keystrokes and sending it back to Flash via the ExternalInterface APIs. Goodluck, deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Anzer Sent: Monday, January 14, 2008 9:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flash player fullscreen and text inputs Hi, Is there any work around to support inputs in Flash player full screen mode? Regards, http://www.digitalmesh.com http://www.digitalmesh.com/
RE: [flexcoders] Menu Seprator color
You can specify a skin that the Menu uses as the separator. Check out the separatorSkin style. There are examples of how to create graphical skins (using Flash, Fireworks, etc) or programmatic skins (creating an ActionScript file that draws the skin via the Flash drawing API) in the Flex documentation - you then set the separatorSkin style to that skin. Also, this is a pretty expensive way to set styles on your Menu instance. You should look into using CSS to specify your Menu's look and feel. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yourName Sent: Thursday, January 10, 2008 2:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Menu Seprator color can one tell how to control the size and color of menu seprator follwing is code snipet private function createAndShow():void { var myMenu:Menu = Menu.createMenu(null, myMenuData, false); myMenu.setStyle( color , #7d9bc6 ); myMenu.setStyle( fontSize , 11 ); myMenu.setStyle( fontWeight , bold ); myMenu.setStyle( fontFamily , Arial ); myMenu.setStyle( borderStyle , solid ); /* myMenu.setStyle( borderColor , #f69401 ); */ myMenu.setStyle( rollOverColor , white ); myMenu.setStyle( cornerRadius , 5 ); myMenu.setStyle( textRollOverColor , #f69401 ); myMenu.setStyle( borderThicknessTop , 1 ); myMenu.setStyle( dropShadowEnabled , false ); myMenu.setStyle( selectionColor , #f69401 ); myMenu.setStyle( menuseparator , #f69401 ); myMenu.labelField=@label; myMenu.show(60, 90); } mx:XML format=e4x id=myMenuData root menuitem label=Create Model Manually icon=myTopIcon / menuitem type=separator/ menuitem label=Copy Model icon=myTopIcon / menuitem type=separator/ menuitem label=Match Account icon=myTopIcon / menuitem type=separator/ menuitem label=Import Model icon=myTopIcon/ menuitem type=separator/ menuitem label=Edit Model icon=myTopIcon/ menuitem type=separator/ menuitem label=Delete Model icon=myTopIcon / menuitem type=separator/ menuitem label=Model List icon=myTopIcon/ menuitem type=separator color=red/ menuitem label=Assign Model icon=myTopIcon/ /root /mx:XML
RE: [flexcoders] which Flex componet is similar to HTML table?
Check out the Grid layout container, or using ConstraintColumn/ConstraintRow objects to create a table-like layout in any of the absolute positioning layout containers (Canvas, Panel, Application, etc). -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markflex2007 Sent: Wednesday, January 09, 2008 10:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] which Flex componet is similar to HTML table? Hi, I need design table with line to seperate cells,please let me know how to do this in Flex. Thanks Mark -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] Set menuBar dataProvider per AS
Try calling your setUpMenuBar() method on the MenuBar's creationComplete event and add menuBarRef.validateNow() after setting the dataProvider property. validateNow() forces the menuBar to do an invalidation pass, which calls the MenuBar's commitProperties method which is necessary to get the data wired up to the MenuBar correctly. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of m.frigge Sent: Wednesday, January 09, 2008 8:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Set menuBar dataProvider per AS Hi, I had a working MenuBar until I had to change my application structure. Now I can't bind the dataProvider anymore in the menuBar's mxml tag. So I tried something like this... [Bindable] private var menuBarCollection:XMLListCollection; private function setUpMenuBar(event:Event):void{ menuBarCollection = new XMLListCollection(menubarList); menuBarRef.dataProvider = menuBarCollection; } The function is called on the MenuBar's Initialize event and menuBarList is a XMLList, that was working fine before. I also tried to use other events as well as things like invalidateNow() after I set the dataProvider, but the MenuBar doesn't get any items!? Any ideas would be appreciated. Thanks, Max -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] adding backgroundColor to Canvas retains images after removeAllChildren()?
I can't reproduce this but I just tried a simple case. Can you share some code highlighting the problem (and/or file a bug at bugs.adobe.com)? Thanks, deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Sent: Monday, December 17, 2007 8:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] adding backgroundColor to Canvas retains images after removeAllChildren()? I've run into a strange behavior with a Canvas component. I'm using a Canvas to do some basic GoogleMap-like functionality: I add images to the canvas, it's got scrollbars because the added images sometimes extend the size of the canvas beyond it's container size, and it's draggable. There are times when I need to load a new set of images. In those cases, I simple call removeAllChildren() and then start adding my new images. It worked fine until I set the backgroundColor. Prior to this I had not set the bgColor so I was just using the default. The strange effect that has created is when I want to 'refresh' the canvas with a new set of images (and call removeAllChildren()), it leaves behind the images that are in the viewable portion of the canvas. If I drag the canvas around so that the old images get clipped, then they get 'painted' over with the background color (which is simply black). I've tried calling validateNow() in between the removeAllChildren() and drawing my new set of images, but that didn't clear up the old images either. I have no other properties or styles set on the canvas component except for left/right/bottom/top. Any ideas what's causing this? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] Problem with Horizontal grid lines matching data in a datagrid
I see this issue in Flex 2 but it doesn't seem to occur in the latest beta of Flex 3. Can you upgrade to Flex 3 (beta 3)? -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of victor chan Sent: Friday, December 14, 2007 4:02 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Problem with Horizontal grid lines matching data in a datagrid Hi, I came across the same issue (using Flex 2.0.1.167022). Has someone else managed to resolve this? thanks! Victor On Apr 25, 2007 8:09 AM, fidelityphil [EMAIL PROTECTED] wrote: I have a datagrid where the lines horizontalGridLines=true and variableRowHeight=true with wordwrap on. The problem is that the horizontal gridlines don't properly box the data, and when I scroll, the data moves up but the drawn gridlines stay in the same position, looking like they are crossing out the datalines. Has anyone else seen this or know of a solution? The recent hotfix did not correct the problem.
RE: [flexcoders] How to close dorp-down list in ComboBox components
Refer to the ComboBox by its id and invoke close() on it, a la: mx:Button click=cb.open(); / mx:Button click=cb.close(); / mx:ComboBox id=cb dataProvider={['a', 'b', 'c']} / -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexawesome Sent: Thursday, December 13, 2007 12:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to close dorp-down list in ComboBox components Hi there, I saw method of Close(trigger:Event=null):void in livedoc, but I don;t know how to use it, does anyone can help? what should I put into () ? ComboBox.close() ? http://livedocs.adobe.com/flex/201/langref/mx/controls/ComboBox.html#clo se() Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] Spacer in MenuBar
Check out the code below. You can pre-set the width of the MenuBar item you want to act as a spacer (just be sure to disable it otherwise it will respond to mouse activity). Individual MenuBar items are accessible off the main MenuBar control via the 'menuBarItems' property. Unfortunately, separators don't work in top-level MenuBar item renderers. That would be a good ECR to file. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:MenuBar id=mb showRoot=false labelField=@label width=100% creationComplete=setSpacer(); mx:dataProvider mx:XML xmlns= node label=root node label=Item 1 node label=child 1 / /node node label=Item 2 node label=child 1 / /node node label= enabled=false / node label=Item 3 node label=child 3 / /node /node /mx:XML /mx:dataProvider /mx:MenuBar mx:Script ![CDATA[ private function setSpacer():void { //Array of menubar items var menus:Array = mb.menuBarItems; var iter:Number = 0; var spacerIndex:Number = -1; for (var i:int = 0; i menus.length; i++) { //sum up the widths of all the non-spacer menu bar items if (menus[i].data != ) iter += menus[i].width; //figure out the index of the spacer menu bar item else spacerIndex = menus[i].menuBarItemIndex; } //set the width menus[spacerIndex].width = mb.width - iter; } ]] /mx:Script /mx:Application From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sergey Kovalyov Sent: Tuesday, December 11, 2007 2:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Spacer in MenuBar Hi All! Is it possible to add 100% spacer to MenuBar as shown in the file attached and if so, how would you do that? Thank you in advance. Sergey.
RE: [flexcoders] Why is mouseOut being called?
Mouse events bubble. Tou're seeing mouseOver/mouseOut events from the HBoxes, VBoxes, UITextFields, etc that are children of the Canvas. You can determine if the Canvas is the display object processing the event by querying the currentTarget property on the event object. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dbronk Sent: Friday, November 02, 2007 1:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Why is mouseOut being called? I have a very basic Canvas. It has a VBox that holds some text and then under that is a HBox that holds some other test. The canvas has both mouseOver and mouseOut events defined. I also tried rollOver and rollOut and get the exact same thing. When I move my cursor in between the text lines in the top VBox as was as when I move the cursor in between the top VBox and the bottom HBox, the mouseOut event fires. Also the rollOut fires when I try that. Why? I'm clearly withing the Canvas. Here is the Canvas with some scripts removed... Thanks, Dale ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:components=components.* mouseOver=onMouseOver(event) mouseOut=onMouseOut(event) mx:Script ![CDATA[ private function onMouseOver(event:MouseEvent):void { trace(onMouseOver); { private function onMouseOut(event:MouseEvent):void { trace(onMouseOut); } ]] /mx:Script mx:VBox width=100% paddingLeft=10 mx:Text id=listingNameText text={listing.title} width=100% height=24 styleName=resultTitle / mx:Text id=listingLocation text={listing.city}, {listing.state} width=100% height=13.5 styleName=resultCity / mx:Text id=listingDesc text={listing.description} width=100% height=25 styleName=resultDesc / /mx:VBox mx:HBox id=listingDollars width=100% horizontalGap=0 height=18 bottom=0 paddingLeft=10 mx:HBox horizontalGap=0 width=30% mx:Text text=CF: styleName=resultFinHead width=15/ mx:Text text={ usdFormatter.format(StringUtils.nullToBlank(listing.cashFlow)) } styleName=resultFinValue width=60 height=18/ /mx:HBox mx:HBox horizontalGap=0 width=30% mx:Text text=R: styleName=resultFinHead width=15/ mx:Text text={ usdFormatter.format(StringUtils.nullToBlank(listing.revenue)) } styleName=resultFinValue width=60 height=18/ /mx:HBox mx:HBox horizontalGap=0 width=40% mx:Text text=A: styleName=resultFinHead width=15/ mx:Text text={ usdFormatter.format(StringUtils.nullToBlank(listing.price)) } styleName=resultFinValueSorted width=60 height=18/ /mx:HBox /mx:HBox /mx:Canvas -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] moving a LinkBar
Use a boolean flag to track whether the LinkBar has already received its first click (in which case play the move effect) or not. private var clickedOnce:Boolean = false; private function handleClick(event:ItemClickEvent):void { if (!clickedOnce) { //play the move effect, this is the first click clickedOnce = true; } else //no move effect - these are subsequent clicks } You can control when you want that specific effect to play by controlling the value of the flag. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ric Aruffo Sent: Friday, November 02, 2007 11:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] moving a LinkBar I have a LinkBar that I need to move from the bottom of the screen to the top of the screen when the user clicks on one of the items in the LinkBar. Then once it gets to where it's going, disable the move effect so that it doesn't get repeated when the user clicks another item in the same LinkBar. Thanks, Ric
RE: [flexcoders] Re: Joining two (or more) ArrayCollections
How timely! I just spoke about this at my MAX talk - the code example and supporting slides are on my blog: http://iamdeepa.com/blog/?p=7 Look for the code example and slides called Merged Collections. Basically what you want to do is write a custom collection that does the merging of your data for you. All the list-based controls can take collections as dataProviders so your custom collection can be set as the dataProvider of your list control, and boom, you're done. My example shows a custom implementation of IList - which is the easier of the collection interfaces and will probably suit your needs just fine. (The other collection interface is ICollectionView). What you'll want to do is make sure a getItem() on your merged collection does a getItem() call on the sub collections and produces a merged object representing the data you desire. You'll also need to implement the getter for the length property on IList (which looks easy since I believe you stated that the sub collections are the same length so you can just return the length of one of those sub collections). My example on my blog goes on to show how you can implement the add/remove/modify logic so that changes in the underlying collection gets pushed up to the merged collection and the UI control updates. Note: I am missing something key in my example. You'll want to cache the merged item created by the getItem() call in a dictionary or hash table and return that upon subsequent getItem() calls (basically, getItem() should see if a merged object already exists for that index and return that, otherwise build up a new merged object). Also, implement IUID so that the merged objects have a unique ID which is required by the list controls. HTH - deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Sent: Wednesday, June 13, 2007 9:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Joining two (or more) ArrayCollections I actually tried following this approach: public function combineArrayCollections ():void { for each (var obj:Object in ac1) { ac3.addItem ( obj ); } for each (obj in ac2) { ac3.addItem ( obj ); } } Using the example of having 3 rows in each field the result I get isn't what I was hoping for. When I combine the two AC's in this way I get (eg. assuming 3 rows per field): ac3 = Field 1 / Field 2 / Field 3 / Field 4 object / object / null / null object / object / null / null object / object / null / null null / null / object / object null / null / object / object null / null / object / object What I'm really looking for is: Field 1 / Field 2 / Field 3 / Field 4 object / object / object / object object / object / object / object object / object / object / object I hope this makes sense. So I'm really close now, but I'm missing something key here. --Drew --- In flexcoders@yahoogroups.com, Arpit Mathur [EMAIL PROTECTED] wrote: ac2.source.push(ac1.source) should work. -arpit post your flex tips on http://flextips.corank.com On 6/12/07, Michael Schmalle [EMAIL PROTECTED] wrote: One solution; var ac3:ArrayCollection; var list1:Array = ac1.toArray(); var list2:Array = ac2.toArray(); list1 = list1.concate(list2); ac3 = new ArrayCollection(list1); don't know if that is what you are talking about. Peace, Mike On 6/12/07, Alex Harui [EMAIL PROTECTED] wrote: Some folks actually take to DG's put them next to each other, turn off the scrollbar on the left one and listen to events to keep everything in sync. It is also possible to make a custom ArrayCollection that combines the two child ACs From: flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED] On Behalf Of Andrew Mikkelsen Sent: Tuesday, June 12, 2007 1:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Joining two (or more) ArrayCollections I've been searching and searching on this, but I can't seem to find an answer on how to do this. Surely, someone, somewhere must have found the need to do something similar to what I'm trying to do. :-) I have two ArrayCollections (eg. ac1 (field_1, field_2) and ac2 (field_3, field_4)). Both AC's are the same length. What I'd like to do is mash the fields from the two AC's together to get ac3(field_1, field_2, field_3, field_4). My real goal is that I need a workaround for not being able to put information from two separate dataproviders into a datagrid. Any help / suggestions would be greatly appreciated. Thanks! --Drew -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'. -- Flexcoders Mailing List FAQ:
RE: [flexcoders] nested layout containers - file size or other concerns
Nesting containers unnecessarily will affect the startup time and runtime performance of your application. Measurement and layout is one of the most expensive parts of a Flex app. Though Flash Player 9/Flex 2 is much faster, its still a good idea to prune your application of unnecessary container nesting. Check out the tips and tricks here: http://www.adobe.com/devnet/flex/articles/client_perf_04.html Deepa Subramaniam Adobe, Flex -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dnk Sent: Wednesday, June 06, 2007 1:54 PM To: flexcoders list Subject: [flexcoders] nested layout containers - file size or other concerns Do having a bunch of nested layout containers (IE things like Hbox and Vbox) add a lot to the final file size? Are there any performance hits when using many? Regards, dnk -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] Selecting datagrid row on rollover...
DataGrid dispatches itemRollOver and itemRollOut events where the event type is mx.events.ListEvent. A ListEvent event object has the rowIndex property which indicates the index of the row that contains the item that was rolled over/out of. -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jamiebadman Sent: Monday, January 29, 2007 9:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Selecting datagrid row on rollover... Hi, The title sums it up... basically, I'd like to select a datagrid row on rollover. There's a rollover event on the datagrid but I see no way from that, to obtain the id of the row that's currently being 'rolled over'... any ideas ? Alternatively... and here's the reason I'm trying to do the above... I have a context menu on the datagrid which provides the user with options to carry out on the currently 'rolled over' row... but when the user clicks the right mouse button, the 'rollover' color disappears. I want the rollover color to remain when the menu pops up. My only solution was to force the rollover row to be the selected row - which would solve this. If anyone can think of an alternative way to stop the loss of the rollover color then that'll be just as good ;-) Thanks, Jamie. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] Fade from one color to another
What about overriding the onTweenUpdate event handlers didn't work? I'll try to whip together an example that works in the next day or two. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Tuesday, December 05, 2006 11:23 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Fade from one color to another @dustin - that worked for simple colors that are close by but not for pure white to pure black #FF, #00 @deepa - i could not get that to work after one hour. i decided to try to dissolve from one state to another. one state has a white background. the other state has a black background. the code i wrote makes sense to me but the effects are triggering at the wrong time. shouldn't this work? if there is more the fromState and toState are misleading. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute styleName=plain mx:states mx:State name=blackState mx:SetProperty target={button1} name=label value=Fade to White/ mx:SetStyle name=backgroundColor value=0x00/ mx:SetEventHandler target={button1} name=click handler={currentState=''}/ /mx:State /mx:states !-- Fade to black -- !-- When user clicks a button the screen should fade to black-- !-- After application /state fades to black switch states -- !-- After switching states fade up from black -- mx:transitions mx:Transition fromState= toState=blackState mx:Parallel mx:Dissolve duration=4000 alphaTo=1 color=#00 target={this}/ /mx:Parallel /mx:Transition mx:Transition fromState=blackState toState= mx:Parallel mx:Dissolve duration=4000 alphaTo=1 color=#FF target={this}/ /mx:Parallel /mx:Transition /mx:transitions mx:Button x=120 y=139 horizontalCenter=0 verticalCenter=0 label=Fade to Black id=button1 click={currentState='blackState'}/ /mx:Application On 12/4/06, Deepa Subramaniam [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Ah - that is because AnimateProperty is just cycling through all the RGB values between your fromValue color and your endValue color. What you may want to do is add an event handler for the tweenUpdate event on the AnimateProperty effect instance and check to see what the value passed in the TweenEvent object is. That value is what the backgroundColor is at that moment in the lifetime of the effect. You can then add in your own logic that sets the backgroundColor depending on where the effect is in its lifetime (ie: simulate a progression from dark gray to light gray). I'm not 100% sure how that will work out but I'd be interested in finding out what doesn't work about it. Incidentally, you should check out Alex Uhlmann's Animation Package where I think he has an effect that does exactly what you want. That will probably be easier :-) http://www.alex-uhlmann.de/flash/animationpackage/ -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Monday, December 04, 2006 2:31 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Fade from one color to another i see. that mostly works. except now it cycles through every color giving a flicker effect like i am on acid. try this to see: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxml; layout=absolute styleName=plain creationCompleteEffect={fadeColor} mx:AnimateProperty id=fadeColor isStyle=true property=backgroundColor fromValue=0xFF toValue=0x00 target={Application.application} duration=2000/ /mx:Application If i change the fromValue and the toValue to a two digit number like so it is a very smooth transition but it does not fade from white. It only fades from blue. Try this: mx:AnimateProperty id=fadeColor isStyle=true property=backgroundColor fromValue=0xFF toValue=0x00 target={Application.application} duration=2000/ I am thinking of just transitioning to a blank black state but that feels like a hack. dorkie best practices dork from dorktown On 12/4/06, Deepa Subramaniam [EMAIL PROTECTED] wrote: Set the the isStyle property to true in your AnimateProperty tag. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Monday, December 04, 2006 5:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Fade from one color to another I need to fade my application background color from 0xC47D31 to 0x67DEF9 and I have no idea where to start. I've seen AS2 actionscript around that I can try to convert but what I'm looking for is a already built MXML component Effect, similar
RE: [flexcoders] Multi-select not happening! - bug?
Hank, you are correct. Multiple selection was disabled in the Tree for the Flex 2 release. We have re-enabled it in the next version of Flex which should be out soon. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hank williams Sent: Wednesday, December 06, 2006 1:14 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Multi-select not happening! - bug? I did a further search and found that Belinda Nambooze from adobe said it was disabled and would be fixed in a later release. So I am wondering joan, are you working with the new flex framework where this is fixed? Hank On 12/6/06, hank williams [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I am running firefox 1.5 with player 9.0.16 and I also cannot get multiple selection working in a tree. I was just trying to figure out what was wrong and I did a search to see if there was a bug and found this thread. Hank On 11/2/06, Joan Lafferty [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: For that link, multiple selection in the list works for me in Firefox 2 on player 9.0.16. Are you on Mac or Linux. Can you please verify your player number? Joan From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Sreejith Unnikrishnan Sent: Thursday, November 02, 2006 8:13 AM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Multi-select not happening! - bug? Hi Joan, I put a sample that can be accessed at http://indesg.com/flexBugs/ListExample.swf http://indesg.com/flexBugs/ListExample.swf http://indesg.com +++ The code is below: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml width=100% height=100% creationComplete=initApp(); viewSourceURL=srcview/index.html mx:Script ![CDATA[ import mx.controls.Text; import mx.events.DragEvent; private function initApp():void { srclist.dataProvider = ['Reading', 'Television', 'Movies']; } private function popSelectItems(event:Event):void { var theSelectItems:Array = new Array(srclist.selectedItems); si.text = theSelectItems.toString(); } private function doDragDrop(event:DragEvent):void { trace (Drag Dropped); } ]] /mx:Script mx:XMLList id=treeData node label=Mail Box node label=Inbox node label=Marketing/ node label=Product Management/ node label=Personal/ /node node label=Outbox node label=Professional/ node label=Personal/ /node node label=Spam/ node label=Sent/ /node /mx:XMLList mx:HBox mx:VBox mx:Label text=Available Activities/ mx:List id=srclist width=200 height=200 allowMultipleSelection=true dragEnabled=true change=popSelectItems(event)/ /mx:VBox mx:VBox mx:Label text=Multi-select happens in IE, not in Mozilla, Opera ... / mx:TextArea id=si width=200 height=200 / /mx:VBox /mx:HBox mx:HBox mx:VBox backgroundColor=#ff mx:Label text=Drag items from top - works ! / mx:List width=200 height=200 dropEnabled=true / /mx:VBox mx:VBox width=200 height=200 mx:Label text=Tree does not recognize dragDrop ! :-( / mx:Tree id=myTree width=100% height=100% dropEnabled=true dragDrop=doDragDrop(event) dragEnabled=true labelField=@label showRoot=false dataProvider={treeData}/ /mx:VBox /mx:HBox /mx:Application +++ Thanks Sree - Original Message - From: Joan Lafferty mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Sent: Thursday, November 02, 2006 4:06 AM Subject: RE: [flexcoders] Multi-select not happening! - bug? Sreejith, I ran your bugfile and it seems to run fine for me in Firefox 2.0. Do you want to send the swf and mxml file to me offline? Also, please confirm whether you are using a Mac, Windows or Linux machine. Thanks, Joan From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] ups.com http://ups.com ] On Behalf Of Sreejith Unnikrishnan Sent: Wednesday, November 01, 2006 1:50 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Multi-select not happening! - bug? Well, I just noticed that the multiSelect does not happen in Firefox 2.0. It works in IE though. Is this a bug? - Original Message - From: Sreejith Unnikrishnan mailto:[EMAIL PROTECTED]
RE: [flexcoders] Re: ListBase.as getting called after Drop to Datagrid--Preventing the Drop???
A few things: first, you'll have to call preventDefault() on your DragEvent object to cancel the default behavior so that only your custom event handler runs. Second, you'll have to add a custom dragOver event handler so that the DataGrid shows the correct feedback allowing items to be dropped from the Tree. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wayneposner Sent: Tuesday, December 05, 2006 9:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: ListBase.as getting called after Drop to Datagrid--Preventing the Drop??? Hi Lach, Nope...My component code looked liked: mx:DataGrid id=cart dragEnabled=true dropEnabled=true dragEnter=onDragEnter(event)/ Still haven't figured out what caused the problem. Wayne --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Lachlan Cotter [EMAIL PROTECTED] wrote: Hi Wayne, By any chance did you forget to register your event handler with the DataGrid? Just a thought. Cheers, Lach On 30/11/2006, at 1:07 AM, wayneposner wrote: I'm trying to drag-and-drop from a tree to a datagrid. I've followed the examples to try to achieve this, but whenever I drag over the datagrid, it refuses to accept the drop. The datagrid acts like the dropEnabled flag is set to false. I've traced the code and despite the fact that I have a custom dragEnter handler, it still executes the handler found in ListBase.as which cancels out my handler. Does anyone know what would cause this? Thanks! My Handler is as follows: private function onDragEnter( event:DragEvent ) : void { DragManager.acceptDragDrop(UIComponent(event.currentTarget)); }
RE: [flexcoders] Re: ListBase.as getting called after Drop to Datagrid--Preventing the Drop???
That's actually not true. dropEnabled just indicates that a control allows items to be dropped into it, given that the data format of the items being dropped matches what the control expects. The default DragEvent handlers are used to handle the drag drop operations, though you are always allowed to add your own event handlers to override the default behavior. -Deepa Subramaniam From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lachlan Cotter Sent: Tuesday, December 05, 2006 4:13 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: ListBase.as getting called after Drop to Datagrid--Preventing the Drop??? If you're defining your own drag-drop event handlers, I don't think you're supposed to use dropEnabled='true'; dropEnabled='true' means that the default handlers are used. From 'Flex 2 Dev Guide': dropEnabled A Boolean value that specifies whether the control can be a drop target that uses default values for handling items dropped onto it. The default value is false, which means that you must write event listeners for the drag events. When the value is true, you can drop items onto the control by using the default drop behavior. On 06/12/2006, at 4:33 AM, wayneposner wrote: Hi Lach, Nope...My component code looked liked: mx:DataGrid id=cart dragEnabled=true dropEnabled=true dragEnter=onDragEnter(event)/ Still haven't figured out what caused the problem. Wayne
RE: [flexcoders] XMLList/XMLListCollection: sort on attributes
Assuming the XMLListCollection created from the myData XML object looks like this: public var col:XMLListCollection = new XMLListCollection(myData.children()); Then you would sort on the category name like so: private function applyMySort():void { var s:Sort = new Sort(); s.fields = [new SortField(@name)]; col.sort = s; col.refresh(); } As for your second question, we don't support e4x expressions in the sort field. To get that behavior you'll have to write your own compareFunction that compares on the values you desire. You'll find that the mx.utils.ObjectUtil class has all the comparators you'd need to do this. Cheers, deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Oliver Lietz Sent: Monday, December 04, 2006 6:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] XMLList/XMLListCollection: sort on attributes Hello List, is there a way to sort a XMLList/XMLListCollection on their items attributes? What has to be done to sort the sample myData from Using the XMLListCollection class [1] on the category name? Or is it possible to sort when making an E4X query? tia, O. [1] http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/ww help.htm?context=LiveDocs_Partsfile=0513.html#403970 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] Fade from one color to another
Set the the isStyle property to true in your AnimateProperty tag. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Monday, December 04, 2006 5:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Fade from one color to another I need to fade my application background color from 0xC47D31 to 0x67DEF9 and I have no idea where to start. I've seen AS2 actionscript around that I can try to convert but what I'm looking for is a already built MXML component Effect, similar to mx:Fade or Dissolve. I tried this and received errors: creationCompleteEffect={fadeColor} mx:AnimateProperty id=fadeColor property=backgroundColor toValue=#00 target={Application.application} duration=5000/ ReferenceError: Error #1069: Property backgroundColor not found on TestApplication and there is no default value. at mx.effects.effectClasses::AnimatePropertyInstance/::getCurrentValue() dorkie mood changing dork from dorktown
RE: [flexcoders] Fade from one color to another
Ah - that is because AnimateProperty is just cycling through all the RGB values between your fromValue color and your endValue color. What you may want to do is add an event handler for the tweenUpdate event on the AnimateProperty effect instance and check to see what the value passed in the TweenEvent object is. That value is what the backgroundColor is at that moment in the lifetime of the effect. You can then add in your own logic that sets the backgroundColor depending on where the effect is in its lifetime (ie: simulate a progression from dark gray to light gray). I'm not 100% sure how that will work out but I'd be interested in finding out what doesn't work about it. Incidentally, you should check out Alex Uhlmann's Animation Package where I think he has an effect that does exactly what you want. That will probably be easier :-) http://www.alex-uhlmann.de/flash/animationpackage/ -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Monday, December 04, 2006 2:31 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Fade from one color to another i see. that mostly works. except now it cycles through every color giving a flicker effect like i am on acid. try this to see: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute styleName=plain creationCompleteEffect={fadeColor} mx:AnimateProperty id=fadeColor isStyle=true property=backgroundColor fromValue=0xFF toValue=0x00 target={Application.application} duration=2000/ /mx:Application If i change the fromValue and the toValue to a two digit number like so it is a very smooth transition but it does not fade from white. It only fades from blue. Try this: mx:AnimateProperty id=fadeColor isStyle=true property=backgroundColor fromValue=0xFF toValue=0x00 target={Application.application} duration=2000/ I am thinking of just transitioning to a blank black state but that feels like a hack. dorkie best practices dork from dorktown On 12/4/06, Deepa Subramaniam [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Set the the isStyle property to true in your AnimateProperty tag. -deepa From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of dorkie dork from dorktown Sent: Monday, December 04, 2006 5:25 AM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] Fade from one color to another I need to fade my application background color from 0xC47D31 to 0x67DEF9 and I have no idea where to start. I've seen AS2 actionscript around that I can try to convert but what I'm looking for is a already built MXML component Effect, similar to mx:Fade or Dissolve. I tried this and received errors: creationCompleteEffect={fadeColor} mx:AnimateProperty id=fadeColor property=backgroundColor toValue=#00 target={Application.application} duration=5000/ ReferenceError: Error #1069: Property backgroundColor not found on TestApplication and there is no default value. at mx.effects.effectClasses::AnimatePropertyInstance/::getCurrentValue() dorkie mood changing dork from dorktown
RE: [flexcoders] Message to Deepa (or others) Re: have there any rightClick mouseEvent in Flex2?
Here you go - attached is the example. Best, deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pierre-Henri Sent: Wednesday, November 15, 2006 6:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Message to Deepa (or others) Re: have there any rightClick mouseEvent in Flex2? Hello ! I'm new to Flex - and to this Group... Searching for information about the rightClick event handler, I found the article below. The initially attached document (example.mxml) does not seem to be available anymore - could anyone repost it ? Thanks a lot in anticipation P-H --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Deepa Subramaniam [EMAIL PROTECTED] wrote: Yes - you can add a ContextMenu that pops open when you right click in a Flex application. You can use the flash.ui.ContextMenu class to add custom menu items to your ContextMenu and then use event handling to invoke the desired behavior. Attached is a simple example that shows how you can right click in a DataGrid cell and add that item to another DataGrid. This should point you in the right direction. deepa -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of feel8335 Sent: Wednesday, September 13, 2006 9:37 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] have there any rightClick mouseEvent in Flex2? have there any rightClick mouseEvent in Flex? if not, then how to produce a right click event to provide more function , like rename a display object, change color or set icon on there THX~~! @@ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links example.mxml Description: example.mxml
RE: [flexcoders] Re: RangeError: Error #2006 using menu !
Hello We fixed a few bugs where this was happening in Menu and MenuBar. We were not correctly adding and removing the child menu instances to the SystemManager and eventually the indices would get out of sync and youd RTE. These have been fixed since the Flex 2 build went out and will be included in the next drop of Flex which will be out soon. Deepa Flex SDK From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of droopyflex Sent: Tuesday, November 07, 2006 12:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: RangeError: Error #2006 using menu ! --- In [EMAIL PROTECTED]ups.com, Ciarán [EMAIL PROTECTED].. wrote: Hi, I found this difficult to reproduce. I'm a bit of a flex rookie, but given the exception I think flex is complaining after it's looked for something and not found it because it hasn't been initialized (yet). To my understanding, creationComplete is dispatched after initialization of components. I haven't yet experienced the error since I changed: creationComplete=initCollections(); to initialize=initCollections() But since it's hard to reproduce I can't tell for sure if this is at all related to anything happening here... the bug is not related to this. even the MenuBar is properly filled by initCollections(), there is something wrong in MenuBar::showMenu() After many tries, here a way to reproduce it: - build the menubar post in this Thread. (taken from Menubar doc) - click on Menu 2 - now the tricky part: move to Menu Item 2-B but immediatly go to Menu 1 then immediatly go to Menu 2 before Menu Item 2-B open and before Menu 1 open (may be). - Menu Item 2-B should open when Menu 2 is closed, or something like that - MenuBar::showMenu() should crash on Menu 2 this is not easy to reproduce, may be because the submenu is not big. BUT: playing with big menu with big submenu for a moment always crash. __._,_.___ -- 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 __,_._,___
RE: [flexcoders] where to drop on tree
The calculateDropIndex method in Tree will tell you the index of the dropped node and then you can lookup the id of the node at that location to update your database. If you need more information then that (ie: the parent node of the drop, whether youre dropping into an empty folder, etc), look at the updateDropData method in Tree to see how that information is calculated. Currently in Flex 2, updateDropData and the data object carrying all that relevant information (dropData) are private. In the next release of Flex, dropData will be public so all the relevant drop information will be accessible. HTH deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jesús Iglesias Sent: Tuesday, November 07, 2006 10:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] where to drop on tree Hi again, Thanks to you I have found that, on drag and drop with trees, data comes on treeItems. :) Now i have one more problem. What I'm trying to do is a tree where you can move elements from one node to another and dispatch an event to upgrade database, so I need to know the new node where you drop the item (dataprovider is xml) and update databse with the ID of this node. I alsa need to update the order of this item y the node, one of the main features of the aplicacion is to order items on a node. I don't know where to begin, I do drag and drop fine and get treeItems moved, but I don't know how to get the info I need. Thanks again, Jesus __._,_.___ -- 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 __,_._,___
RE: [flexcoders] help moving elements in a tree
Tree formats its drag and drop items as treeItems instead of items which is what the other list-based controls use. So try: private function doDragDrop(event:DragEvent):void { var dropTarget:Tree=Tree(event.currentTarget); doDragExit(event); var items:Array =event.dragSource.dataForFormat(treeItems) as Array; Alert.show(items.length.toString()); } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jesús Iglesias Sent: Monday, November 06, 2006 3:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] help moving elements in a tree Hi, I have a tree where I can move elements from one node to another. I have enabled drag and drop and all works fine. The last step is I need to know some details about destination. I created a doDrgagDrop function as on doc, dragEnabled=true dropEnabled=true dragMoveEnabled=true dragEnter=doDragEnter(event); dragExit=doDragExit(event); dragOver=doDragOver(event); dragDrop=doDragDrop(event); where: private function doDragDrop(event:DragEvent):void { var dropTarget:Tree=Tree(event.currentTarget); doDragExit(event); var items:Array =event.dragSource.dataForFormat(items) as Array; Alert.show(items.length.toString()); } But I get an error accesing a null object. I supose after moving the element I could find the parent node in order to update database which this movement, but I need to know son info about moved element. Please help!! Thanks, Jesus __._,_.___ -- 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 __,_._,___
RE: [flexcoders] showRoot not working on mx:Tree ?
In Flex 2, we did not take rootedness into account for XMLLists and ArrayLists. This is something that we fixed in the updated 2.1 build which will be coming out soon. As a workaround, you can pass the children of the topics node directly to the Tree (dataProvider='{xmlTopicTree.topics.children()}') or extend Tree and modify the set dataProvider code in Tree to toggle the _hasRoot storage variable to true. HTH deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jamiebadman Sent: Monday, November 06, 2006 3:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] showRoot not working on mx:Tree ? Hi, Can anyone explain why with this code: [Bindable] private var xmlTopicTree:XML = new XML('roottopics name=topicstopic subject=one id=33 parent_id=0/topic subject=two id=34 parent_id=0//topics/root'); mx:Tree id=topicTree dataProvider={xmlTopicTree.topics} labelField=@subject showRoot=false/mx:Tree it makes no difference if I have showRoot set to true or false ? It seems that whatever I do, the root node shows the actual 'xml' on the tree... I'm certain it's something dumb I'm doing/not-doing but can't figure out what! Anyone have any clues ?! Thanks, Jamie. __._,_.___ -- 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 __,_._,___
RE: [flexcoders] Re: Changing color in datagrid URL
Hmm - that seems to work for me. What build of Flex are you using? Can you email me a bugfile offline? Thanks - deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Crowe Sent: Wednesday, November 01, 2006 12:16 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Changing color in datagrid URL That's what I tried first. The color is still black. --- In flexcoders@yahoogroups.com, Deepa Subramaniam [EMAIL PROTECTED] wrote: You can set styles on the LinkButton to control its appearance. So in your case, you would add a color (and perhaps an underline) style to the mx:LinkButton tag. mx:LinkButton label={data.strUserEmail} color=#ff click=navigateToURL(new URLRequest('mailto:'+data.strUserEmail), data.strUserEmail)/ -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Crowe Sent: Wednesday, November 01, 2006 10:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Changing color in datagrid URL Hi folks, I'm trying to put a clickable URL in a datagrid. So far, here is what I have for my column: mx:DataGridColumn color=#ff headerText=Email dataField=strUserEmail mx:itemRenderer mx:Component mx:LinkButton label={data.strUserEmail} click=navigateToURL(new URLRequest('mailto:'+data.strUserEmail), data.strUserEmail)/ /mx:Component /mx:itemRenderer /mx:DataGridColumn I want to make the email address blue (#ff). However, nothing I do seems to change this. Whether I put in DataGridColumn or LinkButton, neither works. What am I missing? TIA Mike -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Changing color in datagrid URL
You can set styles on the LinkButton to control its appearance. So in your case, you would add a color (and perhaps an underline) style to the mx:LinkButton tag. mx:LinkButton label={data.strUserEmail} color=#ff click=navigateToURL(new URLRequest('mailto:'+data.strUserEmail), data.strUserEmail)/ -deepa From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mike Crowe Sent: Wednesday, November 01, 2006 10:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Changing color in datagrid URL Hi folks, I'm trying to put a clickable URL in a datagrid. So far, here is what I have for my column: mx:DataGridColumn color=#ff headerText=Email dataField=strUserEmail mx:itemRenderer mx:Component mx:LinkButton label={data.strUserEmail} click=navigateToURL(new URLRequest('mailto:'+data.strUserEmail), data.strUserEmail)/ /mx:Component /mx:itemRenderer /mx:DataGridColumn I want to make the email address blue (#ff). However, nothing I do seems to change this. Whether I put in DataGridColumn or LinkButton, neither works. What am I missing? TIA Mike __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company 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 __,_._,___
RE: [flexcoders] Problem with setFocus()
Hi Rick setFocus() is the correct method to use to put focus on the TextInput, including the cursor blinking within the TI. But are you using Firefox? Your issue is a fact of life in the Firefox world. Youll notice that in Firefox, calling setFocus() off any of the initialization events will not cause the cursor to blink within the TI. Doing the same off a button click or some sort of other user initiated event will work. This is because Mozilla has some specific issues around giving plug-in content focus upon initialization. Hope this helps - deepa From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rick Root Sent: Monday, October 30, 2006 7:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem with setFocus() I'm trying to use setFocus() to put the focus on a text input when my application starts. However, most of the time, I get the blue halo around the text input, but no cursor. I can't type until I click in the text input to put the cursor there. I'm using Flex Builder's generated HTML/_javascript_ page for embedding the flex app, so I don't have the click to activate problem... rick __._,_.___ -- 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 __,_._,___
RE: [flexcoders] How can I block a TabNavigator ?
What you can do is iterate through the TabNavigator's tabs and disable each of them. By disabling them, the change event will not get emitted. Use TabNavigator.getTabAt() and set the enabled property to false for each Tab. Now, when you disable a Tab, the Tab will assume the look of its disabled state (grayed out, etc). You probably want the Tab to look enabled even if it is disabled - in which case you'll have to change the Tab's disabledSkin. HTH - deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of javier_mza2003 Sent: Monday, September 18, 2006 6:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How can I block a TabNavigator ? Hello everybody ... I'm having a little problem .. The thing is that I have an application that shows a TabNavigator, a form inside it and two buttons a the bottom of the TabNavigator. Those buttons are simply previous/next buttons to go to the previous/next container in the TabNavigator. I need to block de event 'change' in the TabNavigator to make the user click the buttons rather than the tabs to navigate through the panels ... If anyone can help me, I'll thanks a lot !! Regards.- Javier. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] How can I block a TabNavigator ?
Yes, I agree, its bad design. The benefits of exposing tabs for browsing and then disabling them and forcing the user to follow some other route to navigate through the container makes no sense to me but I was just answering the posters initial question J From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Paul Andrews Sent: Monday, September 18, 2006 12:45 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How can I block a TabNavigator ? - Original Message - From: Deepa Subramaniam [EMAIL PROTECTED]com To: [EMAIL PROTECTED]ups.com Sent: Monday, September 18, 2006 6:52 PM Subject: RE: [flexcoders] How can I block a TabNavigator ? What you can do is iterate through the TabNavigator's tabs and disable each of them. By disabling them, the change event will not get emitted. Use TabNavigator.getTabAt() and set the enabled property to false for each Tab. Now, when you disable a Tab, the Tab will assume the look of its disabled state (grayed out, etc). You probably want the Tab to look enabled even if it is disabled - in which case you'll have to change the Tab's disabledSkin. HTH - deepa Horrors. It's really good making the user think (s)he can navigate the tabs, then discover they can't. Is this really good practice? Even with the disabled tabs - hey I completed the info, now it's become invalid.. Paul __._,_.___ -- 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 __,_._,___
RE: [flexcoders] How to display XML object in DataGrid
Your DataGridColumns need to specify a dataField property to determine which field in the XML object to display as the text for that cell. If you need to customize the text beyond just pulling out a field from the XML, you can use a labelFunction to do so. I believe the ASDoc example for DataGrid shows how to use an XML object as the dataProvider. http://livedocs.macromedia.com/flex/2/langref/index.html Navigate to the DataGrid control and scroll down to the example. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sathish_nayak_b Sent: Thursday, September 14, 2006 10:40 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to display XML object in DataGrid In my Application i want to read XML file dinamically and display the contents in Datagrid . i used Following Code. function loadXmlFile():void{ var request:URLRequest = new URLRequest(temp.xml); var loader:URLLoader = new URLLoader(); loader.addEventListener(Event.COMPLETE, completeHandler); try { loader.load(request); } catch (error:ArgumentError) { trace(An ArgumentError has occurred.); } catch (error:SecurityError) { trace(A SecurityError has occurred.); } } private function completeHandler(event:Event):void { dataXML:XML = XML(event.target.data); myGrid.dataProvider=dataXML; } I getting XML object(dataXML) but i dont know how to display it to Datagrid. __._,_.___ -- 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 __,_._,___
RE: [flexcoders] have there any rightClick mouseEvent in Flex2?
Yes - you can add a ContextMenu that pops open when you right click in a Flex application. You can use the flash.ui.ContextMenu class to add custom menu items to your ContextMenu and then use event handling to invoke the desired behavior. Attached is a simple example that shows how you can right click in a DataGrid cell and add that item to another DataGrid. This should point you in the right direction. deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of feel8335 Sent: Wednesday, September 13, 2006 9:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] have there any rightClick mouseEvent in Flex2? have there any rightClick mouseEvent in Flex? if not, then how to produce a right click event to provide more function , like rename a display object, change color or set icon on there THX~~! @@ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ example.mxml Description: example.mxml
RE: [flexcoders] Tree Component expandItem Animation true problem.
This is because of the way the depthColors are drawn. They are only drawn in drawRowBackgrounds() which gets called in updateDisplayList() so the row background colors are not tweened during the animation. Ive added an enhancement request to allow for tweening of background row colors during the animation. Possible workarounds include overriding onTweenUpdate() and manually tweening the backgroundColor of each row yourself. You might be able to get away with writing your own TreeItemRenderer where each UITextField was encompassed in an HBox with backgroundColor set. However I think since renderers are re-used, youd have to write some code to make sure that as each renderer is re-used its backgroundColor is changed to maintain the color ordering prescribed by that rows depth. If you find the shifting of colors too ugly, you can change your openDuration to 0 so that there is no animation and the items just open with the correct background row color. HTH, -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mick Robin Sent: Tuesday, September 05, 2006 7:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tree Component expandItem Animation true problem. Hi, I got a problem with the Tree Component. I have set the following properties for theTree componenet in my application: labelField=@label width=100% height=100% defaultLeafIcon= undefined folderOpenIcon=undefined folderClosedIcon=undefined disclosureClosedIcon=undefined disclosureOpenIcon=undefined fontSize=10 depthColors= [0xF4C406,0xff,0xF4C403] borderStyle= none useRollOver=false selectionDuration=0 selectionColor= 0x99 Now when I amtrying to call Tree.expandItem(event.currentTarget.selectedItem,true,true) method.It opens the child items.Only thing the animation for the parent node does not work.Only the labels get animated but the color behind the label doesnot animate it suddely changes it position.I want the label and color to move at the same time.Any help?? Thanks in advance Mick Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Getting contents of ArrayCollection (flex newbie)
You can iterate through your collection by using the IList methods like getItemAt(), which returns an Object. Something like: for (var i:int = 0; i myCollection.length; i++) { var data:Object = myCollection.getItemAt(i); //do something with data } Alternatively, you can use the ICollectionView methods (ArrayCollection implements both interfaces) and use a cursor to iterate through the items in your collection. For example: var cursor:IViewCursor = myCollection.createCursor(); while(!cursor.afterLast) { data = ""> //do something with data } The ASDocs and documentation have more examples and explanations. HTH deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of amalabie Sent: Friday, September 01, 2006 6:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Getting contents of ArrayCollection (flex newbie) Hi! I have an ArrayCollection object returned from a RemoteObject call and I need some help getting the data out of the collection. What is the syntax to iterate through the collection and pick out the data items I need. mx:ArrayCollection id=myCollection source={remoteObject.get.lastResult} / In my actionScript, how do I access myCollection? I've tried getItemAt() but am not sure whether I specified the right parms. I've tried: var msg:String; msg = myCollection.getItemAt(0); Nothing seems to work. I can see the ArrayCollection object in the debugger and it contains the data I need, which is a mixture of numbers and strings. Help! Any pointers greatly appreciated! Thanks in anticipation! __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Unable to get trace to work...
Do you have an mm.cfg file that enables tracing and sets the trace output file name and location? Here's a technote about how to get mm.cfg set up correctly: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19323 One that is all set up, your trace statements will be outputted to the file you specify and you can just tail that for all runtime trace statements. -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kyle Sent: Thursday, August 31, 2006 10:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Unable to get trace to work... I am writing some classes and am trying to use trace statements to test my methods; however, when I run (or debug) my application, my trace statements are not being output to the console window. Does anyone know if there is some setting or preference that I might be missing, or know what might be causing this? My test class looks like this: package { import flash.display.MovieClip; public class ProgrammingBasics extends MovieClip { private var _quantity:Number; public function ProgrammingBasics() { _quantity = 5; runTrace(); } private function runTrace():void { trace(getTraceValue()); } private function getTraceValue():Number { return _quantity; } } } The console output looks like this: [SWF] C:\Documents and Settings\kyle_vmix\My Documents\vMix\FLEX PRACTICE\bin\ProgrammingBasics-debug.swf - 395,243 bytes after decompression Thanks! -Kyle -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Problem with Sorting
The SortField objects take the name of the field in the object to be sorted as a String so your dot _expression_ will not work. What you can do is write a custom compareFunction for your Sort object. A compareFunction takes two objects and returns -1, 0, or 1 depending on which order the two objects should be sorted. The ASDoc for Sort.compareFunction has the function signature and a good example so check that out for more info. Your custom compareFunction can access top-level and sub-properties on each object and then sort accordingly. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dreuimar Sent: Thursday, August 31, 2006 9:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem with Sorting Hey everyone, I have an array collection of Industry objects which are all sub-industries. Each industry object has as a property a parent industry (of datatype Industry); Industry VO contains properties: industryId : int; parent : Industry; name : String; I want to sort the array by the parent industry first, and then the children industries names. I was going to do something like: var sort : Sort = new Sort(); sort.fields = [ new SortField(parent.name, true), new SortField(name, true) ]; ...but this isn't working. Is there any way of going deeper than just immediate properties for a sortfield? Brennan __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: Unable to get trace to work...
Hi Kyle Check out the first line in step #2 in the technote: Make sure you have copied the mm.cfg file from your flex_install_dir/bin directory to the client machine's home directory. Alternatively, you can create a file, name it mm.cfg, drop it in your home directory and add the settings specified later in the technote. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kyle Sent: Thursday, August 31, 2006 11:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Unable to get trace to work... Thanks Deepa, I have tried following the instructions on setting up my trace debug output; however, I cannot find the file mm.cfg anywhere on my system. >From what I have seen in examples, I should simply be able to open the console window and see the trace outputs there when I debug the application; however when I run debug no traces are output to the console. Has anyone run into this issue, or successfully located the mm.cfg file on a window xp system? Thanks! -Kyle __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] buttonMode and useHandCursor on a Label doesn't work...
Set the mouseChildren property to false on the Label. mx:Label id=myLabel text=blabla click=myClickHandler() buttonMode=true useHandCursor=true mouseChildren=false/ -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, August 31, 2006 4:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] buttonMode and useHandCursor on a Label doesn't work... Hi guys, I want a Label to show a hand cursor when the mouse is over the label. The following approach doesn't work, the click handler is executed though and works fine. But the mouse cursor doesn't change at all. mx:Label id=myLabel text=blabla click=myClickHandler() buttonMode=true useHandCursor=true / Anything obvious I'm missing here? Cheers Kai mail2web - Check your email from the web at http://mail2web.com/ . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Object oriented / design pattern / application design books?
+1 for Head First Design Patterns. The methodology with which the descriptions and examples are laid out really drill each pattern into your memory. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Thursday, August 31, 2006 2:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Object oriented / design pattern / application design books? Head First Design Patterns is awesome; a must have for learning patterns. The examples are in Java but if you know AS well enough they're easy to understand. (I've never written a line of Java in my life.) HTH, Ben --- In [EMAIL PROTECTED]ups.com, tddclare clare_todda@... wrote: I've seen the light and am sold on the object oriented world. I'm smart enough about it to sound smart and do some good things, but still dumb enough not to know the right way to do things or the best way to apprach the problem. I'm confortable working with Flex, controls, data, components, etc. Where I'm falling short is the vision and strategy on designing the app and its objects to play nicely, communicate with each other, and provide the best flexibility. Can anyone recommend a list of books (or videos, etc.) for learning OOP, Design Patterns, Application Design, etc? I'd really like something that will help me in Flex, although I know php, vb, and a few others (not Java). Most of the books I see are either completely generic theory, so it's hard to tell one is better than another (hence my question), or they're targeted to a languange I don't use (Java, C++), so I won't get as much out of them as I'd like. Some are targeted at Flash, which is better, but is still Flash focussed, so not ideal? I have links to: Head First Design Patterns (http://www.amazon.com/gp/product/0596007124/ref=pd_cp_b_title/103-0966880-4095845?ie=UTF8) Programming Flex 2: The Comprehensive Guide to Creating Rich Media Applications with Adobe Flex (http://www.amazon.com/Programming-Flex-2-Comprehensive-Guide-Creating-Rich-Media-Applications-Adobe-Flex/dp/059652689X/sr=1-1/qid=1157055447/ref=sr_1_1/103-0966880-4095845?ie=UTF8s=books) which looked good, but I wanted to see if anyone else had better options or knew anything about those (the 2nd one is due out in January). Thanks! -- Todd __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: Disabling a nested menu item in a menu bar?
Hi Jeff MenuBar.getMenuAt() returns a reference to a Menu. getMenuAt() is a method on MenuBar and menuItems is a property on MenuBar, which is why you encounter the errors below when you try to use those APIs on a Menu. Since Menus are dynamically created as needed, there is a possibility a nested child menu has not been created yet. As menus get created, MenuBar adds those menus to its menus array. menus is a handy array that stores Menus created for that MenuBar control and you might find that handy for your needs. If you cant guarantee that the menus have been created but you still want to walk your MenuBar, you can go at it from a data-centric point of view. You can use the MenuBars dataDescriptor to walk the MenuBars data looking for children (hasChildren(), getChildren() will be handy) at each node. If children exist, you know that node has a sub-menu. One last thing it looks like your original question was how to disable menu items. Since disabling/enabling is a data-driven functionality (all you need to do is toggle the enabled property) you can do it through the data bound to the MenuBar instead of walking the MenuBars individual Menus and sub-Menus. For example, you can use e4x to access the node you want to disable in the MenuBar dataProvider and set the enabled attribute to false and boom, your MenuBar will show that menu item as disabled without any extra work. Or, you can go at it through your MenuBars dataDescriptor and find the node you want to disable and use IMenuDataDescriptor.setEnabled() to disable that node. HTH deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jeff tapper Sent: Monday, August 21, 2006 12:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Disabling a nested menu item in a menu bar? Sadly, thats where the problems started for me. I'm able to get at the top level items, using getMenuAt or even using the menuItems array, but sadly, i cant seem to get a handle on the first child menu var myMenu:MenuBar = myMenuBar; var nextLevel:* = myMenu.getMenuAt(0); // throws error Property menuItems not found on mx.controls.Menu var firstNestedChild:* = nextLevel.menuItems; // throws error (Property getMenuAt not found on mx.controls.Menu) var firstNestedChild:* = nextLevel.getMenuAt(0); so, coming back to the original question, what syntax can i use to get a handle on the nested children MenuBarItems? --- In [EMAIL PROTECTED]ups.com, Tim Hoff [EMAIL PROTECTED] wrote: Bummer - sorry, Probably need to look at MenuBar.getMenuAt(index). -TH --- In [EMAIL PROTECTED]ups.com, jeff tapper jeff@ wrote: unfortunately not, its populated dynamically at run time. Any other ideas on how to address a nested child of the menu? --- In [EMAIL PROTECTED]ups.com, Tim Hoff TimHoff@ wrote: Hi Jeff, You can handle this with binding. Something like this: menuItem label=File enabled={model.FileMenuEnabledFlags (0)} menuItem label=New enabled={model.FileMenuEnabledFlags (1)}/ menuItem label=Open enabled={model.FileMenuEnabledFlags (2)}/ menuItem label=Save enabled={model.FileMenuEnabledFlags (3)}/ /menuItem model.FileMenuEnabledFlags is an array of Boolean values. -TH --- In [EMAIL PROTECTED]ups.com, jeff tapper jeff@ wrote: Anyone have a clue how to disable a menu bar item, when it is not the top level? Given a structure like this: menuItem label=File menuItem label=New / menuItem label=Open / menuItem label=Save / /menuItem I can easily get a handle on the root node (File), by accessing myMenu.menuItems[0], however, i'm banging my head against the wall trying to get a handle on Save as a MenuBarItem, as the File item doesnt seem to have child items representing the others. Can someone point me in the right direction here? Thanks __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Select Multiple Dates
Set the allowMultipleSelection property to true. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of pateyog Sent: Monday, August 14, 2006 3:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Select Multiple Dates Does anybody know how to make the mx:DateChooser tag to select multiple dates. Thanks in advance. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] datagrid.selectedItem.image (don't work)
If your DataGrid is consuming e4x XML as its dataProvider, then the selectedItem value will be an e4x XML node. Is imagen an attribute of the selected node or a child? If its an attribute then youll need to do: source=[EMAIL PROTECTED] in your Image tag. If imagen is a child node, you probably need to dot down correctly to it. Trace out selectedItem and youll see the structure of the XML and then formulate an _expression_ accordingly. -deepa From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of tonyx_788 Sent: Thursday, July 06, 2006 9:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] datagrid.selectedItem.image (don't work) i'm using e4x 2questions everything else works great but the images won't show when using e4x,if i use http it'll display the image ok anyone knows why? and the datatip willshow everything on the xml, when hover the datagrid why? ... mx:DataGrid dataProvider={xlc} height=419 editable=false width=150 id=datagrid scroll=true change=xlc,cargarDatos.refresh() x=0 y=0 mx:columnsmx:Array mx:DataGridColumn columnName=name showDataTips=true dataTipField=name//mx:Array /mx:columns /mx:DataGrid .. mx:Image x=369 y=298 id=image1 width=169 height=178 visible=true scaleContent=true source={datagrid.selectedItem.imagen} horizontalAlign=center/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Menu - handle sub-menu clicks
What build of Flex are you using? I see MenuEvent.ITEM_CLICK being dispatched for sub-menu selections as well as root menu selections. If you could post a bit of code that reproduces your issue, that would help too. -deepa From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of chrislee943 Sent: Wednesday, July 05, 2006 4:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Menu - handle sub-menu clicks Hello all, There is a need to handle MenuEvent.ITEM_CLICK for sub-menus of the standard Menu component. Basically I need this for a case when there is a huge amount of data to show in the menu and click on sub-menu would show a new menu from the current level. So event must contain at least id of current menu item. And seems like only ITEM_CLICK contains this info. But ITEM_CLICK is not dispatched for sub-menu clicks. Thank you in advance, Dmitry. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Contextual Menu
Currently the player's ContextMenu class does not support sub-menus. Also, you cannot catch the mouse right click and pop open your own menu in place of any ContextMenu, so there's no workaround that I am aware of. I'd be interested to hear if others do have one. -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pottavathini, Sathish Sent: Friday, June 30, 2006 10:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Contextual Menu Hi, I am trying to add contextual menu for a tree control that i have in my module. I need a contextual menu on a tree item, so i added custom menu items to flash built in menu. This works fine, but i did not find a way to add submenus to the custom menus that i added to flash contextual menus. Am i missing something? Is there a way to add submenus in there? Or is there anything else other than using flash contextual menu? Any solution or work around would be greatly appreciated. Thanks Sathish -- 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 Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Select a Tree item on Right click
Well, good news and bad news. Normally, the event object properties on the ContextMenuEvent would help you accomplish what youre asking for in a cinch. The mouseTarget property on a ContextMenuEvent contains a reference to the display list object which the user was over when the context menu was invoked. In most list-classes, like DataGrid, the mouseTarget is the specific renderer the user right-clicked over. This is perfect, because the renderer contains a lot of information that allows you to figure out where the user invoked the context menu. For example, off a DataGridItemRenderer object, you can access the listData property which contains the index of the row the user right-clicked on (listData is a BaseListData object which has the property, rowIndex). Then youd just set your DataGrids selectedIndex to rowIndex and voila the row the user right-clicked over is selected. Unfortunately, there is a bug that does not allow this to work for Tree. The bug was deferred for the 2.0 release because it was found late in the development cycle. When a ContextMenu is invoked over a Tree, ContextMenuEvent.mouseTarget is not the TreeItemRenderer instance that the user was hovering over. Instead, its the generic container for the TreeItemRenderer. This does not give us any useful information. There is a workaround, albeit a kludgy workaround, that you could try. In your ContextMenuEvent handler, you could add an event listener for the MouseEvent.MOUSE_OVER event. Your MOUSE_OVER handler could then work off the information contained in the MouseEvent.target property and (hopefully that is a reference to the TreeItemRenderer) you can figure out the rowIndex like I mentioned above and set the selectedIndex of the Tree accordingly. Then, be sure to remove the event listener at the end of your MOUSE_OVER handler so that the Tree is not constantly spewing MOUSE_OVER events. Whew that was a mouthful but hopefully you followed and youll be able to live with the bug and or implement the workaround. I cant make any promises but Id like to see this bug fixed so Ill definitely add your usecase to the bug to give it some momentum. HTH Deepa Subramaniam Flex SDK From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pottavathini, Sathish Sent: Friday, June 30, 2006 3:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Select a Tree item on Right click Hi, I have a tree control and i added custom contextual menus on that tree. I'm trying to read the value of the tree node when i right click and select a custom contaxtual menu, i did not find a way to do this because right click is not selecting the tree item. If i left-click before right-clicking on it then i can get to it by using myTree.selectedItem. Is there any way i can get to the tree item that i right clicked on(without a left click)? Or force it to select the item when i right click on it? Thanks __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] submenu items on a ComboBox?
Take a look at the PopUpMenuButton control; the example in the ASDoc shows pretty much what you're asking for. -deepa From: flexcoders@yahoogroups.com on behalf of djbrown_rotonews Sent: Thu 6/29/2006 12:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] submenu items on a ComboBox? Is there a way to add submenu items on a ComboBox? Like the initial combobox would have 2 items Colors and Fruit, and then a selection of Colors would display another menu like Red Blue Yellow etc.. I know that type of behavior is available in mx:Tree, but how about mx:ComboBox? -- 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 Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Keeping DataGrid from scrolling to top on update to dataProvider
Im sorry, I totally misspoke. I meant to say RESET in my explanation below. When your collection is filled with new data after a fill() call to your DataService, the component bound to that collection will receive a CollectionEvent with kind = RESET. Internally, we re-populate the component with the new data and reset the scroll position to 0. What you can do is add your own collectionChange event handler to your collection and upon receiving a RESET, reset the verticalScrollPosition to whatever value youve been tracking. private function acHandler(event:CollectionEvent):void { if (event.kind == CollectionEventKind.RESET) dg.verticalScrollPosition = vPos; } Theres no need to use the scrollToIndex() method; by setting the verticalScrollPosition property directly, the scrollbar and content are update as if the user scrolled to that index. Best, deepa From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of djbrown_rotonews Sent: Wednesday, June 28, 2006 7:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Keeping DataGrid from scrolling to top on update to dataProvider I added a collectionChange event to my XMLListCollection (that's the dataProvider for the grid) as follows: public function preserveScrollPosition(event:CollectionEvent):void { var prevIndex:int = this.dgDelays.verticalScrollPosition; trace(prevIndex = ,prevIndex); this.dgDelays.scrollToIndex(prevIndex); } and the trace info does give me the value of the currentScroll, but the grid still goes back to the top after the data is populated. is refresh() still being called after this guy? --- In [EMAIL PROTECTED]ups.com, Deepa Subramaniam [EMAIL PROTECTED]. wrote: When the actual data comes in, the DataGrid encounters a REFRESH collectionChange event and if you look in ListBase.collectionChangeHandler's REFRESH case, you'll see that the verticalScrollPosition is set to 0. What you need to do is set the scroll position *after* the data has come in and the DataGrid has processed the REFRESH event. -deepa -Original Message- From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of djbrown_rotonews Sent: Tuesday, June 27, 2006 12:42 PM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Re: Keeping DataGrid from scrolling to top on update to dataProvider I actually tried this (my dataProvider for the grid is an XMLListCollection being populated by a jsp. The grid has custom item renderers if that's relevant). anyhow, I have an update button which will call the jsp and get new results when clicked. I've set it up so the click() method correctly captures the scroll position, calls the jsp, and then sets the scrollToIndex to the previous value of the scroll position. It works great while the busy cursor is displayed, but it reverts back to scrolled all the way at the top once the actual data comes in from the jsp (it takes about 3 seconds to update the grid with the new data). any ideas on where the scroll position is being reset? --- In [EMAIL PROTECTED]ups.com, Deepa Subramaniam dsubrama@ wrote: Hi Jordan - You can keep track of the verticalScrollPosition property in your DataGrid and upon receving UPDATES, re-set the verticalScrollPosition to the previous value and the DataGrid will jump to the last scroll position and show the correct content. -deepa From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Jordan Snyder Sent: Monday, June 26, 2006 7:34 PM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Keeping DataGrid from scrolling to top on update to dataProvider Hello All, I am working on an app in which I poll the server quite frequently to get new information. The information comes to me in an XML format that I simply assign as the dataProvider for a DataGrid component. I have to keep in consideration the fact that the user may have selected a certain row, and may want to delete that row even after an update to the dataProvider is made, so I keep track of the selectedIndex property and reselect upon an update. But if the user has not selected a row, the DataGrid will automatically scroll to the top upon an update, even if the user has scrolled to the bottom of the grid. Is there a way around this? I found a way to scrollToIndex(), but no way of getting the currently viewed items. It may have something to do with the various renderer properties available on the DataGrid, but I have a very limited understanding of this, so it's over my head. Surely this problem has been run into before, but I can't seem to find the right combination of search terms to figure out a method of solving it. Does anyone have any ideas or proven methods for the problem
RE: [flexcoders] Chart Data Tip Function
Hey There - Looks like in beta3 dataTipFunction took an Object as its parameter. That has since changed; now, dataTipFunction takes a HitData object that describes the data point. -deepa From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of pasflex Sent: Wednesday, June 28, 2006 11:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Chart Data Tip Function Did the argument for a chart datatip function change in the release? The docs still show it taking a ChartItemEvent, but that seems to cause errors that weren't there in beta3: TypeError: Error #1034: Type Coercion failed: cannot convert mx.charts::HitData@8ec70c1 to mx.charts.events.ChartItemEvent. at mx.charts.chartClasses::ChartBase/::invokeDTFunction() at mx.charts::HitData/get displayText() at mx.charts.chartClasses::DataTip/set data() at mx.charts.chartClasses::ChartBase/::updateDataTipToMatchHitSet() at mx.charts.chartClasses::ChartBase/::processRollEvents() at mx.charts.chartClasses::ChartBase/::mouseMoveHandler() Looks like it might now take HitData. Is this correct or do I have some other issue? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Icons in menu - not working
Hmmm well our Embed expert says that you can make the variable for the embedded asset static, but that seems to be your problem. Ill file a bug on your behalf, but for now, dont make exitOn static and the icon should show up. Let me know if it doesnt Deepa Flex SDK From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Birr Sent: Wednesday, June 28, 2006 4:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Icons in menu - not working I've been racking my brain trying to get icons in themenu bar. I think I'm doing exactly what the docs say but I cannot get any icon to render. Thelabel and actions work perfectly but the icondoes not show up. The icon is embedding properly as I can see it in the icon property of a button in the same file. I've also tried putting the path to the icon file in the xml, no joy. My Menu XML Is: menu menuitem label=File menuitem label=Open data="" / menuitem type=separator / menuitem label=Exit data="" icon=exitOn / /menuitem /menu MyMXML is: mx:Script ![CDATA[ [Embed(source=images/icons/iconExitOn.gif)] public static const exitOn:Class; ]] /mx:Script mx:MenuBar id=menu width=100% x=0 y=0 height=27 dataProvider={menuXml} showRoot=false cornerRadius=3 itemClick=menuHandler(event) labelField=@label iconField=@icon / I cannot find any samples anywhere with icons in the menu, Is this still supported? Can anyone tell me what i'm doing wrong? I am using Flex 2.0 RTM - Kelly __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Icons in menu - not working
Yup, you are correct. I just talked to Roger about this. What is happening is that MenuBar checks to see if an iconField is set. In your case it is, and the MenuBar looks to see if a Class, exitOn, exists with that name in the application or a property on the document with that same name exists. It does, however you cannot access a static var off an instance, only off the class. So, the lookup in the MenuBar code fails. Your workaround of making the embedded asset var non-staic is correct. HTH, deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Birr Sent: Wednesday, June 28, 2006 4:48 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Icons in menu - not working I found my problem. It appears that the menu cannot bind to static vars for images. I solved the problem by specifying { public const myMenuIcon:Class = GlobalIcons.MyCoolIcon; } where GlobalIcons.MyCoolIcon is declared exactly as below. Then pout the local name myMenuIcon in the @icon field of the xml. - Kelly From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Birr Sent: Wednesday, June 28, 2006 4:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Icons in menu - not working I've been racking my brain trying to get icons in themenu bar. I think I'm doing exactly what the docs say but I cannot get any icon to render. Thelabel and actions work perfectly but the icondoes not show up. The icon is embedding properly as I can see it in the icon property of a button in the same file. I've also tried putting the path to the icon file in the xml, no joy. My Menu XML Is: menu menuitem label=File menuitem label=Open data="" / menuitem type=separator / menuitem label=Exit data="" icon=exitOn / /menuitem /menu MyMXML is: mx:Script ![CDATA[ [Embed(source=images/icons/iconExitOn.gif)] public static const exitOn:Class; ]] /mx:Script mx:MenuBar id=menu width=100% x=0 y=0 height=27 dataProvider={menuXml} showRoot=false cornerRadius=3 itemClick=menuHandler(event) labelField=@label iconField=@icon / I cannot find any samples anywhere with icons in the menu, Is this still supported? Can anyone tell me what i'm doing wrong? I am using Flex 2.0 RTM - Kelly __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Icons in menu - not working
Just to be clear, this is not a bug. This is just a fact of life since were using some sort of indirection of specifying an icon attribute in the dataProvider and then using an iconField property to look up that reference. So, in cases like that the embedded asset needs to not be a static variable. Other cases without this indirection, like a Button icon, will work correctly. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deepa Subramaniam Sent: Wednesday, June 28, 2006 4:59 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Icons in menu - not working Yup, you are correct. I just talked to Roger about this. What is happening is that MenuBar checks to see if an iconField is set. In your case it is, and the MenuBar looks to see if a Class, exitOn, exists with that name in the application or a property on the document with that same name exists. It does, however you cannot access a static var off an instance, only off the class. So, the lookup in the MenuBar code fails. Your workaround of making the embedded asset var non-staic is correct. HTH, deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Birr Sent: Wednesday, June 28, 2006 4:48 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Icons in menu - not working I found my problem. It appears that the menu cannot bind to static vars for images. I solved the problem by specifying { public const myMenuIcon:Class = GlobalIcons.MyCoolIcon; } where GlobalIcons.MyCoolIcon is declared exactly as below. Then pout the local name myMenuIcon in the @icon field of the xml. - Kelly From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Birr Sent: Wednesday, June 28, 2006 4:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Icons in menu - not working I've been racking my brain trying to get icons in themenu bar. I think I'm doing exactly what the docs say but I cannot get any icon to render. Thelabel and actions work perfectly but the icondoes not show up. The icon is embedding properly as I can see it in the icon property of a button in the same file. I've also tried putting the path to the icon file in the xml, no joy. My Menu XML Is: menu menuitem label=File menuitem label=Open data="" / menuitem type=separator / menuitem label=Exit data="" icon=exitOn / /menuitem /menu MyMXML is: mx:Script ![CDATA[ [Embed(source=images/icons/iconExitOn.gif)] public static const exitOn:Class; ]] /mx:Script mx:MenuBar id=menu width=100% x=0 y=0 height=27 dataProvider={menuXml} showRoot=false cornerRadius=3 itemClick=menuHandler(event) labelField=@label iconField=@icon / I cannot find any samples anywhere with icons in the menu, Is this still supported? Can anyone tell me what i'm doing wrong? I am using Flex 2.0 RTM - Kelly __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Keeping DataGrid from scrolling to top on update to dataProvider
Hi Jordan You can keep track of the verticalScrollPosition property in your DataGrid and upon receving UPDATES, re-set the verticalScrollPosition to the previous value and the DataGrid will jump to the last scroll position and show the correct content. -deepa From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jordan Snyder Sent: Monday, June 26, 2006 7:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Keeping DataGrid from scrolling to top on update to dataProvider Hello All, I am working on an app in which I poll the server quite frequently to get new information. The information comes to me in an XML format that I simply assign as the dataProvider for a DataGrid component. I have to keep in consideration the fact that the user may have selected a certain row, and may want to delete that row even after an update to the dataProvider is made, so I keep track of the selectedIndex property and reselect upon an update. But if the user has not selected a row, the DataGrid will automatically scroll to the top upon an update, even if the user has scrolled to the bottom of the grid. Is there a way around this? I found a way to scrollToIndex(), but no way of getting the currently viewed items. It may have something to do with the various renderer properties available on the DataGrid, but I have a very limited understanding of this, so it's over my head. Surely this problem has been run into before, but I can't seem to find the right combination of search terms to figure out a method of solving it. Does anyone have any ideas or proven methods for the problem? Any help would be greatly appreciated. Thank you, Jordan Snyder [EMAIL PROTECTED] www.jordansnyder.com __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] expanding Tree Nodes
You now want to use Tree.expandItem() to open or close a branch node. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mike Wertheim Sent: Tuesday, June 27, 2006 1:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] expanding Tree Nodes According to http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0611.html , the following code used to work in Flex Beta 2 but stopped working in Beta 3. : ![CDATA[ function initTree(){ tree1.setIsOpen(tree1.getNodeDisplayedAt(0), true); } ]] /mx:Script mx:Tree id=tree1 ... creationComplete=initTree(); ... /mx:Tree What is the correct way to do this in the latest version? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: Keeping DataGrid from scrolling to top on update to dataProvider
When the actual data comes in, the DataGrid encounters a REFRESH collectionChange event and if you look in ListBase.collectionChangeHandler's REFRESH case, you'll see that the verticalScrollPosition is set to 0. What you need to do is set the scroll position *after* the data has come in and the DataGrid has processed the REFRESH event. -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of djbrown_rotonews Sent: Tuesday, June 27, 2006 12:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Keeping DataGrid from scrolling to top on update to dataProvider I actually tried this (my dataProvider for the grid is an XMLListCollection being populated by a jsp. The grid has custom item renderers if that's relevant). anyhow, I have an update button which will call the jsp and get new results when clicked. I've set it up so the click() method correctly captures the scroll position, calls the jsp, and then sets the scrollToIndex to the previous value of the scroll position. It works great while the busy cursor is displayed, but it reverts back to scrolled all the way at the top once the actual data comes in from the jsp (it takes about 3 seconds to update the grid with the new data). any ideas on where the scroll position is being reset? --- In flexcoders@yahoogroups.com, Deepa Subramaniam [EMAIL PROTECTED] wrote: Hi Jordan - You can keep track of the verticalScrollPosition property in your DataGrid and upon receving UPDATES, re-set the verticalScrollPosition to the previous value and the DataGrid will jump to the last scroll position and show the correct content. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jordan Snyder Sent: Monday, June 26, 2006 7:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Keeping DataGrid from scrolling to top on update to dataProvider Hello All, I am working on an app in which I poll the server quite frequently to get new information. The information comes to me in an XML format that I simply assign as the dataProvider for a DataGrid component. I have to keep in consideration the fact that the user may have selected a certain row, and may want to delete that row even after an update to the dataProvider is made, so I keep track of the selectedIndex property and reselect upon an update. But if the user has not selected a row, the DataGrid will automatically scroll to the top upon an update, even if the user has scrolled to the bottom of the grid. Is there a way around this? I found a way to scrollToIndex(), but no way of getting the currently viewed items. It may have something to do with the various renderer properties available on the DataGrid, but I have a very limited understanding of this, so it's over my head. Surely this problem has been run into before, but I can't seem to find the right combination of search terms to figure out a method of solving it. Does anyone have any ideas or proven methods for the problem? Any help would be greatly appreciated. Thank you, Jordan Snyder [EMAIL PROTECTED] www.jordansnyder.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 Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Tabbing through items in a container
Currently in the framework, you cannot tab through components like Label, Text and Image. They will not respond with a focus highlight which other controls, like a Button, do. Try your same test case with a Button and you'll see that the controls respond to tabbing in the order specified by tabIndex. -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of polestar11 Sent: Tuesday, June 20, 2006 6:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tabbing through items in a container Hi there I am trying to build a custom list that allows the same type of cursor tabbing though child items as a list / datagrid. I have created a custom class that extends HBox. I have chosen a container rather than a list to extend from, because I do not want a fixed column width for items. I have tried various test cases to implement tabbing though a container's children with no luck. Ultimately I want to build a custom class that extends a container and dynamically adds child UI-items that can be tabbed through. Alternatively, is there a way to allow for dynamic column sizes for items within a list? Code: mx:Canvas tabChildren=true mx:Label text=1. / mx:Label text=A tabIndex=0 tabEnabled=true / mx:Label text=B tabIndex=1 tabEnabled=true / mx:Label text=2. / mx:Label text=C tabIndex=2 tabEnabled=true / mx:Label text=D tabIndex=3 tabEnabled=true / /mx:Canvas -- 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 Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] ContextMenu and DataGrid question
Hi So the mouseTarget property is a reference to the DataGridItemRenderer which the context menu opened upon. You can access the listData property off of a DataGridItemRenderer to then access rowIndex and columnIndex and whatever other goodies youd like. Check out my example below. Cheers, Deepa ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml creationComplete=initComp(); mx:Script ![CDATA[ import flash.ui.*; import flash.events.*; import mx.controls.dataGridClasses.*; private var m:ContextMenu; private function initComp():void { myDataGrid.dataProvider = [ { Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99, Rating:'Excellent' }, { Artist:'Pavement', Album:'Crooked Rain, Crooked Rain', Price:10.99, Rating:'Excellent' }, { Artist:'Pavement', Album:'Wowee Zowee', Price:12.99, Rating:'Excellent' }, { Artist:'Pavement', Album:'Brighten the Corners', Price:11.99, Rating:'Good' }, { Artist:'Pavement', Album:'Terror Twilight', Price:11.99, Rating:'Good' }, { Artist:'Other', Album:'Other', Price:5.99, Rating:'Bad' } ]; createContextMenu(); myDataGrid.contextMenu = m; } private function createContextMenu():void { m = new ContextMenu(); m.addEventListener(menuSelect, menuSelectHandler); m.hideBuiltInItems(); var customItemsArr:Array = new Array(); var buy:ContextMenuItem = new ContextMenuItem(Buy); buy.addEventListener(menuItemSelect, buyHandler); var rate:ContextMenuItem = new ContextMenuItem(Change Rating); rate.addEventListener(menuItemSelect, rateHandler); customItemsArr.push(buy); customItemsArr.push(rate); m.customItems = customItemsArr; } private function buyHandler(e:ContextMenuEvent):void { //..blah } private function rateHandler(e:ContextMenuEvent):void { //..blah } private function menuSelectHandler(e:ContextMenuEvent):void { var renderer:DataGridItemRenderer = DataGridItemRenderer(e.mouseTarget); trace(rowIndex: + renderer.listData.rowIndex); trace(columnIndex: + DataGridListData(renderer.listData).columnIndex); } ]] /mx:Script mx:DataGrid id=myDataGrid/ /mx:Application From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of djbrown_rotonews Sent: Wednesday, June 14, 2006 9:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ContextMenu and DataGrid question I'm trying to set up a ContextMenu inside a DataGrid that has knowledge of where in the grid the right click occured. All I'm able to see via the ContextMenuEvent is the mouseTarget that knows about the underlying text in the cell. I'm needing something similiar to rowIndex and columnIndex that ListEvent provides (allowing me subsequent access to listData etc..) Any examples/tips would be appreciated. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] MenuItem with icon
You need to be sure your assets are embedded in your swf, then all you have to do is specify an iconField on your Menu (ie: myMenu.iconField = @icon). Here's a simple working example: mx:Script ![CDATA[ [Embed(source=sendBack.jpg)] public var _sendBack:Class; import mx.controls.Menu; private var menuData:XML= root menuitem icon=_sendBack label=Send To Back action="" / ... ... ... /root; private function go():void { var menu:Menu = Menu.createMenu(this,menuData,false); menu.labelField=@label; menu.iconField = @icon; menu.show(); } ]] /mx:Script Also, you can specify an iconFunction for better control over which icon is displayed for each row. -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Franca Daniel Sent: Friday, May 05, 2006 5:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] MenuItem with icon How can i put icon on menuitem ? i have trying this : mx:XML menuitem label=Option menuitem label= A1 data=""> icon=images/ico.png/ menuitem label=A2 data="" / menuitem label=A3 data="" / /menuitem /mx:XML but does not work... HELP PLEASE! ___ Abra sua conta no Yahoo! Mail: 1GB de espaço, alertas de e-mail no celular e anti-spam realmente eficaz. http://br.info.mail.yahoo.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] ComboBox Fields
There is the labelField property, which you can use to specify which field in the objects of the dataProvider should be used to display the label for each item. If you require further formatting, you can set a labelFunction which is a function that is run on each item to determine the label for display. The docs have examples of both these properties in play. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Antoine Malpel Sent: Tuesday, May 09, 2006 8:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ComboBox Fields I need to store the result of a Remote Object's method into a ComboBox The comboBox fills but I don't understand how I could specify the ID field and label field so all the field are collapsed in label ... Didn't find this in API doc /// -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex 2.0 b2: XML
You can delete any portion of an XML document by using the 'delete' operator in e4x. -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tyombria Sent: Saturday, May 06, 2006 12:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 2.0 b2: XML Hi. How can I remove child from XML object? There is no method 'removeChild'... Although I can 'appendChild', 'insertBefore...', 'setChildren'... -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Validation framework and changing the way tooltips get triggered (F2B2)
If you're using Flex 2, check out triggerEvent in the Validator class. That allows you to specify which event triggers the validation. I believe by default this happens when you remove focus from the component, but you can use triggerEvent to customize the behavior. -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pk_wasp Sent: Friday, May 05, 2006 6:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Validation framework and changing the way tooltips get triggered (F2B2) At the moment the validators will highlight a field in error and if you mouse over it, it will display the error message. Is it possible (this could be a feature request if its not too late :) ), to select the way this is triggered?. Rather then just only having the mouseOver event triggering the display of the error message tooltips, allow other events to trigger it as well e.g. when a users tabs to a field that is in error, we can show the error message tooltip on a focusIn event - this might be handy for Call Centre Applications where users tend to prefer to use the keyboard rather then the mouse etc. maybe a displayTriggerEvent attribute in the validators or something :) cheers -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex 2 beta 3 available
Title: Flex 2 beta 3 available You need to re-build your swfs to be compliant with the Beta 3 source code and be sure to use the player that is packaged with the Beta 3 build. There should be documentation on the labs site that call out code changes in the Flex framework and in the Player that were made between the betas. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JB Sent: Monday, May 08, 2006 6:18 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 2 beta 3 available Hi, I just downloaded the new flash player 9(mac version), but I get this error: VerifyError: Error #1014: Class flash.util::Timer could not be found. at mx.managers::SystemManager/initialize() at mx.managers::SystemManager/::initHandler() Does anyone know why this is? These area swfs builded with beta 2. It seems like none of my swfs work anymore:( This is on the mac. Thanks so much, John João Fernandes [EMAIL PROTECTED] wrote: Just to say that Flex 2 Beta 3 is already available on labs ! João Fernandes How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] DadtaGrid Distress
What format is your data in? I'm guessing you need to set dataFields on your DataGridColumns to instruct the DataGridColumn which field or property in the dataset to associate with itself. Try tracing out your data and read up on dataField and labelFunction (labelFunction helps format your data for display in the DataGrid). Goodluck - deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Faisal Abid Sent: Thursday, May 04, 2006 2:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] DadtaGrid Distress Okay, Thanks to alot of people i got that webservice working however, Now I have a diffrent problem , im calling an rss feed , but when it is retured it doesnt populate the datagrid , i mean you can see something is populating but it is invisible , there is a scroll bar and everything but it is invisible. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Two Flex 2 Components Questions
rowHeight is a property on List-based components. MenuBar does not derive from ListBase so you cannot set rowHeight on the MenuBar. You need to set it on the individual menus the MenuBar pops up. You can use the getMenuAt() method to grab each individual menu from the MenuBar and set rowHeight there. Try something like: mx:XML id=dp node label=root node label=one node label=child / /node node label=two node label=child / /node node label=three node label=child / /node /node /mx:XML mx:Script ![CDATA[ import mx.controls.Menu; private function setRowHeights(mb:MenuBar):void { for (var i:int = 0; i dp.children().length(); i++) { mb.getMenuAt(i).rowHeight = 50; } } ]] /mx:Script mx:MenuBar id=mb dataProvider={dp} showRoot=false labelField=@label creationComplete=setRowHeights(mb);/ -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sascha Balkau Sent: Tuesday, May 02, 2006 10:06 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Two Flex 2 Components Questions The opendelay is gone but the rowHeight hasn't changed. Is there anything else I need to take into account to make this work? I think rowHeight is a property (not a style). Manish It seems not! If I try to use it as a property on the MenuBar tag I get an error. Sascha -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] How to set the Color of a Slider Thumb?
Well in Flex 2 you'd set the fillColors style to color the slider thumb. You would pass in the same color for both values for the thumb to have a flat color, or you can achieve a color gradient by varying the colors for both the values. I think the same might be true in Flex 1.5, but I haven't tried it out. deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexabledev Sent: Tuesday, April 25, 2006 5:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to set the Color of a Slider Thumb? Can someone tell me how to do this? Thanks! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Adobe Bridges Flash, Flex with AJAX
Hi Im glad you posted this J Here is more information about the Flex-AJAX bridge including steps to download and install it: http://labs.macromedia.com/wiki/index.php/Flex_Framework:FABridge Also Ely Greenfield, an engineer on the Flex Framework team and a frequent poster to this list, has a great blog entry about the bridge and what it allows developers to do: http://www.quietlyscheming.com/blog/2006/03/06/flex-and-ajax Just an FYI Deepa Subramaniam Flex Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Renaun Erickson Sent: Wednesday, March 08, 2006 6:44 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Adobe Bridges Flash, Flex with AJAX Here is an article talking about Adobe's development of Flex-AJAX bridge frameworks. Adobe Bridges Flash, Flex with AJAX This is a great move by Adobe. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex2 bug report: TabBar selectedIndex
These TabBar issues have all been fixed in our internal builds so keep an eye out for the next public drop to resolve this for you. -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: Wednesday, March 01, 2006 5:54 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex2 bug report: TabBar selectedIndex On 3/1/06, Dion Mendel [EMAIL PROTECTED] wrote: The code below should create a TabBar with the 2nd tab selected. The TabBar is created and displayed but no tab is selected. [snip] Okay it's not working. If you set `selectedIndex` to 0, it works. There's one more bug: when a tab is selected programmatically, the text doesn't turn bold. Manish -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS * Visit your group flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Programatically move Tree Component Scrollbar
You should be able to use the vPosition and hPosition properties on Tree to move its vertical or horizontal scrollbar. To get the scrollbar to scroll to the selectedItem you can set vPosition/hPosition to the selectedIndex. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sufibaba Sent: Tuesday, February 21, 2006 11:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Programatically move Tree Component Scrollbar Hi all, Just wondering if anyone knows how to use actionscript to scroll the tree control. Cheers, Tim -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS * Visit your group flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] LINK PROBLEM
Are you sure you're setting the label property on Link? mx:Link [EMAIL PROTECTED] click=navigateToURL(new URLRequest(...))/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of motareal Sent: Thursday, February 16, 2006 5:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LINK PROBLEM Hi, i have a flex application, which is basically composed by a divided box, on the left theres a tree navigation created by an xml file thru an asp file, on the right there are the results that appears if you click on the tree sections. This results are into a database, and are called through the function [EMAIL PROTECTED] As you can see from the code attached down here, results are divided in a serie of Label and 2 TextInput, this last two, should contain a link, that is also took from the database file, but it doesnt work, i tried several way, and i dont know how to do it, some of you have any idea please? It should be linked: [EMAIL PROTECTED] and: [EMAIL PROTECTED] I appreciated... Max ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; creationComplete=srv.send() width=580 horizontalAlign=center height=379 borderStyle=solid backgroundColor=#527FC1 mx:Script ![CDATA[ [Bindable] public var selectedNode:Object; [Bindable] public var XLC:XML; public function initList(event:Event) { XLC = event.target.result; } public function treeChanged(event:Event) { selectedNode=Tree(event.target).selectedNode; } ]] /mx:Script mx:HTTPService id=srv url=../bin/tree.asp resultFormat=e4x result=initList(event)/ mx:HDividedBox width=100% height=320 mx:Tree id=myTree width=266 height=320 labelField=@label rootVisible=false dataProvider={XLC} change=treeChanged (event)/ mx:VBox width=234 textAlign=center height=320 verticalAlign=middle mx:Label text=[EMAIL PROTECTED] fontFamily=Verdana fontSize=14 fontWeight=bold textAlign=center width=250 color=#ff/ mx:Label text=[EMAIL PROTECTED] textAlign=center width=250 color=#ff fontWeight=bold fontSize=11/ mx:Label text=[EMAIL PROTECTED] textAlign=center width=250 color=#ff fontWeight=bold fontSize=11/ mx:Label text=[EMAIL PROTECTED] width=250 fontWeight=bold fontSize=14 color=#00/ mx:Label text=[EMAIL PROTECTED] width=250 fontWeight=bold color=#ff fontSize=12/ mx:Label text=[EMAIL PROTECTED] width=250 fontWeight=bold color=#ff fontSize=12/ mx:TextInput text=[EMAIL PROTECTED] editable=true width=250 fontWeight=bold backgroundColor=#527FC1 color=#ff fontSize=11/ mx:TextInput text=[EMAIL PROTECTED] editable=true width=250 fontWeight=bold backgroundColor=#527FC1 color=#ff fontSize=11/ /mx:VBox /mx:HDividedBox /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS * Visit your group flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders]Combobox feature?
This is a feature. The List-based components, of which ComboBox is one, allow de-selection by Ctrl+click on a selected item. There are a few ways to workaround this (subclass the component, perhaps). One that comes to mind is to capture keyboard event and cross-track that with the selectedItem to decipher when Ctrl+click on the currently selectedItem has occurred. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stanislav Zayarsky Sent: Thursday, February 16, 2006 7:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders]Combobox feature? Hello All, Try next: 1. Create combobox with some data inside 2. Run app 3. Choose any item inside in combobox 4. Open combobox again and CTRL+click on the same item. Result: Empty selected value in combobox. Question: Is this feature or the bug? If feature, how I can remove it? Best regards Stanislav -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] BUG :: List while using the mouseWheel/scroll
Hi - What build are you using? I can't seem to reproduce this bug on our current internal build. I know we tackled a lot of mousing/scrolling RTE's in the List-based components but I don't want to dismiss this before I know what build you're using. Thanks, deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Teoti Graphix Sent: Thursday, February 16, 2006 6:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] BUG :: List while using the mouseWheel/scroll Hello, Just reporting a strange bug. I get error: TypeError: Error #1010: undefined has no properties. at mx.controls.listclasses::ListBase/scrollVertically() at mx.controls.listclasses::ListBase/set vPosition() at mx.controls.listclasses::ListBase/mouseWheelHandler() Here is the code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* layout=absolute creationComplete=loadData(); mx:Script ![CDATA[ public var dataProvider:Array; public function loadData():void { dataProvider = [ {label:Item 1, data:This is item 1}, {label:Item 2, data:This is item 2}, {label:Item 3, data:This is item 3}, {label:Item 4, data:This is item 4}, {label:Item 5, data:This is item 5}, {label:Item 6, data:This is item 6}, {label:Item 7, data:This is item 7} ] itemList.dataProvider = dataProvider; itemList.addEventListener(change, showItem); } private function showItem(event):void { itemView.text = itemList.selectedItem.data; } ]] /mx:Script mx:Panel x=10 y=10 width=250 height=250 layout=vertical mx:VDividedBox width=100% height=100% mx:List id=itemList width=100% height=100%/ mx:TextArea id=itemView width=100% height=100%/ /mx:VDividedBox /mx:Panel /mx:Application Now mess around with the list select some items, then move the divider bar. Bam it gives me the error above. Peace, Mike -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS * Visit your group flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Datagrid sort Arrows
What Matt means is that there needs to be a Sort object that is assigned to the collections sort property. You dont need to actually trigger the sort (by calling refresh() on the collection) but there needs to be a Sort assigned. For example: localCol = new ArrayCollection(people); var s:Sort = new Sort(); s.fields = [new SortField(name)]; localCol.sort = s; dg.dataProvider=localCol; dg.placeSortArrow(); localCol has a Sort object assigned to it but not triggered. The DataGrid will show the collection unsorted and with the sort arrow in the column header. If you want the Sort to be applied, all you have to do is call localCol.refresh() before assigning it to the DataGrid. HTH deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Tuesday, February 14, 2006 7:19 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Datagrid sort Arrows Hmmm, Im calling it in the return of the service that populates my datagrid and Im getting nothing. What specifically do you mean sort was assigned? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Monday, February 13, 2006 10:43 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Datagrid sort Arrows Call placeSortArrow() on the DG and assuming the Sort was assigned to the Collection it will do its best to place it. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Monday, February 13, 2006 12:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid sort Arrows Anyway to start a DataGrid with these showing on initial load? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] How to deselect all items in a list?
You can always set the selectedItems or selectedIndices properties on the list-based components to an empty array to programmatically force de-selection. The component's UI will respond accordingly. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tobiaspatton Sent: Tuesday, February 14, 2006 4:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to deselect all items in a list? In my experience standard list widgets on various platform implement a behaviour where clicking in an empty row of the list deselects all the list rows. The Flex list component doesn't seem to behave this way by default. Is there a way of enabling this behaviour without resorting to event listeners? Thanks. Tobias. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS * Visit your group flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] how to display ruler in mx:Grid
We also provide the HRule and VRule components which you can use to create a dividing line in a container. You can drop those two components into a container just like any other control (ie: as a child of your Grid container). deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ashish Goyal Sent: Friday, January 06, 2006 12:53 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] how to display ruler in mx:Grid If you mean displaying grid with borders, you can do that by setting borderStyle property to solid in Grid, GridRow and GridItem tags. You can also change the border thickness by setting borderThickness property to a valid number. Let me know if that doesn't answer your question. Thanks -Ashish -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of t_msreddy Sent: Friday, January 06, 2006 8:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to display ruler in mx:Grid I want to display a grid with ruler. Can you please tell me how to do it? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] RE: Paint cell of dataGrid in different color
Hi - This question has come up many times on this list. Below is the cut paste from a previous email. Should get you on the right track. -deepa Changing the background color of a Datagrid Row in Flex I have heard this question many times and I don't think it is documented. If you want to change the color of an entire row within a Datagrid in Flex use the following code dg.setPropertiesAt(2, {backgroundColor:0xFF}); Where dg is your datagrid and the first parameter is the row of number you want to change -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robson Thanael Poffo Sent: Monday, February 13, 2006 8:01 AM To: flexcoders@yahoogroups.com Subject: Paint cell of dataGrid in different color hi people, I like to know how i can paint one cell of the dataGrid in different color. I receive the data of the dataGrid in one array and pass to the datagrid by binding. Thanks, Robson Thanael Poffo -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] DateField selectedDate toggle
I've filed a bug and its being looked at internally. deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Thursday, February 02, 2006 10:07 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DateField selectedDate toggle Have you filed a bug on this issue? I don't have a better way for you... Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Monday, January 30, 2006 2:22 PM To: Flexcoders Subject: [flexcoders] DateField selectedDate toggle If you select a day in a DateChooser or DateField, it sets the selectedDate to the Date value chosen. If you select it again, it sets it to undefined. This is not desirable. This is the only control that does not follow the List way of working: - click to select - control + click to deselect This is driving our validation crazy as well. In Flash MX 2004, I simply extended the CalendarLayout DateChooser to fix the problem. I did not allow de-selection, therefore never had to worry about selectedDate toggling to a non-selectable value if a user clicks the same date again. In Flex, this isn't so straightforward. For now, I'm going to just try to extend the DateField, extend DateChooser's getter/setter functions (since there are like 3 functions that are too huge to extend that atcually do the re-setting of the variable), and then hi-jack the class that DateField throws up in the PopUpManager to use mine instead. ...anyone have a... you know... better way? Perhaps an already fixed DateField? --JesterXL -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS * Visit your group flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Get the selected column of a dataGrid
Try using the cellPress event instead of the change event on DataGrid. Something like this should be what you want: mx:DataGrid dataProvider={col} cellPress=trace(event.columnIndex + event.columnName) / -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason Doyle Sent: Thursday, February 02, 2006 9:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Get the selected column of a dataGrid I have been trying to get the column index or name of a selected column in a dataGrid. I have tried: dataGridName.getCellIndex().columnIndex and event.target.getCellIndex().columnIndex in a change event but that doesnt work. Any ideas? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] flex 1.5 - mx:List selectedIndex question
Yes, you'll want to use the vPosition property, which is available on all the List components, to scroll your List accordingly. vPosition can take a value like the row number you want to scroll too. So when you set the selectedIndex on your List in the 3rd tab, set the vPosition of that List to the same selectedIndex value and the scroller will move there with the selected row in view. -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert Brueckmann Sent: Thursday, February 02, 2006 8:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] flex 1.5 - mx:List selectedIndex question I have 3 tabs, each tab has a List component, these lists all share the same dataprovider from the parent application. If the user changes their selection in the list on the first tab and then goes to the 3rd tab, I have a function that sets the selected-index of the list component on the 3rd tab to the same item the user selected on the 1st tab...the problem is, the rowCount on the List component it 3 and if the user scrolls down to the 6th item in the List on the first tab and then goes to the 3rd tab, the 6th item is correctly selected, but the List component has not scrolled down to the 6th element, the user has to actually scroll to see that the 6th element is selected in the List component on the 3rd tab. Is there a way to ensure the List component visually scrolls to the selected-index? robert l. brueckmann vice president merlin securities 595 madison avenue new york, ny 10022 p: 212.822.4821 f: 212.822.4820 This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission. Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] TabNavigator and Flex2 Beta
I just glanced quickly at the code and it looks like it is an issue with the measuring of the label text for the selected tab. The bug only happens when the leading characters of the selected tabs label starts with capital letters. If you try: mx:VBox label=afta mx:VBox label=aFTA Or similar variations youll see the TabNavigator will layout correctly. If you can live with alternative labels then you might be ok, but if others have workarounds please share them. Thanks, deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Thursday, February 02, 2006 7:58 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] TabNavigator and Flex2 Beta Any luck with that workaround or has anyone else figured a way to fix this? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deepa Subramaniam Sent: Wednesday, February 01, 2006 1:04 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] TabNavigator and Flex2 Beta Hi Jonathan Ok, thats definitely a bug. It something to do with the initial layout of the tab, because if you select another tab and come back to the AFTA tab youll see that it doesnt truncate (though it is a bit clipped). Ill log this for you. Im not sure of a workaround off the top of my head Ill investigate a bit more and see if I can find one. deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Wednesday, February 01, 2006 11:25 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] TabNavigator and Flex2 Beta Yup still doesnt work. Even if I put in tabWidth to like 200 (no more percentages in Flex2 beta), it still messes up. mx:TabNavigator id=mainTN width=70% height=100% backgroundAlpha=0 marginLeft=0 marginRight=0 change=refreshDG() mx:VBox label=AFTA width=100% height=100% backgroundAlpha=0 /mx:VBox mx:VBox label=Emergency Monitor width=100% height=100% backgroundAlpha=0 /mx:VBox mx:VBox label=Communication width=100% height=100% backgroundAlpha=0 /mx:VBox /mx:TabNavigator _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deepa Subramaniam Sent: Wednesday, February 01, 2006 12:03 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] TabNavigator and Flex2 Beta Hi Jonathan I cant seem to reproduce your case. I cant size my TabNavigator such that the label for a tab is not truncated when not selected, and then truncated when selected. Could you send me some code that reproduces that case? Thanks, deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Wednesday, February 01, 2006 10:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] TabNavigator and Flex2 Beta Just noticed, when you click on a tabthe font weight changes and the label doesnt resize nowso youll get AFTA becoming AFT even when there is plenty of room. Work-around for this bug? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] TabNavigator and Flex2 Beta
Hi Jonathan I cant seem to reproduce your case. I cant size my TabNavigator such that the label for a tab is not truncated when not selected, and then truncated when selected. Could you send me some code that reproduces that case? Thanks, deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Wednesday, February 01, 2006 10:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] TabNavigator and Flex2 Beta Just noticed, when you click on a tabthe font weight changes and the label doesnt resize nowso youll get AFTA becoming AFT even when there is plenty of room. Work-around for this bug? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] TabNavigator and Flex2 Beta
Hi Jonathan Ok, thats definitely a bug. It something to do with the initial layout of the tab, because if you select another tab and come back to the AFTA tab youll see that it doesnt truncate (though it is a bit clipped). Ill log this for you. Im not sure of a workaround off the top of my head Ill investigate a bit more and see if I can find one. deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Wednesday, February 01, 2006 11:25 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] TabNavigator and Flex2 Beta Yup still doesnt work. Even if I put in tabWidth to like 200 (no more percentages in Flex2 beta), it still messes up. mx:TabNavigator id=mainTN width=70% height=100% backgroundAlpha=0 marginLeft=0 marginRight=0 change=refreshDG() mx:VBox label=AFTA width=100% height=100% backgroundAlpha=0 /mx:VBox mx:VBox label=Emergency Monitor width=100% height=100% backgroundAlpha=0 /mx:VBox mx:VBox label=Communication width=100% height=100% backgroundAlpha=0 /mx:VBox /mx:TabNavigator _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deepa Subramaniam Sent: Wednesday, February 01, 2006 12:03 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] TabNavigator and Flex2 Beta Hi Jonathan I cant seem to reproduce your case. I cant size my TabNavigator such that the label for a tab is not truncated when not selected, and then truncated when selected. Could you send me some code that reproduces that case? Thanks, deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Wednesday, February 01, 2006 10:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] TabNavigator and Flex2 Beta Just noticed, when you click on a tabthe font weight changes and the label doesnt resize nowso youll get AFTA becoming AFT even when there is plenty of room. Work-around for this bug? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] DataGrid Bug?
Title: Message Hi - This is a bug in DataGrid that is already logged in our bugbase. Thanks for the heads up. deepa -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sreejith UnnikrishnanSent: Wednesday, February 01, 2006 12:34 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] DataGrid Bug? I just noticed a bug with the datagrid: The issues are as follows: 1. dataGrid headerHeight=0, does not hide the header. INstead the firstRow is overlapped on the header.2. If you scroll down and then up, the some rows including the second, blanks out! I have an example posted at the following URL: http://www.indesg.com/archives/2006/02/datagrid_bug_01_1.html Sree -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Transparent Tilelist
Hi - backgroundAlpha will only work if a backgroundColor or backgroundImage is specified. Try adding one of those and then setting backgroundAlpha and you should achieve transparency. Deepa Subramaniam -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pioplacz Sent: Saturday, January 28, 2006 2:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Transparent Tilelist Hi! Is there any way to make tilelist transparent. The backgroundalpha does not work :( -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Unable to detect changes to variable
Just to add some context, by marking your page and perPage variables with the Bindable metadata, Flex will monitor those properties for changes and generate events for when something in that property chain changes. This is a new mechanism added in Flex 2. From: flexcoders@yahoogroups.com on behalf of Joan Tan Sent: Mon 1/30/2006 5:58 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Unable to detect changes to variable You need to make the variable bindable. Try this: // variables [Bindable] public var perPage:Number = 6; [Bindable] public var page:Number = 1; Joan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Albert Sent: Monday, January 30, 2006 5:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Unable to detect changes to variable I defined the page variable in Script and want to increment it on click of a button with the next() function. The variable is bound to a parameter of an HTTPService call (get_data). The page variable works on the initial HTTPService call, but can not be changed. I get the compile warning Unable to detect changes to page. Code: mx:Script ![CDATA[ // variables var perPage:Number = 6; var page:Number = 1; public function next() : Void { page++; get_data.send(); } ]] /mx:Script -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS *Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. *To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] *Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ winmail.dat
RE: [flexcoders] Return of the Menu Depth Monster!
Have you tried parenting the Menu to the Application or some higher-level container (ie: pass a container instead of null as the first argument in createMenu())? __ Find Me: 2701 - 601 Townsend 415.832.7668 [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Friday, January 27, 2006 3:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Return of the Menu Depth Monster! Alright, after reading through all the archives, cflex.net and googleIve come to the conclusion I cant solve my issue J I have a super basic menu function. public function showMenu() { myMenu = Menu.createMenu(null, myEMP2Service.result.query.row); myMenu.show(200, 10); Alert.show(trace: +myMenu,hey!,Alert.OK); } I call this from a button on my movie. mx:Button id=clickBtn label=Add Note click=showMenu()/ It works and I see the alert. Now I do the same with a datagrid, right after the button, in the same element/level in the movie. mx:DataGrid id=AFTAsDG width=100% height=95% dataProvider={myAFTAService.result.query.row} change=showMenu() No menu! But the alert shows the menu exists! No matter where I move it, it doesnt show up. Can you not do menus on changeEvents for Datagrids? Im assuming its a depth issue of some sortideas? Jonathan Miranda -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Stand-alone scrollbar possible?
Hi - We provide the HScrollBar and VScrollBar components for you to instantiate as standalone scrollbars. Here's an example of a vertical scrollbar that controls the scrolling in a horizontal scroll bar. mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; mx:VScrollBar id=v height=200 scroll=h.scrollPosition = v.scrollPosition maxPos=200 minPos=0 / mx:HScrollBar id=h width=200 maxPos=200 minPos=0/ /mx:Application In your case you'd instantiate a standalone scrollbar and write a handler for its scroll event that controls the scrolling in the other UI component this scrollbar is managing. HTH, deepa __ Find Me: 2701 - 601 Townsend 415.832.7668 [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sreejith Unnikrishnan Sent: Wednesday, January 25, 2006 3:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Stand-alone scrollbar possible? Rather strange requirement that I have. Is it possible to have a stand-alone scrollbar? Basically, I need to implement a scrollbar that controls the scroll in another UI component. Any suggestion is welcome. Regards Sree -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS * Visit your group flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Stand-alone scrollbar possible?
Yup, these components are provided in the 1.5 framework so this should be possible. Glancing at the ASDocs, there shouldnt be any syntax changes between the 2.0 example and running it in 1.5. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sreejith Unnikrishnan Sent: Wednesday, January 25, 2006 11:54 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Stand-alone scrollbar possible? Thanks Deepa, I noticed that your answer was wrt 2.0. My requirement was for 1.5. Or, are these components available in 1.5? Sree - Original Message - From: Deepa Subramaniam To: flexcoders@yahoogroups.com Sent: Thursday, January 26, 2006 12:43 AM Subject: RE: [flexcoders] Stand-alone scrollbar possible? Hi - We provide the HScrollBar and VScrollBar components for you to instantiate as standalone scrollbars. Here's an example of a vertical scrollbar that controls the scrolling in a horizontal scroll bar. mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml mx:VScrollBar id=v height=200 scroll=h.scrollPosition = v.scrollPosition maxPos=200 minPos=0 / mx:HScrollBar id=h width=200 maxPos=200 minPos=0/ /mx:Application In your case you'd instantiate a standalone scrollbar and write a handler for its scroll event that controls the scrolling in the other UI component this scrollbar is managing. HTH, deepa __ Find Me: 2701 - 601 Townsend 415.832.7668 [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sreejith Unnikrishnan Sent: Wednesday, January 25, 2006 3:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Stand-alone scrollbar possible? Rather strange requirement that I have. Is it possible to have a stand-alone scrollbar? Basically, I need to implement a scrollbar that controls the scroll in another UI component. Any suggestion is welcome. Regards Sree -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS * Visit your group flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Bugs with Flex2
You could try programmatically removing the column and then adding it back in when you needed it using the removeColumnAt()/addColumnAt() methods? Just keep a reference to the removed column for when you need to add it back in later. -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Tuesday, January 24, 2006 8:31 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Bugs with Flex2 Tried that, it wont shrink below the data size in the actual column. Is there a way to force it to go to width 0, or another way to hide it besides visible=false? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Philippe Maegerman Sent: Tuesday, January 24, 2006 1:15 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Bugs with Flex2 maybe you can try to setthe columnwidth to 0 instead of hiding it. Philippe From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: lundi 23 janvier 2006 19:58 To: flexcoders@yahoogroups.com Subject: [flexcoders] Bugs with Flex2 I found a bug with something in Flex2where do these kind of things need to be reported? The problem Well, I figured out the problem with my cellRenderer moving about. Lets say I have 4 grid columns, with the third one having a cellRenderer function. Now with actionscript, I do a hide on the third column: myDataGrid.getColumnAt(2).visible = false; Id assume it would hide the column with the cellRenderer, which it does but the cellRenderer moves to the 4th column! Unhiding the column with a visible = true returns everything back to normal. The code for this is real simple. Have a cellRenderer on the 3rd column of a Datagrid with 4 columns, by doing mx:DataGridColumn cellRenderer={DistanceRenderer} etc. Then make a button to hide the 3rd column and youll see the Renderer attempt to render your 4th column. _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --**STATEMENT OF CONFIDENTIALITY** This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.--
RE: [flexcoders] Clear DateField
Well there's many ways to do this - it depends on what workflow you want your end user to go through. Like you said, you could add a clear button. You could have the DateField clear its selected date when it is opened (hook into the open event and set selectedDate to null). You could have the DateField clear its selected date when the associated TextInput is clicked into, etc. There's many ways to do this and all the hooks to do so are provided within the component. Goodluck! deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carolyn Cole Sent: Tuesday, January 24, 2006 6:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Clear DateField Hello, I was wondering if there was a standard way to let a user clear a DateField once it has been set. If thought about just adding a clear button, but that seems a bit contrived. Thanks! -- Carolyn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS * Visit your group flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Sourcing an image using a variable in URL (Flex 2)
Hi - You can use databinding to plug in your photoID dynamically. mx:Script var photoID:Number = 1234; /mx:Script mx:Image id=myImage source=http://www.mySite.com/pictures/{String(photoID)}.jpg / -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: Friday, January 20, 2006 10:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Sourcing an image using a variable in URL (Flex 2) I have a line mx:Image id=myImage source=http://www.mySite.com/pictures/1234.jpg/ which I want to generalise using a variable photoID to something like mx:Image id=myImage source=http://www.mySite.com/pictures/+photoID+.jpg/ This produces a compile error as the appears before end of URL. I tried the quot; option but just get the broken image icon as a result Any ideas what correct dode is , please -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/