[flexcoders] Re: Is it possible to have 2 children of viewstack visible?
Knock.. knock.. nobody knows this?? A simple no it doesn't work would be alright too :-) ??? --- In flexcoders@yahoogroups.com, Max Frigge [EMAIL PROTECTED] wrote: Hi, I am trying to create a slide effect for a ViewStack. Therefor I would need to have 2 children visible at the same time, so that you can see the second child sliding in while the first one is sliding out. Is that possible or am I on the wrong path? I want something like this: ?xml version=1.0? !-- containers\navigators\VSLinkEffects.mxml -- mx:Parallel id=toSecond mx:Move duration=400 xFrom={search.x} xTo={search.width} target={search}/ mx:Move duration=400 xFrom={-custInfo.width} xTo={custInfo.x} target={custInfo}/ /mx:Parallel mx:ViewStack id=myViewStack borderStyle=solid width=200 creationPolicy=all mx:Canvas id=search label=Search mx:Label text=Search Screen/ /mx:Canvas mx:Canvas id=custInfo label=Customer Info mx:Label text=Customer Info/ /mx:Canvas /mx:ViewStack mx:Button click=toSecond.play() label=Play Effect / /mx:Application Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
[flexcoders] Date Format
Hi, is there an easy way in Flex to format a date from Mon, 17 Dec 2007 22:26:11 +1100 to the users local time? Or would it be better to convert the date during the back end process to a UTC timestamp?? Max
[flexcoders] Download files using a php script
Hi, is it possible to download files in a Flex app from the server to the user by calling a php script that only allows the download if a user is authorized? I know how to handle the authorization check.. it is more about if there is a way to echo or send the data or whatever by a php script instead of directly linking to the file from within flex???
[flexcoders] Set form item to invalid
Hey, is there an easy way to set a formItem to invalid, so that it appears as if a validator did not validate successful. I can set the errorString to get the tooltip, but the red border style is missing. Cheers, Max
[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] Skin is jumping on resize
Hey, too make it short I uploaded an example. You can resize the window in the bottom right corner. Some lines start jumping when u resize and that looks pretty ugly. The skin in the example skinning fla file has got hair lines too and there it works fine. I traced window position, width, height and so forth because I thought they might be in subpixels but everything looks fine. Any ideas how to avoid this? Here is the example: http://16-bits.com/skintest/windowtest.html And I also uploaded my skin.fla file here: http://16-bits.com/skintest/my_flex_skin.fla Cheers, Max
[flexcoders] Placing the label in a Panel
Hi there, I was trying to customize a Panel or better to say extend the Super Panel of Wietse Veenstra and I can't figure out how to place the components label. I increased the headerHeight and want the label to be placed vertically to the top and horizontally centered. I know that it must be the second child inside the titleBar after chasing the titleBar childs in a for loop, but changing its x and y values doesn't move it?!? Any ideas? Thanks, Max
[flexcoders] Re: showBusyCursor
Hey, i had the same issue. The busy courser is available, if you use import mx.rpc.http.mxml.HTTPService instead of import mx.rpc.http.HTTPService For some reason there are two versions of httpRequest.. the mxml one does suprt the busyCourser property. hth, Max --- In flexcoders@yahoogroups.com, markgoldin_2000 [EMAIL PROTECTED] wrote: Is this property available for HTTPService that is set in ActionScript? service = new HTTPService(); service.showBusyCursor = true; does not work for me. Thanks
[flexcoders] HitTest Problems with Button that includes white
Hey there, I hope you all had a great new years. I have got a problem with a button skin. The skin contains a white area and it seems that it doesn't recognize that area when I roll over with my mouse. The Skin always jumps back to the normal state (instead of keeping the over skin). Can I tell Flex that it should just use the skins shape for the hitTest and ignore colors?! Cheers, Max
[flexcoders] RichTextEditor without a Panel around it
Hey there, I hope you all enjoyed your Christmas Days. I was trying to make use of the RichtTextEditor component, but i can't really implement it in my application because it is wrapped in a Panel?!? Is there any chance to let the Panel disappear, or does anyone know if there is a RichText control component that just offers the options to edit text? Cheers, Max
[flexcoders] Application Structure
What would you recommend when you need several sets of data for a dataGrid, like inbox trash junk in an email application. Would you rather use one dataGrid and then change the dataProvider or would you create a viewStack that contains a dataGrid for each set of data? Max
[flexcoders] Re: Select next DataGrid item after one removed
Hrr, this thing is driving me nuts. I found out why it is not working in my Application. It is because I sort by column as soon as the Data is loaded. If you sort by a column in your example it doesn't work anymore either. How can I fix this? Greets, Max --- In flexcoders@yahoogroups.com, Max Frigge [EMAIL PROTECTED] wrote: Strange.. works for me too. Must have messed something up before. Sorry for that. Only little thing that is not 100% satisfying me is that when u click delete extremely quick, it doesn't work fine anymore. But I guess I have to live with that. Thanks for your effort mate! Max - Original Message From: Muzak [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, December 23, 2007 4:18:07 PM Subject: Re: [flexcoders] Re: Select next DataGrid item after one removed The following works for me: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ private function deleteClickHandler(evt:Event):void { trace(Application ::: deleteClickHandler); var index:int = dg.selectedIndex; ac.disableAutoUpdate(); ac.removeItemAt(index); dg.selectedIndex = index; ac.enableAutoUpdate(); } ]] /mx:Script mx:ArrayCollection id=ac mx:Object firstname=Jimi lastname=Hendrix / mx:Object firstname=Frank lastname=Zappa / mx:Object firstname=Miles lastname=Davis / mx:Object firstname=Harry lastname=Connick Jr. / mx:Object firstname=John lastname=Coltrane / mx:Object firstname=Dizzy lastname=Gillespie / mx:Object firstname=Charlie lastname=Parker / /mx:ArrayCollection mx:VBox mx:DataGrid id=dg dataProvider={ac} / mx:Button id=delete_btn label=delete click=deleteClickHandler(event) / /mx:VBox /mx:Application - Original Message - From: m.frigge [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, December 23, 2007 5:13 AM Subject: [flexcoders] Re: Select next DataGrid item after one removed Mh my Dataprovider is an ArrayCollctionboth, but methods do not work. I still have the same effect. --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: You might also try using callLater to set the index, to give the DG time to re-render. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Saturday, December 22, 2007 11:13 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Select next DataGrid item after one removed Disable the dataprovider from dispatching events before manipulating it and enable it again afterwards. Assuming you're using an ArrayCollection as dataProvider, the following works: var index:int = dg.selectedIndex; ac.disableAutoUpdate(); ac.removeItemAt(index); dg.selectedIndex = index; ac.enableAutoUpdate(); regards, Muzak - Original Message - From: m.frigge m.frigge@ To: flexcoders@yahoogroups.com Sent: Saturday, December 22, 2007 4:40 PM Subject: [flexcoders] Select next DataGrid item after one removed Hey there, I hava a DataGrid and when I click a Delete Button, the selected item gets removed (obviously). But then I want the next item to be selected, so that you can keep on pressing Delete and remove one item after the other.. as it is in Yahoo mail. So I tried something like this: oldIndex = grid.selectedIndex; removeItem(grid.selectedIndex) // functioin that removes item from arrayCollection grid.selectedIndex = oldIndex; = but then it always selects one after the one I want to be selected. So I tried something like this: oldIndex = grid.selectedIndex; removeItem(grid.selectedIndex) // functioin that removes item from arrayCollection grid.selectedIndex = oldIndex -1; = but then it always selects one before the one I want to be selected. Strange.. isnt it? Any ideas why this is happening.. Cheers, 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 -- 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 Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
[flexcoders] Select next DataGrid item after one removed
Hey there, I hava a DataGrid and when I click a Delete Button, the selected item gets removed (obviously). But then I want the next item to be selected, so that you can keep on pressing Delete and remove one item after the other.. as it is in Yahoo mail. So I tried something like this: oldIndex = grid.selectedIndex; removeItem(grid.selectedIndex) // functioin that removes item from arrayCollection grid.selectedIndex = oldIndex; = but then it always selects one after the one I want to be selected. So I tried something like this: oldIndex = grid.selectedIndex; removeItem(grid.selectedIndex) // functioin that removes item from arrayCollection grid.selectedIndex = oldIndex -1; = but then it always selects one before the one I want to be selected. Strange.. isnt it? Any ideas why this is happening.. Cheers, Max
[flexcoders] Re: removeEventHandler
Since you guys are already talking about removing event Handler I didn't want to create a new post. My Problem is that the event Handler doesn't get removed. I have a service that reads an xml file and in some cases i need to cancel it. So i did this: getMailService.removeEventListener(ResultEvent.RESULT, getMailResultHandler); getMailService.cancel(); But the ResultEvent still gets fired.. I can't remove it?? Any ideas? Cheers, Max --- In flexcoders@yahoogroups.com, mark goldin [EMAIL PROTECTED] wrote: What I am trying to do is to have a generic Save button that will save data to the server. So, when a module is loaded it attaches its own handler with a logic specific to that module. Next module will atach another save handle, so I thought it would have been a good idea to remove previous handler. rueter007 [EMAIL PROTECTED] wrote: I dont think so. because the same handler can be used for different kinds of events, you need to specify which one to remove. --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ wrote: In order to remove an event handler I have to provide two parameters: Event name and a name of an event handler. Can I remove the handler without specifying its name? Thanks
[flexcoders] Re: Select next DataGrid item after one removed
Mh my Dataprovider is an ArrayCollctionboth, but methods do not work. I still have the same effect. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: You might also try using callLater to set the index, to give the DG time to re-render. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Saturday, December 22, 2007 11:13 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Select next DataGrid item after one removed Disable the dataprovider from dispatching events before manipulating it and enable it again afterwards. Assuming you're using an ArrayCollection as dataProvider, the following works: var index:int = dg.selectedIndex; ac.disableAutoUpdate(); ac.removeItemAt(index); dg.selectedIndex = index; ac.enableAutoUpdate(); regards, Muzak - Original Message - From: m.frigge [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, December 22, 2007 4:40 PM Subject: [flexcoders] Select next DataGrid item after one removed Hey there, I hava a DataGrid and when I click a Delete Button, the selected item gets removed (obviously). But then I want the next item to be selected, so that you can keep on pressing Delete and remove one item after the other.. as it is in Yahoo mail. So I tried something like this: oldIndex = grid.selectedIndex; removeItem(grid.selectedIndex) // functioin that removes item from arrayCollection grid.selectedIndex = oldIndex; = but then it always selects one after the one I want to be selected. So I tried something like this: oldIndex = grid.selectedIndex; removeItem(grid.selectedIndex) // functioin that removes item from arrayCollection grid.selectedIndex = oldIndex -1; = but then it always selects one before the one I want to be selected. Strange.. isnt it? Any ideas why this is happening.. Cheers, 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
[flexcoders] Re: Select next DataGrid item after one removed
So i was testing around a bit more. When I use a timer with 20ms on a 30fps movie it works. You see the selected item bar flicker though and it is not a good solution I reckon. Another thing is that when you hit the delete Button several times really quick it still sometimes happens that it selects the one after. :-( Greets, Max --- In flexcoders@yahoogroups.com, m.frigge [EMAIL PROTECTED] wrote: Mh my Dataprovider is an ArrayCollctionboth, but methods do not work. I still have the same effect. --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: You might also try using callLater to set the index, to give the DG time to re-render. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Saturday, December 22, 2007 11:13 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Select next DataGrid item after one removed Disable the dataprovider from dispatching events before manipulating it and enable it again afterwards. Assuming you're using an ArrayCollection as dataProvider, the following works: var index:int = dg.selectedIndex; ac.disableAutoUpdate(); ac.removeItemAt(index); dg.selectedIndex = index; ac.enableAutoUpdate(); regards, Muzak - Original Message - From: m.frigge m.frigge@ To: flexcoders@yahoogroups.com Sent: Saturday, December 22, 2007 4:40 PM Subject: [flexcoders] Select next DataGrid item after one removed Hey there, I hava a DataGrid and when I click a Delete Button, the selected item gets removed (obviously). But then I want the next item to be selected, so that you can keep on pressing Delete and remove one item after the other.. as it is in Yahoo mail. So I tried something like this: oldIndex = grid.selectedIndex; removeItem(grid.selectedIndex) // functioin that removes item from arrayCollection grid.selectedIndex = oldIndex; = but then it always selects one after the one I want to be selected. So I tried something like this: oldIndex = grid.selectedIndex; removeItem(grid.selectedIndex) // functioin that removes item from arrayCollection grid.selectedIndex = oldIndex -1; = but then it always selects one before the one I want to be selected. Strange.. isnt it? Any ideas why this is happening.. Cheers, 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
[flexcoders] Search function via backend or frontend?
Hi there, just a general question. What would you recommend as a search function, when you already have the data loaded in Flex? To create a filterFunction or to do a new request to the backend that returns the result? Sounds kind of sstupid but I have got the feeling that the filterFunction does not have the best performance, but maybe i am wrong? Greets, Max
[flexcoders] Default sorting in DataGrid
Hi, how can i set a default column to sort a dataGrid by? I know that i could just sort the dataProvider, but then i don't have the indicator that tells the user by witch column the dataGrid is sorted?!? Thanks, Max
[flexcoders] Re: DataGrid header horizontal row seperator
Hey, it's kind of a stupid workaround but if you don't want to create a programmatic skin, you could set the headerHeight 10px higher and skin it so that it looks like there is a separator. Otherwise i guess you will have to skin it programmaticly... but not 100% on that though :-). HTH, Max --- In flexcoders@yahoogroups.com, tony.grimes57 [EMAIL PROTECTED] wrote: Hi i am having a hell of a tme finding out how to style this. Basically i want to add about a 10px gap between the header row of the datagrid and the data rows. Looking at the DataGrid styles i have noted that: 1. HeaderSeparatorSkin - this only affects the vertical lines between the header columns and not the horizontal row seperator that i am looking to style 2. HeaderStyleName - only affects text in the datagrid header 3. There are various other styles in the documentation but they target the vertical and horizontal lines between the datarows and do not affect the line/border between the header and data rows 4. borderColor does affect the color of the header row seperator but none of the other border styles (borderThickness, borderSides etc) seem to target it. And obviously i am looking to change its thickness rather than color So, it seems that this header row seperator has no styles to control it. Anyone any ideas how i can configure this? many thanks
[flexcoders] Re: Search function via backend or frontend?
Ok, I thought so. Thanks for the quick answer. How many entries did you have in your project if I may ask.. more than 5000? I was just kind of stoked by some AMF Benchmark results I saw on the web. Cheers, Max --- In flexcoders@yahoogroups.com, rueter007 [EMAIL PROTECTED] wrote: I use the filterFunction for my project which has lots of data. I think it is still better than going to the backend, getting the result and repopulating the controls. --- In flexcoders@yahoogroups.com, m.frigge m.frigge@ wrote: Hi there, just a general question. What would you recommend as a search function, when you already have the data loaded in Flex? To create a filterFunction or to do a new request to the backend that returns the result? Sounds kind of sstupid but I have got the feeling that the filterFunction does not have the best performance, but maybe i am wrong? Greets, Max
[flexcoders] Re: Default sorting in DataGrid
You are a legend.. thanks again! That was exactly what I was looking for! Greets, Max --- In flexcoders@yahoogroups.com, rueter007 [EMAIL PROTECTED] wrote: look at this link. it may help. http://www.bealearts.co.uk/blog/2007/06/15/default-sorting-for-a-flex-datagrid/ - venkat http://www.venkatj.com --- In flexcoders@yahoogroups.com, m.frigge m.frigge@ wrote: Hi, how can i set a default column to sort a dataGrid by? I know that i could just sort the dataProvider, but then i don't have the indicator that tells the user by witch column the dataGrid is sorted?!? Thanks, Max
[flexcoders] Re: Search function via backend or frontend?
Ok, perfect. I won't have more than 1. That was the benchmark I was talking about ;-). Thanks, Max --- In flexcoders@yahoogroups.com, rueter007 [EMAIL PROTECTED] wrote: I had anywhere between a 1000 to a couple of thousands, sometimes beyond 1. did you look at this link? http://www.jamesward.org/wordpress/2007/04/30/ajax-and-flex-data-loading-benchmarks/ - venkat http://www.venkatj.com --- In flexcoders@yahoogroups.com, m.frigge m.frigge@ wrote: Ok, I thought so. Thanks for the quick answer. How many entries did you have in your project if I may ask.. more than 5000? I was just kind of stoked by some AMF Benchmark results I saw on the web. Cheers, Max --- In flexcoders@yahoogroups.com, rueter007 rueter007@ wrote: I use the filterFunction for my project which has lots of data. I think it is still better than going to the backend, getting the result and repopulating the controls. --- In flexcoders@yahoogroups.com, m.frigge m.frigge@ wrote: Hi there, just a general question. What would you recommend as a search function, when you already have the data loaded in Flex? To create a filterFunction or to do a new request to the backend that returns the result? Sounds kind of sstupid but I have got the feeling that the filterFunction does not have the best performance, but maybe i am wrong? Greets, Max
[flexcoders] Re: How to expand swf height over html?
Hey, have u tried it using the ExternalInterface. Its a build in API to communicate between Flash and JS. Here http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhe\ lp.htm?context=LiveDocs_Book_Partsfile=19_External_Interface_178_3.html\ is a link. I guess you would have to resize the Application container in a Flex function as well as the embeded Flash Object in JS.. you can make that happen at the same time using the ExternalInterface. Greets, Max --- In flexcoders@yahoogroups.com, v.cekvenich [EMAIL PROTECTED] wrote: If I click on a link in my flash widget (that is on a html/jsp page) I want to move down then html bellow and have my flash widget get a bit larger. Any clue on how to do some similar ways to doing this? It's almost a menu, information panel, when I click more it would expand to show about 1/4 to show a bit more text - but there is html bellow, so it would need to show more then swf dimentions. tia, .V
[flexcoders] Re: convert the Date to local time zone
Yes it does. Here http://www.adobe.com/support/flash/action_scripts/actionscript_dictiona\ ry/actionscript_dictionary163.html is a link that says something like: We are proudly taking care of daylight savers since version 5.0 ;-) Greets, Max --- In flexcoders@yahoogroups.com, rueter007 [EMAIL PROTECTED] wrote: I think the getTimezoneOffset actually takes care of Daylight savings. I vaguely remember working on an application where I was checking the offset and it returned 7hrs vs 8hrs (PST zone) for before and after the daylight savings change. Again, I might be wrong. Can someone confirm? --- In flexcoders@yahoogroups.com, coder3 rrhuang@ wrote: Hi, there might be an another way to convert the UTC to local time zone other than the following. because this doesn't take care the daylight saving time. any suggestions? // creates a Date in local time var nextDay:Date = new Date(Mon May 1 2006 11:30:00 AM); // converts the Date to UTC by adding or subtracting the time zone offset var offsetMilliseconds:Number = nextDay.getTimezoneOffset() * 60 * 1000; nextDay.setTime(nextDay.getTime() + offsetMilliseconds); -- View this message in context: http://www.nabble.com/convert-the-Date-to-local-time-zone-tp14428505p144\ 28505.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: HorizontalList image linking problem
You the HorizontalList dispatches the events. Not the Array Object. Try something like: private function changeHandler(event:Event):viod { var label:String = event.target.selectedItem.label; Alert.show(item clicked with label +label); } mx:HorizontalList id=CameraSelection height=425 columnCount=2 width=958 y=76 toolTip=Select the image to view x=13 change=changeHandler(event) mx:dataProvider mx:Array mx:Object label=ABC icon={lan_img1}/ mx:Object label=XYZ icon={lan_img2}/ mx:Object label=DEF icon={lan_img2}/ /mx:Array /mx:dataProvider /mx:HorizontalList HTH, Max --- In flexcoders@yahoogroups.com, ipogimagination [EMAIL PROTECTED] wrote: Hi Everyone, I am new to Flex and yahoo flexcoders group. Someone pls help me out from my problem. I am using HorizontalList and in that 3 images are there, If I press an each image I need to redirect to some mxml file. I could not able to write any events in inside array object and I have tried with item renders, I can not able to sole this issue. Please help me guys / ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.controls.Alert; [Bindable] [Embed(source=assets/mmrs.png)] public var lan_img1:Class; [Bindable] [Embed(source=assets/mmrs.png)] public var lan_img2:Class; ]] /mx:Script mx:Panel x=10 y=10 width=1004 height=578 layout=absolute title=Welcome mx:Text x=418.5 y=21 text=Hello World! fontFamily=Arial fontSize=24 color=#103841 fontWeight=bold/ mx:HorizontalList id=CameraSelection height=425 columnCount=2 width=958 y=76 toolTip=Select the image to view x=13 mx:dataProvider mx:Array mx:Object label=ABC icon={lan_img1}/ mx:Object label=XYZ icon={lan_img2}/ mx:Object label=DEF icon={lan_img2}/ /mx:Array /mx:dataProvider /mx:HorizontalList /mx:Panel /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 Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Force DataGrid item to update style
Me again :-). So I could almost fix it myself.. took me a long time though. There's only one little thing and hopefully some more experienced coder can help me out this time please. The example posted below works fine until you sort the dataGrid by one of its columns. [L=Here]http://16-bits.com/ItemRenderer/ItemRenderer.html[/L] is the example with ViewSource again. Anyway. How come that it is such a big deal to achieve something like this?! I guess I would have been quicker, if I had done the whole dataGrid thing in Flash by myself. What strategies do you guys out there use to solve issues like that?!? I mean how do get a picture of how a component works in its details?! Cheers, Max --- In flexcoders@yahoogroups.com, m.frigge [EMAIL PROTECTED] wrote: Hi Johan, I tried that as well .. I also tried .styleChanged() and it doesn't do anything. The changed text properties are only visible when the item gets deselected!? Cheers, Max --- In flexcoders@yahoogroups.com, johantrax johan.temmerman@ wrote: --- In flexcoders@yahoogroups.com, m.frigge m.frigge@ wrote: Hey there, i found some nice examples for an itemRenderer here http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.h\ tml . I tried to use one of them for an app i am developing. In my case i need the colum's style to change when i select it, but you can only see the changes, after selecting another item. How can i force the item to update its style immediately? Here http://16-bits.com/itemrenderer/ComputedStyles.html is an example with ViewSource enabled. Cheers, Max Call invalidateDisplayList of the component? docs: http://livedocs.adobe.com/flex/2/langref/mx/core/UIComponent.html#invalidateDisplayList() --Johan
[flexcoders] Re: DataGrid ItemRenderes - How to access the {data} from the datagrid
Hey Mark, I'm struggling with itemRenderers too. First of all here http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.h\ tml is a link to Alex's blog speaking about itemRenderers and showing some nice examples. In the BlinkWhenDataChanged example he is changing Background settings. I tried to adopt his itemRenderer and change it so that it checks a data value and sets the textFormat depending on what value the data has. This http://16-bits.com/ItemRenderer/ItemRenderer.html is how far i came. I toggle the value on change, so when you click it the style changes. My only Problem is that it doesn't work anymore after sorting the dataGrid by one of its columns. Maybe we can work on this together :-). Cheers, Max --- In flexcoders@yahoogroups.com, oneproofdk [EMAIL PROTECTED] wrote: Hi. In a itemrenderer I'd like to access a {data} value in a Script in the itemrenderer. I just can't figure out how to do this. I have an ArrayCollection as the dataprovider for the DataGrid. In a Column, I sue a itemrenderer status Inside renderer.status.as I have a VBox, with a init() function. Inside init I'd like to test if data.repeating != null and if so, set a label to a specific value, if not null, set to another value. vboxscript/scriptlabel//vbox Please - can anyone help me out with an example on how to accomplish this, I hope, simple task. (The reason for using a VBox was that I had my hopes for setting the background color also, so if != null color=XX + text = XX etc. Thanks for your time Mark
[flexcoders] Re: Force DataGrid item to update style
Hey Ben, thx for your answer, but it is doing exactly the same when I use the itemClick event and when I use itemFocusIn it doesn't do anything at all?! I reckon I either have to customize the column or the Renderer.. something like that. But I don't have enough experience to figure out what and where. Any other ideas? This issue is really driving me nuts. I mean it shouldn't be a big thing to achieve something simple like that?! Cheers, Max --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: Its because you're calling your compute function from the change event. Try calling it from itemFocusIn or itemClick or something. HTH, Ben --- In flexcoders@yahoogroups.com, m.frigge m.frigge@ wrote: Hey there, i found some nice examples for an itemRenderer here http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.h\ tml . I tried to use one of them for an app i am developing. In my case i need the colum's style to change when i select it, but you can only see the changes, after selecting another item. How can i force the item to update its style immediately? Here http://16-bits.com/itemrenderer/ComputedStyles.html is an example with ViewSource enabled. Cheers, Max
[flexcoders] Re: Force DataGrid item to update style
Hi Johan, I tried that as well .. I also tried .styleChanged() and it doesn't do anything. The changed text properties are only visible when the item gets deselected!? Cheers, Max --- In flexcoders@yahoogroups.com, johantrax [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, m.frigge m.frigge@ wrote: Hey there, i found some nice examples for an itemRenderer here http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.h\ tml . I tried to use one of them for an app i am developing. In my case i need the colum's style to change when i select it, but you can only see the changes, after selecting another item. How can i force the item to update its style immediately? Here http://16-bits.com/itemrenderer/ComputedStyles.html is an example with ViewSource enabled. Cheers, Max Call invalidateDisplayList of the component? docs: http://livedocs.adobe.com/flex/2/langref/mx/core/UIComponent.html#invalidateDisplayList() --Johan