[flexcoders] Re: Font Size Issue in Rich Text Editor Component
Thanks for clarifying. Yes I did note the textformattag, and that does not matter, as most browsers are tolerant towards unrecognized tags. The font size issue is sad though, because any other target platform than Flash, will interpret point sizes. Maybe a solution would be to have an optional property, such as htmlText and flashHtmlText, and depending on your needs you get browser compatible HTML or Flash compatible HTML. Now I have to run global replaces to fix the issue, which is not very efficient... Thanks again P.S. btw, the apros; entitity name is not recognized in IE. Using #039; would be a better option. --- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: This isn't a bug, it's by design. In flash, 1pt is rendered as 1px so there's not much of a point of making the distinction in the htmltext. Additionally, the HTML that flash outputs isn't true html. If you look through your output you'll probably see other tags that don't look right either (like textformat). Flash html is described here: http://livedocs.adobe.com/flex/201/html/textcontrols_060_10.html Daniel Freiman nondocs http://nondocs.blogspot.com On 5/11/07, iko_knyphausen [EMAIL PROTECTED] wrote: Hi all, I think I found a bug in the RTEditor. When you select a font size, i.e. 12 it is interpreted in the component as 12pixels. Once you look at the HTML property, you will see a FONT tag with the SIZE attribute set to 12. No px. This is something very different than 12px and it shows. Is it a known bug... or am I missing something? Thx
[flexcoders] Re: Strange Behavior on DataGrid Resize - Column Resize below Minimum Width
Now you got me confused. I am running 2.01, and I just went to Adobes site. I did not see a Hotfix 1, just the 2.01. Where would I find Hotfix 1 of Version 2.01? thanks --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: I am struggling with a very strange behavior: I have a dataGrid Are you using the 2.0.1-hotfix 1 compiler, or just 2.0.1 ? Hotfix 1 has several updates to the DataGrid. -- Tom Chiverton Helping to biannually utilize cross-platform convergence on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Font Size Issue in Rich Text Editor Component
Hi all, I think I found a bug in the RTEditor. When you select a font size, i.e. 12 it is interpreted in the component as 12pixels. Once you look at the HTML property, you will see a FONT tag with the SIZE attribute set to 12. No px. This is something very different than 12px and it shows. Is it a known bug... or am I missing something? Thx
[flexcoders] Strange Behavior on DataGrid Resize - Column Resize below Minimum Width
Hello all, I am struggling with a very strange behavior: I have a dataGrid with some 15 columns. The grid's horizontalScrollPolicy is set to auto. This should add a horizontal scrollbar when the conrtrol's client area width is smaller than the column widths added together. So far so good. Now, when I resize the DataGrid (by changing the width property), it seems that the most right visible COLUMN in the resized grid, gets resized as well - probably in an attempt to align the right column border with the right border of the current view container. Just to clarify: it's not the last Column of the grid, it's the right most Column you can currently see with the scrollbar all the way left (zero position). This column resize will even happen, when the resulting column width is smaller than the minWidth value, basically ignoring the minWidth property. Has anyone seen and dealt with this before? Thanks a million -Iko
[flexcoders] Re: Datagrid - case-insensitive sort
You could also create a sortCompareFunction, similar to this one private function sfSortFunction(ob1:Object, ob2:Object) : int { var s1 : String = ob1.dataField.toString().toLowerCase(); var s2 : String = ob2.dataField.toString().toLowerCase(); if (s1s2) return 1; if (s1 s2) return -1; return 0; } --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 5/5/07, Paul Booth [EMAIL PROTECTED] wrote: I can't find a way to tell the Datagrid (or DatagridColumn) to sort in a case-insensitive manner. Can someone please enlighten me? In your headerRelease event handler: import mx.collections.*; var col:ICollectionView = event.target.dataProvider; var s:Sort = col.sort ? col.sort : new Sort(); var sf:SortField; if (col.sort col.sort.fields) { for each (var f:SortField in col.sort.fields) if (f.name == event.dataField) { sf = f; break; } } if (!sf) sf = new SortField(event.dataField); sf.caseInsensitive = true; s.fields = [sf]; col.sort = s; Disclaimer: Might be buggy.
[flexcoders] Re: Uploading File/ Post Request
I am afraid you may have to parse the data for its fields before you can use them. Commercial upload components will do this for you. If you want to use plain ASP, I recommend to take a look at the Upload script by Lewis Moten. --- In flexcoders@yahoogroups.com, jd_lingwai [EMAIL PROTECTED] wrote: Thanks but I'm having trouble reading the value...I'm doing the following: For Each fileItem In UploadedFiles.Items Set streamFile = Server.CreateObject(ADODB.Stream) streamFile.Type = 1 streamFile.Open StreamRequest.Position=fileItem.Start StreamRequest.CopyTo streamFile, fileItem.Length streamFile.SaveToFile path fileItem.VAR1, 2 streamFile.close Set streamFile = Nothing fileItem.Path = path fileItem.VAR1 Next But its giving me an error --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote: Here is one way to do this. The receiving script or cgi will find the posted fields in the Fields collection of the Request object. The function below is called after the fileRef.browse() method and after the user selected a file from the file dialog. private function selectHandler(event : Event) : void { var params:URLVariables = new URLVariables(); params.VAR1 = Some Value; params.VAR2 = Another Value; var request:URLRequest = new URLRequest(serverside_script); //asp, cfm, php, pl request.method = URLRequestMethod.POST; request.data = params; fileRef.upload(request); } --- In flexcoders@yahoogroups.com, jd_lingwai jd_lingwai@ wrote: I noticed in flex it allows you to pass extra variables to the post request. Does anyone know how to name the new variables?
[flexcoders] Dynamic switching of datagrid columns
Hi, trying to change the sequence of datagrid columns by working on the datagrid.columns array. I understand from previous posts that one should copy the array, do the array manipulations, then assign it back to the columns property. So far so good. I came across one curiousity that I cannot explain: 1. First I am splicing a column that gets deleted at the current position. The splice function should return an array of elements deleted. 2. Then I take this array and try insert it using unshift, splice or push. No good. I also tried to first assign the cut element to a interim var of type DataGridColumn. Still no good. The whole thing works fine, if I make a copy of the column before it gets cut and take this as argument in a unshift, splice, or push Thx
[flexcoders] Re: Dynamic switching of datagrid columns
Exactly right. Thanks. I think when I read the description of unshift(), where it says adds one or more elements..., I subconsciously thought ARRAY. So the following code upon a headerrelease event works fine, just in case someone else has a similar mission (I use this in combination with the CTL key): var cols : Array = dgItems.columns; cols.unshift(cols.splice(event.columnIndex,1)[0]); dgItems.columns = cols; Danke... --- In flexcoders@yahoogroups.com, Ralf Bokelberg [EMAIL PROTECTED] wrote: As you said, splice returns an Array and not the actual column. Try columns.push( splicedThings[ 0 ]); Cheers, Ralf. On 5/2/07, iko_knyphausen [EMAIL PROTECTED] wrote: Hi, trying to change the sequence of datagrid columns by working on the datagrid.columns array. I understand from previous posts that one should copy the array, do the array manipulations, then assign it back to the columns property. So far so good. I came across one curiousity that I cannot explain: 1. First I am splicing a column that gets deleted at the current position. The splice function should return an array of elements deleted. 2. Then I take this array and try insert it using unshift, splice or push. No good. I also tried to first assign the cut element to a interim var of type DataGridColumn. Still no good. The whole thing works fine, if I make a copy of the column before it gets cut and take this as argument in a unshift, splice, or push Thx -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
[flexcoders] Re: Uploading File/ Post Request
Here is one way to do this. The receiving script or cgi will find the posted fields in the Fields collection of the Request object. The function below is called after the fileRef.browse() method and after the user selected a file from the file dialog. private function selectHandler(event : Event) : void { var params:URLVariables = new URLVariables(); params.VAR1 = Some Value; params.VAR2 = Another Value; var request:URLRequest = new URLRequest(serverside_script); //asp, cfm, php, pl request.method = URLRequestMethod.POST; request.data = params; fileRef.upload(request); } --- In flexcoders@yahoogroups.com, jd_lingwai [EMAIL PROTECTED] wrote: I noticed in flex it allows you to pass extra variables to the post request. Does anyone know how to name the new variables?
[flexcoders] DataGrid HeaderRelease Keyboard Info
Hi, I am trying to test for the CRTL key being pressed during a headrelease event in the datagrid. The DataGridEvent does not offer a altKey/ctlKey property. Do I have to hook the keyboard separately, store the ctlKey info in a var, and then check it during the headerRelease event, or is there are more elegant way? Thanks much
[flexcoders] Round corners with Tab Navigator
Hello, I am trying to use rounded corners (cornerRadius) on a tab navigator. Unfortunately it also rounds the upper left corner of the first canvas which makes it unsightly. One could use paddingLeft to move the tabs a little to the right, but that doesn't look to great either. One could underlay the tab navigator at the upper left corner with a mini-canvas, but that only works, if you have no border. I need a solid border... Has anyone come up with a good solution for this? Thanks a mill..
[flexcoders] Re: Round corners with Tab Navigator
Thanks this was very helpful. I got rid of the tiny gap, by setting the tab navigators bordercolor and the tabDetails bordercolor to the same as the background color of the container... looks perfect. Thanks again - Iko --- In flexcoders@yahoogroups.com, scalenine [EMAIL PROTECTED] wrote: Try this: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:TabNavigator horizontalCenter=0 verticalCenter=0 resizeToContent=true cornerRadius=10 paddingTop=0 paddingRight=10 paddingBottom=10 mx:Canvas label=Tab 1 width=300 height=300 backgroundColor=#ff/ mx:Canvas label=Tab 2 width=300 height=200 backgroundColor=#ff/ mx:Canvas label=Tab 3 width=300 height=100 backgroundColor=#ff/ mx:Canvas label=Tab 4 width=300 height=50 backgroundColor=#ff/ /mx:TabNavigator /mx:Application I just added a white fill color and some padding to the bottom and top of the tab navigator. The only thing is a small gap in the border on the left where the TabNav corner curves. The other thing you could do is create an image to use as the background with some 9-slice proerties on it that has 3 rounded corners and one not. Or check out some custom border components out there that might help you get the effect your looking for. Juan scalenine.com --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote: Hello, I am trying to use rounded corners (cornerRadius) on a tab navigator. Unfortunately it also rounds the upper left corner of the first canvas which makes it unsightly. One could use paddingLeft to move the tabs a little to the right, but that doesn't look to great either. One could underlay the tab navigator at the upper left corner with a mini-canvas, but that only works, if you have no border. I need a solid border... Has anyone come up with a good solution for this? Thanks a mill..
[flexcoders] Re: Round corners with Tab Navigator
Just went to your site... nice! Your Obsidian theme would benefit from the background border color... Cheers --- In flexcoders@yahoogroups.com, iko_knyphausen [EMAIL PROTECTED] wrote: Thanks this was very helpful. I got rid of the tiny gap, by setting the tab navigators bordercolor and the tabDetails bordercolor to the same as the background color of the container... looks perfect. Thanks again - Iko --- In flexcoders@yahoogroups.com, scalenine juan@ wrote: Try this: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:TabNavigator horizontalCenter=0 verticalCenter=0 resizeToContent=true cornerRadius=10 paddingTop=0 paddingRight=10 paddingBottom=10 mx:Canvas label=Tab 1 width=300 height=300 backgroundColor=#ff/ mx:Canvas label=Tab 2 width=300 height=200 backgroundColor=#ff/ mx:Canvas label=Tab 3 width=300 height=100 backgroundColor=#ff/ mx:Canvas label=Tab 4 width=300 height=50 backgroundColor=#ff/ /mx:TabNavigator /mx:Application I just added a white fill color and some padding to the bottom and top of the tab navigator. The only thing is a small gap in the border on the left where the TabNav corner curves. The other thing you could do is create an image to use as the background with some 9-slice proerties on it that has 3 rounded corners and one not. Or check out some custom border components out there that might help you get the effect your looking for. Juan scalenine.com --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote: Hello, I am trying to use rounded corners (cornerRadius) on a tab navigator. Unfortunately it also rounds the upper left corner of the first canvas which makes it unsightly. One could use paddingLeft to move the tabs a little to the right, but that doesn't look to great either. One could underlay the tab navigator at the upper left corner with a mini-canvas, but that only works, if you have no border. I need a solid border... Has anyone come up with a good solution for this? Thanks a mill..
[flexcoders] How to prevent children from causing a mouseOut event
Hi everyone, I am struggling with mouse events in a canvas. I have a canvas in an itemRenderer and in it some buttons. When the user moves the mouse over any of the buttons, the canvas receives a mouseOut event, although these buttons are children of the canvas. I want to use the mouseOut on the canvas for other missions, such as hiding/displaying the buttons. Anyone know a good way to get control over this? Thanks much Iko
[flexcoders] Re: How to prevent children from causing a mouseOut event
I should have asked 5 hours ago ! ;-) Thanks Gordon --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: Use rollOver and rollOut instead of mouseOver and mouseOut. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of iko_knyphausen Sent: Wednesday, April 25, 2007 10:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to prevent children from causing a mouseOut event Hi everyone, I am struggling with mouse events in a canvas. I have a canvas in an itemRenderer and in it some buttons. When the user moves the mouse over any of the buttons, the canvas receives a mouseOut event, although these buttons are children of the canvas. I want to use the mouseOut on the canvas for other missions, such as hiding/displaying the buttons. Anyone know a good way to get control over this? Thanks much Iko
[flexcoders] Re: SWF not loading on SSL web page
Response Headers maybe... Make sure the web server that serves the SWF does not create a CacheControl=No-cache header. See other posts regarding SSL... Good luck. Iko --- In flexcoders@yahoogroups.com, marc_watts1 [EMAIL PROTECTED] wrote: I am trying to load a SWF file on an SSL secured page. The SWF will not load if the page is called via https:// The SWF will load if the page is called via http:// This happens if the SWF is calling web services or is simple and just draws a square. My SSL certificate is valid and works fine. To keep it simple I was using the object tag below for loading the SWF. I have tried just about every combination of https and http I can think of to get any SWF to load. Anybody have any ideas? object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354 codebase=https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/s wflash.cab#version=8,0,0,0 width=550 height=400 id=untitled-1 align=middle param name=allowScriptAccess value=sameDomain / param name=movie value=untitled-1.swf / param name=quality value=high / param name=bgcolor value=#0 / embed src=https://server01/ssl/untitled-1.swf; quality=high bgcolor=#ff width=550 height=400 name=untitled-1 align=middle allowScriptAccess=sameDomain type=application/x- shockwave-flash pluginspage=https://www.macromedia.com/go/getflashplayer; / /object
[flexcoders] Re: Resize Effect for Percentages?
No I did not extend the resize effects. I used absolute values for x,y,width and height, and computed the percentage relative to its container. But I only had a few of them, so I did not create a custom effect.. --- In flexcoders@yahoogroups.com, Matt [EMAIL PROTECTED] wrote: Don't suppose you have some code you could post as an example? Are you actually going through the process of extending Resize and making it so if it ends on a percentage value when the effect finishes it actually does change to a percentage (so if you resize it acts appropriately)? If that's not the case, would you be interested in me posting code if I were to write such a thing? --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote: I have struggled with the same and ended up doing the percentage math on my own. The effects don't provide percentage properties, and they don't have a from/toConstraint either...which could be handy at times... --- In flexcoders@yahoogroups.com, Matt matt@ wrote: Is there any way to use the Resize effect to either resize from 0 to a percentage or from a percentage to 0?
[flexcoders] Font-size Bug in Text Area?
Hi everyone: I think I have found a bug in the text area control and its htmlText property. When you set the fontsize property of an textarea to 11, it interprets it as 11 pixels (nb: 11px would not a valid value for this property). On screen it looks about right. Now when you get the htmlText property, you will find a FONT FACE='...' SIZE=11 ... tag. That of course is way different than 11 pixel. This is GIGANTIC... Is it a confirmed bug? Thanks -Iko
[flexcoders] Re: Resize Effect for Percentages?
I have struggled with the same and ended up doing the percentage math on my own. The effects don't provide percentage properties, and they don't have a from/toConstraint either...which could be handy at times... --- In flexcoders@yahoogroups.com, Matt [EMAIL PROTECTED] wrote: Is there any way to use the Resize effect to either resize from 0 to a percentage or from a percentage to 0?
[flexcoders] Re: Installing Flex On Vista Causes Reboots
Hi Matthew, I am not the one that has the issues. I just shared my experience of installing on Vista by copying an XP installation over manually. The installer did not run at the time - quite possibly because I did not run it as Administrator - or maybe some other issue. It was prior to 2.01 The reboot issues are with John Lentz's install, who posted the original ... Cheers --- In flexcoders@yahoogroups.com, Matthew OMeara [EMAIL PROTECTED] wrote: Iko, You might try looking at your settings for Windows. There is one checkbox for Reboot on System Error. Make sure that is turned off so that you can at least see the error you are getting. I have seen Windows ship with this set to be true, normally on the dumbed down home editions of their OS's. So make sure that is off and at least it gives you a chance to further debug. Matthew --- In flexcoders@yahoogroups.com, realeyes_jun jun@ wrote: Iko, Sorry you couldn't get the installer to run on Vista, but it did work for me - I was running Windows Vista Business Edition at the time - and others: - http://tech.groups.yahoo.com/group/flexcoders/message/66731 - http://tech.groups.yahoo.com/group/flexcoders/message/65094 -Jun --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote: I don't think the installer works on Vista. I installed on XP and then copied the installation directory over to my Vista machine. I think you will also have to install the the player and debug version of the player manually, by visiting the Adobe web site. Iko --- In flexcoders@yahoogroups.com, realeyes_jun jun@ wrote: John, Many developers are running Vista with Flex Builder - Including myself until I downgraded back to XP - so I don't think you encountering an issue with the Flex Builder setup program... sounds to me more like an issue with hardware. (Like the machine is having BSOD) I would double-check to make sure you have the most appropriate and up to date vid card drivers, bios firmware, vista patches. Also, running RAM diagnostics (I think there's a memory tester built into Vista) or disk check (cmdline chkdsk and/or vendor provided disk check tools) wouldn't hurt either. You might also want to check your Vista system/application logs to make sure you're not getting any errors when you run the installer. Also, if you bought Flex Builder, I would think that Adobe has 30 days support or something? Just in case it turns out to be the setup program which I think is not the case. -Jun --- In flexcoders@yahoogroups.com, j_lentzz jlentz@ wrote: Hi, I've got a new machine that I just installed a full copy of Vista Ultimate onto. I'm trying to install the latest Flex, but right after it finishes extracting the files, the machine reboots. I've tried setting the installation program to XP SP2 compatibility and checked run as administrator, but it still reboots the machine right after the files have been extracted. I've got Vista on my C drive and I'm installing (at least trying to) Flex onto my F drive. Does anyone have any ideas? One option I could do is to install XP first load Flex and then install Vista over it, but I'm not sure if that would help any. Any ideas would be great. Thanks, John
[flexcoders] Re: Finding the index of the first visible row in a Datagrid
I needed to do this after insert in a sorted grid... for (x=0; xdgItems.dataProvider.length [EMAIL PROTECTED] != [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ; x++); otherwise the selectedIndex property should tell you. HTH --- In flexcoders@yahoogroups.com, Steven Lira [EMAIL PROTECTED] wrote: I'm trying to find the index of the row in a datagrid which is the first visible row. ex. If there are 100 rows but only 15 are visible at any given time, I want to know what the index is of first visible row presented in the window. If the window is scrolled down half way, I should find that the index of the first visible row is 50 (or something like that). Someone mentioned using listData but it is null. I also need to know what the total number of rows are. Thanks, Steve
[flexcoders] Re: Finding the index of the first visible row in a Datagrid
Oohps, misread your question. The total number should be in the length property. As for the first visible, I don't know, but you can use the datagrid.scrollToIndex method make sure a specific item is visible. --- In flexcoders@yahoogroups.com, Steven Lira [EMAIL PROTECTED] wrote: I'm trying to find the index of the row in a datagrid which is the first visible row. ex. If there are 100 rows but only 15 are visible at any given time, I want to know what the index is of first visible row presented in the window. If the window is scrolled down half way, I should find that the index of the first visible row is 50 (or something like that). Someone mentioned using listData but it is null. I also need to know what the total number of rows are. Thanks, Steve
[flexcoders] Re: Installing Flex On Vista Causes Reboots
I don't think the installer works on Vista. I installed on XP and then copied the installation directory over to my Vista machine. I think you will also have to install the the player and debug version of the player manually, by visiting the Adobe web site. Iko --- In flexcoders@yahoogroups.com, realeyes_jun [EMAIL PROTECTED] wrote: John, Many developers are running Vista with Flex Builder - Including myself until I downgraded back to XP - so I don't think you encountering an issue with the Flex Builder setup program... sounds to me more like an issue with hardware. (Like the machine is having BSOD) I would double-check to make sure you have the most appropriate and up to date vid card drivers, bios firmware, vista patches. Also, running RAM diagnostics (I think there's a memory tester built into Vista) or disk check (cmdline chkdsk and/or vendor provided disk check tools) wouldn't hurt either. You might also want to check your Vista system/application logs to make sure you're not getting any errors when you run the installer. Also, if you bought Flex Builder, I would think that Adobe has 30 days support or something? Just in case it turns out to be the setup program which I think is not the case. -Jun --- In flexcoders@yahoogroups.com, j_lentzz jlentz@ wrote: Hi, I've got a new machine that I just installed a full copy of Vista Ultimate onto. I'm trying to install the latest Flex, but right after it finishes extracting the files, the machine reboots. I've tried setting the installation program to XP SP2 compatibility and checked run as administrator, but it still reboots the machine right after the files have been extracted. I've got Vista on my C drive and I'm installing (at least trying to) Flex onto my F drive. Does anyone have any ideas? One option I could do is to install XP first load Flex and then install Vista over it, but I'm not sure if that would help any. Any ideas would be great. Thanks, John
[flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?
I agree it was a fun read, and I think Dave you got it right. It's a confirmation of the market and everyone it will benefit. Plus a little competition keeps everyone on their toes ;-) --- In flexcoders@yahoogroups.com, Dave Wolf [EMAIL PROTECTED] wrote: Scott, Sillyness aside, there is substance to this and it was a great read, but i think what hurt it's purity is the undercurrent of MS is evil, watch them mentality. I assure you that undertone wasn't purposeful. I did flub the Sparkle reference, but then again, most people misunderstood what Sparkle was and the general understanding at large was the Sparkle was WPF/E. Code words are supposed to be confusing right? :=) As you said, aiming at that would have just undone the message I was trying to get out. Worth noting BTW, I am a MSFT Alumnus. -- Dave Wolf Cynergy Systems, Inc. Adobe Flex Alliance Partner http://www.cynergysystems.com http://www.cynergysystems.com/blogs Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, Scott Barnes scott.barnes@ wrote: Dave.C, Dave.W gets it :) He understands that the RIA space is not exclusive to one company but many, while I get the undercurrent of his blog-speech, I do however disagree with the dark evil plotting - MIX isn't because MAX exists, its actually because it's intent is to showcase a MIX of Microsoft Technologies in the one spot, consolidated. Usually PDC / TechEd are reserved for the 100% Microsoft pieces (except TechEd Australia were we are hoping to mix-it-up a bit more). Furthermore, we are looking to REMIX (Australia, Melbourne, June 25th - 26th) in the rest of the world based off what the US version does and so on.. point I'm thinking folks at times amplify the paranoia around Microsoft ;) Secondly, Sparkle was the code-name for Expression Blend, and JOLT was the code-name for Silverlight. I also get nervous when anyone uses the term Missiles,Big Bang and Microsoft. As when they do, i start to think of Cult Followings and ponder if I've been duped into some mystic cult (I'll be that guy running out in FBI handcuffs on Hard Copy saying I didn't know..I didn't know..) Sillyness aside, there is substance to this and it was a great read, but i think what hurt it's purity is the undercurrent of MS is evil, watch them mentality. I'm evil, Microsoft isn't though (just to clarify that). On 4/20/07, Dave Carabetta dcarabetta@ wrote: I hope this isn't taken with as some sort of corporate shill for my employer, as it's honestly not my intent, but Dave Wolf, Vice President of Consulting at Cynergy Systems, gives an excellent summary as to why Silverlight is a phenomenally important announcement to the RIA industry and why it's not just some copycat Flash competitor. If you're looking for a balanced view of Silverlight's effect, check out his latest blog entry: http://www.cynergysystems.com/blogs/page/davewolf?entry=wake_up_and_see_\ the Regards, Dave Carabetta. Cynergy Systems, Inc. On 4/18/07, Scott Barnes scott.barnes@ wrote: Its an annoyance of mine aswell. I'm confused as to why .NET remoting was dropped from Flash/Flex (haven't yet seen FLASH CS3 and whether its back but yeah, no idea and all i can say is Mark's got his head screwed on right and he can help with WebORB in that regard. Actually the Flex Builder integration is quite stunning I must say, it left both Andrew Shorten I drooling @ Feb Seattle Flex UG) That so sounded like a plug didn't it :) hehe. (Sorry it wasn't meant to be) On 18 Apr 2007 07:38:08 -0700, mvbaffa mvbaffa@ wrote: I've been working with Flex since its alpha version. Before the release version was avaiable I had an application with AMFPHP ready. That is I really love Flex and i have been working with it since it's 1.5 version. But I am a .NET developer, I have a huge legacy in .NET Framework 2.0 and 1.1. I don't know why Adobe, up to this moment, is maintaining exclusive focus on Java. There are a lot of .NET developers that would like to have a server framework developed directly from Adobe. Applications are not only Client, they need a strong and consistent server Framework. I beleive that if Adobe maintains its exclusive focus on java it will loose, very soon a good number of .NET developers. Communications Foundations is really good and it will be better very soon. And it's price is very good, it is free ! I am still working on the Microsoft framework. But I beleive that WPF and SilverLight can be very soon a real competitive alternative. Marcus Baffa NOVA Consulting --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Peter Demling pdemling@ wrote: Version 1
[flexcoders] Re: Upload not working in Firefox 2.0.3 under https://?
The most probable reason is that the FF post does not include a session token (cookie), and your upload backend (script or dll) does require such session context. At least thats what happened in my case. Workaround: send a param (request value pair) with the session information. If it only happens under HTTPS and work s fine under HTTP, it may be related to header pragma and cacheControl. See other recent post by searching for Problems with SSL HTH --- In flexcoders@yahoogroups.com, chrislpigg [EMAIL PROTECTED] wrote: This seems really weird but when I try to use Flex 2.0 File upload under https:// in Firefox it doesn't seem to wanna work. The connection gets cut or something gets disconnected so the file upload doesn't finish... meaning that the file doesn't get to the destination. Has anyone ran into this problem or has a solution? Any help would be appreciated.. Thanks!!
[flexcoders] Re: boolean not casting ok from string
Just leave the quotes away: var btest:Boolean = true; --- In flexcoders@yahoogroups.com, Hilary Bridel [EMAIL PROTECTED] wrote: try: var btest:Boolean; var testValue:String = true; btest = testValue == true ? true : false; trace(btest = +btest); Hilary -- On 4/19/07, Luis Eduardo [EMAIL PROTECTED] wrote: hi, this simple code dont work. var btest:Boolean = new Boolean(); btest = true; trace(btest = +btest); btest = false; trace(btest = : +btest); there are a compile warning telling me that: 3590: String used were a Boolean value was expected. The expression will be type coerced to Boolean but it is not. even if i do typecast it wont work: btest = Boolean(true); trace(btest = : +btest); or if i typecast with as. btest = (true as Boolean); btest = (false as Boolean); so i ask: how to cast String true to Boolean true ? what am i missing??? Luís Eduardo. -- Hilary --
[flexcoders] Re: boolean not casting ok from string
Yo Bjorn, ;-) I was referring to the original post where its said: this simple code dont work. var btest:Boolean = new Boolean(); btest = true; trace(btest = +btest); so here my suggestion was: var btest:Boolean = true;// without quotes and if you want to string it you can probably do trace(btest: + btest.toString()); yo... --- In flexcoders@yahoogroups.com, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Yo Iko, how do you strip the quotes? how about a helper static function convertStringToBoolean( val:String ):Boolean { return ( val == true ); } Bjorn On 19/04/2007, at 10:25 AM, iko_knyphausen wrote: Just leave the quotes away: var btest:Boolean = true; --- In flexcoders@yahoogroups.com, Hilary Bridel hblists@ wrote: try: var btest:Boolean; var testValue:String = true; btest = testValue == true ? true : false; trace(btest = +btest); Hilary -- On 4/19/07, Luis Eduardo illogic_code@ wrote: hi, this simple code dont work. var btest:Boolean = new Boolean(); btest = true; trace(btest = +btest); btest = false; trace(btest = : +btest); there are a compile warning telling me that: 3590: String used were a Boolean value was expected. The expression will be type coerced to Boolean but it is not. even if i do typecast it wont work: btest = Boolean(true); trace(btest = : +btest); or if i typecast with as. btest = (true as Boolean); btest = (false as Boolean); so i ask: how to cast String true to Boolean true ? what am i missing??? Luís Eduardo. -- Hilary -- Regards, Bjorn Schultheiss Senior Developer Personalised Communication Power Level 2, 31 Coventry St. South Melbourne 3205, VIC Australia T: +61 3 9674 7400 F: +61 3 9645 9160 W: http://www.qdc.net.au ((This transmission is confidential and intended solely for the person or organization to whom it is addressed. It may contain privileged and confidential information. If you are not the intended recipient, you should not copy, distribute or take any action in reliance on it. If you believe you received this transmission in error, please notify the sender.---))
[flexcoders] Re: Firefox - FileReference.upload and HTTPService do not share sessions/cookies
Yes, useful indeed. Thanks for posting it. It would have taken me a long time to figure out why my firefox uploads failed ;-) (the upload was fine, just no session cookie)... --- In [EMAIL PROTECTED], pgp.coppens [EMAIL PROTECTED] wrote: Oh well, that turned out to be pretty messy First I got worried as the doc states The FileReference and FileReferenceList classes also do not provide methods for authentication. With servers that require authentication, you can download files with the Flash® Player browser plug-in, but uploading (on all players) and downloading (on the stand-alone or external player) fails. On this and other sites I did however find users that got it working. The trick (with Tomcat) is to just add the servlet's jsessionid stored in the cookie also on the FileReference's url. One has a few choices to get the sessionid into flex. In my case that was easy, because I am sending xml back and forth anyway I just added the sessionid to the reply the servlet sends when the login succeeds. The servlet request has a getter to get hold of it (getRequestedSessionId) Whenever one wants to upload something, append the sessionid to the request url. Something like urlRequest=new URLRequest(_servletUrl + servicePath + ;jsessionid= + _sessionId ); Note the semicolon - this is not a url parameter. That first did not work in my case because Flex kept on sending some session cookie with the upload request and the server therefore ignored the jsessionid on the url. Weirdly that cookie was not stored in the browser and no matter how hard I tried to clean up the browser's caches, it kept being there. Obviously (but not for me at 2am) it is the flash/flex runtime that has its own session/cookie cache. Quitting the browser (and the flex runtime) is what finally got it going. All in all this is an ugly situation. It would help to document this in the flex doc (assuming this is a supported approach) and browser consistency would have helped as wella first blow to my hopes of escaping cross browser problems by switching to flex/flash. Anyway, perhaps a next reader finds this useful. Peter --- In [EMAIL PROTECTED], pgp.coppens pc.subscriptions@ wrote: Flex fans, I am struggling with the following scenario 1. Use an HTTPService POST to authenticate to a servlet backend (works fine) 2. Use HTTPService requests to the same server and rely on previous authentication (works fine) 3. FileReference.upload with IE also picks up the same session cookie and thus uses the authenticated (and authorized) session. With Firefox or Opera however, a FileReference.upload request does not seem to pick up the same JSESSIONID cookie and therefore fails as it is not authenticated/authorized. Does anyone know how to deal with this? How should one normally use a FileReference.upload to a servlet server that requires authentication? Any help or guidance warmly welcomed! Peter
[flexcoders] Re: Problems using SSL
Thanks a lot. I will try it out and report back... --- In [EMAIL PROTECTED], Paul Strange [EMAIL PROTECTED] wrote: I had the same problem. Needed to insure the client was not caching the response so data would be current. Pragma is an HTTP/1.0 header spec. If your server is HTTP/1.1, you can drop the Pragma header and change the Cache-Control to no-store which was meant for backup caching, but works well. You can find the relevant section from the HTTP Spec at: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.2 I have implemented this solution and it is working very well. Hope this helps you out. --- In [EMAIL PROTECTED], iko_knyphausen iko@ wrote: It works ok in FF but not in IE. Peter Farland kindly had a long exchange with me offline, and it seems in my case that the offending HTTP response is in the header pragma CacheControl = No-cache. Problem is, without the pragma I am not getting up-to-date data from my HTTPService requests. So the problem has been isolated, but not solved just yet. --- In [EMAIL PROTECTED], Tom Chiverton tom.chiverton@ wrote: On Sunday 08 Apr 2007, iko_knyphausen wrote: in relative URL calls. And I think it does, because the web site accepts both SSL and non-SSL, and the errors I am receiving don't happen when I load the same app from the same location without https. Are you using IE ? Does Firefox work fine on the SSL site ? If you use a network traffic sniffer, what is going on ? -- Tom Chiverton Helping to vitalistically administrate cutting-edge products on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Pie chart number format issue
Hi, it seems that the pie chart (and possibly other chart types) interprets 3,123.45 as 3.12345. Could be a locale issue - if so how do I force it? Thanks
[flexcoders] Re: Problems using SSL
First of all, thanks much to everyone for helping out. You saved me a lot of head-ache. I ended up with the latest suggestion from Doug Response.CacheControl = max-age=0, must-revalidate (this is ASP/VBscript) This seems to do the trick ... -Iko --- In [EMAIL PROTECTED], Doug Lowder [EMAIL PROTECTED] wrote: Ran into the same problem here. The root issue is a bug in some versions of IE. You can apply an MS patch at all clients (likely not a feasible solution), or set the cache-control header to max-age=0, must-revalidate. That header seems to work across all browsers, with or without SSL. --- In [EMAIL PROTECTED], iko_knyphausen iko@ wrote: It works ok in FF but not in IE. Peter Farland kindly had a long exchange with me offline, and it seems in my case that the offending HTTP response is in the header pragma CacheControl = No-cache. Problem is, without the pragma I am not getting up-to-date data from my HTTPService requests. So the problem has been isolated, but not solved just yet. --- In [EMAIL PROTECTED], Tom Chiverton tom.chiverton@ wrote: On Sunday 08 Apr 2007, iko_knyphausen wrote: in relative URL calls. And I think it does, because the web site accepts both SSL and non-SSL, and the errors I am receiving don't happen when I load the same app from the same location without https. Are you using IE ? Does Firefox work fine on the SSL site ? If you use a network traffic sniffer, what is going on ? -- Tom Chiverton Helping to vitalistically administrate cutting-edge products on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Are there any known length limits for content of attributes
Hi, I am planning on returning a longer list of delimiter separated items in an attribute field of an xml node (e4x). Are there any limits in length I should be aware of? Thanks
[flexcoders] Action Item Manager - Enterprise went live
Hello everyone, if you are interested in our task management product built with Flex, please feel free to check http://www.bluetask.com http://www.bluetask.com If you'd like a dedicated account (group with your own admin, users, and teams), please give me a shout. The online version is going to be free for now. Cheers P.S. Things to try: - drag columns left of ID column to regroup - click slider button to slide open dash board from right screen edge - click charts to filter task list
[flexcoders] Re: Problems using SSL
It works ok in FF but not in IE. Peter Farland kindly had a long exchange with me offline, and it seems in my case that the offending HTTP response is in the header pragma CacheControl = No-cache. Problem is, without the pragma I am not getting up-to-date data from my HTTPService requests. So the problem has been isolated, but not solved just yet. --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Sunday 08 Apr 2007, iko_knyphausen wrote: in relative URL calls. And I think it does, because the web site accepts both SSL and non-SSL, and the errors I am receiving don't happen when I load the same app from the same location without https. Are you using IE ? Does Firefox work fine on the SSL site ? If you use a network traffic sniffer, what is going on ? -- Tom Chiverton Helping to vitalistically administrate cutting-edge products on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Problems using SSL
Hi all, I am trying to connect to a web server via SSL. It seems that all my HTTPService calls fail (httpsFault). Here is how I attempt to load things: 1. I load the SWF file directly (without HTML file) 2. I use HTTPS://DOMAIN/MYAPP.SWF https://DOMAIN/MYAPP.SWF (loading the app itself via SSL). The app loads... 3. In the app, all HTTPServices have relative addressing, meaning the script file name only - no http or https (protocol prefix). The app is supposed to run whereever installed, so I cannot do absolute URLS), but I would expect that the protocol of the original SWF url would be used in relative URL calls. And I think it does, because the web site accepts both SSL and non-SSL, and the errors I am receiving don't happen when I load the same app from the same location without https. Can anyone tell me how to do this properly without a crossdomain, etc.? Thanks much Iko
[flexcoders] Re: Connect and Retrieve from MS SQL Server 2005
I can tell you what I am doing... using different versions of SQL Server as backend (SQL Server 2000 and 2005, MSDE, and Express, and MS Access): * First: SQL 2005 Express does NOT support web services endpoints only the full versions do. * Keep SQL server hidden (either via firewall and perimeter network, no remote access, windows authentication, etc.) * Data is read written via ASP scripts (classic or .NET) which run under IIS * Flex/Flash client use HTTPService to POST requests to ASP scripts * ASP scripts handle sessions and authentication (you can either trust IIS session management or write your own, e.g. using encrypted cookies) Maybe this works for you too... --- In flexcoders@yahoogroups.com, Ray Horn [EMAIL PROTECTED] wrote: Yes, but doing what you suggest means you must expose your database server to the outside world and for some this is simply unacceptable. - Original Message From: Paul Wright [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, April 5, 2007 9:02:44 AM Subject: RE: [flexcoders] Re: Connect and Retrieve from MS SQL Server 2005 This is a bit off topic The quote from this article regarding SQL Server 2005 HTTP requests (http://msdn2. microsoft. com/en-us/ library/ms345123 .aspx) that is relevant here is Any device that can parse XML and submit HTTP requests can now access SQL Server. Enjoy! Paul From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Shaun Sent: Thursday, April 05, 2007 10:18 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] Re: Connect and Retrieve from MS SQL Server 2005 The CLR is Microsoft's Common Language Runtime. It allows for language interoperability (write components in one language, use them in another, as well as many other benefits). The most common languages used with it are C#, Visual Basic, and managed C++ (probably in that order - I use C#), though I believe you can use more than just those. You can do a google search for Microsoft CLR and find out plenty of additional information. Shaun --- In [EMAIL PROTECTED] ups.com, hugocorept hugocore@ . wrote: Why i don´t choose ASP.NET ? Because i havent any experecience with it :P But i promisse i will give it a chance . Just a quick doubt, can you give a quick knowlodge about CLR, What you all mean with you use any CLR compatible language ? Whats the benifts ? Tkz for all --- In [EMAIL PROTECTED] ups.com, Shaun sthalberstadt@ wrote: Yes, Fluorine uses ASP.NET. So you can use any CLR compatible language. (Fluorine itself is written in C#) It also has an installer that creates a web site template project and comes with samples. I highly recommend it. Shaun --- In [EMAIL PROTECTED] ups.com, hugocorept hugocore@ wrote: Hey many thanks Point 1. So, you in general point the new feutures of SQL Server Web Services. Is that suported by either Express and Full Version? Can someone support me with some tutorials of any kind ? Point 2. I have tried by : PHP (with result in a difficul process because the DSN requirements) and ColdFusion 7 ( still in research but seams pretty good) Point 3 Fluorine project use witch languague ? Asp.NET? Thanks For All --- In [EMAIL PROTECTED] ups.com, hugocorept hugocore@ wrote: Hello all, In your opnion, witch is the simple/best way to connect a MSSQLServer 2005. I prefer java-less.. Thank you , Very Much! --- In [EMAIL PROTECTED] ups.com, iko_knyphausen iko@ wrote: If you are using the full version of SQL 2005 (meaning not Express) you may be able to use the built-in Web Services Endpoints ... Have not tried it myself, but I think in theory that should work. -Iko --- In [EMAIL PROTECTED] ups.com, Clint Tredway grumpee@ wrote: you can use just about any server side language (ColdFusion, PHP, ASP, .NET, etc) to connect to SQL Server On 3/28/07, hugocorept hugocore@ wrote: Hello all, In your opnion, witch is the simple/best way to connect a MSSQLServer 2005. I prefer java-less.. Thank you , Very Much! -- http://indeegrumpee .spaces.live. com/ -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.26/746 - Release Date: 4/4/2007 1:09 PM -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.26/746 - Release Date: 4/4/2007 1:09 PM
[flexcoders] Re: HTTP Response
I assume you have e4x as responseFormat and you are getting XML from the service. Try mx:TextArea width=300 height=132 id=response text={userRequest.lastResult.toString()} / --- In flexcoders@yahoogroups.com, Manolet Gmail [EMAIL PROTECTED] wrote: hi, i have a code to receive a xml (httpservice) and put it into a datagrid, but i want to show the full response text into a text area... what should i do? i try with this but dont work mx:TextArea width=300 height=132 id=response text={userRequest.lastResult} / thanks in advance
[flexcoders] Re: What's up with runtime errors silent failing.
Same here... I am wondering whether its VISTA related (which I am running on my box)? Basically, if there is a trigger for a runtime error, such as e.g. referencing a null pointer, the function with the culprit will stop executing, but the rest will continue... makes debugging kind of tedious... --- In flexcoders@yahoogroups.com, Ralph Hauwert [EMAIL PROTECTED] wrote: Hi guys, If recently (since FB 2.0.1) been experiencing several cases where my code would fail silently at runtime, not coming up with a runtime error at all, and just stopping code execution, restarting at the next logical step. Is there something I have missed in the release notes of FB2.0.1 ? -- Ralph Hauwert
[flexcoders] Re: How do I do this effect?
Yes, this would clip. If you want to slide and minimize, you need a combination of MOVE and RESIZE. As both effects run in parallel, it looks smooth if you allow both effects the same duration. I have a few sliders in a beta app, if you want to check. http://www.aim4pro.com http://www.aim4pro.com (use guest/guest to log in). Right to the main item list, you will find a slider button (vertically centered). Click on it to see a dashboard slid in... Later --- In flexcoders@yahoogroups.com, Nate Pearson [EMAIL PROTECTED] wrote: thanks for the reply. Will that clip the canvas if it goes outside of it's parent container? I.E. Parent is 400 pix wide. Child that you want to slide is 200px wide and is centered in the parent. If you slide the child xTo=1 will it look like its sliding outside of its parent container(clipping)? I'm about to go to bed or else I would try it right now. Either way I'll try it in the morning to figure out what's happening. Thanks again. --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote: I did not want to install the app, but I have done some sliding in and out... I used a combination of MOVE effects and RESIZE in some cases. So for example if you want to slide a Canvas (with its children) you can approach as follows... mx:Move id=moveEffect xTo=1 duration=500 target=myCanvas / mx:Canvas id=myCanvas ... / in an eventHandler you can then trigger the effect using moveEffect.play(); This is the bare minimum... but it explains the mechanism and what to look for... --- In flexcoders@yahoogroups.com, Nate Pearson napearson99@ wrote: I'm trying to figure out how the slide in slide out effect is done. Here is an example in an apollo app: http://www.finetune.com/desktop/ (pretty cool app by the way!) When you start finetune desktop up and click the arrows left an right you see how one things slides in and one slides out? That's what I want! How the heck do you do it? Is it a tween? It looks like there is a non-linear easing function on it but I'm a noob to effects. Thanks for your help in advance! :)
[flexcoders] Re: What's up with runtime errors silent failing.
Hm, how about data binding that is done declarative - meaning in curly braces... there is no code block per se? --- In flexcoders@yahoogroups.com, Bjorn Schultheiss [EMAIL PROTECTED] wrote: DataBinding is funny like that. Once it fails it stop execute any further in the code block. I think at this stage it may be worth writing our own versions of databinding that handle as we wish. On 02/04/2007, at 4:11 PM, iko_knyphausen wrote: Same here... I am wondering whether its VISTA related (which I am running on my box)? Basically, if there is a trigger for a runtime error, such as e.g. referencing a null pointer, the function with the culprit will stop executing, but the rest will continue... makes debugging kind of tedious... --- In flexcoders@yahoogroups.com, Ralph Hauwert r.hauwert@ wrote: Hi guys, If recently (since FB 2.0.1) been experiencing several cases where my code would fail silently at runtime, not coming up with a runtime error at all, and just stopping code execution, restarting at the next logical step. Is there something I have missed in the release notes of FB2.0.1 ? -- Ralph Hauwert
[flexcoders] Re: What's up with runtime errors silent failing.
Ok, got you... I have another post out there regarding binding problems... http://tech.groups.yahoo.com/group/flexcoders/message/70163 http://tech.groups.yahoo.com/group/flexcoders/message/70163 Maybe you know an answer to that one too ;-) (praying) Thx --- In flexcoders@yahoogroups.com, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Where you change the value that is being Binded to. eg. mx:Text text={model.text} / // in a command or equivalent model.text = param1; model.otherVal = param2; If binding throws an error on line1 of the command, it can prevent line 2 from executing On 02/04/2007, at 4:33 PM, iko_knyphausen wrote: Hm, how about data binding that is done declarative - meaning in curly braces... there is no code block per se? --- In flexcoders@yahoogroups.com, Bjorn Schultheiss bjorn.schultheiss@ wrote: DataBinding is funny like that. Once it fails it stop execute any further in the code block. I think at this stage it may be worth writing our own versions of databinding that handle as we wish. On 02/04/2007, at 4:11 PM, iko_knyphausen wrote: Same here... I am wondering whether its VISTA related (which I am running on my box)? Basically, if there is a trigger for a runtime error, such as e.g. referencing a null pointer, the function with the culprit will stop executing, but the rest will continue... makes debugging kind of tedious... --- In flexcoders@yahoogroups.com, Ralph Hauwert r.hauwert@ wrote: Hi guys, If recently (since FB 2.0.1) been experiencing several cases where my code would fail silently at runtime, not coming up with a runtime error at all, and just stopping code execution, restarting at the next logical step. Is there something I have missed in the release notes of FB2.0.1 ? -- Ralph Hauwert
[flexcoders] Re: data binding limitations?
Thanks everyone for your help and input. I finally figured it out. I have a little bit of egg in my face ;-), but maybe this will help someone else avoid the same mistakes.. 1. I recently installed Flex Builder on a VISTA machine. Had to copy a working XP installation as the setup program for Flex will not run on VISTA. One small detail I missed, I did not get the debug Flash Player plugin. It is installed by the setup program or you can manually download it from Adobe. This would also explain why I have not seen any runtime errors lately ;-) Now that we have that out of the way, some info on the data binding problems. 2. In my app I have a whole bunch of HTTPService calls to read data from a backend. One of the first service calls returned XML nodes where one item had a missing attribute. My assumption has always been that if you bind to an attribute value (such as @name), and if such attribute is missing that data binding would either ignore the node, or assume a blank value (like tag name= /). This is NOT the case and data binding fails. 3. More interesting about this is: Once you have one HTTPService data binding fail, there is no predicting how many others will fail / be ignored. It does explain somewhat why subsequent calls to explicit executeBinding are succesful if the underlying data is sound... Thanks again... --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Binding directly to lastResult is hard to debug. I advise using a result handler function to set an instance variable, and bind to that. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of iko_knyphausen Sent: Monday, April 02, 2007 1:26 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] data binding limitations? Hello everyone, I am experiencing some very strange behavior regarding data binding. First off, would anyone know why the following XMLListCollection does not bind successfully to its source, mx:XMLListCollection id=xlcUsers filterFunction=filterUser source={xmlSetup.lastResult.USER}/ The xmlSetup is a HTTPService that returns a list of user accounts in e4x format. The moment I add a binding tag, like the one below, the XMLListCollection has all the data I expect. mx:Binding destination=xlcUsers.source source=xmlSetup.lastResult.USER / I have several XMLListCollections bound to HTTPService results, and I never had to create explicit bindings. The second question is maybe related: Are there limits how many bindings you can have in an application? It seems to me that, as the application grows, and as I am adding more and more databound controls, previously succesful databound controls loose their bindings silently. They can be brought back by explicit calls to executeBindings but that sort of defies the purpose of having it done automatically - if you have to be explict, you may as well assign values upon change events... Am I missing something...or does anyone else have similar experiences? Thanks much Iko
[flexcoders] Re: Filter Function on ArrayCollection with httpservices as there source
You could e4x as resultFormat and then bind this to an XMLListCollection, which in turn you can filter with a function. In e4x you would omit the root tag (probably =stockreport in your case) and use stockFeed.lastResult.products.product as a source for databinding --- In flexcoders@yahoogroups.com, bnprrsh [EMAIL PROTECTED] wrote: Hi, I am trying to use the filter function on anrray collection with a http service lastResult source. I can't get passed this error TypeError: Error #1034: Type Coercion failed: cannot convert mx.collections::[EMAIL PROTECTED] to Array. It seems to work fine when using my had coded object but I cant get it working with a httpservice no matter what resultFormat I choose. My Code: == ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=stockFeed.send() mx:Script ![CDATA[ import mx.utils.ArrayUtil; // On startup public function initApp():void { // Set filter function // Be careful to set filterFunction // only after ArrayCollection has been // populated. myData.filterFunction=processFilter; } // Filter function public function processFilter(item:Object):Boolean { var result:Boolean=false; // If no filter text, or a match, then true if (!item.code.length || item.code.toUpperCase().indexOf(txtFilter.text.toUpperCase()) = 0) result=true; return result; } ]] /mx:Script mx:HTTPService id=stockFeed url=http://www.1on1wholesale.co.uk/members_area/status-xml.asp showBusyCursor=true resultFormat=object result=initApp()/ !-- Array Collection Using HTTPSERVICE Source -- mx:ArrayCollection id=myData source={stockFeed.lastResult.stockreport.products.product}/ !-- Array Collection using Hard coded information -- !-- mx:ArrayCollection id=myData mx:source mx:Object code=N0505 name=Monica Rose status=In Stock / mx:Object code=N0506 name=Randy Candice status=In Stock / mx:Object code=N0507 name=Jump Start Foot Pump status=In Stock / mx:Object code=N0508 name=Carla Doll status=Out of Stock / /mx:source /mx:ArrayCollection -- !-- UI -- mx:HBox width=100% mx:Label text=Filter:/ mx:TextInput id=txtFilter width=100% change=myData.refresh()/ /mx:HBox !-- Tile List showing results from filtered array collection -- mx:TileList dataProvider={myData} width=100% height=300 columnCount=2 rowCount=2 mx:itemRenderer mx:Component mx:VBox paddingLeft=30 width=150 height=150 horizontalScrollPolicy=off verticalScrollPolicy=off mx:Label text={data.code} / mx:Label text={data.name}/ mx:Label text={data.status}/ /mx:VBox /mx:Component /mx:itemRenderer /mx:TileList !-- Data Grid showing results from filtered array collection -- mx:DataGrid dataProvider={myData} width=100% height=100% mx:columns mx:DataGridColumn headerText=code dataField=code/ mx:DataGridColumn headerText=name dataField=name/ mx:DataGridColumn headerText=status dataField=status/ /mx:columns /mx:DataGrid !-- Datagrid showing results without filtering -- mx:DataGrid dataProvider={stockFeed.lastResult.stockreport.products.product} id=testing/ /mx:Application
[flexcoders] Re: How do I do this effect?
I am setting the canvas width to 25 or something like that. It leaves enough room to display the button and a vertical bar. In my approach I also have to react to resize events of the main application... constraints unfortunately don't work with Resize / Move effects... that's because you only have xFrom xTo, and widthFrom and widthTo etc. It would be nice if they actually had a rightFrom, rightTo leftFrom, leftTo etc. --- In flexcoders@yahoogroups.com, Nate Pearson [EMAIL PROTECTED] wrote: Hey Iko, It's working great, had another question for you. When you do that slide/resize on your canvas are you setting the width to 0 when it loads? Maybe setting the visibility to false? You have inspired me to copy you :) and I was wondering what the best approach is. --- In flexcoders@yahoogroups.com, Nate Pearson napearson99@ wrote: AH! Very cool! I like the minimize with the move. Thanks, you have answered my question. --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote: Yes, this would clip. If you want to slide and minimize, you need a combination of MOVE and RESIZE. As both effects run in parallel, it looks smooth if you allow both effects the same duration. I have a few sliders in a beta app, if you want to check. http://www.aim4pro.com http://www.aim4pro.com (use guest/guest to log in). Right to the main item list, you will find a slider button (vertically centered). Click on it to see a dashboard slid in... Later --- In flexcoders@yahoogroups.com, Nate Pearson napearson99@ wrote: thanks for the reply. Will that clip the canvas if it goes outside of it's parent container? I.E. Parent is 400 pix wide. Child that you want to slide is 200px wide and is centered in the parent. If you slide the child xTo=1 will it look like its sliding outside of its parent container(clipping)? I'm about to go to bed or else I would try it right now. Either way I'll try it in the morning to figure out what's happening. Thanks again. --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote: I did not want to install the app, but I have done some sliding in and out... I used a combination of MOVE effects and RESIZE in some cases. So for example if you want to slide a Canvas (with its children) you can approach as follows... mx:Move id=moveEffect xTo=1 duration=500 target=myCanvas / mx:Canvas id=myCanvas ... / in an eventHandler you can then trigger the effect using moveEffect.play(); This is the bare minimum... but it explains the mechanism and what to look for... --- In flexcoders@yahoogroups.com, Nate Pearson napearson99@ wrote: I'm trying to figure out how the slide in slide out effect is done. Here is an example in an apollo app: http://www.finetune.com/desktop/ (pretty cool app by the way!) When you start finetune desktop up and click the arrows left an right you see how one things slides in and one slides out? That's what I want! How the heck do you do it? Is it a tween? It looks like there is a non-linear easing function on it but I'm a noob to effects. Thanks for your help in advance! :)
[flexcoders] Re: Repost: FileReference.upload() and IIS 6.0 (Windows Server 2003)
What are you using as a server side upload component? --- In flexcoders@yahoogroups.com, bsausser [EMAIL PROTECTED] wrote: Upload Progresses, then fails at the end of the POST. Why? and What can be done to fix it? Flex Error Text: Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error. HTTP Sniff Result: http://www.dendera.com/dir/fr_upload_snif_result.xml Multiple IIS configurations did not change the result. Write on/off Integrated Windows Authentication on/off Anonymous access on/off NTFS file security IUSR_ | Full Control NTFS file secutiry EVERYONE | Full Control ** The IIS Server(s) is a part of an Active Directory Domain *** Hosted on two different IIS Machines with the same result on each one of them. sniff result ?xml version=1.0 encoding=UTF-16? log homepage=http://www.ieinspector.com; product=HttpAnalyzer version=1 entry method=POST url=http://fm.dendera.com/IMG_1567.JPG; timestart2007-03-31T07:52:17.655Z/timestart timeend2007-03-31T07:52:19.118Z/timeend duration1.463 s/duration processname/ result404/result size1795/size stageREQUEST_CLOSE/stage mimetypetext/html/mimetype redirecturl/ requestCamefromCacheFalse/requestCamefromCache responseCamefromCacheFalse/responseCamefromCache requestobjectname/IMG_1567.JPG/requestobjectname winet_sr_resultTrue/winet_sr_result winet_sr_errormessage/ bodySize1635/bodySize headers requestheaders headerPOST /IMG_1567.JPG HTTP/1.1/header headerAccept: text/*/header headerContent-Type: multipart/form-data; boundary=- -cH2ae0ei4KM7Ij5KM7GI3gL6ae0gL6/header headerUser-Agent: Shockwave Flash/header headerHost: fm.dendera.com/header headerContent-Length: 3595908/header headerConnection: Keep-Alive/header headerCache-Control: no-cache/header /requestheaders responseheaders headerHTTP/1.1 404 Not Found/header headerContent-Length: 1635/header headerContent-Type: text/html/header headerServer: Microsoft-IIS/6.0/header headerX-Powered-By: ASP.NET/header headerDate: Sat, 31 Mar 2007 14:52:18 GMT/header /responseheaders /headers content contentLength1635/contentLength mimetypetext/html/mimetype text ![CDATA ]] /text /content cookies sent/ received/ /cookies cache BeforeRequest UrlInCacheFalse/UrlInCache /BeforeRequest AfterRequest UrlInCacheFalse/UrlInCache /AfterRequest /cache QueryString/ PostData/ /entry /log
[flexcoders] data binding limitations?
Hello everyone, I am experiencing some very strange behavior regarding data binding. First off, would anyone know why the following XMLListCollection does not bind successfully to its source, mx:XMLListCollection id=xlcUsers filterFunction=filterUser source={xmlSetup.lastResult.USER}/ The xmlSetup is a HTTPService that returns a list of user accounts in e4x format. The moment I add a binding tag, like the one below, the XMLListCollection has all the data I expect. mx:Binding destination=xlcUsers.source source=xmlSetup.lastResult.USER / I have several XMLListCollections bound to HTTPService results, and I never had to create explicit bindings. The second question is maybe related: Are there limits how many bindings you can have in an application? It seems to me that, as the application grows, and as I am adding more and more databound controls, previously succesful databound controls loose their bindings silently. They can be brought back by explicit calls to executeBindings but that sort of defies the purpose of having it done automatically - if you have to be explict, you may as well assign values upon change events... Am I missing something...or does anyone else have similar experiences? Thanks much Iko
[flexcoders] Re: How do I do this effect?
I did not want to install the app, but I have done some sliding in and out... I used a combination of MOVE effects and RESIZE in some cases. So for example if you want to slide a Canvas (with its children) you can approach as follows... mx:Move id=moveEffect xTo=1 duration=500 target=myCanvas / mx:Canvas id=myCanvas ... / in an eventHandler you can then trigger the effect using moveEffect.play(); This is the bare minimum... but it explains the mechanism and what to look for... --- In flexcoders@yahoogroups.com, Nate Pearson [EMAIL PROTECTED] wrote: I'm trying to figure out how the slide in slide out effect is done. Here is an example in an apollo app: http://www.finetune.com/desktop/ (pretty cool app by the way!) When you start finetune desktop up and click the arrows left an right you see how one things slides in and one slides out? That's what I want! How the heck do you do it? Is it a tween? It looks like there is a non-linear easing function on it but I'm a noob to effects. Thanks for your help in advance! :)
[flexcoders] Re: Connect and Retrieve from MS SQL Server 2005
If you are using the full version of SQL 2005 (meaning not Express) you may be able to use the built-in Web Services Endpoints ... Have not tried it myself, but I think in theory that should work. -Iko --- In flexcoders@yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: you can use just about any server side language (ColdFusion, PHP, ASP, .NET, etc) to connect to SQL Server On 3/28/07, hugocorept [EMAIL PROTECTED] wrote: Hello all, In your opnion, witch is the simple/best way to connect a MSSQLServer 2005. I prefer java-less.. Thank you , Very Much! -- http://indeegrumpee.spaces.live.com/
[flexcoders] Re: How do you suppress repeating values in DataGrid columns?
Oh... thenI misunderstood, I thought he wanted to eliminate duplicate records.. Sorry --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: A filterFunction is applied to a record (item) as a whole, so that wouldn't work. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of iko_knyphausen Sent: Wednesday, March 21, 2007 3:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How do you suppress repeating values in DataGrid columns? I think you could write a filterFunction and have it check for duplicates in the collection. This function could return false when a duplicate is detected.. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Gordon Smith gosmith@ wrote: I don't think there is an automatic way to do this in the visual rendering. I think you'll have write AS to loop over your data and create another array of records that look like Record #1: Author=John Doe Title=Advanced Cat Juggling Record #2: Author= Title=Surviving Cat Scratch Fever Record #3: Author=Bill Smith Title=The Alligator Whisperer Record #3: Author= Title=Living WIth One Ear - Gordon From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of michael_p_levine Sent: Wednesday, March 21, 2007 3:19 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] How do you suppress repeating values in DataGrid columns? Given data that looks like this: Record #1: Author=John Doe, Title=Advanced Cat Juggling Record #2: Author=John Doe, Title=Surviving Cat Scratch Fever Record #3: Author=Bill Smith, Title=The Alligator Whisperer Record #4: Author=Bill Smith, Title=Living With One Ear How do I suppress the repeating Author name values in Rows #2 and #4 of a DataGrid so it looks like this? Author Title -- - John Doe Advanced Cat Juggling Surviving Cat Scratch Fever Bill Smith The Alligator Whisperer Living With One Ear I've checked the group archives and haven't found a real answer to this question. Has anyone el! se encountered and solved this? Thank you, Michael
[flexcoders] Re: How to change DataGridCell font color based on the cell value
You could do a cutom itemRenderer that is based on a canvas, put a label for your text (cell value) and overwrite the set data method. mx:canvas/ mx:Label id=myLabel text=/ mx:Script ![CDATA[ import mx.core.*; override public function set data(data:Object) : void { if (data != null) { super.data = data; if ( Number(data.YOURDATAFIELD) 0 ) myLabel.setStyle(color,#ff); else myLabel.clearStyle(color); myLabel.text = data.YOURDATAFIELD; } } ]] /mx:Script /mx:Canvas } --- In flexcoders@yahoogroups.com, rzilist [EMAIL PROTECTED] wrote: Hi folks, I need to change the font color on my last DataGridColumn (not the ColumnHeader, just the cells) based on the cell value, i.e. if value in the cell is negative, change the cell font color to red. I've tried various HTMLRenderer classes, but to no avail. Please help! Thanks, Roman
[flexcoders] Re: How to change DataGridCell font color based on the cell value
small correction: the initial canvas tag should be without the forward slash...like mx:canvas ... --- In flexcoders@yahoogroups.com, iko_knyphausen [EMAIL PROTECTED] wrote: You could do a cutom itemRenderer that is based on a canvas, put a label for your text (cell value) and overwrite the set data method. mx:canvas/ mx:Label id=myLabel text=/ mx:Script ![CDATA[ import mx.core.*; override public function set data(data:Object) : void { if (data != null) { super.data = data; if ( Number(data.YOURDATAFIELD) 0 ) myLabel.setStyle(color,#ff); else myLabel.clearStyle(color); myLabel.text = data.YOURDATAFIELD; } } ]] /mx:Script /mx:Canvas } --- In flexcoders@yahoogroups.com, rzilist rzilist@ wrote: Hi folks, I need to change the font color on my last DataGridColumn (not the ColumnHeader, just the cells) based on the cell value, i.e. if value in the cell is negative, change the cell font color to red. I've tried various HTMLRenderer classes, but to no avail. Please help! Thanks, Roman
[flexcoders] Re: DataGridColumn's width adjustment
I have never tried this, but maybe you can have an itemRenderer for the column in question, take a label component for the text, set the text property, and then read the label.width property. This width you could pass back out to the dataGrid.column and set the minWidth to that value... (parentDocument.dataGrid.columns(x).minWidth = ...) - just an idea... --- In flexcoders@yahoogroups.com, Mikhail Shevchuk [EMAIL PROTECTED] wrote: Hi, When I just set a datagrid's dataprovider, I get all DataGridColumns with the same width, and there are situations when the datafield's text doesn't fit into it. Is there any easy flexy way to set column's width automatically so that even the max text of the column will fit into it? -- A vivid and creative mind characterizes you.
[flexcoders] Re: How do you suppress repeating values in DataGrid columns?
I think you could write a filterFunction and have it check for duplicates in the collection. This function could return false when a duplicate is detected.. --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: I don't think there is an automatic way to do this in the visual rendering. I think you'll have write AS to loop over your data and create another array of records that look like Record #1: Author=John Doe Title=Advanced Cat Juggling Record #2: Author= Title=Surviving Cat Scratch Fever Record #3: Author=Bill Smith Title=The Alligator Whisperer Record #3: Author= Title=Living WIth One Ear - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of michael_p_levine Sent: Wednesday, March 21, 2007 3:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do you suppress repeating values in DataGrid columns? Given data that looks like this: Record #1: Author=John Doe, Title=Advanced Cat Juggling Record #2: Author=John Doe, Title=Surviving Cat Scratch Fever Record #3: Author=Bill Smith, Title=The Alligator Whisperer Record #4: Author=Bill Smith, Title=Living With One Ear How do I suppress the repeating Author name values in Rows #2 and #4 of a DataGrid so it looks like this? Author Title -- - John Doe Advanced Cat Juggling Surviving Cat Scratch Fever Bill Smith The Alligator Whisperer Living With One Ear I've checked the group archives and haven't found a real answer to this question. Has anyone el! se encountered and solved this? Thank you, Michael
[flexcoders] Looking for Beta Testers
Hello everyone, we just started the beta for the pro version of our task management tool (written in Flex with ASP backend) and are looking beta testers. If you are interested, drop me a quick line. You can participate online, or install on you own box. P.S. Main features: Organize and share tasks amongst multiple teams (grid with drag and drop grouping functionality) View real time dashboard with task health, category summary, files, etc. (flex charting) Weekly calendar view of deadlines (grid with custom renderers) Track time reports and expenses ...
[flexcoders] Re: set percent value to a Panel's width ?
Try panelID.percentWidth ... --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: how do i set percent values to a Panel's width and height in ActionScript? this is what I want : panelID.setActualSize(17%,100%); // this returns an error OR panelID.width = 17% // this too returns an error \ Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/
[flexcoders] Can one use a XMLListCollection as a source for another XMLListcollection
Hi everyone, I am trying to use one xmllistcollection as a source for another xmllistcollection. The prupose is to have 2 filterfunctions, one for the first collection, and the second for a staggered additional filter...ultimately for a datasource of another control. Is it possible? Thanks
[flexcoders] Combobox erases typed text when tabing away or closing the dropdown list
Hi everyone, I have an editable combobox. When I enter text while the dropdown is open and then use the tab key to move to the next input field, the entered text gets erased. The same happens when I close the dropdown list - any previously entered text is gone. The only way my input is kept, is when I enter text while the dropdown is closed and don't touch the dropdown... This does not seem right. Are there any options/switches that I am missing? The combobox has a e4x dataprovider. Thanks much
[flexcoders] Re: Can't I style an anchor in a RichTextEditor??
I have to agree with Carl, what's te point of having a URL feature in the RTE, if you don't intend browsing somewhere... The only solution I have - I have the same issue - is manipulating the htmlText content by putting underline and font tags around the Anchortags Here is a little tool to exchange HTML from RTE with plaintext..it allows to send back and forth so you can see what works and what doesn't...styles don't ;-) ?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 mx:RichTextEditor x=10 y=10 id=rtf /mx:RichTextEditor mx:Button x=343 y=9 label=gt;gt; click=txt.text=rtf.htmlText/ mx:TextArea x=391 y=10 width=325 height=300 id=txt wordWrap=true/ mx:Button x=343 y=288 label=lt;lt; click=rtf.htmlText=txt.text/ /mx:Application Iko --- In flexcoders@yahoogroups.com, carl_steinhilber [EMAIL PROTECTED] wrote: While I understand what you're saying, Alex, that's just not a valid answer. I realize that HTML support is not very advanced in Flex. But, truthfully, it doesn't take a highly advanced HTML browser to know that people expect hyperlinks to be rendered differently than the rest of the text on the screen. In fact, it doesn't take even a [i]mildly[/i] advanced browser. The very [i]first[/i] web browser did that... even before the rest of the HTML spec was complete... even before HTML had an img tag. Word does it, and it's not a browser. Outlook does it, and it's not (technically) a browser. Heck, the Flex IDE even understands the concept, and it's [i]certainly[/i] not a browser. When you hold the CTRL key down and roll over an object name in your MXML... what does it do? It highlights the text to indicate that it's clickable. It seems like that has less to do with HTML support and more to do with usability and interface design. Unfortunately, I [i]do[/i] need editability. That's the whole point of my current application. And if you can style anchors in non-editable text objects, how big a stretch is it, really, to be able to apply styles to editable text objects. Obviously the developers knew it was important, otherwise they wouldn't have made it possible for non-editable components either. As it stands now, I'll pretty much have to roll out my application with the URL text box removed from the RichTextEditor. Since it's completely unusable sans any type of visual feedback in the text. --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: HTML/CSS support in Flash/Flex has always been limited. We're just not a browser. You can style anchor tags, but not in editable controls. If you don't need editability, use Text instead of RichTextEditor and set htmlText and a styleSheet (not styleName). Try to follow the example in the doc for flash.text.TextField.htmlText. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of carl_steinhilber Sent: Wednesday, March 14, 2007 3:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Can't I style an anchor in a RichTextEditor?? I've tried various techniques that I picked up on the web, but can't seem to apply a style specifically to the anchor links in a RichTextEditor. Basically, I want a style like: .myRTETextAreaStyle A { color:#ff; text-decoration:underline; } but I'm not having much luck. I tried setting myRTE.textArea.styleName=myRTETextAreaStyle; in creationComplete. I tried creating a stylesheet on the fly using the StyleSheet object, CSSStyleDeclaration, and the StyleManager. I (first) tried simply declaring the style in an mx:Style block. Nothing seems to work. And for the life of my I can't understand why the RTE doesn't do it by default out of the box. Under what earthly circumstance would NOT differenciating a link from the rest of the text in an RTE be intuitive?? Ah well... c'est l'vie. Anyone know how to make it work after the fact? Thanks in advance! -Carl
[flexcoders] Re: Keyboard issues on VISTA - Important
Thanks much for trying... do you run VISTA Home Premium or Ultimate? I am asking because I have one Ultimate machine that works fine, but my Home Premium and all the boxes at Compusa with Home Premium have the issue when loading the app via index.htm --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: I use Vista at home, tried it and no problems. Dimitrios Gianninas Optimal Payments Inc. -Original Message- From: flexcoders@yahoogroups.com on behalf of iko_knyphausen Sent: Wed 3/7/2007 6:40 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Keyboard issues on VISTA - Important Any chance that an Adobe Guru can take a look at this, and maybe provide an indication whether this is a known issue... if you need the application to try: http://66.111.222.44 http://66.111.222.44 (you can use guest / guest to log in) Try this from VISTA and you will experience the keyboard dropout issue...If you restart the application using the SWF directly... http://66.111.222.44/main.swf http://66.111.222.44/main.swf the keyboard issues are gone... Thanks much --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote: I think I finally found the problem source... It seems to be connected to the hosting HTML file (and possibly its JS code - not sure). That is the file that pulls flash player, checks for the required version, etc. This file is generated automatically by Flex and used as default on the web server... I don't know how this can affect the keyboard input, but after pulling a lot on my hair over this issue, I swear I am not making this up. If I start the application by loading the SWF file directly, all keyboard issues are gone... Ideas anyone (someone at Adobe maybe?) --- In flexcoders@yahoogroups.com, camlinaeizerous camlinae@ wrote: Have you been able to try it on home basic or professional? It is odd that it would only happen on premium and not ultimate. -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
[flexcoders] Re: Keyboard issues on VISTA - Important
Any chance that an Adobe Guru can take a look at this, and maybe provide an indication whether this is a known issue... if you need the application to try: http://66.111.222.44 http://66.111.222.44 (you can use guest / guest to log in) Try this from VISTA and you will experience the keyboard dropout issue...If you restart the application using the SWF directly... http://66.111.222.44/main.swf http://66.111.222.44/main.swf the keyboard issues are gone... Thanks much --- In flexcoders@yahoogroups.com, iko_knyphausen [EMAIL PROTECTED] wrote: I think I finally found the problem source... It seems to be connected to the hosting HTML file (and possibly its JS code - not sure). That is the file that pulls flash player, checks for the required version, etc. This file is generated automatically by Flex and used as default on the web server... I don't know how this can affect the keyboard input, but after pulling a lot on my hair over this issue, I swear I am not making this up. If I start the application by loading the SWF file directly, all keyboard issues are gone... Ideas anyone (someone at Adobe maybe?) --- In flexcoders@yahoogroups.com, camlinaeizerous camlinae@ wrote: Have you been able to try it on home basic or professional? It is odd that it would only happen on premium and not ultimate.
[flexcoders] Re: I want to write a tutorial
There is one from Adobe, called Training from the Source, and then there is one called Total Training for Adobe Flex 2 available at TotalTraining.com --- In flexcoders@yahoogroups.com, Jeffry Houser [EMAIL PROTECTED] wrote: Where can one find such tutorials? At 12:38 AM 3/5/2007, you wrote: Hey guys, I want to write another tutorial on Flex. So far I've written on how to create a login system with flex and php, and an mp3 player in flex. Any suggestions on what I should do next? I'm fresh out of ideas :p -- Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com Connecticut Macromedia User Group: http://www.ctmug.com
[flexcoders] Re: ctrl key with a combination - doesnt seem to work
Try it upon a KEYUP event --- In flexcoders@yahoogroups.com, jmorpher03 [EMAIL PROTECTED] wrote: Does anyone know how the the CTRL + key combination work ? Is this a Flex bug ? The Flex sample code in the help docs talks about this, but it doesn't seem to work. Whats wrong ??? --- In flexcoders@yahoogroups.com, jmorpher03 asgartali@ wrote: Hi, I am trying to trap the ctrl key along with a combination of any other alphanumeric key by using the following code on a DataGrid control: public void myKeyDown(event:KeyBoardEvent):void { if ( event.ctrlKey event.keyCode == 67 ) // for 'C' { // copy selected row } } This does not seem to work. Nor is any other key combination detected when we use the ctrl key. Isnt this the way to handle keyboard events ? Is there any other explicit way to handle it ? Regards, Asgar.
[flexcoders] Re: Keyboard issues on VISTA - Important
I think I finally found the problem source... It seems to be connected to the hosting HTML file (and possibly its JS code - not sure). That is the file that pulls flash player, checks for the required version, etc. This file is generated automatically by Flex and used as default on the web server... I don't know how this can affect the keyboard input, but after pulling a lot on my hair over this issue, I swear I am not making this up. If I start the application by loading the SWF file directly, all keyboard issues are gone... Ideas anyone (someone at Adobe maybe?) --- In flexcoders@yahoogroups.com, camlinaeizerous [EMAIL PROTECTED] wrote: Have you been able to try it on home basic or professional? It is odd that it would only happen on premium and not ultimate.
[flexcoders] Re: I want to write a tutorial
Here comes a list of ideas: 1. First you should define who your audience is. Keep in mind, very good tutorials have been made already - so if you want to add value, you have to explore uncharted territory. Login is a start, but it will not win you a Pulitzer prize... 2. I think you should analyze this message board...it will tell you what people are struggling with at various stages. Add to the mix, what you yourself have been struggling with. 3. Make sure that what you write about is not hear-say (or read somewhere) but actual experience. You will need to back it up, reproduce cases, etc. You cannot teach what you have not experienced. In other words, don't try anything abstract. 4. On a positive note: I think you could write an entire tutorial on how to best use the DataGrid control. It's a highly complex topic, with plenty of depth to dive into. 5. On a lighter note, a good movie about teaching is the recent DVD release of Guardian. I am mentioning it because I think it illustrates the importance of experience. Other than that, good luck - and hopefully a good tutorial...
[flexcoders] Re: simulate datagrid header click, or set default sort column
By dates, I meant, sorting the following 2/13/2007 11/13/2007 If you sort these as strings, November is smaller than February, which is obviously wrong. Your sortFunction would have to create date objects first and compare those, or pad the strings with leading zeros... --- In flexcoders@yahoogroups.com, Adam Royle [EMAIL PROTECTED] wrote: OK, this was easier than anticipated. I didn't realise the DataGrid would detect the sort on the ArrayCollection and update it's sort arrow based on this. My code: import mx.collections.Sort; import mx.collections.SortField; var s:Sort = new Sort(); s.fields = [new SortField(transaction_date,false,true)]; dataProvider.sort = s; dataProvider.refresh(); Thanks for your advice. By the way, I don't really understand what you mean about sorting dates as strings. When I load my data I create date objects from my strings, and the datagrid/sort classes sort it all correctly. Although I do understand your labelFunction point. Cheers, Adam - Original Message - From: iko_knyphausen To: flexcoders@yahoogroups.com Sent: Saturday, March 03, 2007 9:52 AM Subject: [flexcoders] Re: simulate datagrid header click, or set default sort column Yes, but you should provide for the sorting of these columns too, otherwise your sort competes against the builtin... Alternatively, you could detach your custom sort whenever a different header is clicked (meaning resetting the sort property of the collection) - but I think you can have much more control doing your own. Also keep in mind, if you have any columns with calculated fields (meaning the dataField value is different than what is displayed), you may need a custom sort anyway (try sorting dates as strings... and you see what I mean) Iko --- In flexcoders@yahoogroups.com, Adam Royle adam@ wrote: OK, thanks for your response. Haven't tried this yet, but will do. Just a quick question, if I use do the way you recommend with a custom sort object, can the user still use the headers to change the sort column/direction? This is what I want. Thanks, Adam - Original Message - From: iko_knyphausen To: flexcoders@yahoogroups.com Sent: Saturday, March 03, 2007 5:09 AM Subject: [flexcoders] Re: simulate datagrid header click, or set default sort column BTW, I also fiddled with dispatching the HEADER_RELEASE event, before I used a custom sort, and one problem is, that its behavior depends on whether the column to be sorted was the last sorted column or not. If it was the previous sort column a header release event will reverse the sort order, if it was not the last column, it will reuse the same sort order that it had when it was last used - in some cases you may end up dispatching the header release twice, to get the desired sort order, and you can see... this is not a good solution ;-) --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote: I just went through the same exercise, and ended up using the recommended method, which is creating your own Sort object... The basic working is to 1. take a collection (either arraycollection or xmllistcollection) as dataprovider 2. define a Sort object for it (you do this by creating SortFields and putting them into the fields array of the Sort object) 3. execute a Refresh on your collection If you trigger your sort via HeaderRelease events, you should call preventDefault() in that handler so that only your sort gets executed. You can find code samples if you look in the docs (the example I used was about sorting multiple columns at the same time) HTH --- In flexcoders@yahoogroups.com, Robert Chyko rchyko@ wrote: One thing to look at would be dispatch a HEADER_RELEASE event on the datagrid. Its not the most straightforward fix, and will take a little tweaking to get to work right, but it is doable. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Adam Royle Sent: Thursday, March 01, 2007 8:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] simulate datagrid header click, or set default sort column Hi guys, This came up last week but no working response was given. I have my data sorted in a dataProvider, however whenever I add new data I add it to the end of the ArrayCollection. However this means the datagrid is no longer sorted correctly. I wish I could execute the private method sortByColumn() that exists in the DataGrid class, but it's private!! Anyone with a solution? I have tried subclassing and also copying code directly, but the sortByColumn method uses private variables, so I'm stuck again. Can anyone suggest a solution to my problem? Cheers, Adam
[flexcoders] Re: simulate datagrid header click, or set default sort column
I just went through the same exercise, and ended up using the recommended method, which is creating your own Sort object... The basic working is to 1. take a collection (either arraycollection or xmllistcollection) as dataprovider 2. define a Sort object for it (you do this by creating SortFields and putting them into the fields array of the Sort object) 3. execute a Refresh on your collection If you trigger your sort via HeaderRelease events, you should call preventDefault() in that handler so that only your sort gets executed. You can find code samples if you look in the docs (the example I used was about sorting multiple columns at the same time) HTH --- In flexcoders@yahoogroups.com, Robert Chyko [EMAIL PROTECTED] wrote: One thing to look at would be dispatch a HEADER_RELEASE event on the datagrid. Its not the most straightforward fix, and will take a little tweaking to get to work right, but it is doable. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Adam Royle Sent: Thursday, March 01, 2007 8:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] simulate datagrid header click, or set default sort column Hi guys, This came up last week but no working response was given. I have my data sorted in a dataProvider, however whenever I add new data I add it to the end of the ArrayCollection. However this means the datagrid is no longer sorted correctly. I wish I could execute the private method sortByColumn() that exists in the DataGrid class, but it's private!! Anyone with a solution? I have tried subclassing and also copying code directly, but the sortByColumn method uses private variables, so I'm stuck again. Can anyone suggest a solution to my problem? Cheers, Adam
[flexcoders] Re: simulate datagrid header click, or set default sort column
BTW, I also fiddled with dispatching the HEADER_RELEASE event, before I used a custom sort, and one problem is, that its behavior depends on whether the column to be sorted was the last sorted column or not. If it was the previous sort column a header release event will reverse the sort order, if it was not the last column, it will reuse the same sort order that it had when it was last used - in some cases you may end up dispatching the header release twice, to get the desired sort order, and you can see... this is not a good solution ;-) --- In flexcoders@yahoogroups.com, iko_knyphausen [EMAIL PROTECTED] wrote: I just went through the same exercise, and ended up using the recommended method, which is creating your own Sort object... The basic working is to 1. take a collection (either arraycollection or xmllistcollection) as dataprovider 2. define a Sort object for it (you do this by creating SortFields and putting them into the fields array of the Sort object) 3. execute a Refresh on your collection If you trigger your sort via HeaderRelease events, you should call preventDefault() in that handler so that only your sort gets executed. You can find code samples if you look in the docs (the example I used was about sorting multiple columns at the same time) HTH --- In flexcoders@yahoogroups.com, Robert Chyko rchyko@ wrote: One thing to look at would be dispatch a HEADER_RELEASE event on the datagrid. Its not the most straightforward fix, and will take a little tweaking to get to work right, but it is doable. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Adam Royle Sent: Thursday, March 01, 2007 8:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] simulate datagrid header click, or set default sort column Hi guys, This came up last week but no working response was given. I have my data sorted in a dataProvider, however whenever I add new data I add it to the end of the ArrayCollection. However this means the datagrid is no longer sorted correctly. I wish I could execute the private method sortByColumn() that exists in the DataGrid class, but it's private!! Anyone with a solution? I have tried subclassing and also copying code directly, but the sortByColumn method uses private variables, so I'm stuck again. Can anyone suggest a solution to my problem? Cheers, Adam
[flexcoders] Re: simulate datagrid header click, or set default sort column
Yes, but you should provide for the sorting of these columns too, otherwise your sort competes against the builtin... Alternatively, you could detach your custom sort whenever a different header is clicked (meaning resetting the sort property of the collection) - but I think you can have much more control doing your own. Also keep in mind, if you have any columns with calculated fields (meaning the dataField value is different than what is displayed), you may need a custom sort anyway (try sorting dates as strings... and you see what I mean) Iko --- In flexcoders@yahoogroups.com, Adam Royle [EMAIL PROTECTED] wrote: OK, thanks for your response. Haven't tried this yet, but will do. Just a quick question, if I use do the way you recommend with a custom sort object, can the user still use the headers to change the sort column/direction? This is what I want. Thanks, Adam - Original Message - From: iko_knyphausen To: flexcoders@yahoogroups.com Sent: Saturday, March 03, 2007 5:09 AM Subject: [flexcoders] Re: simulate datagrid header click, or set default sort column BTW, I also fiddled with dispatching the HEADER_RELEASE event, before I used a custom sort, and one problem is, that its behavior depends on whether the column to be sorted was the last sorted column or not. If it was the previous sort column a header release event will reverse the sort order, if it was not the last column, it will reuse the same sort order that it had when it was last used - in some cases you may end up dispatching the header release twice, to get the desired sort order, and you can see... this is not a good solution ;-) --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote: I just went through the same exercise, and ended up using the recommended method, which is creating your own Sort object... The basic working is to 1. take a collection (either arraycollection or xmllistcollection) as dataprovider 2. define a Sort object for it (you do this by creating SortFields and putting them into the fields array of the Sort object) 3. execute a Refresh on your collection If you trigger your sort via HeaderRelease events, you should call preventDefault() in that handler so that only your sort gets executed. You can find code samples if you look in the docs (the example I used was about sorting multiple columns at the same time) HTH --- In flexcoders@yahoogroups.com, Robert Chyko rchyko@ wrote: One thing to look at would be dispatch a HEADER_RELEASE event on the datagrid. Its not the most straightforward fix, and will take a little tweaking to get to work right, but it is doable. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Adam Royle Sent: Thursday, March 01, 2007 8:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] simulate datagrid header click, or set default sort column Hi guys, This came up last week but no working response was given. I have my data sorted in a dataProvider, however whenever I add new data I add it to the end of the ArrayCollection. However this means the datagrid is no longer sorted correctly. I wish I could execute the private method sortByColumn() that exists in the DataGrid class, but it's private!! Anyone with a solution? I have tried subclassing and also copying code directly, but the sortByColumn method uses private variables, so I'm stuck again. Can anyone suggest a solution to my problem? Cheers, Adam
[flexcoders] Looking for Beta Testers
Hello everyone, I am looking for some beta testers for a simple task manager written in Flex 2. To participate you need some form of IIS on your server or dev box. The server side scripts are written in classic ASP. Main features of the product: 1. Share action items with team members 2. Assign people 3. Attach files and comments 4. Group and organize action items (datagrid with multilevel grouping and collapsible rows!) 5. Supports multiple teams, and people can be members in more than one team 6. Keep audit trail of all changes made to action items in a log The product can be useful for 1. Development teams that want to track bugs, feature requests, issues, ideas 2. Small and mid-sized creative teams that need to track customer deliverables 3. Office managers, meeting minutes 4. and more ;-) If you are interested drop me a quick line to [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Have a nice weekend, Iko
[flexcoders] Re: Can Flex really compete with AJAX?
I have 2 cents to spend: Many things are crucial in dynamic content - one important one is performance (otherwise it's not very dynamic to the eye, I would say). I have done some heavy lifting, with JS and DHTML - namely a project management application with full waterfall (read:dependency) Gantt charts, drag and drop, spreadsheet-like grid data entry, etc. I have also done some DHTML and XMLHTTP work (basically the same methods AJAX uses) with an application that supports IE aswell as FF. IE and FF use different event models, and rendering DHTML is always different: you know one pixel here, one pixel there, margins inside, margins outside, etc. pp. If you have gone down this road, you know... So AJAX packages (DOJO, ATLAS,..) are basically putting a layer between you (your application) and the different browsers. This means it's basically a translator for your code... unfortunately, this also means a loss in performance. Also, with AJAX your apps will perform differently on different browsers - just as strong as the translation of code and more relevant the rendering of DHTML (a big one). If you use FLASH, its going to be as fast or slow as FLASH is - fast in most cases ;-) Plus you can trust that if an app runs on one platform it will run on pretty much any other that supports Flash - with the same look and feel - I shoudl add. Now add to this, all the nice effects, transistions, moves, etc. for DYNAMIC experience... I think you sould rephrase into CAN AJAX compete with FLEX ;-) Sorry, but it had to be said... --- In flexcoders@yahoogroups.com, thetexaspsycho2003 [EMAIL PROTECTED] wrote: I mean, creating something as simple as a dynamic ID is crucial in creating truly dynamic content.
[flexcoders] Re: Filterfunction on a XMLListCollection is misbehaving
Here is the relevant code...Without the filter function all edits are inplace without the updated record gets resorted... thanks. mx:Script ![CDATA[ . private function itemFilter (item : Object ) : Boolean { return true; } ]] /mx:Script mx:HTTPService id=xmlItems result=searchComplete(event) resultFormat=e4x contentType=application/x-www-form-urlencoded fault=httpsFault(event) useProxy=false method=POST url=items.asp/ mx:XMLListCollection id=xlcItems source={xmlItems.lastResult.item} filterFunction=itemFilter/ mx:DataGrid sortableColumns=false dataProvider={xlcItems} id=dgItems headerShift=reGroup(event) headerRelease=headerRelease(event) editable=false focusAlpha=0.0 doubleClickEnabled=true doubleClick=editItem() headerStyleName=header headerColors=[#ff,#dd] height=22 fontSize=11 left=10 right=10 top=10 alpha=1.0 bottom=10 borderStyle=solid borderColor=#bb . /mx:DataGrid --- In flexcoders@yahoogroups.com, bobignacio [EMAIL PROTECTED] wrote: Any chance you can post your source code? --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote: Here is the deal... I have an XMLListCollection as a dataProvider for a dataGrid, so that I can use custom sort and filterfunctions. My application provides for editing selected items (=rows) in the Grid, and when an edit is done, I update the Grid, by setting values of the selectedItem, e.g. myGrid.selectedItem.dataField = newValue; This works fine, if I have no filterFunction defined for the XMLListCollection. The updates happen inplace, the Grid is updated and the selectedItem (=row) is still highlighted, i.e. selected. The moment, I specify a filterFunction (one that returns true for all records, mind you), any update to a field in the current selectedItem will resort the Grid (no sort object specified, and the dataGrid column sort is set to false), and the item is always sorted second last in the grid. At the same time the selectedItem property is lost (set to null). I know how to disable and enableAutoUpdate (to avoid loosing the selectedItem), but it still does not explain, why the grid data gets resorted Any insight from the pros? Thanks Iko
[flexcoders] Re: Filterfunction on a XMLListCollection is misbehaving
Correction: WITHOUT the filter function all edits are inplace, WITH the filter function the updated record gets resorted... --- In flexcoders@yahoogroups.com, iko_knyphausen [EMAIL PROTECTED] wrote: Here is the relevant code...Without the filter function all edits are inplace without the updated record gets resorted... thanks. mx:Script ![CDATA[ . private function itemFilter (item : Object ) : Boolean { return true; } ]] /mx:Script mx:HTTPService id=xmlItems result=searchComplete(event) resultFormat=e4x contentType=application/x-www-form-urlencoded fault=httpsFault(event) useProxy=false method=POST url=items.asp/ mx:XMLListCollection id=xlcItems source={xmlItems.lastResult.item} filterFunction=itemFilter/ mx:DataGrid sortableColumns=false dataProvider={xlcItems} id=dgItems headerShift=reGroup(event) headerRelease=headerRelease(event) editable=false focusAlpha=0.0 doubleClickEnabled=true doubleClick=editItem() headerStyleName=header headerColors=[#ff,#dd] height=22 fontSize=11 left=10 right=10 top=10 alpha=1.0 bottom=10 borderStyle=solid borderColor=#bb . /mx:DataGrid --- In flexcoders@yahoogroups.com, bobignacio bobignacio@ wrote: Any chance you can post your source code? --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote: Here is the deal... I have an XMLListCollection as a dataProvider for a dataGrid, so that I can use custom sort and filterfunctions. My application provides for editing selected items (=rows) in the Grid, and when an edit is done, I update the Grid, by setting values of the selectedItem, e.g. myGrid.selectedItem.dataField = newValue; This works fine, if I have no filterFunction defined for the XMLListCollection. The updates happen inplace, the Grid is updated and the selectedItem (=row) is still highlighted, i.e. selected. The moment, I specify a filterFunction (one that returns true for all records, mind you), any update to a field in the current selectedItem will resort the Grid (no sort object specified, and the dataGrid column sort is set to false), and the item is always sorted second last in the grid. At the same time the selectedItem property is lost (set to null). I know how to disable and enableAutoUpdate (to avoid loosing the selectedItem), but it still does not explain, why the grid data gets resorted Any insight from the pros? Thanks Iko
[flexcoders] Custom Collection Sorting Challenge
Hi all, more questions on custom collection sorting... I have a XMLListCollection dataprovider, which I am sorting using a sort object. The sorting works as expected, when I use the following syntax to define the array of SortFields: aSort.fields = [sfSortField, sfLevel]; However, I would like to assemble the fields array dynamically, depending on column position, or what have you, so my first thought was to use the array.push() method to add the individual SortFields, but this fails without an exception being thrown... i = aSort.fields.push(sfSortField); i = aSort.fields.push(sfLevel); Any ideas? Thanks
[flexcoders] Re: Custom Collection Sorting Challenge
Duh, was not thinking...forgot creating a new array first...interesting though that it did not throw an exception... aSort.fields = new Array(); --- In flexcoders@yahoogroups.com, iko_knyphausen [EMAIL PROTECTED] wrote: Hi all, more questions on custom collection sorting... I have a XMLListCollection dataprovider, which I am sorting using a sort object. The sorting works as expected, when I use the following syntax to define the array of SortFields: aSort.fields = [sfSortField, sfLevel]; However, I would like to assemble the fields array dynamically, depending on column position, or what have you, so my first thought was to use the array.push() method to add the individual SortFields, but this fails without an exception being thrown... i = aSort.fields.push(sfSortField); i = aSort.fields.push(sfLevel); Any ideas? Thanks
[flexcoders] Re: Storing / retrieving rich text
Have you tried using CDATA around your text when retrieving from your database? ![CDATA[ ]] I use it to store HTML formatted text in a database and to retrieve it back into any HTML capable control, such as rtfedit or textarea... even a simple TEXT control as itemrenderer works with this method... HTH Iko --- In flexcoders@yahoogroups.com, pdflibpilot [EMAIL PROTECTED] wrote: I am trying to develop a method to allow web administrators to be able to edit text in their Flex application directly in the UI (without Flex). This text gets saved to mySQL when they close the rich text editor. The data is stored correctly in mySQL however when its retrieved it gets formated as an XML object when extracted from the event.result. While this makes it easy to populate the various labels and text objects with the rich text data. The problem is that the rich text data gets formatted as XML with new lines and indents. Like in this dmup contentLive TEXTFORMAT LEADING=2 P ALIGN=CENTER FONT FACE=Verdana SIZE=14 COLOR=#FF LETTERSPACING=0 KERNING=0 BThis is /B FONT COLOR=#0033FF B Ulive content/U /B /FONT /FONT /P /TEXTFORMAT /contentLive How can I force it to treat it as raw text just like its stored in mySQL without the formatting ?
[flexcoders] Re: Storing / retrieving rich text
Maybe I misunderstood your last post, but I am getting an XML field from a HTTPservice call with resultformat e4x and this XML field has HTML content wrapped in a CDATA tag. I bound this XML field to a regular text control's html property and it renders as HTML not as text --- In flexcoders@yahoogroups.com, Ben Marchbanks [EMAIL PROTECTED] wrote: Wrapping the text in ![CDATA causes the CDATA to be interpreted literally and rendered along with the text. setting the resultFormat to text makes it much more difficult to handle the text and distribute it to the appropriate display objects. Barring any easier solutions at this point it looks like stripping out the white space with AS is the only option. iko_knyphausen wrote: Have you tried using CDATA around your text when retrieving from your database? ![CDATA[ ]] I use it to store HTML formatted text in a database and to retrieve it back into any HTML capable control, such as rtfedit or textarea... even a simple TEXT control as itemrenderer works with this method... HTH Iko --- In flexcoders@yahoogroups.com, pdflibpilot flex@ wrote: I am trying to develop a method to allow web administrators to be able to edit text in their Flex application directly in the UI (without Flex). This text gets saved to mySQL when they close the rich text editor. The data is stored correctly in mySQL however when its retrieved it gets formated as an XML object when extracted from the event.result. While this makes it easy to populate the various labels and text objects with the rich text data. The problem is that the rich text data gets formatted as XML with new lines and indents. Like in this dmup contentLive TEXTFORMAT LEADING=2 P ALIGN=CENTER FONT FACE=Verdana SIZE=14 COLOR=#FF LETTERSPACING=0 KERNING=0 BThis is /B FONT COLOR=#0033FF B Ulive content/U /B /FONT /FONT /P /TEXTFORMAT /contentLive How can I force it to treat it as raw text just like its stored in mySQL without the formatting ?
[flexcoders] Re: Storing / retrieving rich text
Sure... see below... The data gets stored as HTML (posted via Form fields) but without CDATA wrapping. The server side script that returns the data puts the wrapper CDATA tags around before sending the XML... mx:HTTPService id=xmlItemGridLog resultFormat=e4x fault=httpsFault(event) useProxy=false method=POST url=itemlogsXML.asp/ mx:DataGrid id=dgItemLog height=310 verticalScrollPolicy=auto variableRowHeight=true right=10 left=10 y=10 dataProvider={xmlItemGridLog.lastResult.LOGENTRY} focusAlpha=0 borderColor=#cc mx:columns mx:DataGridColumn width=75 headerText=Date dataField=LOGDATE/ mx:DataGridColumn width=75 headerText=Person dataField=PERSON/ mx:DataGridColumn width=75 headerText=Type dataField=LOGTYPE/ mx:DataGridColumn wordWrap=true headerText=Details dataField=LOGDETAILS mx:itemRenderer mx:Component mx:Text htmlText={data.LOGDETAILS} / /mx:Component /mx:itemRenderer /mx:DataGridColumn /mx:columns /mx:DataGrid --- In flexcoders@yahoogroups.com, Ben Marchbanks [EMAIL PROTECTED] wrote: Can you share a sample of the XML content that you bind to your text control ? For now I have stripped the XML formatting (i.e. newlines and indents - rich Text tags remain in place) to achieve the desired results with AS. Otherwise my process is very much as you describe yours and works fine for now. Are you writing rich text back to your data source ? Are you implicitly adding the !CDATA ? wrapper or is this wrapper automated ? Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 iko_knyphausen wrote: Maybe I misunderstood your last post, but I am getting an XML field from a HTTPservice call with resultformat e4x and this XML field has HTML content wrapped in a CDATA tag. I bound this XML field to a regular text control's html property and it renders as HTML not as text --- In flexcoders@yahoogroups.com, Ben Marchbanks flex@ wrote: Wrapping the text in ![CDATA causes the CDATA to be interpreted literally and rendered along with the text. setting the resultFormat to text makes it much more difficult to handle the text and distribute it to the appropriate display objects. Barring any easier solutions at this point it looks like stripping out the white space with AS is the only option. iko_knyphausen wrote: Have you tried using CDATA around your text when retrieving from your database? ![CDATA[ ]] I use it to store HTML formatted text in a database and to retrieve it back into any HTML capable control, such as rtfedit or textarea... even a simple TEXT control as itemrenderer works with this method... HTH Iko --- In flexcoders@yahoogroups.com, pdflibpilot flex@ wrote: I am trying to develop a method to allow web administrators to be able to edit text in their Flex application directly in the UI (without Flex). This text gets saved to mySQL when they close the rich text editor. The data is stored correctly in mySQL however when its retrieved it gets formated as an XML object when extracted from the event.result. While this makes it easy to populate the various labels and text objects with the rich text data. The problem is that the rich text data gets formatted as XML with new lines and indents. Like in this dmup contentLive TEXTFORMAT LEADING=2 P ALIGN=CENTER FONT FACE=Verdana SIZE=14 COLOR=#FF LETTERSPACING=0 KERNING=0 BThis is /B FONT COLOR=#0033FF B Ulive content/U /B /FONT /FONT /P /TEXTFORMAT /contentLive How can I force it to treat it as raw text just like its stored in mySQL without the formatting ?
[flexcoders] Filterfunction on a XMLListCollection is misbehaving
Here is the deal... I have an XMLListCollection as a dataProvider for a dataGrid, so that I can use custom sort and filterfunctions. My application provides for editing selected items (=rows) in the Grid, and when an edit is done, I update the Grid, by setting values of the selectedItem, e.g. myGrid.selectedItem.dataField = newValue; This works fine, if I have no filterFunction defined for the XMLListCollection. The updates happen inplace, the Grid is updated and the selectedItem (=row) is still highlighted, i.e. selected. The moment, I specify a filterFunction (one that returns true for all records, mind you), any update to a field in the current selectedItem will resort the Grid (no sort object specified, and the dataGrid column sort is set to false), and the item is always sorted second last in the grid. At the same time the selectedItem property is lost (set to null). I know how to disable and enableAutoUpdate (to avoid loosing the selectedItem), but it still does not explain, why the grid data gets resorted Any insight from the pros? Thanks Iko
[flexcoders] Re: Keyboard issues on VISTA
Ok, thanks. No the processor was around 10% max. And it seems to happen on all Vista boxes with Vista Home Premium (see my visit to COMPUSA), with the exception of one AMD laptop that I had upgraded to Vista Ultimate. Continues to run fine on any XP machine --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 23 Feb 2007, iko_knyphausen wrote: What do you mean by thrashed? Sorry, have never heard that term before (not a native speaker either) Sorry 'used heavily'. Web browsers will drop the framerate of plugins, if something else is using the CPU a lot. This could interfere with events. -- Tom Chiverton Helping to enormously engineer holistic information at http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Invoking datagrid column sort programmatically
Hello everyone, I would like to trigger a column sort programmatically, as if the user had clicked the column header. I have read many posts, and LiveDocs about this topic, and I did not like the solutions presented there. My grid has plenty of calculated display content (labelFunctions and custom itemRenderers), many columns require custom sortFunctions. I would like to use these functions exactly as they are, just without asking the user to click anything. I came up with one way, which is to dispatch a HEADER_RELEASE event (see below utilized after a column drag), but that's a bit like accelerating a car by dispatching a PUSH_PEDAL event instead of controlling the engine directly - if that analogy makes any sense. private function reGroup(event : IndexChangedEvent ) : void { dgItems.dispatchEvent(new DataGridEvent(DataGridEvent.HEADER_RELEASE,false,false,event.newIndex)); } What I was hoping for, would be a method like: dataGrid.sortItemsBy( ColumnIndex, [ASC|DESC] ) or dataGrid.sortItemsUsing ( sortCompareFunction, [ASC|DESC] ). Some of that was mentioned in the early posts on this list, but it seemed to be related to Flex 1.5 Thanks for any help, or input
[flexcoders] Re: Keyboard issues on VISTA
Did not use Textarea, but it happens both in TEXTINPUT and RICHTEXTEDITOR. I went to a COMPUSA that has a bunch of Internet connected laptops, and the issue appeared on all VISTA machines. Tried on a few XP machines too - and no issues there. What do you mean by thrashed? Sorry, have never heard that term before (not a native speaker either) Thanks --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 22 Feb 2007, iko_knyphausen wrote: 1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1 would end up as This is a vanilla TextArea or what have you ? Is the machine having it's CPU thrashed ? -- Tom Chiverton Helping to assertively develop web-enabled developments at http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: Keyboard issues on VISTA
Just installed IE7 on an XP/SP2 machine, works smoothly...no problem. --- In flexcoders@yahoogroups.com, Karl Johnson [EMAIL PROTECTED] wrote: Just curious, have you tried your app on IE 7 on Windows XP? There was someone else on flexcoders talking about weirdness with form input in IE 7, and since Vista uses IE 7 I am wondering if it is a problem with browser and not the OS. Has anyone from the flash player team heard of an issue around this or looked into anything similar? Karl Cynergy From: flexcoders@yahoogroups.com on behalf of iko_knyphausen Sent: Fri 2/23/2007 11:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Keyboard issues on VISTA Did not use Textarea, but it happens both in TEXTINPUT and RICHTEXTEDITOR. I went to a COMPUSA that has a bunch of Internet connected laptops, and the issue appeared on all VISTA machines. Tried on a few XP machines too - and no issues there. What do you mean by thrashed? Sorry, have never heard that term before (not a native speaker either) Thanks --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tom Chiverton tom.chiverton@ wrote: On Thursday 22 Feb 2007, iko_knyphausen wrote: 1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1 would end up as This is a vanilla TextArea or what have you ? Is the machine having it's CPU thrashed ? -- Tom Chiverton Helping to assertively develop web-enabled developments at http://thefalken.livejournal.com http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Keyboard issues on VISTA
I have a small Flex/Flash app which runs fine on several machines/platforms such as Mac OSX on a Powerbook, Vista Ultimate on an AMD chip, but on one machine (brand new HP Pavillion with Intel Duo and Vista Home Premium) keyboard input is flawed. Characters typed into TEXTINPUT controls and the RTF control seem to randomly drop out - i.e. some keystrokes do not get recognized. First, I thought it was me, missing the keys or what have you, but then I did some tests with other apps such as Notepad and Word, and my typing was ok. Simple tests such as hitting a succession of 1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1 would end up as 1-1-11-1-1-1--11-1-1--11-1-1-1-1-1 Any ideas, anyone? Thanks
[flexcoders] Re: Automatic resize of panel when layout=absolute - how?
Would this work for you? ?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 mx:Panel x=19 y=29 width=616 layout=absolute id=mom title=Mom (parent panel) mx:Panel id=toddler x=16.5 y=172 width=563 height=100 layout=absolute title=Toddler (child panel) resize=mom.height=toddler.height+222 /mx:Panel mx:Button x=514 y=142 label=Close click=toddler.height=0/ mx:Button x=414 y=142 label=Open click=toddler.height=100/ /mx:Panel /mx:Application --- In flexcoders@yahoogroups.com, zzwi89 [EMAIL PROTECTED] wrote: I have a panel that needs to resize vertically when child panels are minimized/maximized. This works until I set layout = absolute. I would like to use absolute layout so that I can use parameters like top/left/right/bottom for its child panels. Is there a way to do this?
[flexcoders] Re: Read Local File - Reheating old topic
Hello everyone, I came across the same need - that is: reading a local XML file - and I found this HTTPService to be working: mx:HTTPService id=xmlProjectData resultFormat=e4x url=file:///c:/Project13.xml file:///c:/Project13.xml useProxy=false/ The only problem with making this really usable just yet, is that the FileReference class does not expose a localpath property for the file(s) you select. Does anyone know how I could obtain the localpath without calling the upload method? Thanks much --- In flexcoders@yahoogroups.com, Andrew Trice [EMAIL PROTECTED] wrote: Unfortunately, Flex doesn't work the way you want b/c of security implications. You can do this by having the user upload the file to the server. Once the file is uploaded, parse it and then pull the data back down to the client and use it. -Andy _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Torey Maerz Sent: Friday, June 30, 2006 9:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Read Local File I would like to create a flex application (hosted on the internet) that could read in a client's local file, parse that file and then display in a datagrid for manipulation and eventually posting the data to my server. My problem is on the reading of the local file piece. It seems that the only way that I can do this is to have the swf running on the client's machine. That is not an option so I have been in the search for finding a solution that would allow me to sign my swf or something similar so that it could be trusted on the client's machine and allow the user to parse their local file. So what can I do to give my internet based application read access on the client's machine? Thanks in advance! -Torey
[flexcoders] FDS beginner question
Actually a question before I begin with FDS - have just read some high-level intro till now: Is it possible to use FDS without an application server such as CF, IIS (ASP.NET), etc. ? Imagine the following use case: For data you just have/need a structured XML file which multiple people can access update simultaneously. You may not need a DB server. Would you still need an AppServer to do the physical updates of the XML file or can FDS do this directly? Thanks
[flexcoders] Validator in itemEditor
Working on a custom validator for a dataGrid itemEditor. Have 2 questions: Is there a way to prevent loosing focuswhile validation fails. I know I couldhandle the itemEditEnd event and use event.preventDefault() to disallow ending the edit, but I would prefer to do this at the DataGridColumn level and not on DataGrid level - together with the itemEditor validation. Similarily I would like to hook in before the edit beginsand do some checks and possibly prevent the edit, from within the itemEditor. Again, I know I can use itemEditBegin and Beginning on aDataGrid level, but I would prefer this on GridColumn level.I have played with calling a function from the itemEditor (code in the creationComplete handler)...something like:if ( ! canWeEditThisItem(this.data))parentDocument.dg.destroyItemEditor();It works but I am a bit cautious because basically the itemEditor is "committing suicide". Could create some memory problems or what have you... Has anyone done something similar? Any recommendations on a good practise? Thanks a bunch __._,_.___ -- 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 __,_._,___
[flexcoders] selectedIndex not updated upon column sort in custom dataGrid
For the life of itcan't figure it out... I have a dataGrid in a custom component, and in order to delete rows I use the dataGrid.selectedIndex (in the dataGrid.dataProvider.removeItemAt (index) function). All works as expected until you sort the grid by one column. The selectedItem is still the same, and shows in the grid as selected, but the selectedIndex is not updated - it still returns the same index as before the column sort. The selectedIndex gets updated correctly whenever you select a row with a mouse click. I tried the same with an original dataGrid (outside a custom component), and there it works fine. So obviously I am doing something wrong - or forgetting something that needs to be done inside complex components...Help? 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 * 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] Secondary DataProvider for Custom Component - Best Approach
I am working on a custom DataGridColumn which has a secondary dataProvider to feed a dropdown combobox. The DataGridColumn hasthe combobox as itemEditor and a label asitemRenderer. The reason for the itemRenderer is that I want to distinguish between Labels and Values.For example,the data in the grid maycontain "true" or "false", but the displaycould be"Enabled" and "Disabled", or something localized.Same for the Combo... The challenge I am having is the format of the secondary dataProvider. Right now I am using a general Object to pass the second dataProvider. It becomes the dataProvider (via binding)of the dropDown combowhich is usedas itemEditor. This works well, andupon creationComplete, I select the current grid value in the combobox. The code below is part of the itemEditor... private function selectThis():void{var index:int = -1;for(var i:int=0;ithis.dataProvider.length;i++){if(this.dataProvider[i][outerDocument.returnField].toString() == this.data [outerDocument.dataField].toString()) {index = i;break;}}this.selectedIndex = (index == -1) ? 0 : index;} Now, for the itemRenderer I want to use the same dataProvider (passed to the DataGridColumn and passed thru to the combo control) so that I can 'translate' the data values into a display labels. The itemRenderer is a label controlwhich does not have a dataProvider property on its own. I can still access the dataProvider passed to the DataGridColumn, however, because of the general Object type, the length propertyis not accessible. Ok, so then I went ahead andconvertedthe incoming Object into an XMLListCollection, and this all works nicely, but it requires I know the incoming object type of the dataProvider, which is what I would like to avoid... It seems thatfor list based controls like the combo or grid controlsyou can pass pretty much any type of dataprovider and it will automatically convert itto some kind of collection (xml or array). I would like todo the same with the incoming object to feed controls that have no built-in dataProvider property. Is there a generic dataProvider object I could use (one that accepts any type of incoming data), or if not, what would be the best way to do a manual conversion to, say XMLListCollection no matter what the input is? Hopefully someone has done this before and can provide some ideas... Thanks very much. __._,_.___ -- 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 __,_._,___
[flexcoders] Adding rows to dataGrid programatically
Trying to add rows to a datagrid programmatically. Works ok using the dataProvider.addItem function, however it requires a named "row-node" - see below. I would like to make this more generic. Is there a way to do this without knowing each rows element name? private function addRow() : void { this.dg.dataProvider.addItem(XML("row/row")); } 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 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 __,_._,___
[flexcoders] Re: gant chart
Nice work, Andrew. It sure illustrates the flex-ibility of the dataGrid. I am not entirely convinced that the dataGrid is the best way to go though... I mean for a pro-component. I think a combination of datagrid (or tree) and canvas could be easier down the road. By this I mean, once you get into drawing dependency lines - as an example - (which can go across multiple rows either up or down, backwards, and sometimes around objects) a grid and the itemrenderer could face a hard time. I believe there is a colleague of yours at cynergy, by the name of Karl Johnson, who has done some work on this subject too - I am sure he can offer some valuable input as well. Have seen some earlier posts coming from him... Hey, don't get me wrong, thanks for putting up these samples - really appreciate this kind of pro-bono work; this is very helpful to study, especially for newbies like myself. --- In flexcoders@yahoogroups.com, Andrew Trice [EMAIL PROTECTED] wrote: I threw together an example over the weekend using a datagrid to show a very basic Gantt Chart. It really wasn't that difficult. It would take more time to get it looking polished, but definitely less effort than creating chart, series, and renderers as a custom component. You can check it out here: http://www.cynergysystems.com/blogs/page/andrewtrice?entry=gantt_charts_ in_flex_datagrids _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Trice Sent: Friday, October 27, 2006 5:18 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] gant chart If you want a full gantt chart with dependencies and links to other tasks, yes this is a huge undertaking. If you just want a visual display of a duration over time it is not so difficult. The datagrid approach can easily represent something like: [[]] --[[]]-- ---[]--- ---[[[]] (hopefully flexcoders doesn't kill the formatting on that) _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Friday, October 27, 2006 5:06 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] gant chart Having dove into this long ago with many discussions with people from FlexCoders (Ely mostly), I can tell you this is a huge undertaking. You need a: -GantChart -GantSeries -GantChartItem -GantSeriesRenderData -GantRenderer Just to name a few :) I've got a Gantt chart abou 49% done but haven't had time to crank on itbut as Ely said at MAX, people would kill for it if you finished it and released it. On 10/20/06, Andrew Trice [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: You could create itemrenderers for a datagrid that utilize the drawing API to draw the horizontal lines for your data. For instance, have a grid like this: Column 1: task name Column 2: duration Column 3: start date Column 4: item renderer that draws out task length with respect to width of column. Use the drawing api to draw lines/rectangles to represent a duration of time. You could also have a custom datagrid column header that uses the drawing API to draw a scale for the time shown in column 4. Using a datagrid component for this also keeps it very easy to get data into your Gantt chart. _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Office: 866-CYNERGY From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com http://ups.com ] On Behalf Of Iko Knyphausen Sent: Friday, October 20, 2006 3:58 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] gant chart There is a flash component out there (http://www.anychart.com/products/anychartgantt.shtml http://www.anychart.com/products/anychartgantt.shtml ). I have emailed them with some questions, but have not yet received a response. If you know others, please let me know. I would be quite interested in such a chart for my flex apps too... I have written a Gantt in DHTML and Javascript and it's not
[flexcoders] Experience with the Adobe Developer Support Program
I am considering signing up for the Adobe Developer Support program. I think it's about 1500$ per year, if I remember correctly. Before I do spend that kind of money though, I want to know whether it will do for me what I hope it does.Does anyone on this list have experience with the program? Of course, Adobe people are more than invited to answer my questions below too ... ;-) I have a big project ahead of me, and I can already tell, there will be Issuesrelating tobugs -for whichI would need confirmation that they are in fact bugs so I can stop wondering and get busy with work-arounds Issues withproficiency - meaning: my own lack of experience with Flex, AS, and Flash. Does the supportprogram provide"coaching" ? In other words, can I send indescriptionsof specific problems and expect some kind of "how-to" response?Not necessarily code, but steps to understake? Maybe, I should also ask the other way around: What will I not get from the Dev Support program? I am very excited about Flex, but I don't want to be blind-sighted about the process of building real-life applications. So all advise is welcome. 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 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 __,_._,___
[flexcoders] Need some help making RichTextEditor a dropTarget...
I am trying to make the TextArea of the RTF control a dropTarget for list items dragged from a list. Now for the source it seems easy enough (dragEnabled = true). Of course the RTF Control does not have a dropEnabled property like list based controls. I implemented a handler for the dragEnter event, and a handler for the dragDrop event - which is working (so I am over the initial hurdles)... now my problem is, that I would like to insert the dragged content at the caret position when the user releases the mouse. I know how to set the selectionBeginIndex, also how to insert a textRange in it, but when it comes to finding the position of the caret, trouble enters paradise: The textField object and its property caretIndex are not accessible via the DragEvent object. The compiler throws an inaccessible property textField. I tried both event.currentTarget and event.target... Someone done this before? Thanks in advance /Iko -- 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] Databinding on an XML node via node index
I am binding a text control to an XML (e4x) node via index. Looks something like mx:Text htmlText = {myXml.myNodes[0].uniqueItem.toString()} / This works well as a unidirectional binding from a data source, however, the compiler throws a warning saying Databinding will not be able to detect changes when using square bracket operator. For Array please use ArrayCollection.getItemAt(). I was looking for a method that would allow node access via index, basically an equivalent of the getItemAt() method, but could not find anything. Could not cast to mx.collections.ArrayCollection either. Has someone done this before? 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 * 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] Data design question - XML transformations ?
This is obviously an XML newbie question,but hopefully someone can give me a good headstart in how to best approach the following: A. I have a bunch of users, and each of them belong to one or more user groups. The xml couldlook something like: users user id="1" nameJohn/name email[EMAIL PROTECTED]/email groupsgroup id="1" nameAdministrators/name description/description /group group id="2" nameAverage Users/name description/description /group /groups /user user id="2" etc. B. Then I also have a bunch user groups which wouldeach contain a bunch of users. Basically the same information, just a different way to look at it. In XML it could like this... groups group id="1" nameAdministrators/name description/descriptionusers user id="1" nameJohn/name email[EMAIL PROTECTED]/email /user user id="2" ... etc. /user /users /group group id="2" ... etc... In the application I would have 2 different places, one for each view. One place would be the primary place to add, edit, and manage users, the other to manage user groups. As for UI components, I would use DataGrids, bound to each other. I don't necessarily want to keep (and update) the same data twice, so maybe there is some nice transformation woodo one could do to share and updatethe same set of data between the 2 functional views. Of course, one could also use the XML only for feeding the UI controls. Basically refreshing these XMLs whenever the data has been updated on the backend (database) - but for now I would like to keep my optionsopen and possibly store the information in an XML instead of related database tables... Grateful forany advise from the "Internets" ;-) __._,_.___ -- 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 __,_._,___
[flexcoders] Re: Databinding on an XML node via node index
Thanks Ben. I may be trying the wrong thing here, but this is the only workingway I came up with: mx:XMLListCollection id="xlcReportGrid" source="{XMLList(cbReportInfoName.selectedItem.lineItems.columns.column)}"/ and then the Text control that binds to it:mx:TexthtmlText="{xlcReportGrid.getItemAt(0).content}" / cbReportInfoName is a dropdown combo (the last in a chain)that gets its data from another combo which gets its data from an HTTPService (e4x). It seems, whenever the data gets "thru" thedataprovider of a ComboBox, its selectedItem object is nota XMLListCollection anymore (I think this was different with an ArrayCollection - before I used e4x as resultFormat from the HTTPService). The problem with the aboveis that I cannot use the following (I would like to bind to nodes on different levels): mx:XMLListCollection id="xlcReportGrid" source="{XMLList(cbReportInfoName.selectedItem)}"/ and thenbindit like this:mx:TexthtmlText="{xlcReportGrid.lineItems.columns.column.getItemAt(0).content}" / This throws a compile error of "access to a possibly undefined property 'lineitems'..." Any ideas? thx -Iko --- In flexcoders@yahoogroups.com, "ben.clinkinbeard" [EMAIL PROTECTED] wrote: XMLListCollection is the XML-based equivalent of ArrayCollection and provides a getItemAt() method as well. HTH, Ben --- In flexcoders@yahoogroups.com, "iko_knyphausen" iko@ wrote: I am binding a text control to an XML (e4x) node via index. Looks something likemx:Text htmlText = "{myXml.myNodes[0].uniqueItem.toString()}" /This works well as a unidirectional binding from a data source, however, the compiler throws a warning saying "Databinding will not be able to detect changes when using square bracket operator. For Array please use ArrayCollection.getItemAt()".I was looking for a method that would allow node access via index, basically an equivalent of the getItemAt() method, but could not find anything. Could not cast to mx.collections.ArrayCollection either.Has someone done this before? thx. __._,_.___ -- 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 __,_._,___
[flexcoders] htmlText property misbehaving
I am experiencing something rather strange with the Text control and its htmlText property. mx:Text id=li0 htmlText=Starting Text doubleClickEnabled=true doubleClick=Alert.show(li0.htmlText) click=showEditor(event)/ I am using the RTF Edit control to edit and update the content. That works nicely and the edit results are displayed back in the Text control. Now, when I doubleclick the Text control the Alert will show the original value of the htmlText property (i.e. Starting Text). I then made another event to show the content, click=showCell(event) and sure enough that one shows the updated content of the htmlText property for that cell. The showCell function takes the event.target and reads the htmlText property. Am I missing something about MXML programming ? Did I do too much JS and DHTML ;-) ? -- 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: htmlText property misbehaving
I think I found the reason - blush, blush - the RTF editor control made changes to the event.target but should have done them to event.currentTarget. duh ! --- In flexcoders@yahoogroups.com, iko_knyphausen [EMAIL PROTECTED] wrote: I am experiencing something rather strange with the Text control and its htmlText property. mx:Text id=li0 htmlText=Starting Text doubleClickEnabled=true doubleClick=Alert.show(li0.htmlText) click=showEditor(event)/ I am using the RTF Edit control to edit and update the content. That works nicely and the edit results are displayed back in the Text control. Now, when I doubleclick the Text control the Alert will show the original value of the htmlText property (i.e. Starting Text). I then made another event to show the content, click=showCell(event) and sure enough that one shows the updated content of the htmlText property for that cell. The showCell function takes the event.target and reads the htmlText property. Am I missing something about MXML programming ? Did I do too much JS and DHTML ;-) ? -- 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] A bug? Drag n Drop between 2 DataGrids, target is databound... to grid 3
I have 2 datagrids with identical dataFields. The dropTarget is databound to a third dataGrid. The only thing I did to enable drag and drop is to set the dropEnabled and dragEnabled properties to true - no code so far. Dragging and dropping works like a charm,almost... When the target grid (which is databound) has 2 or more rows (before dropping row 3), the data binding seems to work and be remembered, i.e. when you change the selectedIndex of the databound source and come back later, the newly dropped row is still there. If you do the same with the dropTarget grid having one or zero rows (before dropping adragged row), the new row drops fine and gets displayed in the grid, but the databinding fails. In other words, if you do the same as described before, change the data source selectedIndex, and come back, thedragged row has been "forgotten". As for the databinding assumeXML read from HTTPService (default result format): groupsgroupnameGroup1/nameusersusernameJohn/nameemail[EMAIL PROTECTED]/email/userusernameJane/nameemail[EMAIL PROTECTED]/email/user/users/groupgroupnameGroup2/nameusersusernameJack/nameemail[EMAIL PROTECTED]/email/user/users/group...So in the above data example, dragging another user into Group1 works fine and the data has 3 users, draging another user into Group2 works on the UI at first, but does not update the data. I know this weird, but I promise, I am not making this up ;-) Any ideas what the reason(s) could be? Thanks a bunch... -Iko __._,_.___ -- 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 __,_._,___
[flexcoders] Re: datagrid checkboxes getting checked dynamically
BTW, this seems to be an issue only with XML/e4x dataProviders. When I used standard ArrayCollections (coming from an XML HTTPService call), the litteral text true and false will be cast boolean automatically. I had a working grid with checkboxes, and when I changed to e4x I ran into the same issue. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Just for fun, try a cast: selected='{Boolean(data.cdrBusinessCharge)}' Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jack OMelia Sent: Wednesday, October 25, 2006 4:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: datagrid checkboxes getting checked dynamically That did the trick! Many thanks! I knew there must be a way to give the checkbox the boolean data but couldn't see it. Thanks again. Is it because the checkbox is expecting a Boolean and getting text? That would be my guess. What does it do if you change the code to: mx:CheckBox id=ckBoxBusCharge selected='{data.cdrBusinessCharge == true}' / ? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jack OMelia lomelia@ wrote: Hi All, I have one column in a datagrid populated with checkboxes. The checkboxes are part of a dataGridCell itemRenderer called checkBoxRendererSummary: mx:Component id=checkBoxRendererSummary mx:VBox horizontalAlign=center paddingLeft=10 mx:CheckBox id=ckBoxBusCharge selected='{data.cdrBusinessCharge}' / /mx:VBox /mx:Component and receive data from a local XML file. The XML file is brought in with the mx:XML/ tag formatted for e4x. One node of the XML is below: item cdrBusinessChargetrue/cdrBusinessCharge cdrSumNbr203-952-4993/cdrSumNbr cdrSumTotalCalls12/cdrSumTotalCalls cdrSumTotalMin21/cdrSumTotalMin cdrSumTotalAir0.00/cdrSumTotalAir cdrSumTotalLD0.00/cdrSumTotalLD cdrSumTotalCharges0.00/cdrSumTotalCharges /item For some reason, the checkbox does not read the value of cdrBusinessCharge and check the box accordingly. No matter whether the value is true or false, all the checkboxes are checked. I use similar itemRenderers for the other columns with Text components instead of checkboxes and they all read and display the data correctly. Is it because the checkbox is expecting a Boolean and getting text? 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 * 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/