[flexcoders] Thanks to all that helped (CVS/VSS thread)
Just a quick thank-you to all that contributed to my thread - There were some excellent contributions, and a wide variety of suggestions. Just to let you all know, I decided to use VSS - since I already own it. I've been an Enterprise MSDN Subscriber for many years now, and as many of you probably know, Visual Studio.NET is part of the bundle (in which VSS is part of .NET). Since it's easiest for me to use what I already have, in addition to a small learning curve figuring out CVS, VSS will work for now. Actually, the Public Domain plug-in created for Eclipse, was written quite well - so I'd like to commend the folks out there, who made that happen. Take care all, and thanks again :) Mike
[flexcoders] AutoScroll Text Area
Hi All, Sorry for bugging you on this one again but below is the sample code which contain textArea and I want to som how autoscroll the contect present in textarea. I have already used verticalScrollPosition and timer for doing this but it does not look good I want to give it a professional look like the link below http://projects.willstream.com/rssticker/index1.html can some one suggest some solution..thanks in advance. Kumar ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Canvas x=100 y=75 width=200 height=202 mx:TextArea x=20 y=24 width=170 height=92 mx:textsdf..sdfl'l'l'lsdfsl'fls'dlfdl;f some others things bla bla dfljljlj dfgkjdlgjlkdfg ljsdlfjldfjlsjdfl sdkljflsdjfljsdf jsldjflsdjflsjdf jsldjflsdjflsjdf lsdjfljsdlfjsdf lsdjfljsdlfjslf lsdjfljslfjsldf lsdjflsjdf/mx:text /mx:TextArea /mx:Canvas /mx:Application
[flexcoders] Re: Remove the row selection from the datagrid
Hi Arpan, Whenever I've experienced unexpected colors, trying to set a style, it's usually been a typo or an unsupported property. I'm not sure what you're trying to acheive, but DataGrid does have a selectable property; that might solve your problem. If not, does the text turn black if you remove your extended class? I would start by checking the syntax (#FF, 0xFF); punctuation if you will. If everthing's cool there, then check again. myDataGrid.selectable=false; might be a good option, that doesn't require extra code. -TH __ Tim Hoff Cynergy Systems, Inc. http://www.cynergysystems.com Office http://www.cynergysystems.comoffice/ : 866-CYNERGY --- In flexcoders@yahoogroups.com, arpan srivastava [EMAIL PROTECTED] wrote: Hi All, I don't want the datagrid selection i.e. whenever you click on a row it gets selected. for this I overrided the drawSelectionInidicator() and left it empty. Now if I click on any row it is not selected but when I change the font color/font size of the text in the by setStyle() then the text in the row that I clicked turns black. I think this is a default behavior but does anyone know how to override it.
[flexcoders] Label /Text Html font size bug
There appears to be a bug with html text inside label/font controls. The controls do not resize properly to take into account Html font sizes, thus measuring the field too small. Has anyone come across a workaround or re-written the controls to fix this? I don't want to start doing so if it's already been done. Setting the controls fotnSize property does fix this issue, however it then overrides any font sizes the html specifies and thus kinda defeats the object. Cheers, Steve
Re: [flexcoders] Re: Flex Builder Linux
if adobe went linux with its products... think about it... what - would - hold - you - to -... ...even if you didnt switch, at least you would have the option too... but shhh... dont tell anyone... On 11/17/06, Carlos Rovira [EMAIL PROTECTED] wrote: Hi Matt, Flex Builder in Linux should be a great option since many people are switching to Linux and having a Flex Builder version should boost Flex and Flash adoption and credibility. But maybe the ROI could come from other ways and I'm sure that will be great for Adobe to sell the Flash/Flex Platform. Hope we could read about linux version plans soon :). Thanks. C. On 11/17/06, Matt Chotin [EMAIL PROTECTED] wrote: The FDS team has tested the internal builds of the Linux player and RTMP appears to be working. As mentioned, we have considered a Flex Builder for Linux but we have to take a hard look at lots of factors, technical feasibility, market size, time taken away from new features, etc. So no announced plans at this point, doesn't mean it's dead and gone though. Matt -- *From:* [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] *On Behalf Of *devisbalsemin *Sent:* Thursday, November 16, 2006 11:32 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Flex Builder Linux yes, it's true, and it's for this that we are hope that flash palyer support rmtp as soon as possibile. Now we are developing in linux but we are testing into a windows machine :-(, but we are hoping in new beta for linux that fix this. The pushing via RTMP it's great and very very fast to implement it with flex 2. Adobe give us this Falsh palyer with complete future as soon as possbile... Thanks in advance Bye Devis --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Darron J. Schall [EMAIL PROTECTED] wrote: Tom Chiverton wrote: I thought that FDS would run over any transport, not just RTMP. FDS can work via client polling, but for true real time sharing via server push, RTMP is the way to go. -d -- ::| Carlos Rovira ::| http://www.carlosrovira.com ::| http://www.madeinflex.com
[flexcoders] Differing versions of the compiler
This morning's download of the Free Flex SDK had this version. Version 2.0 build 146333 The version I am using in Flex Builder is Version 2.0 build 143459. Is there a place where I can see the latest build number? dorkie version 143459 dork from dorktown
[flexcoders] Implicit coercion of a value of type com.my.controls:TextInputLabel to an unrelated type flash.display:DisplayObject.
Hi All! Error Implicit coercion of a value of type com.my.controls:TextInputLabel to an unrelated type flash.display:DisplayObject. appears in compile time when using mx:AddChild override. This bug is difficult to reproduce. Sometimes it happes, sometimes not. Initially I have found it when there was no mx:target property tag within the child declaration: mx:AddChild mx:TextInputLabel / /mx:AddChild I have added mx:target: mx:AddChild mx:target mx:TextInputLabel / /mx:target /mx:AddChild And bug disappeared, but only for a while... Sergey.
Re: [flexcoders] Re: Intel-Mac 9.0.28 debug plugin
I tried installing that one and it says it's for power-pc based machines. (the fourth link down) On Nov 17, 2006, at 2:21 AM, Matt Chotin wrote: Oh, my mistake, looks like we did post them. I know the projector on Mac is PPC only for the moment, but I believe the plugin should have been universal. I had been told that there were some delays in one of the Mac builds though, so this might be it. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss Sent: Thursday, November 16, 2006 8:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Intel-Mac 9.0.28 debug plugin The 4th link within the FP9 group (the one I previously dl'ed) throws an error on installation saying that its a PowerPC version only. Hence my question on the location of an Intel-mac UB. Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Friday, 17 November 2006 2:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Intel-Mac 9.0.28 debug plugin It doesn't specifically list Intel Mac, but I would assume this is what you need. http://www.adobe.com/support/flashplayer/downloads.html I actually had to ask in a comment on the Labs blog to find this link too. Hey Adobe, make it easier to find these- why aren't they linked from the main download page? HTH, Ben --- In flexcoders@yahoogroups.com, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Hey, I'm having some trouble finding this. Any help? Regards, Bjorn Schultheiss Senior Flash Developer QDC 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] FDS not receiving calls asynchronously
I am having an issue with concurrency using FDS. I have six calls going to the same destination (all different methods) at the same time. Setting up logging on the client side I see that Flex is sending the calls all at the same time, however in the server log (being recorded at the beginning and end of each method) I notice that each call is being completed before the next call is started. There is no code to block that I am writing, in fact the first line of the method writes to a log. Inside the method there is some message retrieval happening and each of the calls can take a different amount of time, the calls were broken up to allow for retrieval to come back asap, however the synchronous behaviour is preventing us from having 2 longer calls running at the same time. Are there settings that I am unaware of in the remoting-config that can fix this behaviour? Is there code in the messagebromer that is making this synchronous? I have tried increasing the framerate of the main application mxml and utilizing the callLater feature, but there is no change in behaviour.
RE: [flexcoders] Newbie: Why can't I add a button!
Thanks very much for responding Gordon, I appreciate your's and Matt's time. Why AS3? Comfort zone I guess. I'm coming from a Java background. I'm investigating the feasibility of creating an Eclipse like plug-in framework for adding new screens and functionality that extend a solid framework core. The aim? Having our P/S people being able to added customer-specific screens and functionality and so on into a standardized production framework without having to jump through Struts/JSP/EJB/deployment hoops. I'm pretty familiar with Eclipse having some plug in work there and I guess that model is my starting point. I'll look further into the XMXL side while I investigate. Thanks. Greg. PS. If such an architecture already exists for Flex, then do tell! Greg McCreath Chief Technical Officer TAFMO Limited ABN: 94 109 766 592 Level 8, 342 Flinders Street Melbourne Victoria, 3000 Australia http://www.tafmo.com Ph http://www.tafmo.comPh : +61 (0) 3 9018 6824 Fax : +61 (0) 3 9018 6899 Mobile : +61 (0) 401 988 957 _ From: Gordon Smith [mailto:[EMAIL PROTECTED] Sent: Friday, 17 November 2006 3:24 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Newbie: Why can't I add a button! Sorry, although we've made it easy to write components in either MXML or AS3, we haven't done the same with Application. If you are a newbie you should start out with mx:Application in MXML. You can then use AS3 for all your components if you really want to. I hope we can make this better in a future release. What's going on is that when the MXML compiler compiles an mx:Application it autogenerates code to set up a lot of stuff such as the default CSS type selectors that various components like Button depend on. These aren't getting set up when you simply extend Application as an AS3 class. When Button calls getStyle() to find out what it's skin class should be, it's getting a null Clas reference. Once you are no longer a newbie, you can use mxmlc's -keep-generated-actionscript option to see all the generated code, and set this stuff up yourself it you insist. But I really don't understand why some developers like AS3 so much better tham MXML. Would you write a web app all in JS and no HTML? - Gordon _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bookymcnuggett Sent: Thursday, November 16, 2006 5:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Newbie: Why can't I add a button! Hi All, This is my first posting to this forum. I have taken my first newbie steps to creating a stand-alone AS3 Application and have come across something I cannot understand. I have an Application, and add an Image to it and it is fine. I add a Button to it and it blows up with the AS3 equivalent of a null pointer exception. The code is below. The error is below that. If I comment out the line that does the addChild(button) it correctly adds and displays the Image. What am I doing wrong? What is wrong with how I am adding a button? Both Button and Image descend from UIComponent. package { import mx.core.*; import mx.events.*; import mx.skins.halo.*; import mx.styles.*; import mx.controls.*; import flash.display.*; public class FirstApp extends Application { [Embed(source=connected_multiple_big.jpg)] private var ImageClass:Class; public function FirstApp() { super(); this.layout = vertical; this.setStyle(borderSkin,mx.skins.halo.HaloBorder); this.addEventListener(FlexEvent.APPLICATION_COMPLETE, doInit); } private function doInit(e:FlexEvent):void { var img:Image = new Image(); img.setStyle(verticalAlign,top); img.source = ImageClass; addChild(img); // the troublesome test button. addChild() here causes a null object reference exception var button:Button = new Button(); button.label = label; addChild(button); } } } /// TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.core::UIComponent/getStyle() at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewS http://www.adobe.com/2006/flex/mx/internal::viewS kinForPhase() at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewS http://www.adobe.com/2006/flex/mx/internal::viewS kin() at mx.controls::Button/mx.controls:Button::commitProperties() at mx.core::UIComponent/validateProperties() at mx.managers::LayoutManager/::validateProperties() at mx.managers::LayoutManager/::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply http://adobe.com/AS3/2006/builtin::apply () at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE ventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.managers::SystemManager/::preloader_preloaderDoneHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE ventFunction() at
[flexcoders] FDS not receiving calls asynchronously
I am having an issue with concurrency using FDS. I have six calls going to the same destination (all different methods) at the same time. Setting up logging on the client side I see that Flex is sending the calls all at the same time, however in the server log (being recorded at the beginning and end of each method) I notice that each call is being completed before the next call is started. There is no code to block that I am writing, in fact the first line of the method writes to a log. Inside the method there is some message retrieval happening and each of the calls can take a different amount of time, the calls were broken up to allow for retrieval to come back asap, however the synchronous behaviour is preventing us from having 2 longer calls running at the same time. Are there settings that I am unaware of in the remoting-config that can fix this behaviour? Is there code in the messagebromer that is making this synchronous? I have tried increasing the framerate of the main application mxml and utilizing the callLater feature, but there is no change in behaviour.
[flexcoders] Rotating BarChart
Another charting question! :D Is there an easy way to have the Bar chart rotated? I want to let the user flick a switch that changes it from one direction to the other, but using the rotation style obviously screws up the labels. I tried just changing BarChart to ColumnChart, BarWidthRatio to ColumnWidthRatio and BarSeries to ColumnSeries but the chart looks completely different (only showing two columns, instead of the 10 in my data, and they're 50% wide each). I tried fiddling with some of the other numbers, but got nowhere. Are Bar and Column charts supposed to be the same, but rotated? If not, is there a nice way to rotate the bar chart so the bars are vertical? Thanks The information contained in this e-mail and/or any attachments is confidential and intended only for the individual(s) to which it is addressed. If you are not named as an addressee you must not disclose, copy or take any action in reliance of this transmission. This e-mail and its attachments have been scanned for viruses by MessageLabs Ltd. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
[flexcoders] How to handle complex object return from web service
Hi I am calling the web service writen in .net from flex application. using web service object. I am getting the result back from the call but the result object too complex and i am getting a part of it. What are the different method avilable in flex side or action Script 3.0 to handle the complex object return from the web service. Amey. - Sponsored Link Mortgage rates near 39yr lows. $420,000 Mortgage for $1,399/mo - Calculate new house payment
[flexcoders] XML No trim
Hi Guys, How are you doing? I need a help. Its a simple requirement. I need to parse a xml string. But I do not white the whitespace of values inside tags to be trimmed. For example- a maeesage like FlexName JB/Name/Flex should come as it is. By default i see the value JB is timmed to JB. I looked at xml properties. I found two related properties. 1. ignoreWhiteSpace. This ignore whitespace outside tags. default is true. 2. prettyPrinitng. This default is true. I made it false. This was helpful in sending white space to other xml as it disables trimming. Both flags do not solving my problem when I dont want spaces to be trimmed while parsing. Thanks
[flexcoders] Stretch swf to fit browser window
I'm trying to get a Flash 9 swf to stretch to the browser window size. i.e. the swf components all get bigger or smaller depending on the size of the browser window. This is pretty easy to do in Flash 8 although nothing i've tried to far works in Flash 9 systemManager.stage.setScalemode = tried all those also in the html file object width = 100% . etc scales the player but doesn't stretch the swf contents. Does anyone know how to get this to work like it did in Flash 8? kimb
Re: [flexcoders] Re: Remove the row selection from the datagrid
Hi Tim, I did myDataGrid.selectable=false but this will stop dispatching the MouseOver event and it will not even highlight the row. I will try to explain you in detail. I created a combobox from where you can change the font size of the text in the row. Now if you click on a row it gets selected and the fontcolor becomes black (no matter what color it was before). This default behaviour and I want to change this thing. I have overriden the drawSelectionIndicator() so that it does not draw the selection indicator, but still if I click on any row and then change the font size or font color, the font color of the clicked row becomes black. - Original Message From: Tim Hoff [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, November 17, 2006 2:30:29 PM Subject: [flexcoders] Re: Remove the row selection from the datagrid Hi Arpan, Whenever I've experienced unexpected colors, trying to set a style, it's usually been a typo or an unsupported property. I'm not sure what you're trying to acheive, but DataGrid does have a selectable property; that might solve your problem. If not, does the text turn black if you remove your extended class? I would start by checking the syntax (#FF, 0xFF); punctuation if you will. If everthing's cool there, then check again. myDataGrid.selectab le=false ; might be a good option, that doesn't require extra code. -TH _ _ Tim Hoff Cynergy Systems, Inc. http://www.cynergys ystems.com Office: 866-CYNERGY --- In [EMAIL PROTECTED] ups.com, arpan srivastava [EMAIL PROTECTED] .. wrote: Hi All, I don't want the datagrid selection i.e. whenever you click on a row it gets selected. for this I overrided the drawSelectionInidic ator() and left it empty. Now if I click on any row it is not selected but when I change the font color/font size of the text in the by setStyle() then the text in the row that I clicked turns black. I think this is a default behavior but does anyone know how to override it. !-- #ygrp-mlmsg {font-size:13px;font-family:arial,helvetica,clean,sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0; } #ygrp-tpmsgs{ font-family:Arial; clear:both; } #ygrp-vitnav{ padding-top:10px; font-family:Verdana; font-size:77%; margin:0; } #ygrp-vitnav a{ padding:0 1px; } #ygrp-actbar{ clear:both; margin:25px 0; white-space:nowrap; color:#666; text-align:right; } #ygrp-actbar .left{ float:left; white-space:nowrap; } .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana; font-size:77%; padding:15px 0; } #ygrp-ft{ font-family:verdana; font-size:77%; border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px; } #ygrp-vital{ background-color:#e0ecee; margin-bottom:20px; padding:2px 0 8px 8px; } #ygrp-vital #vithd{ font-size:77%; font-family:Verdana; font-weight:bold; color:#333; text-transform:uppercase; } #ygrp-vital ul{ padding:0; margin:2px 0; } #ygrp-vital ul li{ list-style-type:none; clear:both; border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold; color:#ff7900; float:right; width:2em; text-align:right; padding-right:.5em; } #ygrp-vital ul li .cat{ font-weight:bold; } #ygrp-vital a { text-decoration:none; } #ygrp-vital a:hover{ text-decoration:underline; } #ygrp-sponsor #hd{ color:#999; font-size:77%; } #ygrp-sponsor #ov{ padding:6px 13px; background-color:#e0ecee; margin-bottom:20px; } #ygrp-sponsor #ov ul{ padding:0 0 0 8px; margin:0; } #ygrp-sponsor #ov li{ list-style-type:square; padding:6px 0; font-size:77%; } #ygrp-sponsor #ov li a{ text-decoration:none; font-size:130%; } #ygrp-sponsor #nc { background-color:#eee; margin-bottom:20px; padding:0 8px; } #ygrp-sponsor .ad{ padding:8px 0; } #ygrp-sponsor .ad #hd1{ font-family:Arial; font-weight:bold; color:#628c2a; font-size:100%; line-height:122%; } #ygrp-sponsor .ad a{ text-decoration:none; } #ygrp-sponsor .ad a:hover{ text-decoration:underline; } #ygrp-sponsor .ad p{ margin:0; } o {font-size:0;} .MsoNormal { margin:0 0 0 0; } #ygrp-text tt{ font-size:120%; } blockquote{margin:0 0 0 4px;} .replbq {margin:4;} --
[flexcoders] Re: How to handle complex object return from web service
Not sure what you mean about getting part of it, but there are some ways of dealing with complex results. Whenever I've encountered web services that return deeply nested or very complex structures I've set the resultFormat of the operation to e4x. This allows you to use E4X expressions to access the deeply nested information with simple constructs like wsResult..deeplyNestedNode, etc. rather than having to drill down each level like you do with an object structure. HTH, Ben --- In flexcoders@yahoogroups.com, ria team [EMAIL PROTECTED] wrote: Hi I am calling the web service writen in .net from flex application. using web service object. I am getting the result back from the call but the result object too complex and i am getting a part of it. What are the different method avilable in flex side or action Script 3.0 to handle the complex object return from the web service. Amey. - Sponsored Link Mortgage rates near 39yr lows. $420,000 Mortgage for $1,399/mo - Calculate new house payment
Re: [flexcoders] Understanding the FocusManager
That's a great answer especially considering I wasn't exactly sure what I was asking. I think I have two more questions which would finish up this line of questioning for me. (I'm working off the UIComponent API doc also.) 1. If you click on a composite component, it will walk up the parent tree until it finds mouseFocusEnabled = true, and then walk up the tree until it finds focusEnabled = true, and then set the focus to that component? 2. What happens if you have mouseFocusEnabled and tabEnabled both equal false and focusEnabled = true. Then you can set focus through code or by clicking on a child? All of this assumes that mouseEnabled and mouseChildrenEnabled are set correctly. (I'll be honest that I'm a little confused with mouseChildrenEnabled also, but I haven't looked very hard for that yet.) Thanks, - Dan On 11/16/06, Matt Chotin [EMAIL PROTECTED] wrote: From the focus guru: Actually, Flash will remove focus from a textfield when the mouse is clicked outside of the textfield. The Flex FM always tries to make sure something has focus always (generally a good practice for accessibility) so it will not let focus go away unless something else is clicked that is IFocusManagerComponent and has mouseFocusEnabled=true. You have to implement IFocusManagerComponent in order to be a focus candidate from the Flex FM perspective and have focusEnabled=true to actually receive focus. mouseFocusEnabled says whether you want to receive focus via mouse clicks, tabEnabled says whether you want to receive focus from the keyboard. focusEnabled=false is a good way to disable child components like scrollbars that shouldn't receive focus HTH, -Alex -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Daniel Freiman *Sent:* Thursday, November 16, 2006 12:18 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Understanding the FocusManager There's not any specific question yet. But I foresee two issues. 1. What prompted the question was that I had a UITextField that wasn't losing focus when I clicked on UIComponent. I know this specific example would be guided by the player's focus manager and not mx.Managers.FocusManager, but I thought there might be some interaction between the two managers I could leverage. For now I have a workaround of setting the selection to an off screen object. What I'm worried about is that in Flash 8 this type of problem tended to compound and I actually spent 40% of my time just trying to resolve focus issues because I didn't understand focus when I started writing the program. 2. My second issue is just that I want to make sure I'm using the object properties correctly (focusEnabled, mouseFocusEnabled). From reading the docs, they seem to enable receiving focus events, but set focus to only objects that have mouseFocusEnabled=true? If either of this spark a specific answer, I would appreciate it. If not I'll just wait until I come across a more specific problem. Thanks, - Dan On 11/16/06, *Matt Chotin* [EMAIL PROTECTED] wrote: Hi Dan, There aren't any real docs with details on it. If you have specific questions I can try to have an engineer respond. Matt -- *From:* [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] *On Behalf Of *Daniel Freiman *Sent:* Wednesday, November 15, 2006 8:46 AM *To:* flexcoders *Subject:* [flexcoders] Understanding the FocusManager Does anyone know where there is a good overview of how focus and the FocusManager works in flex. I've searched through the docs, the dev center and google, and haven't been able to find anything. thanks in advance, - Dan
[flexcoders] Bug??? Re: Loading multiple swfs crashing browser
Maybe this is a possible bug in swfloader component. I've created some basic(no script) swf8 files and have loaded them dynamically into my Flex app using swfloader and no crash. --- In flexcoders@yahoogroups.com, dallasweb [EMAIL PROTECTED] wrote: Daniel...thanks for the interest. The content I'm loading are Captivate swf's. For grins, I just made 5 swf's(Flash 8) with a large image embedded, no script, one key frame each with the image. Still managed to crash the browser. --- In flexcoders@yahoogroups.com, Daniel Wabyick daniel@ wrote: Curious what is in the SWF content that you are loading. Is it AS3 code or AS2 code? Wondering if you try loading completely basic Flash 8 SWF's without any code if it will still crash. Regards, -Daniel dallasweb wrote: Matt..thanks for the reply. I changed the mx:Image tag to mx:SWFLoader and while in debug mode I can see it unloading swfs at different intervals. (wasn't doing that using mx:image) With that change to swfloader it still crashes the browser. If I use mx:image and change the source dynamically, does that 'load' the swf...or overwrite it with the newest selection? where only one is 'loaded' at a time. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Matt Chotin mchotin@ wrote: Check to see if you're leaking memory (watch the task manager) as you click through the movies? Maybe some old movies need to be unloaded explicitly? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of dallasweb Sent: Tuesday, November 14, 2006 8:19 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Loading multiple swfs crashing browser I really thought this would be easier than it has been. Maybe it is and I just can't see the forest yetanyway...thanks in advance for your patience. I'm attempting to 'replicate' Jesse Wardens Captivate player in Flex. It's not that I don't like your player Jesse...but our users can't seem to figure out that they need to click a drop down to select new sections. Your player rocks.;) Here's what it looks like so far: I'm loading a XML doc using HTTPservice (myRequest.send(); gets called on app init). mx:HTTPService id=myRequest useProxy=false fault=faultHandler() result=resultHandler() / resultHandler(): myDG.dataProvider = myRequest.lastResult.captivate_playlist.swf; Then I'm using a datagrid component to display available captivate movies. mx:DataGrid x=10 y=10 width=100% height=100% id=myDG change=onDataGridChange(event) mx:columns mx:DataGridColumn dataField=name sortable=false headerText=Title / /mx:columns /mx:DataGrid When a user clicks a datagrid row, call onDataGridChange() which does this: // swfDisplay.source = myDG.selectedItem.src; Which updates the source value of mx:image mx:Image width=100% height=100% maintainAspectRatio=true scaleContent=true id=swfDisplay / There are no complie or runtime errors. When clicking through the datagrid grid many times..(which users will do) the browser crashes...IE, Firefox, Safari, [MAC or XP] The way I set this up made since to me, but I'm a brand new Flex coder. Any insight is appreciated.
[flexcoders] Re: Auto incrementing values for datagrid
--- In flexcoders@yahoogroups.com, flxcoder [EMAIL PROTECTED] wrote: I want to have a serial number field in my datagrid that increases or auto increments with each row. Is this possible? this field should re-paint itself on sorting of any other fields. any ideas here? surely, flex has a way to have a serial number auto incrementing column value for the datagrid...
[flexcoders] Re: Dynamic TextArea fields or Grouping TextArea fields
HELP! I am having the same problem as #2. If I create the textareas dynamically how do I loop through them later on to set their properties? so basically I have some textareas with ids of myText_0 myText_1 myText_2 myText_3 (etc) and I have a loop of for (var x:int=0; x4; x++) { // insert AS3 code here } inside the loop I need to be able to say something like myText_x.height = 50; Anyone? --- In flexcoders@yahoogroups.com, debla1317 [EMAIL PROTECTED] wrote: That works perfect (THANK YOU), now I have two problems. 1) If I would have created the textarea down in the MXML I would be able to set a change property, but I can't figure out how to set that in my actionscript code ta.change = doSomething(); does not work. 2) Later on I want to look back through the list of textarea fields and properties and I think I am close by creating a new object, but not quite there. So I created another loop to reference the textarea objects: for (var y:int = 0; yreturnPackage.length; y++) { var packageObject:Object = packageID_ + y.toString(); Alert.show(packageObject.text); } Now my problem is that it is setting packageObject to a string instead of accepting that I want packageObject to be equal to my text field with the id of packageID_0, packageID_1, etc...
Does anyone have the attachments from RE: [flexcoders] Fixing data points in Ely Greenfield's SizedPieSeries?
Hi all, Does anyone have the attachments from Ely's reply to my post RE: [flexcoders] Fixing data points in Ely Greenfield's SizedPieSeries they could forward to me? They're not stored online at yahoogroups, and attachments aren't sent with the digest emails I get :-( I've emailed Ely, but I'm guessing he's in the US, and it'd be good to get a start on them this morning :-) Thanks, Danny The information contained in this e-mail and/or any attachments is confidential and intended only for the individual(s) to which it is addressed. If you are not named as an addressee you must not disclose, copy or take any action in reliance of this transmission. This e-mail and its attachments have been scanned for viruses by MessageLabs Ltd. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
[flexcoders] Re: Simple problem: Error creating links using string
Thank you all. I used the getRepeaterItem() and it worked. Jack
[flexcoders] Re: Auto incrementing values for datagrid
this field should re-paint itself on sorting of any other fields. Do you mean that the first row in the grid should always say 1, regardless of how the list is sorted? If that is the case, you'll want to create an itemRenderer that implements IDropInListItemRenderer, and then displays the rowIndex property of BaseListData. This is probably a good starting point: http://jessewarden.com/archives/2006/10/checkbox_item_r.html HTH, Ben --- In flexcoders@yahoogroups.com, flxcoder [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, flxcoder flxcoder@ wrote: I want to have a serial number field in my datagrid that increases or auto increments with each row. Is this possible? this field should re-paint itself on sorting of any other fields. any ideas here? surely, flex has a way to have a serial number auto incrementing column value for the datagrid...
RE: [flexcoders] Re: Auto incrementing values for datagrid
Sorry to jump into the thread but unfortunately rowIndex doesn't do what it says on the tin. It's documented to return the index of the item in the dataprovider, however in actual fact it returns the index of the row in the list/datagrid. For example if you have a dataprovider with 100 records displaying in a datagrid with 10 rows and you scroll to the bottom of the datagrid and select the last row rowIndex would return 10; not the 100 you would expect. AFAIK there is no simple way of simply returning the index of the item in the dataprovider rather than the datagrid. I hope someone can pick me up on this point? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: 17 November 2006 16:14 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Auto incrementing values for datagrid this field should re-paint itself on sorting of any other fields. Do you mean that the first row in the grid should always say 1, regardless of how the list is sorted? If that is the case, you'll want to create an itemRenderer that implements IDropInListItemRenderer, and then displays the rowIndex property of BaseListData. This is probably a good starting point: http://jessewarden. http://jessewarden.com/archives/2006/10/checkbox_item_r.html com/archives/2006/10/checkbox_item_r.html HTH, Ben --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, flxcoder [EMAIL PROTECTED] wrote: --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, flxcoder flxcoder@ wrote: I want to have a serial number field in my datagrid that increases or auto increments with each row. Is this possible? this field should re-paint itself on sorting of any other fields. any ideas here? surely, flex has a way to have a serial number auto incrementing column value for the datagrid...
RE: [flexcoders] Rotating BarChart
Switching from bar to column is the only way to do it (that doesn't involve a lot of pain and suffering). When you switch, remember to: swap your x/y properties (xField, yField) swap your h/v properties (horizontalAxis, verticalAxis, etc). Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Tuppeny Sent: Friday, November 17, 2006 2:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Rotating BarChart Another charting question! :D Is there an easy way to have the Bar chart rotated? I want to let the user flick a switch that changes it from one direction to the other, but using the rotation style obviously screws up the labels. I tried just changing BarChart to ColumnChart, BarWidthRatio to ColumnWidthRatio and BarSeries to ColumnSeries but the chart looks completely different (only showing two columns, instead of the 10 in my data, and they're 50% wide each). I tried fiddling with some of the other numbers, but got nowhere. Are Bar and Column charts supposed to be the same, but rotated? If not, is there a nice way to rotate the bar chart so the bars are vertical? Thanks The information contained in this e-mail and/or any attachments is confidential and intended only for the individual(s) to which it is addressed. If you are not named as an addressee you must not disclose, copy or take any action in reliance of this transmission. This e-mail and its attachments have been scanned for viruses by MessageLabs Ltd. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
RE: [flexcoders] Re: Auto incrementing values for datagrid
I think dataProvider.selectedIndex is doing that? _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Cox Sent: Friday, November 17, 2006 8:32 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Auto incrementing values for datagrid Sorry to jump into the thread but unfortunately rowIndex doesn't do what it says on the tin. It's documented to return the index of the item in the dataprovider, however in actual fact it returns the index of the row in the list/datagrid. For example if you have a dataprovider with 100 records displaying in a datagrid with 10 rows and you scroll to the bottom of the datagrid and select the last row rowIndex would return 10; not the 100 you would expect. AFAIK there is no simple way of simply returning the index of the item in the dataprovider rather than the datagrid. I hope someone can pick me up on this point? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: 17 November 2006 16:14 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Auto incrementing values for datagrid this field should re-paint itself on sorting of any other fields. Do you mean that the first row in the grid should always say 1, regardless of how the list is sorted? If that is the case, you'll want to create an itemRenderer that implements IDropInListItemRenderer, and then displays the rowIndex property of BaseListData. This is probably a good starting point: http://jessewarden. http://jessewarden.com/archives/2006/10/checkbox_item_r.html com/archives/2006/10/checkbox_item_r.html HTH, Ben --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, flxcoder [EMAIL PROTECTED] wrote: --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, flxcoder flxcoder@ wrote: I want to have a serial number field in my datagrid that increases or auto increments with each row. Is this possible? this field should re-paint itself on sorting of any other fields. any ideas here? surely, flex has a way to have a serial number auto incrementing column value for the datagrid...
[flexcoders] Re: Rotating BarChart
HI Daniel, In addition to those changes, you have to change from xField to yField; for the series. -TH __ Tim Hoff Cynergy Systems, Inc. http://www.cynergysystems.com Office http://www.cynergysystems.comoffice/ : 866-CYNERGY --- In flexcoders@yahoogroups.com, Daniel Tuppeny [EMAIL PROTECTED] wrote: Another charting question! :D Is there an easy way to have the Bar chart rotated? I want to let the user flick a switch that changes it from one direction to the other, but using the rotation style obviously screws up the labels. I tried just changing BarChart to ColumnChart, BarWidthRatio to ColumnWidthRatio and BarSeries to ColumnSeries but the chart looks completely different (only showing two columns, instead of the 10 in my data, and they're 50% wide each). I tried fiddling with some of the other numbers, but got nowhere. Are Bar and Column charts supposed to be the same, but rotated? If not, is there a nice way to rotate the bar chart so the bars are vertical? Thanks The information contained in this e-mail and/or any attachments is confidential and intended only for the individual(s) to which it is addressed. If you are not named as an addressee you must not disclose, copy or take any action in reliance of this transmission. This e-mail and its attachments have been scanned for viruses by MessageLabs Ltd. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
[flexcoders] RegExp Validator
Hey there, I'm trying to use a standard regular expression in a RegExpValidator. Here's the validator markup: mx:RegExpValidator id=newPasswordValidator expression=[a-zA-Z0-9]{6,8} source={newPassword} property=text requiredFieldError=This fields is required. noMatchError=Passwords must be 6 to 8 characters in length and include letters and numbers/ It keeps saying that a password like '64months' (without the apostrophes) is no good when it should be. The expression should validate such that any characters from a-z and A-Z and 0-9 should be ok, as long as the total length of chars is between 6 - 8 chars long. This expresion works great in PHP. I must be missing something about how AS or Flex deals with it. Any help would be appreciated. thanksie, marky
[flexcoders] Better way to update sub-records, Flex and Coldfusion
Hi all, I have been programming for a while now and have always used a particular method to update sub-records in a data driven application. I know there is a better way and was hoping flexcoders could point me in a solid direction. Let's say I have a table called MasterRecords and one called SubRecords - Each record in the SubRecords table has a Foreign Key called MasterRecordsID which ties it to the MasterRecords table. When I do an update I typically go through and delete all instances of SubRecords from that table and then re-insert them. It is a working method, but tends to create load on the database that is not needed. Is there a better way to handle updates of SubRecords?
RE: [flexcoders] Re: Auto incrementing values for datagrid
Scratch that. I meant to say dataGrid.selectedIndex (but it may return the grid index...not sure, sorry) I think dataProvider.selectedIndex is doing that? _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Cox Sent: Friday, November 17, 2006 8:32 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Auto incrementing values for datagrid Sorry to jump into the thread but unfortunately rowIndex doesn't do what it says on the tin. It's documented to return the index of the item in the dataprovider, however in actual fact it returns the index of the row in the list/datagrid. For example if you have a dataprovider with 100 records displaying in a datagrid with 10 rows and you scroll to the bottom of the datagrid and select the last row rowIndex would return 10; not the 100 you would expect. AFAIK there is no simple way of simply returning the index of the item in the dataprovider rather than the datagrid. I hope someone can pick me up on this point? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: 17 November 2006 16:14 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Auto incrementing values for datagrid this field should re-paint itself on sorting of any other fields. Do you mean that the first row in the grid should always say 1, regardless of how the list is sorted? If that is the case, you'll want to create an itemRenderer that implements IDropInListItemRenderer, and then displays the rowIndex property of BaseListData. This is probably a good starting point: http://jessewarden. http://jessewarden.com/archives/2006/10/checkbox_item_r.html com/archives/2006/10/checkbox_item_r.html HTH, Ben --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, flxcoder [EMAIL PROTECTED] wrote: --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, flxcoder flxcoder@ wrote: I want to have a serial number field in my datagrid that increases or auto increments with each row. Is this possible? this field should re-paint itself on sorting of any other fields. any ideas here? surely, flex has a way to have a serial number auto incrementing column value for the datagrid...
[flexcoders] problem with image
I use example fron flex PhotoViewer. It is work fine with image less then 200 Kb. If I use .jpg files 1.5-3.5Mb, after 10 - 20 iteration on slide show Flash compleatly hang up browser. Did any of you had this problem and know how to fix this?
RE: [flexcoders] Re: Auto incrementing values for datagrid
Maybe you could try an IList interface function getItemIndex(dataGrid.selectedItem); _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Cox Sent: Friday, November 17, 2006 8:32 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Auto incrementing values for datagrid Sorry to jump into the thread but unfortunately rowIndex doesn't do what it says on the tin. It's documented to return the index of the item in the dataprovider, however in actual fact it returns the index of the row in the list/datagrid. For example if you have a dataprovider with 100 records displaying in a datagrid with 10 rows and you scroll to the bottom of the datagrid and select the last row rowIndex would return 10; not the 100 you would expect. AFAIK there is no simple way of simply returning the index of the item in the dataprovider rather than the datagrid. I hope someone can pick me up on this point? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: 17 November 2006 16:14 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Auto incrementing values for datagrid this field should re-paint itself on sorting of any other fields. Do you mean that the first row in the grid should always say 1, regardless of how the list is sorted? If that is the case, you'll want to create an itemRenderer that implements IDropInListItemRenderer, and then displays the rowIndex property of BaseListData. This is probably a good starting point: http://jessewarden. http://jessewarden.com/archives/2006/10/checkbox_item_r.html com/archives/2006/10/checkbox_item_r.html HTH, Ben --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, flxcoder [EMAIL PROTECTED] wrote: --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, flxcoder flxcoder@ wrote: I want to have a serial number field in my datagrid that increases or auto increments with each row. Is this possible? this field should re-paint itself on sorting of any other fields. any ideas here? surely, flex has a way to have a serial number auto incrementing column value for the datagrid...
[flexcoders] Re: Auto incrementing values for datagrid
Below I have a quick and dirty way of making the row show up. However if you were looking for the number to move with the item when you sort then you need a different approach and should almost consider adding the number to the data source. As when you sort the data grid it actually rearranges its data source which is shown by the text box i added. Which is always showing the contents of the first index of the array collection. mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var acTest:ArrayCollection = new ArrayCollection([ {one: 0,1, two: 0,2}, {one: 1,1, two: 1,2}, {one: 2,1, two: 2,2}, {one: 3,1, two: 3,2}, {one: 4,1, two: 4,2}, {one: 5,1, two: 5,2}]); private function LabFunc(item:Object, column:DataGridColumn):String { return (this.acTest.getItemIndex(item).toString()) } ]] /mx:Script mx:DataGrid x=10 y=10 dataProvider={acTest} id=grid1 mx:columns mx:DataGridColumn headerText=Column 1 labelFunction=LabFunc/ mx:DataGridColumn headerText=Column 2 dataField=one/ mx:DataGridColumn headerText=Column 3 dataField=two/ /mx:columns /mx:DataGrid mx:TextInput text={this.acTest.getItemAt(0).one+', '+this.acTest.getItemAt(0).two} x=320 y=9/ /mx:Application
[flexcoders] AMF 3 Date Serialization / Deserialization
Does anyone know if there is a way to have Flex serialize / deserialize Dates using the Local Date Time rather the UTC. For example: Currently i'm seeing the following behavior: (AMF3) Date (no timezone info) - Flex (UTC) Flex(UTC) - AMF3 (no-timezone) I'd like to be able to also do: (AMF3) Date (no timezone info) - Flex (Local) Flex(Local) - AMF3 (no-timezone) Any ideas to automatically do this? I'm currently manually handling it for every date by runnning a function that returns a local date as the following: return new Date(returnDate.fullYearUTC, returnDate.monthUTC..); Thanks Sam
Re: [flexcoders] Re: Auto incrementing values for datagrid
I think there are only two ways to do it. Create a Class that keeps track of this Auto Increment Variable which will contain and auto increment every time you add 1 to the variable. Or you can link this to a bankEnd Database which will keep track of the number for you. There are 3 flavors these days with databases: 1. Use XML by converting it from the server either via Php or Coldfusion (or whatever other server language you like). 2. Flash Remoting 3. FDS Also if you have many people using this datagrid if you don't use some kind of backend database, how are you going to keep track of who has the maximum number for you to auto increment. Let me know how it turns out. Always trust your Agent, RR-007 On Fri, November 17, 2006 10:43 am, flxcoder said: --- In flexcoders@yahoogroups.com, flxcoder [EMAIL PROTECTED] wrote: I want to have a serial number field in my datagrid that increases or auto increments with each row. Is this possible? this field should re-paint itself on sorting of any other fields. any ideas here? surely, flex has a way to have a serial number auto incrementing column value for the datagrid...
[flexcoders] Photo Viewer Sample App
The Photo Viewer Sample App has a ViewStack with 3 views: ThumbnailView ..., CarouselView ..., SlideShowView When I move CarouselView ... to the top of the stack, on execution it throws an: Error #1009: Cannot access a property or method of a null object reference. Poking around with the debugger the problem is that the property gallery = null. It all works fine as originally written. That is when CarouselView ... is not the first view in the stack. The default app PhotoViewer.mxml uses databinding for passing in gallery={gallery} to each of the 3 views. Can anyone help out suggesting why CarouselView ... only fails when it is first view in the stack? fyi ... The Photo Viewer Sample App is easy to install via the Flex Builder 2 Flex Start Page (Install sequence: Main Menu - Help - Flex Start Page - More installed samples - Photo Viewer - Open Project) Because ResourceBundle are used, you might encounter the (annoying) bug 174788 (as documented in TechNote at www.adobe.com/go/4a146409) which requires In Flex Builder, clean the project in order to remove the error. I really would like to get Photo Viewer Sample App working with CarouselView ... as the default view. If anyone can help me figure out how to do that, I would appreciate it. In debugging this I have gotten as far as ... When the Error #1009 occurs, FB2 opens Carousel.as pointing to the first statement in method reset() which references: gallery.selected Using a breakpoint, the debugger's Variables panel showsgallery=null. I then modified reset() to include if ( gallery != null ) in 2 places. 1) around: var selected:int = gallery.selected; 2) around the entire loop: for (var i:int=0; i 9; i++) This clears the #1009 error, but the Variables window continues to show gallery=null. Only if I then navigate to either ThumbnailView ... or SlideShowView ... before navigating back to CarouselView ... does the databinding finally set the gallery property and CarouselView ... works. Pete Sponsored Link $200,000 mortgage for $660/ mo - 30/15 yr fixed, reduce debt - http://yahoo.ratemarketplace.com
[flexcoders] Binding to property or use a custom event and event.target.myProperty ?
I have a simple custom component, based on a richtexteditor, that cleans up it's own html when it's submit button is clicked. Question: Is is best to access the new 'clean' html from the main application via a [Bindable] property or dispatching a custom event when the internal processing is completed? Does it matter? THANKS! Will.
RE: [flexcoders] Newbie: Why can't I add a button!
Any ideas anyone? About what? My previous reply explained that an mx:Application in MXML autogenerates CSS selector setup code that you don't get when you simply subclass Application in AS3. That's why this works and your previous code didn't. Turn on -keep-autogenerated-actionscript to see this code. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Greg McCreath Sent: Thursday, November 16, 2006 8:06 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Newbie: Why can't I add a button! Thanks. It works fine as a MXML app. Here it is. Any ideas anyone? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=startMe() mx:Script ![CDATA[ import mx.core.*; import mx.events.*; import mx.skins.halo.*; import mx.styles.*; import mx.controls.*; import flash.display.*; [Embed(source=connected_multiple_big.jpg)] private var ImageClass:Class; public function startMe():void { var img:Image = new Image(); img.setStyle(verticalAlign,top); img.source = ImageClass; addChild(img); var button:Button = new Button(); button.label = label; addChild(button); } ]] /mx:Script /mx:Application Greg McCreath Chief Technical Officer TAFMO Limited ABN: 94 109 766 592 Level 8, 342 Flinders Street Melbourne Victoria, 3000 Australia http://www.tafmo.com Ph http://www.tafmo.comPh : +61 (0) 3 9018 6824 Fax : +61 (0) 3 9018 6899 Mobile : +61 (0) 401 988 957 From: Matt Chotin [mailto:[EMAIL PROTECTED] Sent: Friday, 17 November 2006 2:35 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Newbie: Why can't I add a button! Looks like the style code may not be loading correctly. What happens if you use an MXML file for your application instead of AS? Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bookymcnuggett Sent: Thursday, November 16, 2006 5:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Newbie: Why can't I add a button! Hi All, This is my first posting to this forum. I have taken my first newbie steps to creating a stand-alone AS3 Application and have come across something I cannot understand. I have an Application, and add an Image to it and it is fine. I add a Button to it and it blows up with the AS3 equivalent of a null pointer exception. The code is below. The error is below that. If I comment out the line that does the addChild(button) it correctly adds and displays the Image. What am I doing wrong? What is wrong with how I am adding a button? Both Button and Image descend from UIComponent. package { import mx.core.*; import mx.events.*; import mx.skins.halo.*; import mx.styles.*; import mx.controls.*; import flash.display.*; public class FirstApp extends Application { [Embed(source=connected_multiple_big.jpg)] private var ImageClass:Class; public function FirstApp() { super(); this.layout = vertical; this.setStyle(borderSkin,mx.skins.halo.HaloBorder); this.addEventListener(FlexEvent.APPLICATION_COMPLETE, doInit); } private function doInit(e:FlexEvent):void { var img:Image = new Image(); img.setStyle(verticalAlign,top); img.source = ImageClass; addChild(img); // the troublesome test button. addChild() here causes a null object reference exception var button:Button = new Button(); button.label = label; addChild(button); } } } /// TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.core::UIComponent/getStyle() at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewS http://www.adobe.com/2006/flex/mx/internal::viewS kinForPhase() at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::viewS http://www.adobe.com/2006/flex/mx/internal::viewS kin() at mx.controls::Button/mx.controls:Button::commitProperties() at mx.core::UIComponent/validateProperties() at mx.managers::LayoutManager/::validateProperties() at mx.managers::LayoutManager/::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply http://adobe.com/AS3/2006/builtin::apply () at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE ventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.managers::SystemManager/::preloader_preloaderDoneHandler() at
RE: [flexcoders] RegExp Validator
Maybe the MXML compiler is trying to interpret the {6, 8} as a binding expression similar to {newPassword}. Try setting the 'expression' property in an initialize handler instead. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of DJ Lift Sent: Friday, November 17, 2006 9:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] RegExp Validator Hey there, I'm trying to use a standard regular expression in a RegExpValidator. Here's the validator markup: mx:RegExpValidator id=newPasswordValidator expression=[a-zA-Z0-9]{6,8} source={newPassword} property=text requiredFieldError=This fields is required. noMatchError=Passwords must be 6 to 8 characters in length and include letters and numbers/ It keeps saying that a password like '64months' (without the apostrophes) is no good when it should be. The expression should validate such that any characters from a-z and A-Z and 0-9 should be ok, as long as the total length of chars is between 6 - 8 chars long. This expresion works great in PHP. I must be missing something about how AS or Flex deals with it. Any help would be appreciated. thanksie, marky
[flexcoders] Ely's RadarChart - I have the files
Hey all, I got the files Ely attached yesterday (thanks Oliver), so no need for anyone to send more. Excellent work Ely. It puts my code to shame! It's much more consistent with the other charts, and shows how to do things properly :D Danny The information contained in this e-mail and/or any attachments is confidential and intended only for the individual(s) to which it is addressed. If you are not named as an addressee you must not disclose, copy or take any action in reliance of this transmission. This e-mail and its attachments have been scanned for viruses by MessageLabs Ltd. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
[flexcoders] Return of single object from ColdFusion
Problem: When I invoke the get function in the generated gateway object from the CF Wizard I cannot cast the result to an instance in Flex. In debug I can see that the event.result is returning data but when this statement is invoked the result is a NULL thisPerson object in Flex: thisPerson=event.result as Employee; Any suggestions?
[flexcoders] DataGrid Click event - unexpected results
I have a grid, and a click event defined. On a click on a row, I determine the row using selectedIndex, then I display data in another grid on a different tab depending on a product id from the selected row. This works fine, except when I click in the header or the scroll bar of the grid, the click event gets fired, when obviously I was not wanting that to happen. I tried the change event, but that only recognizes changes in the row, so does not allow the same row to be clicked a second time. Is there any way to only capture a click on a data row? Thanks Andrew
RE: [flexcoders] DataGrid Click event - unexpected results
Try using the 'itemClick' event. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of greenfishinwater Sent: Friday, November 17, 2006 11:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid Click event - unexpected results I have a grid, and a click event defined. On a click on a row, I determine the row using selectedIndex, then I display data in another grid on a different tab depending on a product id from the selected row. This works fine, except when I click in the header or the scroll bar of the grid, the click event gets fired, when obviously I was not wanting that to happen. I tried the change event, but that only recognizes changes in the row, so does not allow the same row to be clicked a second time. Is there any way to only capture a click on a data row? Thanks Andrew
[flexcoders] Re: Odd Problem with DateField and formatString
This is really bugging me. :-/ Anyone know? --- In flexcoders@yahoogroups.com, gotgoose09 [EMAIL PROTECTED] wrote: View this example below. It consists of a DateField (dfDatePicker) and a Label. dfDatePicker's formatString is set to MM/. http://www.thegoosmans.com/datefieldproblem/TestEventHandlers.swf To observe the problem, try setting the date two times. The second time an error will occur saying that a property is null. I have tested this without a formatString on dfDatePicker and it works perfectly. In my change handler for dfDatePicker it seems that dfDatePicker's selectedDate becomes null. In this example, there is no formatString and it works perfectly. (don't try to view source, I didn't update it for this example) http://www.thegoosmans.com/datefieldproblem/TestEventHandlers2.swf You can view the source by right clicking on the SWF and clicking View Source. I am at a loss as to why this is happening. Anyone know?
[flexcoders] Re: DataGrid Click event - unexpected results
Using itemClick solves part of the problem. Clicking on the scroll bar does not trigger the event. But clicking a column header does trigger the event. Andrew --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: Try using the 'itemClick' event. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of greenfishinwater Sent: Friday, November 17, 2006 11:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid Click event - unexpected results I have a grid, and a click event defined. On a click on a row, I determine the row using selectedIndex, then I display data in another grid on a different tab depending on a product id from the selected row. This works fine, except when I click in the header or the scroll bar of the grid, the click event gets fired, when obviously I was not wanting that to happen. I tried the change event, but that only recognizes changes in the row, so does not allow the same row to be clicked a second time. Is there any way to only capture a click on a data row? Thanks Andrew
Re: [flexcoders] WebService woes - faultCode: EncodingError - faultString: Unknown Property
Turns out this was caused by the images property which was an empty ArrayCollection. The operation succeeds if I pass null for the images. I have no idea why the error was reporting what it was. Paul Spitzer wrote: Hi all, Hoping someone can help me out here. We've recently switched our Web Services implementation on the server from Axis to XFire. With the switch one of the existing working operations is now failing. The failure happens somewhere in the Flex Web Service classes when the request to call the service operation occurs. The request never makes it to the server as Flex stops it and throws a fault. Here's some (simplified) code.. --- // AbstractWebServiceRequest class // constructor this.service = new WebService(); this.service.makeObjectsBindable = false; this.service.wsdl = this.getWsdlPath(); this.service.addEventListener(ResultEvent.RESULT, this.handleResult); this.service.addEventListener(FaultEvent.FAULT, this.handleFault); this.service.loadWSDL(); ... // execute method var args: Array = this.getOperationArguments(); var operationName: String = this.getOperationName(); var operation: Operation = this.service.getOperation(operationName) as Operation; operation.send.apply(this, args); --- Everything is fine up to the point that the request is sent via the operation's send method. The request is never actually sent to the server. Instead the handleFault handler is called. The Fault object in the FaultEvent reports.. faultCode:EncodingError faultString:'Unknown Property: 'creationDate'.' faultDetail:'null' The object that is sent as an argument to the operation has the following schema.. xsd:complexType name=TheObject xsd:sequence xsd:element minOccurs=0 name=creationDate type=xsd:dateTime/ xsd:element minOccurs=0 name=customerId type=xsd:long/ xsd:element minOccurs=0 name=height type=xsd:int/ xsd:element minOccurs=0 name=id type=xsd:long/ xsd:element minOccurs=0 name=images nillable=true type=ns1:ArrayOfScrollerImage/ xsd:element minOccurs=0 name=modificationDate type=xsd:dateTime/ xsd:element minOccurs=0 name=name nillable=true type=xsd:string/ xsd:element minOccurs=0 name=version type=xsd:long/ xsd:element minOccurs=0 name=width type=xsd:int/ /xsd:sequence /xsd:complexType The actual object looks like (including the creationDate).. object = TheObject (@ee5f8b1) creationDate = Date (@f0695b1) date = 17 [0x11] dateUTC = 17 [0x11] day = 5 [0x5] dayUTC = 5 [0x5] fullYear = 2006 [0x7d6] fullYearUTC = 2006 [0x7d6] hours = 10 [0xa] hoursUTC = 17 [0x11] milliseconds = 234 [0xea] millisecondsUTC = 234 [0xea] minutes = 1 [0x1] minutesUTC = 1 [0x1] month = 10 [0xa] monthUTC = 10 [0xa] seconds = 23 [0x17] secondsUTC = 23 [0x17] time = 1163782883234 [0x10ef6dd87a2] timezoneOffset = 420 [0x1a4] customerId = 117 [0x75] height = 160 [0xa0] id = -1 [0x] images = mx.collections.ArrayCollection (@32dd551) imagesLength = 0 [0x0] imagesXmlString = images/images modificationDate = Date (@f069881) name = TheObjectName template = TheObjectTemplate (@eee6b31) templateId = 1 [0x1] version = -1 [0x] width = 266 [0x10a] Anyone have any ideas what's causing the fault? thanks, Paul
[flexcoders] Re: Odd Problem with DateField and formatString
I don't get any errors when running TestEventHandlers.swf Andrew --- In flexcoders@yahoogroups.com, gotgoose09 [EMAIL PROTECTED] wrote: This is really bugging me. :-/ Anyone know? --- In flexcoders@yahoogroups.com, gotgoose09 thegoosmans@ wrote: View this example below. It consists of a DateField (dfDatePicker) and a Label. dfDatePicker's formatString is set to MM/. http://www.thegoosmans.com/datefieldproblem/TestEventHandlers.swf To observe the problem, try setting the date two times. The second time an error will occur saying that a property is null. I have tested this without a formatString on dfDatePicker and it works perfectly. In my change handler for dfDatePicker it seems that dfDatePicker's selectedDate becomes null. In this example, there is no formatString and it works perfectly. (don't try to view source, I didn't update it for this example) http://www.thegoosmans.com/datefieldproblem/TestEventHandlers2.swf You can view the source by right clicking on the SWF and clicking View Source. I am at a loss as to why this is happening. Anyone know?
[flexcoders] Re: DataGrid Click event - unexpected results
OK, I now have it working correctly. I use the itemClick event, then I check if rowIndex 0. The last part prevents a click in the header from triggering the application logic. I have a grid, and a click event defined. On a click on a row, I determine the row using selectedIndex, then I display data in another grid on a different tab depending on a product id from the selected row. This works fine, except when I click in the header or the scroll bar of the grid, the click event gets fired, when obviously I was not wanting that to happen. I tried the change event, but that only recognizes changes in the row, so does not allow the same row to be clicked a second time. Is there any way to only capture a click on a data row? Thanks Andrew
[flexcoders] Iterating through a loop with radiobuttons - giving unique instance
Flex Wizards: I need to iterate through a loop and create radio buttons, i have to add loaders for images next to them etc. How do you something like this in AS3.0? var myRadio[b+i]:RadioButton = new RadioButton(); Also, when you send an event with the currentTarget property, which is the currentTarget property? I was messing with the mx:Repeater and it was a little confused exactly how to set up a loop with unique id's and my make my radio labels dynamic that way so I am trying just to do it in as3.0 Thanks, Patrick
[flexcoders] Newbie Question: Paging a Datagrid.
I'd like to have a datagrid in my Flex application that will show X records at a time and offer paging functionality. The datagrid control is very functional, so I assumed this wouldn't be terribly difficult. I've done some Googling, though, and haven't turned up much. Any ideas? Thanks in advance! - PCM
Re: [flexcoders] AutoScroll Text Area, and AS3 timer
I am in need of a news ticker/scroller too, and I'm wondering if I'm just better off building it in Flash rather than Flex? Another question related to the timer...in AS2 I used setInterval or onEnterFrame for animation, but (at least the way I did it) with both of those methods performance degraded as the animations ran if the actions were not deleted at some point (in other words you could not do a constant animation with either of those effects). Does anyone know if this happens with the Timer object too? I know you can pass a tick limit to stop the timer, but I found out (hehe - by accident) that if you pass a 0 it just keeps going. Is that an evil thing to do? Maybe I'm just going about it it all wrong and this is not even an issue, if so I'd appreciate any advice :) Thanks, Rachel On 11/17/06, KP [EMAIL PROTECTED] wrote: Hi All, Sorry for bugging you on this one again but below is the sample code which contain textArea and I want to som how autoscroll the contect present in textarea. I have already used *verticalScrollPosition* and timer for doing this but it does not look good I want to give it a professional look like the link below http://projects.willstream.com/rssticker/index1.html can some one suggest some solution..thanks in advance. Kumar ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Canvas x=100 y=75 width=200 height=202 mx:TextArea x=20 y=24 width=170 height=92 mx:textsdf..sdfl'l'l'lsdfsl'fls'dlfdl;f some others things bla bla dfljljlj dfgkjdlgjlkdfg ljsdlfjldfjlsjdfl sdkljflsdjfljsdf jsldjflsdjflsjdf jsldjflsdjflsjdf lsdjfljsdlfjsdf lsdjfljsdlfjslf lsdjfljslfjsldf lsdjflsjdf/mx:text /mx:TextArea /mx:Canvas /mx:Application
Re: [flexcoders] Re: text not word wrapping
I believe you have to sent an explicit pixel width on a Text component for it to wrap, kind of a bummer if you want it to stretch but still wrap. The Flex docs describe the behavior: If you specify a pixel value for both the height and width properties, any text that exceeds the size of the control is clipped at the border. If you specify an explicit pixel width, but no height, Flex wraps the text to fit the width and calculates the height to fit the required number of lines. If you specify a percentage-based width and no height, Flex does not wrap the text, and the height equals the number of lines as determined by the number of Return characters. If you specify only a height and no width, the height value does not affect the width calculation, and Flex sizes the control to fit the width of the maximum line. Rachel On 11/17/06, Paul Hastings [EMAIL PROTECTED] wrote: On 11/17/06, Paul Hastings [EMAIL PROTECTED] wrote: mx:Text text={data.label} fontSize=8 fontStyle=normal fontWeight=normal textAlign=left textDecoration=none selectable=false id=legendText/ /mx:HBox sort of fixed this by setting a percent width on the text bit, wrapping works until you scroll past the word wrapped rows then those rows' text is simply truncated. any ideas? thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Ely: How do you wordwrap a label on a bar chart?
A Vertical Axis why Field, my labels are being cut off, my width dimension is fixed to 280 pixels, so the column needs to wrap down? Thanks, Patrick
[flexcoders] events? Should I use mx.events or flash.events?
What's the difference between the two? Thanks, Patrick
Re: [flexcoders] Programmatic Tabskin / CSS
Am Donnerstag, 16. November 2006 22:02 schrieb zzwi89: Hello, I am using programattic skinning for some tabs in a TabBar. Rather than write a class for the selected tab, one for the deselected tab, etc.., I would like to use the same tab class but change CSS styles to alter the style. In my CSS file, rather than specify tab styles like this: disabledSkin: ClassReference(...); I would rather specify disabledSkin: styleName .styleName { disabledSkin: ClassReference(...); attribute1: value; attribute2: value; } Unforunately, I do not know of a way to do this? Do you? Look at ButtonSkin.as, I think they use the switch(name)-statement to accomplish this: --- [...] switch (name) { case selectedUpSkin: case selectedOverSkin: { [...] } case upSkin: { [...] } case overSkin: { [...] } case downSkin: case selectedDownSkin: { [...] } case disabledSkin: case selectedDisabledSkin: { [...] } } [...] --- O. -- 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] Automatic resize of panel when layout=absolute - how?
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] Communicating with an embedded SWF from Flex App
I have recently begun migrating an application that was originally written in C# to Flex. The application utilized the Flash ActiveX control to display an SWF that was used for video conferencing. The C# program required the user to log in to get to the video conferencing and the user's ID was fed to the Flash video component using 'SetVariable'. How do I do this from within my Flex app? How do I emulate the 'SetVariable' call? I have the SWF loaded and displaying properly using SWFLoader. Is the 'SetVariable' acheived through the LocalConnection component? Thanks in advance to anyone who can help.
RE: [flexcoders] Ely: How do you wordwrap a label on a bar chart?
Hi Patrick. THe only way would be to use a labelFunction on your axis and manually insert a line break yourself. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dj Sent: Friday, November 17, 2006 2:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Ely: How do you wordwrap a label on a bar chart? A Vertical Axis why Field, my labels are being cut off, my width dimension is fixed to 280 pixels, so the column needs to wrap down? Thanks, Patrick
[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?
RE: [flexcoders] Automatic resize of panel when layout=absolute - how?
By child panels, do you mean panels that are inside the panel you are trying to resize, or do you mean siblings? _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of zzwi89 Sent: Friday, November 17, 2006 2:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Automatic resize of panel when layout=absolute - how? 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: Ely: How do you wordwrap a label on a bar chart?
Hi Ely, I got this far with wordwrapping the label text, but my question is more complicated. I want to have two verticalAxisRenderers, side-by- side, on the same side of a ColumnChart. Or, create a single LabelRenderer to simulate this. One of the labels needs a shaded background with text, while the other is just text. While digging into it, the docs say to use IFactory for a chart LabelRenderer. Is this similar to an ItemRenderer for a DataGrid? Understandably, there aren't any examples yet that show how to do this. If you have the time, thanks, -TH --- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: Hi Patrick. THe only way would be to use a labelFunction on your axis and manually insert a line break yourself. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dj Sent: Friday, November 17, 2006 2:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Ely: How do you wordwrap a label on a bar chart? A Vertical Axis why Field, my labels are being cut off, my width dimension is fixed to 280 pixels, so the column needs to wrap down? Thanks, Patrick
[flexcoders] Re: Ely: How do you wordwrap a label on a bar chart?
Let me restate this. I'm in chart purgatory right now, and I got the chart type mixed up. It's a bar chart that has a CatagoryField=name and a second CategoryField=rank. The two fields line-up vertically on both sides of the chart. I want the name (non-shaded) and rank (shaded) on the same side. Sorry for the confusion. -TH --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Hi Ely, I got this far with wordwrapping the label text, but my question is more complicated. I want to have two verticalAxisRenderers, side-by- side, on the same side of a ColumnChart. Or, create a single LabelRenderer to simulate this. One of the labels needs a shaded background with text, while the other is just text. While digging into it, the docs say to use IFactory for a chart LabelRenderer. Is this similar to an ItemRenderer for a DataGrid? Understandably, there aren't any examples yet that show how to do this. If you have the time, thanks, -TH --- In flexcoders@yahoogroups.com, Ely Greenfield egreenfi@ wrote: Hi Patrick. THe only way would be to use a labelFunction on your axis and manually insert a line break yourself. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dj Sent: Friday, November 17, 2006 2:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Ely: How do you wordwrap a label on a bar chart? A Vertical Axis why Field, my labels are being cut off, my width dimension is fixed to 280 pixels, so the column needs to wrap down? Thanks, Patrick
[flexcoders] Re: Ely: How do you wordwrap a label on a bar chart?
Thanks Ely, that makes sense now. I'll give it a try. Luckily, both series are using the same dataProvider, so I'll have access to the data property and probably be able to eliminate the second axis completely. Thanks for the tips and the source to your interactive calendar component http://www.quietlyscheming.com/blog/components/interactive-calendar/ . Great Stuff! -TH --- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: Hi Tim. yes, the AxisRenderer supports a property called 'labelRenderer' which is very much like an item renderer. Pass the AxisRenderer a reference to a class (wrapped in a classFactory, just as with itemRenderers) that extends UIComponent, ProgrammaticSkin, or one of the existing Flex components, and implements the IDataRenderer interface. The AxisRenderer will instantiate one of these for each label it needs to show, and assign the label to the labelRenderer's 'data' property. I don't think there are any examples out there of how to do this today. Ely. p.s. You could also consider writing a custom axisRenderer...there's a pretty exhaustive example of how to do that in the Interactive Bubble Chart on my blog, http://www.quietlyscheming.com/. You could theoretically create two axis renderers that stack on the left hand side that way, although that's a pretty big undertaking. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff Sent: Friday, November 17, 2006 3:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Ely: How do you wordwrap a label on a bar chart? Hi Ely, I got this far with wordwrapping the label text, but my question is more complicated. I want to have two verticalAxisRenderers, side-by- side, on the same side of a ColumnChart. Or, create a single LabelRenderer to simulate this. One of the labels needs a shaded background with text, while the other is just text. While digging into it, the docs say to use IFactory for a chart LabelRenderer. Is this similar to an ItemRenderer for a DataGrid? Understandably, there aren't any examples yet that show how to do this. If you have the time, thanks, -TH --- In flexcoders@yahoogroups.com, Ely Greenfield egreenfi@ wrote: Hi Patrick. THe only way would be to use a labelFunction on your axis and manually insert a line break yourself. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dj Sent: Friday, November 17, 2006 2:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Ely: How do you wordwrap a label on a bar chart? A Vertical Axis why Field, my labels are being cut off, my width dimension is fixed to 280 pixels, so the column needs to wrap down? Thanks, Patrick
Re: [flexcoders] Re: text not word wrapping
On 11/18/06, Rachel Maxim [EMAIL PROTECTED] wrote: If you specify a percentage-based width and no height, Flex does not wrap the text, and the height equals the number of lines as determined by the number of Return characters. ok but it seems the first time the cell is rendered it *does* wrap the text (when used w/a percentage width). though i do see the clipping when you scroll the grid. also seeing weird stuff where data leaks into cells below, usually the renderer's image. scrolling usually fixes it. item renderers really confuse me.
[flexcoders] Re: Return of single object from ColdFusion
You can always try the following: thisPerson = (Employee)(event.result); However, you may get the error of cannot convert Object to Employee. But its worth a try. Bob I. --- In flexcoders@yahoogroups.com, Wally Randall [EMAIL PROTECTED] wrote: Problem: When I invoke the get function in the generated gateway object from the CF Wizard I cannot cast the result to an instance in Flex. In debug I can see that the event.result is returning data but when this statement is invoked the result is a NULL thisPerson object in Flex: thisPerson=event.result as Employee; Any suggestions?
[flexcoders] Re: Ely: How do you wordwrap a label on a bar chart?
Patrick, Sorry to highjack your thread. Here's a method to display a multi-lined Axis label: labelFunction: public function wrapLabel(cat:Object,pcat:Object,ax:CategoryAxis,catItem:Object):String { var pattern:RegExp = /-/; return cat.replace(pattern, -\n); } Axis: mx:horizontalAxis mx:CategoryAxis categoryField=CategoryField labelFunction=wrapLabel/ /mx:horizontalAxis This example changes: 11/17/06 - 12/16/06 to 11/17/06 - 12/16/06 By using regular expresions, you have quite a bit of flexibility. -TH __ Tim Hoff Cynergy Systems, Inc. http://www.cynergysystems.com Office http://www.cynergysystems.comoffice/ : 866-CYNERGY --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Thanks Ely, that makes sense now. I'll give it a try. Luckily, both series are using the same dataProvider, so I'll have access to the data property and probably be able to eliminate the second axis completely. Thanks for the tips and the source to your interactive calendar component http://www.quietlyscheming.com/blog/components/interactive-calendar/ . Great Stuff! -TH --- In flexcoders@yahoogroups.com, Ely Greenfield egreenfi@ wrote: Hi Tim. yes, the AxisRenderer supports a property called 'labelRenderer' which is very much like an item renderer. Pass the AxisRenderer a reference to a class (wrapped in a classFactory, just as with itemRenderers) that extends UIComponent, ProgrammaticSkin, or one of the existing Flex components, and implements the IDataRenderer interface. The AxisRenderer will instantiate one of these for each label it needs to show, and assign the label to the labelRenderer's 'data' property. I don't think there are any examples out there of how to do this today. Ely. p.s. You could also consider writing a custom axisRenderer...there's a pretty exhaustive example of how to do that in the Interactive Bubble Chart on my blog, http://www.quietlyscheming.com/. You could theoretically create two axis renderers that stack on the left hand side that way, although that's a pretty big undertaking. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff Sent: Friday, November 17, 2006 3:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Ely: How do you wordwrap a label on a bar chart? Hi Ely, I got this far with wordwrapping the label text, but my question is more complicated. I want to have two verticalAxisRenderers, side-by- side, on the same side of a ColumnChart. Or, create a single LabelRenderer to simulate this. One of the labels needs a shaded background with text, while the other is just text. While digging into it, the docs say to use IFactory for a chart LabelRenderer. Is this similar to an ItemRenderer for a DataGrid? Understandably, there aren't any examples yet that show how to do this. If you have the time, thanks, -TH --- In flexcoders@yahoogroups.com, Ely Greenfield egreenfi@ wrote: Hi Patrick. THe only way would be to use a labelFunction on your axis and manually insert a line break yourself. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dj Sent: Friday, November 17, 2006 2:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Ely: How do you wordwrap a label on a bar chart? A Vertical Axis why Field, my labels are being cut off, my width dimension is fixed to 280 pixels, so the column needs to wrap down? Thanks, Patrick
[flexcoders] Looping creating objects, how do you do this: var myRadio[b+i]:RadioButton = new RadioButton();
I know I've posted this already. Sorry, just trying to get this populated in Actionscript, so I thought I'd post again since I've been kind of stuck on this point here. Thanks, Patrick
[flexcoders] Re: Odd Problem with DateField and formatString
That's weird, I get errors the second time I try to choose a date in Firefox 2 and IE 6. I have the latest Flash Player 9 debug version installed for both browsers. I even tried uninstalling and reinstalling the Flash Player, but that didn't work. Can anyone get an error? --- In flexcoders@yahoogroups.com, greenfishinwater [EMAIL PROTECTED] wrote: I don't get any errors when running TestEventHandlers.swf Andrew --- In flexcoders@yahoogroups.com, gotgoose09 thegoosmans@ wrote: This is really bugging me. :-/ Anyone know? --- In flexcoders@yahoogroups.com, gotgoose09 thegoosmans@ wrote: View this example below. It consists of a DateField (dfDatePicker) and a Label. dfDatePicker's formatString is set to MM/. http://www.thegoosmans.com/datefieldproblem/TestEventHandlers.swf To observe the problem, try setting the date two times. The second time an error will occur saying that a property is null. I have tested this without a formatString on dfDatePicker and it works perfectly. In my change handler for dfDatePicker it seems that dfDatePicker's selectedDate becomes null. In this example, there is no formatString and it works perfectly. (don't try to view source, I didn't update it for this example) http://www.thegoosmans.com/datefieldproblem/TestEventHandlers2.swf You can view the source by right clicking on the SWF and clicking View Source. I am at a loss as to why this is happening. Anyone know?
[flexcoders] Re: Worksheet component in Flex
Thanks Tom. I will get back if I have further questions. Btw, are there any design patterns which we could use to build self contained flex components/ Widgets ? --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Saturday 04 November 2006 00:35, jmorpher03 wrote: allows column/cells selection. I have worked with datagrid, but its always row-wise selection there. You might want to start over here http://falkensweb.com/SelectableCellDataGrid.as which allows cell selection. Extending it to allow column selection seems easy enough. -- Tom Chiverton Helping to biannually architect six-generation action-items
[flexcoders] Sorting Date Error using CompareFunc
Hi, I was wondering how exactly I can write a date sorting function for the internal CompareFunc because I would like to use the sort field function. Please specify what exactly I have to write and exactly where I put it. Thanks.
Re: [flexcoders] Re: text not word wrapping
On 11/18/06, Rachel Maxim [EMAIL PROTECTED] wrote: thanks for the pixel width push rachel, i'm a bit closer now: mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; toolTip={data.name} width=100% horizontalScrollPolicy=auto verticalGap=0 verticalAlign=top paddingLeft=0 paddingRight=0 paddingTop=0 paddingBottom=0 horizontalGap=0 autoLayout=true clipContent=false creationComplete=doInit(); mx:Script ![CDATA[ import flash.events.Event; private function doInit():void { addEventListener(dataChange,adjust); } private function adjust(event:Event):void { if (data.imgSource==) { legendDetails.height=0; } } ]] /mx:Script mx:Text text={data.name} width=150 fontSize=10 fontStyle=normal fontWeight=bold textAlign=left textDecoration=none selectable=false id=layerName color=#A0 themeColor=#80/ mx:HBox width=100% id=legendDetails verticalAlign=top mx:Image source={data.imgSource} height=16 width=16 id=legendSwatch/ mx:Text text={data.label} fontSize=9 fontStyle=normal fontWeight=normal textAlign=left textDecoration=none selectable=false id=legendText width=150/ /mx:HBox /mx:VBox now i'm stuck trying to shrink the HBox height (setting visible to false still seems to take up space) if there's no data for it's children. again it seems to mostly work until the grid is scrolled then strange stuff happens. rows w/data are hidden, etc. obviously still missing something fundamental about item renderers.
[flexcoders] Logout Button in Application
Hi All, In my Application I have authentication form when my application starts , if the login is successful then user can perform some task now the problem is I have to give one logout button in my application which will perform below task if it is clicked. If logout button is clicked I want to go back @ auttentication page and again ask user for username and password. I am getting proper approach for doing this can some one suggest some approach on this one. Thanks Kumar