[flexcoders] Re: Suspend Image loading...
--- In flexcoders@yahoogroups.com, maikelsibbald [EMAIL PROTECTED] wrote: I have the idea that that every time I'm loading images in my itemrenderers it's slows down my application. For example when the images are loading and I open a popup, the popup appears on the moment the last images was loaded. Strange... the popup has a Higher priority than the images, because additional data is already available. I've got the samething with other requests... mm.. nobody els got this problem??
[flexcoders] Re: Apparent Bug in LineCharts - filterData property Kills Data Tips
Extend the LineSeries class. Override the findDataPoitns function. In its body, paste a copy of that from the original LineSeries class. Change the if (!isNaN(v.yFilter) !isNaN(v.xFilter)) to if (!isNaN(v.yNumber) !isNaN(v.xNumber)). Replace all _renderData references with just renderData. I thought that last bit was obvious because I assumed you'd actually looked at the source code properly. Graham --- In flexcoders@yahoogroups.com, thegiffman [EMAIL PROTECTED] wrote: Have you figured out a way to do this by extending the LineSeries class, rather than replacing it? I can copy the code in LineSeries to my own file, and have the compiler use that, rather than the internal one. Then I can do the fix. However, I cannot actually do it by extending LineSeries, because findDataPoints references private variables and functions (like nearly all the mx functions we'd like to extend :-( ). --- In flexcoders@yahoogroups.com, g_odds g_odds@ wrote: I noticed this bug several weeks ago and fortunately I managed to find the problem and create a workaround. You'll have to have a poke around in the LineSeries source code to fully understand what I'm saying here. You need to extend the LineSeries class and extend the findDataPoints function. In the LineSeries' findDataPoints function the if (!isNaN(v.yFilter) !isNaN(v.xFilter)) condition will fail because when filterData = false and the filterCache function of the series is called (this happens when the min or max of an axis is set because the mapping changes) the .yFilter and xFilter properties will be set to NaN for the points. That makes sense in it's own way, but the upshot of that is that the minItem variable is never set and, therefore, an empty array will always be returned. So the fix is to copy the code from the LineSeries source code and in your overriding function change the if (!isNaN(v.yFilter) !isNaN(v.xFilter)) condition to if (!isNaN(v.yNumber) !isNaN(v.xNumber)). So yes, this is a nasty little hack but I haven't found any other way to solve the problem. Hope that helps, Graham --- In flexcoders@yahoogroups.com, thegiffman thegiffman@ wrote: If I take the standard line chart demo code, and add showDataTips to the line chart, they display normally. Yet, the moment I set filterData to false on one of the LineSeries, it kills data tips for this series. I think this is a bug in the charting components, as the data tips and the filterData attribute do not conflict for column charts. ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var expenses:ArrayCollection = new ArrayCollection([ {Month: Jan, Profit: 2000, Expenses: 1500, Amount: 450}, {Month: Feb, Profit: 1000, Expenses: 200, Amount: 600}, {Month: Mar, Profit: 1500, Expenses: 500, Amount: 300} ]); ]]/mx:Script mx:LineChart id=myChart dataProvider={expenses} showDataTips=true mx:seriesFilters mx:Array/ /mx:seriesFilters mx:horizontalAxis mx:CategoryAxis dataProvider={expenses} categoryField=Month/ /mx:horizontalAxis mx:series mx:LineSeries yField=Profit displayName=Profit filterData=false/ mx:LineSeries yField=Expenses displayName=Expenses/ mx:LineSeries yField=Amount displayName=Amount/ /mx:series /mx:LineChart /mx:Application
[flexcoders] Flex SOAP - dateTime to Date conversion bug
When using xsd:dateTime values in soap requests Flex doesn't seem to parse the seconds in of the dateTime string. Can anyone confirm this? This is an example of the string Flex gets: 2007-02-20T15:38:56Z And Flex turns it into a date component with everything except the seconds.
[flexcoders] Oh the headerrenderer of death
Hi, Having a bit of a nightmare with a headerrenderer, it simply doesn't work for me, ahh I hear you say. This is what I have: mx:DataGridColumn headerRenderer=renderers.EmptyRenderer backgroundColor=#C0C0C0 width=75 textAlign=center headerText=black/ The Renderer is this: ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* marginTop=0 marginBottom=0 hScrollPolicy=off verticalGap=0 horizontalGap=0 backgroundColor=#dd vScrollPolicy=off verticalAlign=top borderStyle=none mx:Script ![CDATA[ var headerText:String; public function setValue(str:String, item:Object) { if (item == undefined){ visible = false; return; } visible = true; headerText = str; } ]] /mx:Script mx:Text text={headerText} width=100% height=100%/ /mx:HBox All I want to show is the headerText with a backgroundColor in the header. Can anyone help please? All I get at the moment is a blank header, with nothing in it and the same as the default header colors. Cheers, Iain
[flexcoders] How to get the real X Y of a repeater item
Hi, In my app I create a repeater the generats VBoxes each with button in it. When the user clicks on the button I want to generate a small dialog that will open up under the button. I know how to get the repeater current item and target and current target but I can't find the real X Y of the button. Am I going in the wrong direction?
[flexcoders] Negative plane in Column Chart
How to implement such a thing? Simple defining negative values doesn't help. These columns just not displayed. If this is impossible within Column Chart, could you please advise me where should I look for? Thanks. -- A vivid and creative mind characterizes you.
[flexcoders] Re: If Flex 2 Livedocs still supported or we shall move on to Flex 2.0.1 Livedoc
Hi, Stephen, Thank you for your time, the error with http://livedocs.adobe.com/flex/2/langref/mx/controls/Tree.html page is gone. Just wanted to attract somebody's attention from Adobe to this problem, looks like somebody has taken care of this issue already yesterday! What errors are you seeing? -- With best regards, JabbyPanda
AW: [flexcoders] fyi : Apollo Camp San Francisco, March 16th 2007
Especially in Europe would be really great (and I personally would suggest Graz, but that's just me ;-)) Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Shannon Hicks Gesendet: Mittwoch, 21. Februar 2007 00:06 An: flexcoders@yahoogroups.com Betreff: RE: [flexcoders] fyi : Apollo Camp San Francisco, March 16th 2007 Any plans for other Apollo Camp cities in the future? Shan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Chambers Sent: Tuesday, February 20, 2007 3:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] fyi : Apollo Camp San Francisco, March 16th 2007 fyi We just announced Apollo Camp in San Francisco for March 16th, 2007. ApolloCamp is a one night, single track conference hosted by Adobe covering everything you need to know about getting started with building Apollo applications using Flex. http://apollocamp.eventbrite.com/ http://apollocamp.eventbrite.com/ I also blogged info on it here: http://weblogs.macromedia.com/mesh/archives/2007/02/announcing_apol.html http://weblogs.macromedia.com/mesh/archives/2007/02/announcing_apol.htm l Details Who : Anyone interested in using Flex to build Apollo Applications What : ApolloCamp - one night mini conference for Flash and Flex developers interested in getting started with Apollo When : March 16th, 2007. 5 PM PST - 11:30 PM PST Where : Adobe San Francisco Office. 601 Townsend St, San Francisco, CA 94103 Why : Why not? How Much : Free and open to the public (Limited space and Registration required) What to Bring : Yourself, Laptop, any Flex apps you might want to get running within Apollo. We will provide the Beer, Red Bull, Coffee, Pizza, Wii, the getting started guide, knowledge, venue and bits. mike chambers [EMAIL PROTECTED] mailto:mesh%40adobe.com
Re: [flexcoders] www.flexgrocer.com down
The site is back up and running. Sorry for the inconvenience... At 08:29 PM 2/21/2007, Jeff Tapper wrote: April - We are working on getting the site back up, but in the mean time, you should be able to work with the xml files on the cd in the back of the book. At 09:47 AM 2/21/2007, April wrote: I'm working through the Adobe Flex 2 Training from the Source book and sometime yesturday the www.flexgrocer.com site went down making it impossible for me to run and test my applications. I've contacted Peachpit Press although I'm not sure if they were the correct contact, but I couldn't find anything on the adobe site. Does anyone have any idea on the status of getting this site back up - or who I should contact to let them know it is down? Thanks! April Jeff Tapper Founding Partner Tapper, Nimer and Associates Inc. mailto:jeff%40tappernimer.com[EMAIL PROTECTED] (718) 576-1775 Jeff Tapper Founding Partner Tapper, Nimer and Associates Inc. [EMAIL PROTECTED] (718) 576-1775
[flexcoders] is it a Flex compiler bug?
We ran into something that looks like a compiler bug. Please take a look at the code below and correct me if I am wrong. The object model and the class names of the code below may not make any sense, I put it together to demonstrate the problem. Here's a class with a static property: package { public class StaticClass { public static function get Account():String { return my account name; } } } Here's a class inheriting from the class shown above: package { public class NonStaticClass extends StaticClass { public var _parentAccount:Account; public function NonStaticClass() { _parentAccount = new Account(); } } } And finally the Account class used in the NonStaticClass: package { public class Account { public var name:String; } } The compiler reports two problems with the code. Both in the NonStaticClass: 1. Type was not found or was not a compile-time constant: Account. This one shows up for the _parentAccount field declaration 2 Call to a possibly undefined method Account This error shows up for the initialization of the _parentAccount field in the NonStaticClass constructor. It looks like there are two problems in the compiler: 1. Compiler attempts to inherit static declarations 2. As a result of (1), the compiler gets confused between the static property and a class type Cheers, Mark
[flexcoders] Re: Negative plane in Column Chart
In Ely Greenfield's Chart Sampler application (http://demo.quietlyscheming.com/ChartSampler/app.html) in the Axes category, the Linear sample produces negative columns using the sliders if that's what you are after. The source is available. Graham --- In flexcoders@yahoogroups.com, Mikhail Shevchuk [EMAIL PROTECTED] wrote: How to implement such a thing? Simple defining negative values doesn't help. These columns just not displayed. If this is impossible within Column Chart, could you please advise me where should I look for? Thanks. -- A vivid and creative mind characterizes you.
[flexcoders] does double click also fire a mouse down event?
i seem to be seeing mouse down events getting fire before (or during or sometime) a mouse double click. is that expected? if so, how can i tell the two apart? thanks.
[flexcoders] Re: SequenceCommand, Adding Properties to the nextEvent
Number one sort of breaks my hope for encapsulation but 2 works like a charm. Thanks Bhuvan. -Kenny --- In flexcoders@yahoogroups.com, Bhuvan Gupta [EMAIL PROTECTED] wrote: 1. Can't you access the model directly inside the GetUsersCommand to get the role value ? or 2. when you assign the nextEvent to GetUsersCommand inside AddUserCommand set the nextEvent.data to role value. IMO, the above should work. On Feb 21, 2007, at 7:53 PM, lostinrecursion wrote: Hi all, Forgive me if this is simple but I just can't seem to make it work. I have a command that fires each time a new record is added via SequenceCommand. (So, for example, AddUserCommand fires GetUsersCommand in the executeNextCommand function) The problem is that my GetUsersCommand is role based expecting a numeric role value from my model object and returning records only available to that particular user type. However, when I go ahead and try to add the role property to my nextEvent variable within AddUserCommand, the compiler throws a possibly undefined property error. How can I attach properties to events in my SequenceCommands then? -Kenny LIR
[flexcoders] Cairngorm Display List
Good Morning, I have created a new View in Cairngorm 2.1. It will be the default View. Is there some sample code around when trying to use the display list in a HBox? I know components are used to display in and the display list is used to display on. I need to load a swf on the display list in the HBox/other component, in the default View. I will need to use the swf as user gesture to load more data from remoteObject on a mouseDown. ANY help/direction/link would be very much appreciated. Thanks
Re: [flexcoders] does double click also fire a mouse down event?
:) http://livedocs.adobe.com/flex/2/langref/flash/display/InteractiveObject.html#event:doubleClick doubleClickeventEvent object type: flash.events.MouseEventhttp://livedocs.adobe.com/flex/2/langref/flash/events/MouseEvent.html MouseEvent.type property = flash.events.MouseEvent.DOUBLE_CLICKhttp://livedocs.adobe.com/flex/2/langref/flash/events/MouseEvent.html#DOUBLE_CLICK Dispatched when a user presses and releases the main button of a pointing device twice in rapid succession over the same InteractiveObject when that object's doubleClickEnabled flag is set to true. For a doubleClick event to occur, it must immediately follow the following series of events: mouseDown, mouseUp, click, mouseDown, mouseUp. All of these events must share the same target as the doubleClick event. The second click, represented by the second mouseDown and mouseUp events, must occur within a specific period of time after the click event. The allowable length of this period varies by operating system and can often be configured by the user. If the target is a selectable text field, the word under the pointer is selected as the default behavior. If the target InteractiveObject does not have its doubleClickEnabled flag set to true it receives two click events. R. On 2/22/07, Paul Hastings [EMAIL PROTECTED] wrote: i seem to be seeing mouse down events getting fire before (or during or sometime) a mouse double click. is that expected? if so, how can i tell the two apart? thanks.
[flexcoders] DataGrid Columns Printing???
Hi All, I have a huge data in my dataGrid like 22 Columns and thousands of rows. I want to print all the data, even I tried using PrintDataGrid. I prints all rows but it fails to print all the columns. I prints only the columns which fit in a single pagebut I want to print rest columns too... How can I squese all the columns or adjust the font size so that each column can be printed with proper data? Pls kindly tell me the solutions It would be a great help for me.. Thanks a lot.. Sanjay sharma
RE: [flexcoders] compc - degrees of specification
A typical way to do this is to first create a manifest file for the components in the library, so that they can be associated with a namespace of your choosing that is unrelated to your package hierarchy. (Take a look at the file mxml-manifest.xml in the frameworks directory. The flex-config.xml file associates this manifest file with the single namespace http://www.adobe.com/2006/mxml despite the fact that its classes are in various packages like mx.controls, mx.containers, etc.) After you have set up a manifest file, you can use compc's -namespace and -include-namespaces options to include all the components in that namespace's manifest (and all the classes that they depend on) without naming each one: compc -namespace http://www.yourcompany.com/flex/coolcomponents mycoolcomponents-manifest.xml -include-namespaces http://www.yourcompany.com/flex/coolcomponents If there are other classes that should go into your SWC which aren't listed in your manifest or which the compiler can't discover by doing a dependency analysis starting from the classes in your manifest, then you can use the -include-classes option to list them one-by-one. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of alehrens Sent: Wednesday, February 21, 2007 8:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] compc - degrees of specification Hi, I'm tinkering with using Ant for our flex build... We have two libraries that contain a good amount of files (say, 25 .as file and 20 .mxml files for this example). My questions are: 1. Do I include both types of files in the compc task - to build everything in our library into one .swc? 2. Is there any way to wildcard it or do I have to specify every file out explicitly? aaron
Re: [flexcoders] does double click also fire a mouse down event?
thanks for the reply. On 2/22/07, Roman Protsiuk [EMAIL PROTECTED] wrote: immediately follow the following series of events: mouseDown, mouseUp, click, mouseDown, mouseUp. All of these events must share the same target as the doubleClick event. The second click, represented by the second mouseDown and mouseUp events, must occur within a specific period of time after the click event. The i'm not really seeing two mouse downs, only one followed by the doubleClick event. in any case, the mouse down handler's firing then the double click handler. this hadn't mattered before but i had to make some flow changes that exposed this. any workarounds? thanks.
RE: [flexcoders] compc - degrees of specification
Resending because this didn't seem to make it through to the list. - Gordon From: Gordon Smith Sent: Wednesday, February 21, 2007 9:15 AM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] compc - degrees of specification A typical way to do this is to first create a manifest file for the components in the library, so that they can be associated with a namespace of your choosing that is unrelated to your package hierarchy. (Take a look at the file mxml-manifest.xml in the frameworks directory. The flex-config.xml file associates this manifest file with the single namespace http://www.adobe.com/2006/mxml despite the fact that its classes are in various packages like mx.controls, mx.containers, etc.) After you have set up a manifest file, you can use compc's -namespace and -include-namespaces options to include all the components in that namespace's manifest (and all the classes that they depend on) without naming each one: compc -namespace http://www.yourcompany.com/flex/coolcomponents mycoolcomponents-manifest.xml -include-namespaces http://www.yourcompany.com/flex/coolcomponents If there are other classes that should go into your SWC which aren't listed in your manifest or which the compiler can't discover by doing a dependency analysis starting from the classes in your manifest, then you can use the -include-classes option to list them one-by-one. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of alehrens Sent: Wednesday, February 21, 2007 8:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] compc - degrees of specification Hi, I'm tinkering with using Ant for our flex build... We have two libraries that contain a good amount of files (say, 25 .as file and 20 .mxml files for this example). My questions are: 1. Do I include both types of files in the compc task - to build everything in our library into one .swc? 2. Is there any way to wildcard it or do I have to specify every file out explicitly? aaron
Re: [flexcoders] DataGrid Columns Printing???
i had similar problems; and extended PrintDataGrid for some purposes; but i could never come over the width problem.(actually it was not a big problem for me so i altered)... but in the end; i decided to do the export job using php , an excel writer. (so @ server). if it is available for you; you better try such a way because in that case you get rid of many visual problems... yigit - Original Message From: sanjaypmg [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 22, 2007 3:22:53 PM Subject: [flexcoders] DataGrid Columns Printing??? Hi All, I have a huge data in my dataGrid like 22 Columns and thousands of rows. I want to print all the data, even I tried using PrintDataGrid . I prints all rows but it fails to print all the columns. I prints only the columns which fit in a single pagebut I want to print rest columns too... How can I squese all the columns or adjust the font size so that each column can be printed with proper data? Pls kindly tell me the solutions... . It would be a great help for me.. Thanks a lot.. Sanjay sharma !-- #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;} -- TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. http://tv.yahoo.com/
Re: [flexcoders] Cairngorm - design question, need suggestions-best practices
thanks ben; but i'm not able to afford it in this case... but i found out that Red5 has object sharing and it is open source free. so i'll try to learn and use Red5 yigit - Original Message From: Ben Yee [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 22, 2007 12:35:01 AM Subject: Re: [flexcoders] Cairngorm - design question, need suggestions-best practices hey yigit, check out flex data services http://www.adobe. com/products/ flex/dataservice s/ it comes at a cost $$$ if you can afford it, it'll look after pushing data to your app which is what you're asking. can also check out http://www.themidni ghtcoders. com/weborb/ php/index. htm cheers ben On 2/22/07, Yiðit Boyar [EMAIL PROTECTED] com wrote: hi all; i just can not believe there is no reply to my post. has not anyone faces the same question ? or lazy solutions enough for you? or our group started to overflow and not answer needs... maybe a newsgroup/forum is needed.. - Original Message From: Yiðit Boyar [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Tuesday, February 20, 2007 9:35:55 PM Subject: [flexcoders] Cairngorm - design question, need suggestions- best practices hi all; i'll buld an application in which the same data (or sth related) is shown in many views; so i will user cairngorm. (phpmysqlamfphp) but the problem is that other clients may change the data(base) so my model values must be updated in these cases. this seems to be a common problem with MVC so can you please share your solutions and best practices ? the first thing that comes to my mind is to check database for changes periodically, and most possibly this is the only way; but many procedures can be used in this also; so i need suggestions before starting coding. thanks.. yigit Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. !-- #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;} -- Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited
[flexcoders] DataGrid Header Center Align??
Hi, How can I center align header text of a DataGrid? Thanks, Sanjay
[flexcoders] Help needed: Dynamic update XML for Tree
Hi folks, I'm trying to update my tree data with a user's login name. Here's my latest try: [Bindable] private var treeXML:XML = list node title=Name label= node label=Calendar node label=Day/ node label=Week/ node label=Month/ /node node label=Year/ node label=MultiCalendar/ node label=Permissions/ node label=Resources/ /node /list; [Bindable] private var treeData:XMLListCollection = new XMLListCollection(treeXML.node); I can't figure out what syntax to use to change the label of the first node. I've tried a lot of different combo's, and can't seem to get the right syntax. Is there a way to update this in 1 statement? TIA Mike
RE: [flexcoders] Cairngorm - design question, need suggestions-best practices
Unless I am misunderstanding your question, this does not really sound like a problem the MVC design pattern, but rather a typical client-server app problem. To ensure that all of your clients always have the most up to date info, you really only have a few options. Push updates from the server to the clients using something like FDS Poll the server constantly to see if any changes have occurred since your last poll and pull down the latest data if so Either solution, you would then just update your cairngorm model with the data received in the result event (in the pulling case via a service) and if your controls are bound to your model then they would update automatically after the data transfer completed. Of course there are tons of other considerations that come into play in this scenario like conflict resolution, which can be solved with a complex merge/purge based solution or a last in wins kind of thing. All problems that just about every client server app has to face when dealing with multiple clients modifying the same data. Just some things to think about. If I am off base from your question, just let me know. Karl Cynergy From: flexcoders@yahoogroups.com on behalf of Yiðit Boyar Sent: Wed 2/21/2007 3:45 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Cairngorm - design question, need suggestions-best practices hi all; i just can not believe there is no reply to my post. has not anyone faces the same question ? or lazy solutions enough for you? or our group started to overflow and not answer needs... maybe a newsgroup/forum is needed.. - Original Message From: Yiðit Boyar [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, February 20, 2007 9:35:55 PM Subject: [flexcoders] Cairngorm - design question, need suggestions-best practices hi all; i'll buld an application in which the same data (or sth related) is shown in many views; so i will user cairngorm. (phpmysqlamfphp) but the problem is that other clients may change the data(base) so my model values must be updated in these cases. this seems to be a common problem with MVC so can you please share your solutions and best practices ? the first thing that comes to my mind is to check database for changes periodically, and most possibly this is the only way; but many procedures can be used in this also; so i need suggestions before starting coding. thanks.. yigit Expecting? Get great news right away with email Auto-Check. http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html Try the Yahoo! Mail Beta. http://us.rd.yahoo.com/evt=49982/*http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel http://travel.yahoo.com/hotelsearchpage;_ylc=X3oDMTFtaTIzNXVjBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzIEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw-- to find your fit.
[flexcoders] RE: Pointing to candlestick chart data item
^_^ I'm asking and also answering it by my selfFound the solution,import mx.core.IFlexDisplayObject; import mx.charts.events.ChartItemEvent; import mx.charts.series.items.HLOCSeriesItem; import mx.charts.HitData; public var hitData:mx.charts.HitData; public var renderer:IFlexDisplayObject; public var chartItem:HLOCSeriesItem; private function dataover(e:mx.charts.events.ChartItemEvent):void{ hitData=e.hitData; chartItem=HLOCSeriesItem(hitData.chartItem); mypanel.title = {+chartItem.openValue+,+chartItem.highValue+,+chartItem.lowValue+,+chartItem.closeValue+}; }From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Pointing to candlestick chart data itemDate: Thu, 22 Feb 2007 02:54:12 + Hello coders ,I have a problem regarding to flex chart series , I want to reference to the data value over mouse over.I already accomplish this by using mouse pointer and set to local data , but its only good for line series chart.What I want is to reference to Candlestick chart data,so when I'm mouse over it I will get HLOC value.Thanks for the helpregardsTeddyDiscover the new Windows Vista Learn more! _ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us
[flexcoders] Pointing to candlestick chart data item
Hello coders ,I have a problem regarding to flex chart series , I want to reference to the data value over mouse over.I already accomplish this by using mouse pointer and set to local data , but its only good for line series chart.What I want is to reference to Candlestick chart data,so when I'm mouse over it I will get HLOC value.Thanks for the helpregardsTeddy _ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vistamkt=en-USform=QBRE
[flexcoders] Expand All tree nodes
Hi all, I'm new to flex. I have a requirement that i have to expand all tree nodes when my tree initializes. it is showing only one parent node, but i need to display all nodes expanded some thing shown below. 1234 8923 ---821932 ---348273 9821 ---342233 342342 ---425231 ---412412 -- 5678 Thanks in advance
[flexcoders] help? how to access the list component data to pass off
i have created two list controls which you can drag from one to the other. how do i trace or select all the list data in the target list? trace('selected list data:'+ac_selected.listdata); ? want to pass it off to the coldfusion component also selectedlist{ac_selected.?}/selectedlist any help is appreciated
[flexcoders] Flex and CF
Hello all. I am sure someone has covered this already, but I am new to the list so I figured I'd ask out right (in case someone has already blogged this or something, though I haven't found anything yet). I have a remote multi-instance ColdFusion MX7 server in my dev environment. I can not install a server on my development desktop, though FlexBuilder accesses my server's wwwroot through a drive mapping. What do I need to do to my ColdFusion server in order to do local development? -- Steve 'Cutter' Blades Adobe Certified Expert Advanced Macromedia ColdFusion MX 7 Developer http://blog.cutterscrossing.com The best way to predict the future is to help create it
[flexcoders] Creating Thumbnails from large images on the fly. Possible?
I am wondering if it is possible with AS3 to create thumbs from large image files on the fly. Maybe only downloading partial image data and shrinking the size. Anyone know if that is possible or any alternative methods I could possibly use for this? Thanks
[flexcoders] Re: AMFPHP 1.9, class mapping not working, advancedsettings.php question
Janos, The following is working for me with amfphp 1.9. You may want to check out the patch I submitted to amfphp: http://sourceforge.net/forum/message.php?msg_id=4166079. Note that I am now using AMF3 instead of the original AMF0 routines that Patrick wrote. LoginVO.as: [RemoteClass(alias=com.sidata.all.vo.LoginVO)] public dynamic class LoginVO extends EventDispatcher implements ValueObject { // Properties public var /* 37 */ uuid:String; public var /* 255 */ user_name:String; public var /* 255 */ password:String; public var /* 20 */ remember_me:Boolean; public var /* 20 */ logout:Boolean; ... LoginService.php: require_once(DIR_PREFIX.sidata/all/vo/LoginVO.php); class LoginService { public function loginLogin($login) { $c = new LoginVO(); $ret = $c-loginLogin($login); return $ret; } ... LoginVO.php: class LoginVO { public $_explicitType = com.sidata.all.vo.LoginVO; public /* (string), 37 */ $uuid; public /* (string), 255 */ $user_name; public /* (string), 255 */ $password; public /* (boolean), 20 */ $remember_me; public /* (boolean), 20 */ $logout; function loginLogin($login=null) { ... --- In flexcoders@yahoogroups.com, Patrick Mineault [EMAIL PROTECTED] wrote: I removed advancedsettings.php because it required configuration and that is against the amfphp design philosophy (convention over configuration). I can see the use for it but more trouble than it's worth. Patrick Kun Janos a écrit : Hi Michael I had them slightly different, I tried your way also and didn't work :( Class mapping succeded when I rewrote in Flex: [RemoteClass( alias=LoginVO )] and setup $gateway-setClassM appingsPath( 'com/virtualro/ vo/'); If $gateway-setClassM appingsPath( 'com/virtualro/ vo/') and [RemoteClass( alias=com. virtualro. vo.LoginVO )] then amfphp looked for the classes for mapping in com/virtualro/ vo/com/virtualro /vo/ witch didn't exists. Thanks for your answers Michael, they helped me to solve the problem. Janos --- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com, michael_ramirez44 michael_ramirez44@ ... wrote: Is this the way you have the mapping setup? Actionscript Classes //Location of PHP classes [RemoteClass( alias=com. virtualro. vo.LoginVO )] [RemoteClass( alias=com. virtualro. vo.TaxVO )] PHP Classes //Location of AS classes $_explicitType = com.virtualro. shell.vo. LoginVO; $_explicitType = com.virtualro. taxes.vo. TaxVO; --- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com, Kun Janos kunjanos@ wrote: Thanks you Michael, but this is not the answer to I was expecting. Maybe I didn't express myself well enough. I know that I can set the VO directory in the globals.php. But setting that won't map my VO -s. In my application I have com.virtualro. shell.vo. LoginVO or com.virtualro. taxes.vo. TaxVO on Flex, and com.virtualro. vo.LoginVO, com.virtualro. vo.TaxVO on amfPhp (notice that on Flex I have the VOs in separate dirs, and on php I have another structure for all the VO-s in one dir). With version 1.2 of amfphp I was setting the incoming and outgoing class mappings using the setCustomIncomingCl assMappings and setCustomOutgoingCl assMappings functions from $gateway...now in amfphp 1.9 beta 2 these functions are missing, just like the advancedsettings. php. --- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com, michael_ramirez44 michael_ramirez44@ wrote: Janos, Amfphp 1.9 looks for your VO objects in services\vo by default. You can change this in the globals.php file. Michael Ramirez --- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com, Kun Janos kunjanos@ wrote: Hi all. I just upgraded amfphp 1.2 to amfphp 1.9 beta 2 and class mapping is not working any more :( In one of the messages that Patrick Mineault wrote I read that for class mapping I should put [RemoteClass( alias=com. virtualro. shell.vo. LoginVO) ] in Flex LoginVO.as (just like in amfphp 1.2) and public $_explicitType = com.virtualro. shell.vo. LoginVO; //in LoginVO.php I'm using Charles and I see that the data is sent from flex to amfphp, but the class mapping doesn't occour. Using $msg = ''; foreach($login as $key = $value){ $msg .= $key.' - '.$value.', '; } I saw that the
[flexcoders] Re: Oh the headerrenderer of death
Hello, I had the same bug, when my datagrid had variableRowHeight=true, my headerrender wouldn't work. if you have try without it. good day bob --- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED] wrote: Hi, Having a bit of a nightmare with a headerrenderer, it simply doesn't work for me, ahh I hear you say. This is what I have: mx:DataGridColumn headerRenderer=renderers.EmptyRenderer backgroundColor=#C0C0C0 width=75 textAlign=center headerText=black/ The Renderer is this: ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* marginTop=0 marginBottom=0 hScrollPolicy=off verticalGap=0 horizontalGap=0 backgroundColor=#dd vScrollPolicy=off verticalAlign=top borderStyle=none mx:Script ![CDATA[ var headerText:String; public function setValue(str:String, item:Object) { if (item == undefined){ visible = false; return; } visible = true; headerText = str; } ]] /mx:Script mx:Text text={headerText} width=100% height=100%/ /mx:HBox All I want to show is the headerText with a backgroundColor in the header. Can anyone help please? All I get at the moment is a blank header, with nothing in it and the same as the default header colors. Cheers, Iain
[flexcoders] Another PrintDataGrid Question
Hello, i know, there was already something questions about using the PrintDataGrid but they can't help me. I have already tests the demos on the livedocs, but i have not the result, that i want. I use the PrintDataGrid not included in the layout with a dataprovider of a visibile DataGrid. mx:PrintDataGrid width=65% id=PrintGrid wordWrap=true backgroundColor=#00 fontSize=8 visible=false labelFunction=lfnGeneral ... After pressing the print button i set the attribute like in the livedocs or posts, that found here and about search engines ;) But on the printouts i have different spacings to the bottom of the page or data are cut off. Following Code is my Printfunction: var myPrintDataGrid :PrintDataGrid = new PrintDataGrid; var myPrintJob = new FlexPrintJob(); if (myPrintJob.start()) { myPrintDataGrid = this.PrintGrid; myPrintDataGrid.width = myPrintJob.pageWidth; myPrintDataGrid.height = myPrintJob.pageHeight; myPrintDataGrid.sizeToPage = true; myPrintDataGrid.dataProvider = this.InhabitantGrid.dataProvider; myPrintDataGrid.visible = false; myPrintDataGrid.includeInLayout = false; myPrintDataGrid.variableRowHeight = true; if(!myPrintDataGrid.validNextPage) { myPrintJob.addObject(myPrintDataGrid); } else { myPrintJob.addObject(myPrintDataGrid); while(true) { myPrintDataGrid.nextPage(); if(!myPrintDataGrid.validNextPage) { myPrintJob.addObject (myPrintDataGrid); validateNow(); break; } else { myPrintJob.addObject (myPrintDataGrid); } } } myPrintJob.send(); } Can anybody help me? Thx Matze
[flexcoders] RichTextEditor fonts
Hi group! Does anyone know if it is possible to use an embedded font in the RichTextEditor component added through actionscript? So far I had no success, I could add the font to the list but when the font is selected from the list the text formats as default _serif. I am sure the font is embedded, it works when used on a TextField component. Thanks, João Coelho
[flexcoders] Flex and ColdFusion
Sent this last night, but it never made it to the list? * Hello all. I am sure someone has covered this already, but I am new to the list so I figured I'd ask out right (in case someone has already blogged this or something, though I haven't found anything yet). I have a remote multi-instance ColdFusion MX7 server in my dev environment. I can not install a server on my development desktop, though FlexBuilder accesses my server's wwwroot through a drive mapping. What do I need to do to my ColdFusion server in order to do local development? -- Steve 'Cutter' Blades Adobe Certified Expert Advanced Macromedia ColdFusion MX 7 Developer http://blog.cutterscrossing.com The best way to predict the future is to help create it
[flexcoders] Chart DataProvider ArrayCollection
When I set my chart's data provider using the following approach, it seems to work fine. var col = FABridge.example.create(mx.collections.ArrayCollection); var a1 = {date:Jan, company1:152, company2:112, company3:122, company4:132, company5:142}; var a2 = {date:Feb, company1:100, company2:54,company3:380, company4:45, company5:12}; var a3 = {date:Mar, company1:12, company2:22,company3:12, company4:32, company5:42}; var a4 = {date:Apr, company1:52, company2:12,company3:12, company4:12, company5:42}; var a5 = {date:May, company1:57, company2:66,company3:32, company4:82, company5:49}; col.addItem(a1); col.addItem(a2); col.addItem(a3); col.addItem(a4); col.addItem(a5); chart.setSeries... chart.setDataProvider(col); But, if I use the following approach, the chart does not show up. My y-axis actually adjusts properly implying that the data is being fed into the chart, but the series themselves don't show up. Any idea why? var coll = FABridge.example.create(mx.collections.ArrayCollection); for (var i = 0; i 5; i++) { var dataArray = FABridge.example.create(Array); for (var j = 0; j 6; j++) { //From an external XML source, I obtain elemName and elemValue dataArray.push(elemName + : + elemValue); } coll.addItem(dataArray); } chart.setSeries... chart.setDataProvider(coll);
[flexcoders] broken: stacked AreaChart when using horizontal DateTimeAxis
If I create a Stacked AreaChart with a horizontal axis of type 'DateTime', nothing is rendered. However, if I do not specify a horizontal axis, all is well. Also, if I specify the AreaChart with type 'overlaid' AND use the horizontal DateTime Axis, all is well... Has anyone else run into this before? Thanks in advance... here's a link to a swf (you can view source on it): example http://www.munkyboy.com/flex_test/brokenStackedAreaWithDateAxis.swf and here's the source inline: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; viewSourceURL=srcview/index.html mx:XML id=testData data series id=1 dataPoint epoch=113650560 yValue=20/ dataPoint epoch=113659200 yValue=23/ dataPoint epoch=113667840 yValue=22/ dataPoint epoch=113676480 yValue=21/ /series series id=2 dataPoint epoch=113650560 yValue=12/ dataPoint epoch=113659200 yValue=10/ dataPoint epoch=113667840 yValue=16/ dataPoint epoch=113676480 yValue=14/ /series /data /mx:XML mx:Panel title=Stacked Area Chart with horizontal DateTime Axis width=100% height=100% mx:AreaChart id=AreaChart1 showDataTips=true width=100% height=100% type=stacked mx:horizontalAxis mx:DateTimeAxis/ /mx:horizontalAxis mx:series mx:AreaSeries displayName=Series 1 dataProvider={testData.series.(@id == 1).dataPoint} yField=@yValue xField=@epoch/ mx:AreaSeries displayName=Series 2 dataProvider={testData.series.(@id == 2).dataPoint} yField=@yValue xField=@epoch/ /mx:series /mx:AreaChart /mx:Panel mx:Panel title=Stacked Area Chart with no horizontal Axis Specification - same as first example, except I removed the horizontalAxis specification width=100% height=100% mx:AreaChart id=AreaChart2 showDataTips=true width=100% height=100% type=stacked mx:series mx:AreaSeries displayName=Series 1 dataProvider={testData.series.(@id == 1).dataPoint} yField=@yValue xField=@epoch/ mx:AreaSeries displayName=Series 2 dataProvider={testData.series.(@id == 2).dataPoint} yField=@yValue xField=@epoch/ /mx:series /mx:AreaChart /mx:Panel mx:Panel title=Overlaid Area Chart with horizontal DateTime Axis - same as the first example, except I changed AreaChart.type from 'stacked' to 'overlaid'. notice that the dates are properly parsed width=100% height=100% mx:AreaChart id=AreaChart3 showDataTips=true width=100% height=100% type=overlaid mx:horizontalAxis mx:DateTimeAxis/ /mx:horizontalAxis mx:series mx:AreaSeries displayName=Series 1 dataProvider={testData.series.(@id == 1).dataPoint} yField=@yValue xField=@epoch/ mx:AreaSeries displayName=Series 2 dataProvider={testData.series.(@id == 2).dataPoint} yField=@yValue xField=@epoch/ /mx:series /mx:AreaChart /mx:Panel /mx:Application
Re: [flexcoders] is it a Flex compiler bug?
Mark Piller wrote: We ran into something that looks like a compiler bug. Please take a look at the code below and correct me if I am wrong. The object model and the class names of the code below may not make any sense, I put it together to demonstrate the problem. Here's a class with a static property: package { public class StaticClass { public static function get Account():String { return my account name; } } } That staticfunction looks a bit strange i think. Shouldnt that function be: public static function get account():String{ return my account name; } Here's a class inheriting from the class shown above: package { public class NonStaticClass extends StaticClass { public var _parentAccount:Account; public function NonStaticClass() { _parentAccount = new Account(); } } } And finally the Account class used in the NonStaticClass: package { public class Account { public var name:String; } } The compiler reports two problems with the code. Both in the NonStaticClass: 1. Type was not found or was not a compile-time constant: Account. This one shows up for the _parentAccount field declaration Isn't that caused by a simple scope problem? 2 Call to a possibly undefined method Account This error shows up for the initialization of the _parentAccount field in the NonStaticClass constructor. see above. It looks like there are two problems in the compiler: 1. Compiler attempts to inherit static declarations 2. As a result of (1), the compiler gets confused between the static property and a class type Cheers, Mark I'm new to Flex and AS so its possible Ive missed the point.. regards, - shaun
[flexcoders] Skinning a panel - background SWF graphic keeping dropshadow - possible?
I am skinning an application. For panels i need a complex gradient badckground and drop shadows that can be controlled via CSS. I have my background gradient image as a symbol in my SWF file. Placing the background image in the CSS using borderSkin:Embed(source=skins/graphic/theme.swf#greenPanelGradient-1); and having dropShadowEnabled set to true does not show the drop shadow, obviously because i'm overwriting the halo border style. Is it possible to have an image (or SWF) as the background and still draw a drop shadow? Thanks james
[flexcoders] How I can get the benefit of both startDrag() and DragManager.doDrag()?
Hey guys, I'm looking to create objects, i.e. boxes, that I can drag around to different locations and have the ability to link to each other via drag and drop operation. The objective that I'm trying to achieve is similar to the following example. http://weblogs.macromedia.com/khoyt/archives/2006/11/flex_associatio.cfm The above example would have been perfect, except the boxes cannot be dragged to different locations. At this point, I hit a road block in trying to handle mouse events directly and I would greatly appreciate your elegant approach. Thanks! - Jae
Re: [flexcoders] Drawing primitives in MXML
Thanks. Seems kinda weird to me that they're not there when you have such advanced components available. Or does Flex expect that you will re-skin a panel component instead? Guy On 22/02/2007, at 9:28 AM, dordea cosmin wrote: You can not use mxml to draw basic shapes because you have no components for these shapes. You have to use action script and draw into components graphics object. I needed once basic shapes at objects and created my own components that deal them, after that they could be used from mxml. regards
[flexcoders] Problem transferring DTO containing ArrayCollection to the web service
I've got a weird problem: - When passing an ArrayCollection (of strings) to the web service as its method argument, everything works OK. - But, when wrapping an ArrayCollection (of objects) into a custom collection object, only the first item in the collection is transferred. The problem is in Flex - I checked this using Fiddler. - This is my DTO item: [Bindable] public class MyDtoItem { public var Id:int = -1; public var Name:String = ; public var Value:String = ; } I push my items into the MyDtoItem collection as its Items: [Bindable] public class MyDtoCollection { public var IsError:Boolean = false; public var ErrorMessage:String = ; public var Items:ArrayCollection; } Then I send this collection to the web service method which should accept it (I checked the WSDL).
Re: [flexcoders] Creating Thumbnails from large images on the fly. Possible?
Definitely possible -- I do it using a function like so: public function getBitmapData(target:UIComponent, scale:Number = 0.):BitmapData { var bd:BitmapData = new BitmapData(target.width * scale, target.height * scale); var m:Matrix = new Matrix(); m.scale(scale, scale); bd.draw(target, m); return bd; } Basically what that function does, it accepts a target UIComponent to draw the thumbnail from (in my case it's usually charts, but to do what you're after you might use an Image or an SWFLoader). It also accepts a scale to upsize/downsize the bitmap to... by default it does it 1/3 of the size. Cheers, Brian On 2/22/07, joebob409 [EMAIL PROTECTED] wrote: I am wondering if it is possible with AS3 to create thumbs from large image files on the fly. Maybe only downloading partial image data and shrinking the size. Anyone know if that is possible or any alternative methods I could possibly use for this? Thanks -- Brian Dunphy
[flexcoders] background image
i want to add a background image that is tiled to my application.Is there a way to do this? Also, can i use adjust opacity with it too?
Re: [flexcoders] Deprecation might be another reason
On Thursday 22 Feb 2007, rd_grimes wrote: I think I also have a basic fear of extending classes that I didn't build because of the potential for classes or some of its properties and methods being deprecated at some point in the future. This doesn't bother us because the compiler and source code for the older version will still be around. -- Tom Chiverton Helping to dynamically mesh professional synergies This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/4It09A/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups - Join or create groups, clubs, forums amp; communities. 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 - Join or create groups, clubs, forums amp; communities. is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Are other developers hesitant to extend existing classes in Flex?
On Wednesday 21 Feb 2007, Dana Gutride wrote: Recently on this list, somebody said that the Flex framework team has been surprised at the resistance many developers have to subclassing and they'd like to understand it better. Really ? We've written several sub classes of the standard controls (like a SelectableCellDataGrid). It was hard work, but only as hard as I expected, given I knew little about the Framework. I expect future tasks to be easier because I'll understand more about how the inards work. -- Tom Chiverton Helping to paradigmatically scale exceptional data This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups - Join or create groups, clubs, forums amp; communities. 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 - Join or create groups, clubs, forums amp; communities. is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Are other developers hesitant to extend existing classes in Flex?
On Thursday 22 Feb 2007, Paul DeCoursey wrote: support our REST based Web Services. But also URLRequest is a final class and cannot be extended. So you extend the parent, and cut and paste most of the code. Final isn't the end of the world :-) -- Tom Chiverton Helping to continuously drive cross-platform models This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups - Join or create groups, clubs, forums amp; communities. 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 - Join or create groups, clubs, forums amp; communities. is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Printing Mailing labels
I need to explore the possibility of printing mailing labels directly from my Flex app versus dumping the records to excel or another application. It seems to me that Flex printing would produce a print job for every record - queuing perhaps hundreds of print jobs to the printer. Is there a way to avoid this and treat the all records as one printout with one record per page ?
Re: [flexcoders] background image
Couple of methods... one of the better ones I've seen is at the bottom of the following post: http://www.flashcomguru.com/index.cfm/2006/12/6/Tiling-background-image-in-Flex2 Cheers, Brian On 2/22/07, mazarflex [EMAIL PROTECTED] wrote: i want to add a background image that is tiled to my application.Is there a way to do this? Also, can i use adjust opacity with it too? -- Brian Dunphy
Re: [flexcoders] Flex and ColdFusion
On 2/22/07, Cutter [EMAIL PROTECTED] wrote: Sent this last night, but it never made it to the list? yes it did, the moderators usually hold folks' first posting. mapping. What do I need to do to my ColdFusion server in order to do local development? nothing, though you might want to turn on flex's cf mapping bits if you stuff your CFCs in cf mapped dirs, in services-config.xml, !-- Use the ColdFusion mappings to find CFCs, by default only CFC files under your webroot can be found. -- use-mappingsfalse/use-mappings change use-mappingsfalse/use-mappings to true. when you start a new flex project, make sure you tell FB you want cf remoting then point your root folder at something like: F:\JRun4\servers\cfusion\cfusion-ear\cfusion-war where F: is a mapped drive on our remote cf server.
Re: [flexcoders] Re: Are other developers hesitant to extend existing classes in Flex?
Tom Chiverton wrote: On Thursday 22 Feb 2007, Paul DeCoursey wrote: support our REST based Web Services. But also URLRequest is a final class and cannot be extended. So you extend the parent, and cut and paste most of the code. Final isn't the end of the world :-) In this case it is since the source for URLRequest is not available, URLRequest is a flash class not a mx class. To make it work we would need to implement the entire HTTP client stack using sockets. Not a small undertaking. -- 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 - Join or create groups, clubs, forums amp; communities. 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 - Join or create groups, clubs, forums amp; communities. is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: AMFPHP 1.9, class mapping not working, advancedsettings.php question
Thank for your answer and source codes Mike. I modified the amfphp 1.9 beta 2 to work with advanced settings, incoming and outgoing class mappings just like the 1.2 version. I needed that because we have a project in amfphp 1.2 almoust done, and we have our VO s in different directories in Flex(written in different modules), but the same directory in php. Janos --- In flexcoders@yahoogroups.com, Mike Crowe [EMAIL PROTECTED] wrote: Janos, The following is working for me with amfphp 1.9. You may want to check out the patch I submitted to amfphp: http://sourceforge.net/forum/message.php?msg_id=4166079. Note that I am now using AMF3 instead of the original AMF0 routines that Patrick wrote. LoginVO.as: [RemoteClass(alias=com.sidata.all.vo.LoginVO)] public dynamic class LoginVO extends EventDispatcher implements ValueObject { // Properties public var /* 37 */ uuid:String; public var /* 255 */ user_name:String; public var /* 255 */ password:String; public var /* 20 */ remember_me:Boolean; public var /* 20 */ logout:Boolean; ... LoginService.php: require_once(DIR_PREFIX.sidata/all/vo/LoginVO.php); class LoginService { public function loginLogin($login) { $c = new LoginVO(); $ret = $c-loginLogin($login); return $ret; } ... LoginVO.php: class LoginVO { public $_explicitType = com.sidata.all.vo.LoginVO; public /* (string), 37 */ $uuid; public /* (string), 255 */ $user_name; public /* (string), 255 */ $password; public /* (boolean), 20 */ $remember_me; public /* (boolean), 20 */ $logout; function loginLogin($login=null) { ... --- In flexcoders@yahoogroups.com, Patrick Mineault patrick.mineault@ wrote: I removed advancedsettings.php because it required configuration and that is against the amfphp design philosophy (convention over configuration). I can see the use for it but more trouble than it's worth. Patrick Kun Janos a écrit : Hi Michael I had them slightly different, I tried your way also and didn't work :( Class mapping succeded when I rewrote in Flex: [RemoteClass( alias=LoginVO )] and setup $gateway-setClassM appingsPath( 'com/virtualro/ vo/'); If $gateway-setClassM appingsPath( 'com/virtualro/ vo/') and [RemoteClass( alias=com. virtualro. vo.LoginVO )] then amfphp looked for the classes for mapping in com/virtualro/ vo/com/virtualro /vo/ witch didn't exists. Thanks for your answers Michael, they helped me to solve the problem. Janos --- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com, michael_ramirez44 michael_ramirez44@ ... wrote: Is this the way you have the mapping setup? Actionscript Classes //Location of PHP classes [RemoteClass( alias=com. virtualro. vo.LoginVO )] [RemoteClass( alias=com. virtualro. vo.TaxVO )] PHP Classes //Location of AS classes $_explicitType = com.virtualro. shell.vo. LoginVO; $_explicitType = com.virtualro. taxes.vo. TaxVO; --- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com, Kun Janos kunjanos@ wrote: Thanks you Michael, but this is not the answer to I was expecting. Maybe I didn't express myself well enough. I know that I can set the VO directory in the globals.php. But setting that won't map my VO -s. In my application I have com.virtualro. shell.vo. LoginVO or com.virtualro. taxes.vo. TaxVO on Flex, and com.virtualro. vo.LoginVO, com.virtualro. vo.TaxVO on amfPhp (notice that on Flex I have the VOs in separate dirs, and on php I have another structure for all the VO-s in one dir). With version 1.2 of amfphp I was setting the incoming and outgoing class mappings using the setCustomIncomingCl assMappings and setCustomOutgoingCl assMappings functions from $gateway...now in amfphp 1.9 beta 2 these functions are missing, just like the advancedsettings. php. --- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com, michael_ramirez44 michael_ramirez44@ wrote: Janos, Amfphp 1.9 looks for your VO objects in services\vo by default. You can change this in the globals.php file. Michael Ramirez --- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com, Kun Janos kunjanos@ wrote: Hi all. I just upgraded amfphp 1.2 to amfphp 1.9 beta 2 and class mapping is not working any more :( In one of the messages that
[flexcoders] Re: Apparent Bug in LineCharts - filterData property Kills Data Tips
It wasn't for lack of looking or trying. I saw that _renderData has a public getter, but I was still stuck on: hd.dataTipFunction = formatDataTip; formatDataTip is a private function. But then, of course, the contents of formatDataTip don't access anything private... Doh! Thanks, Graham. - Giff
Re: [flexcoders] does double click also fire a mouse down event?
Hm. What exactly do you need? Not to handle mouseDown? R. On 2/22/07, Paul Hastings [EMAIL PROTECTED] wrote: thanks for the reply. On 2/22/07, Roman Protsiuk [EMAIL PROTECTED]roman.protsiuk%40gmail.com wrote: immediately follow the following series of events: mouseDown, mouseUp, click, mouseDown, mouseUp. All of these events must share the same target as the doubleClick event. The second click, represented by the second mouseDown and mouseUp events, must occur within a specific period of time after the click event. The i'm not really seeing two mouse downs, only one followed by the doubleClick event. in any case, the mouse down handler's firing then the double click handler. this hadn't mattered before but i had to make some flow changes that exposed this. any workarounds? thanks.
[flexcoders] Skin - Event Listener
Is it possible to add an event listener (for example click) to a skin. I have my own component which extends UIComponent. I added two children to it using skins. I try to add an event listener to one of the skins and it is not working. My requirement is that I want to activate the click event only when the user click on the child created by the skin.
[flexcoders] Re: DataGrid Header Center Align??
You can set text align on the column to center but that will do the entire column. To just the header, use a headerRenderer with a text or label component set to center. That will center just the header and not the rest of the column. Look in the docs for headerRenderer. Jack --- In flexcoders@yahoogroups.com, sanjaypmg [EMAIL PROTECTED] wrote: Hi, How can I center align header text of a DataGrid? Thanks, Sanjay
RE: [flexcoders] Flex SOAP - dateTime to Date conversion bug
We've found that you have to use Calendar on the Java side for this to work properly. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com http://www.cynergysystems.com/ Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bas J. Brey Sent: Thursday, February 22, 2007 3:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex SOAP - dateTime to Date conversion bug When using xsd:dateTime values in soap requests Flex doesn't seem to parse the seconds in of the dateTime string. Can anyone confirm this? This is an example of the string Flex gets: 2007-02-20T15:38:56Z And Flex turns it into a date component with everything except the seconds.
[flexcoders] flex swf size
I built a project with nothing inside. the size of the swf is about 125 k. Does something exist to have lighter swf ?
[flexcoders] Re: Are other developers hesitant to extend existing classes in Flex?
I am currently working on a project where we have had to extend many of the framework controls and containers to add extra functionality or fix little things that were bothersome. While it has been an very difficult task in places is has not been impossible. I certainly would not advocate the 'cut and paste' method, there are always ways around that, it's just a case of finding the right solution. One thing I would recommend is really digging into all the source code for the framework stuff. Being able to understand the different pieces and how they relate and inter operate is a huge first step in being able to make any significant extensions. Regarding the private vars and functions, I would suggest looking hard at how they work, what it is you need to do, and then trying very hard to find something that works (sometimes thinking completely outside of the box, ie deleting and reinitializing certain inherited variables or objects to get them working correct). I have found that the areas in the framework that are private are so for a reason and workarounds can be found. Anywhere they exist means Adobe would be having the same issues in attempting to extend them, so there must be another way. Determining exactly which item to extend is a big part of the process. Sometimes (especially with containers) the one you think you need to extend is not always the right one, potentially the parent class is actually a better fit and you can reuse some of the extended logic in the container you wanted to extend, in your own new class, to get the job done. Good luck, it's painful, but doable. Derrick - Derrick Grigg [EMAIL PROTECTED]
[flexcoders] .NET Web Services w/Soap Headers
.NET Web Services [Novice Notification (Trying out the Flex Platform)] Goal: pull an array of clients from a .NET 2.0 Web Service and populate a Flex DataGrid. Spec: use Soap Headers to restrict access to web service. Models copied from: 1) Adobe's Specification, 2) Cynergy's Census Mashups Using StrikeIron Web Services and Yahoo Maps in Flex 2 Successful without Soap Headers; Unsuccessful with Soap Headers in both models. Model 1: screen shots NET-Code http://www.dendera.com/images/NET-code.jpg http://www.dendera.com/images/flex-code.gif http://www.dendera.com/images/flex-code.gif http://www.dendera.com/images/flex-debug-var.gif http://www.dendera.com/images/flex-debug-var.gif Model 2: screen shots http://www.dendera.com/images/flex-code-xml.gif http://www.dendera.com/images/flex-code-xml.gif http://www.dendera.com/images/flex-debug-var-xml.gif http://www.dendera.com/images/flex-debug-var-xml.gif Any help or opinions would be greatly appreciated, Brian
[flexcoders] Re: Oh the headerrenderer of death
Hi, I'm not using the variableRowHeight attribute so that didn't work, this is soo hard to dubug. Any other suggestions? Cheers, Iain --- In flexcoders@yahoogroups.com, bobrene07 [EMAIL PROTECTED] wrote: Hello, I had the same bug, when my datagrid had variableRowHeight=true, my headerrender wouldn't work. if you have try without it. good day bob --- In flexcoders@yahoogroups.com, digital_eyezed iain.mclean@ wrote: Hi, Having a bit of a nightmare with a headerrenderer, it simply doesn't work for me, ahh I hear you say. This is what I have: mx:DataGridColumn headerRenderer=renderers.EmptyRenderer backgroundColor=#C0C0C0 width=75 textAlign=center headerText=black/ The Renderer is this: ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* marginTop=0 marginBottom=0 hScrollPolicy=off verticalGap=0 horizontalGap=0 backgroundColor=#dd vScrollPolicy=off verticalAlign=top borderStyle=none mx:Script ![CDATA[ var headerText:String; public function setValue(str:String, item:Object) { if (item == undefined){ visible = false; return; } visible = true; headerText = str; } ]] /mx:Script mx:Text text={headerText} width=100% height=100%/ /mx:HBox All I want to show is the headerText with a backgroundColor in the header. Can anyone help please? All I get at the moment is a blank header, with nothing in it and the same as the default header colors. Cheers, Iain
Re: [flexcoders] Re: Are other developers hesitant to extend existing classes in Flex?
you need access to a handful of private variables and functions in the parent class I have extended quite some components aswell. What i found out however, was that in the en i most of the time did not need those private variables and methods. At the end of a day full of fiddling i found a variable or method within the mx_internal namspace (which is publicly available). So now when i need to extend something i make sure i check all definitions of mx_internal first. Greetz Erik
Re: [flexcoders] Re: Are other developers hesitant to extend existing classes in Flex?
On Thursday 22 Feb 2007, Paul J DeCoursey wrote: In this case it is since the source for URLRequest is not available, URLRequest is a flash class not a mx class. To make it work we would need to implement the entire HTTP client stack using sockets. Not a small undertaking. *ahh* :-) -- Tom Chiverton Helping to heterogeneously customize vertical networks This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/4It09A/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups - Join or create groups, clubs, forums amp; communities. 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 - Join or create groups, clubs, forums amp; communities. is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex2LocalDebugger?
Does anybody have any experience with using the Flex2LocalDebugger? Have been trying to use it with no luck. Wondering if anyone else had used it before since it seems like it has a lot of potential to be a useful tool.
Re: [flexcoders] does double click also fire a mouse down event?
On 2/22/07, Roman Protsiuk [EMAIL PROTECTED] wrote: Hm. What exactly do you need? Not to handle mouseDown? tell that it's part of the double click ignore it but only for that double click event, we need it before the double click.
Re: [flexcoders] flex swf size
On Thursday 22 Feb 2007, thierrybertossa wrote: Does something exist to have lighter swf ? Have you tried: http://rachaelandtom.info/node/1378 and make sure you have --debug set to off. -- Tom Chiverton Helping to enthusiastically innovate industry-wide ROI This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups - Join or create groups, clubs, forums amp; communities. 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 - Join or create groups, clubs, forums amp; communities. is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] alternating row color in bar chart
I'm using a bar chart that can get pretty long so I'd like to alternate the background row color. Is this something I can do, and if so, is there an example or maybe point me in the right direction on how to go about doing it?
RE: [flexcoders] is it a Flex compiler bug?
Is that a space between get and Account? You definitely can't do that, you've named the getter the same as a class name (with a capital letter). If you wanted getAccount that would work though, or get account. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of shaun Sent: Thursday, February 22, 2007 5:23 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] is it a Flex compiler bug? Mark Piller wrote: We ran into something that looks like a compiler bug. Please take a look at the code below and correct me if I am wrong. The object model and the class names of the code below may not make any sense, I put it together to demonstrate the problem. Here's a class with a static property: package { public class StaticClass { public static function get Account():String { return my account name; } } } That staticfunction looks a bit strange i think. Shouldnt that function be: public static function get account():String{ return my account name; } Here's a class inheriting from the class shown above: package { public class NonStaticClass extends StaticClass { public var _parentAccount:Account; public function NonStaticClass() { _parentAccount = new Account(); } } } And finally the Account class used in the NonStaticClass: package { public class Account { public var name:String; } } The compiler reports two problems with the code. Both in the NonStaticClass: 1. Type was not found or was not a compile-time constant: Account. This one shows up for the _parentAccount field declaration Isn't that caused by a simple scope problem? 2 Call to a possibly undefined method Account This error shows up for the initialization of the _parentAccount field in the NonStaticClass constructor. see above. It looks like there are two problems in the compiler: 1. Compiler attempts to inherit static declarations 2. As a result of (1), the compiler gets confused between the static property and a class type Cheers, Mark I'm new to Flex and AS so its possible Ive missed the point.. regards, - shaun
[flexcoders] Re: Apparent Bug in LineCharts - filterData property Kills Data Tips
Hehe, sorry, I didn't mean to come across as a meanie. An annoyance at work put me in a bad mood. I'm glad that's helped. Graham --- In flexcoders@yahoogroups.com, thegiffman [EMAIL PROTECTED] wrote: It wasn't for lack of looking or trying. I saw that _renderData has a public getter, but I was still stuck on: hd.dataTipFunction = formatDataTip; formatDataTip is a private function. But then, of course, the contents of formatDataTip don't access anything private... Doh! Thanks, Graham. - Giff
Re: [flexcoders] Pointing to candlestick chart data item
On Thursday 22 Feb 2007, Teddy Setiawan wrote: series chart.What I want is to reference to Candlestick chart data,so when I'm mouse over it I will get HLOC value.Thanks for the helpregardsTeddy Check out the HitData class and dataTipFunction parameter of the Chart. -- Tom Chiverton Helping to confidentially bully strategic e-tailers This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups - Join or create groups, clubs, forums amp; communities. 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 - Join or create groups, clubs, forums amp; communities. is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Creating Thumbnails from large images on the fly. Possible?
Right, but you are still having to download the entire image file and just sizing it right? What I was wondering if it is possible to only donwload part of the image file like a segment, or a very low quality to save the user bandwidth. Is that possible with AS3 on the fly, or would I have to use something like imagemagik for that? --- In flexcoders@yahoogroups.com, Brian Dunphy [EMAIL PROTECTED] wrote: Definitely possible -- I do it using a function like so: public function getBitmapData(target:UIComponent, scale:Number = 0.):BitmapData { var bd:BitmapData = new BitmapData(target.width * scale, target.height * scale); var m:Matrix = new Matrix(); m.scale(scale, scale); bd.draw(target, m); return bd; } Basically what that function does, it accepts a target UIComponent to draw the thumbnail from (in my case it's usually charts, but to do what you're after you might use an Image or an SWFLoader). It also accepts a scale to upsize/downsize the bitmap to... by default it does it 1/3 of the size. Cheers, Brian On 2/22/07, joebob409 [EMAIL PROTECTED] wrote: I am wondering if it is possible with AS3 to create thumbs from large image files on the fly. Maybe only downloading partial image data and shrinking the size. Anyone know if that is possible or any alternative methods I could possibly use for this? Thanks -- Brian Dunphy
Re: [flexcoders] Embed Meta Data and Path Variables / Linked Folders
On Wednesday 21 Feb 2007, Shannon wrote: Can anyone recommend the correct syntax to access either path variables or linked folders? Or maybe even a better way to point to a resource folder that exists somewhere else in my file system? We moved to SVN partly because it supported the idea of bring one part of your RCS into another part (svn:externals). Might not be an option for you though. Why can't your devlopers be consistant ? On *nix, a symbolic link (ln -s) might also help. Windows might have them by now by they're probably broken. -- Tom Chiverton Helping to preemptively integrate distributed communities This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/kOt0.A/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups - Join or create groups, clubs, forums amp; communities. 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 - Join or create groups, clubs, forums amp; communities. is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] How to get the real X Y of a repeater item
On Thursday 22 Feb 2007, zipo13 wrote: target but I can't find the real X Y of the button. Even with globalToLocal() et. al. ? -- Tom Chiverton Helping to carefully empower real-time users This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups - Join or create groups, clubs, forums amp; communities. 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 - Join or create groups, clubs, forums amp; communities. is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Are other developers hesitant to extend existing classes in Flex?
If you want to say that we shouldn't rely on needing access to any private variables, it's only a small difference to say it's OK to rely on mx_internal variables. The internal vars are marked as such because they might change in future releases. So if the objection is that your code might break because Adobe releases updates to the framework class you're using, then the same problem exists if you use the mx_internal vars. And I agree, Adobe made design choices about what you should need access to when you are extending components. This means they run into some of the same coding problems if they were to try to subclass these classes as well. But all that means is that Adobe can't make the extensions that we also can't make. And let's remember that the choices made by the Adobe flex framework team are just choices made by other programmers (albeit some damn good ones), but fallible programmers nonetheless. They try to anticipate what will be needed to make powerful extensions of components. But it's hard to look down the road and figure out what people will want to do. And often there is a workaround that can accomplish what you need without accessing private vars or methods. I've gone this route as well many times. But I think that it's not accurate to say that there is always a solution like this. And even if you can get it to work, sometimes you end up with such a convoluted solution, and you have to do much more processing work (removing child components that were added, intercepting events dispatched and stopping or redispatching...) which opens the door to more bugs. So obviously it's a double-edged sword to ever copy-paste framework classes. I guess it's just my personal opinion that it can be well worth it. Doug On 2/22/07, EECOLOR [EMAIL PROTECTED] wrote: you need access to a handful of private variables and functions in the parent class I have extended quite some components aswell. What i found out however, was that in the en i most of the time did not need those private variables and methods. At the end of a day full of fiddling i found a variable or method within the mx_internal namspace (which is publicly available). So now when i need to extend something i make sure i check all definitions of mx_internal first. Greetz Erik
Re: [flexcoders] Re: Creating Thumbnails from large images on the fly. Possible?
I'm not sure that is possible given the nature of how data is stored in image files... maybe somebody else has some insight in to the topic. Brian On 2/22/07, joebob409 [EMAIL PROTECTED] wrote: Right, but you are still having to download the entire image file and just sizing it right? What I was wondering if it is possible to only donwload part of the image file like a segment, or a very low quality to save the user bandwidth. Is that possible with AS3 on the fly, or would I have to use something like imagemagik for that? --- In flexcoders@yahoogroups.com, Brian Dunphy [EMAIL PROTECTED] wrote: Definitely possible -- I do it using a function like so: public function getBitmapData(target:UIComponent, scale:Number = 0.):BitmapData { var bd:BitmapData = new BitmapData(target.width * scale, target.height * scale); var m:Matrix = new Matrix(); m.scale(scale, scale); bd.draw(target, m); return bd; } Basically what that function does, it accepts a target UIComponent to draw the thumbnail from (in my case it's usually charts, but to do what you're after you might use an Image or an SWFLoader). It also accepts a scale to upsize/downsize the bitmap to... by default it does it 1/3 of the size. Cheers, Brian On 2/22/07, joebob409 [EMAIL PROTECTED] wrote: I am wondering if it is possible with AS3 to create thumbs from large image files on the fly. Maybe only downloading partial image data and shrinking the size. Anyone know if that is possible or any alternative methods I could possibly use for this? Thanks -- Brian Dunphy -- Brian Dunphy
Re: [flexcoders] Re: Creating Thumbnails from large images on the fly. Possible?
I don't think this is possible, you need server side code of some sort to give you the thumbnail image. You might be able to initiate the loading of the file and halt it mid-way, then try to render the partially loaded data as an image, but that's going to be difficult (especially depending on what image format you're using). You'd probably have to do the byte to image pixel processing yourself. And the only thing that might get you if you could figure it out, is you might be able to load the first X pixels of the image, so maybe you could show the top-half of each image only, and only have to load half the bytes of each image. But if you want to load a smaller file you'll have to send a smaller file from the server. On 2/22/07, Brian Dunphy [EMAIL PROTECTED] wrote: I'm not sure that is possible given the nature of how data is stored in image files... maybe somebody else has some insight in to the topic. Brian On 2/22/07, joebob409 [EMAIL PROTECTED] joebob409%40yahoo.com wrote: Right, but you are still having to download the entire image file and just sizing it right? What I was wondering if it is possible to only donwload part of the image file like a segment, or a very low quality to save the user bandwidth. Is that possible with AS3 on the fly, or would I have to use something like imagemagik for that? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Brian Dunphy [EMAIL PROTECTED] wrote: Definitely possible -- I do it using a function like so: public function getBitmapData(target:UIComponent, scale:Number = 0.):BitmapData { var bd:BitmapData = new BitmapData(target.width * scale, target.height * scale); var m:Matrix = new Matrix(); m.scale(scale, scale); bd.draw(target, m); return bd; } Basically what that function does, it accepts a target UIComponent to draw the thumbnail from (in my case it's usually charts, but to do what you're after you might use an Image or an SWFLoader). It also accepts a scale to upsize/downsize the bitmap to... by default it does it 1/3 of the size. Cheers, Brian On 2/22/07, joebob409 [EMAIL PROTECTED] wrote: I am wondering if it is possible with AS3 to create thumbs from large image files on the fly. Maybe only downloading partial image data and shrinking the size. Anyone know if that is possible or any alternative methods I could possibly use for this? Thanks -- Brian Dunphy -- Brian Dunphy
RE: [flexcoders] Negative plane in Column Chart
Hi Mikhail. Can you be more specific about what you're looking for? In general, the charts support negative values with no problems, so maybe I'm not understanding your question. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mikhail Shevchuk Sent: Thursday, February 22, 2007 3:18 AM To: Flex Subject: [flexcoders] Negative plane in Column Chart How to implement such a thing? Simple defining negative values doesn't help. These columns just not displayed. If this is impossible within Column Chart, could you please advise me where should I look for? Thanks. -- A vivid and creative mind characterizes you.
Re: [flexcoders] Re: Creating Thumbnails from large images on the fly. Possible?
Best way to do it is to have some sort of server process that scales the image and store that scaled version for future requests. I had built a system quite a while ago for doing Image Management and it would scale multiple sizes of each image on upload and then you can download the appropriate size as needed. Much like how flickr works. We built it in java. If you can run java I can try and dig up some of the code. I'm not sure that is possible given the nature of how data is stored in image files... maybe somebody else has some insight in to the topic. Brian
RE: [flexcoders] How to get the real X Y of a repeater item
1. Cast the current item as DisplayObject Var myCurrentItem : DisplayObject = ( currentItem as DisplayObject ); 2. Create a point out of the current item x's and y's var point : Point() = new Point(); point.x = myCurrentItem .x; point.y = myCurrentItem.y; 3. Use the localToGlobal() function on the current item cast as a DisplayObject. Var realX : Number = myCurrentItem.localToGlobal(point).x; Var realY : Number = myCurrentItem.localToGlobal(point).x; 4. Complain to adobe that objects can not determine this for themselves or show me a better way B. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of zipo13 Sent: Thursday, February 22, 2007 2:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to get the real X Y of a repeater item Hi, In my app I create a repeater the generats VBoxes each with button in it. When the user clicks on the button I want to generate a small dialog that will open up under the button. I know how to get the repeater current item and target and current target but I can't find the real X Y of the button. Am I going in the wrong direction? -- 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 - Join or create groups, clubs, forums amp; communities. Links *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
RE: [flexcoders] Expand All tree nodes
Check out the Flex QuickStarts Working with Trees http://www.adobe.com/devnet/flex/quickstart/working_with_tree/ B. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ramanamurthy Medarametla Sent: Wednesday, February 21, 2007 5:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Expand All tree nodes Hi all, I'm new to flex. I have a requirement that i have to expand all tree nodes when my tree initializes. it is showing only one parent node, but i need to display all nodes expanded some thing shown below. 1234 8923 ---821932 ---348273 9821 ---342233 342342 ---425231 ---412412 -- 5678 Thanks in advance -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups - Join or create groups, clubs, forums amp; communities. Links *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
[flexcoders] Multiple Instances of CF / FDS and messaging broken?
Hi everyone, I've run into a problem which I think has to do with clashing RTMP ports. I'm totally stumped and need urgent assistance! :-S This is the setup: - JRun with two instances: cfusion and cfusion-testing - Both instances contain an instance of FDS - Updated the services-config.xml in both instances of FDS so that the RTMP ports are different - Apache with two virtual hosts: one passing CF requests to cfusion and the other passing CF requests to cfusion-testing - The Flex application has been compiled for both instances using the correct services-config.xml For arguments sake let's call the cfusion instance production and the cfusion-testing instance testing! The Flex application uses both Remote Object calls to ColdFusion using Mike Nimer's work around when using FDS, and it also uses Flex Messaging with CF Event Gateways. The Flex application on the testing website has no problems with Remote Object calls and also the Flex Messaging integration. It's great. However, the Flex application on the production website has problems with the Flex messaging (i.e. no pushes are coming through), but remote object calls are fine. Therefore, along with talking with Mike Nimer for a bit we've come to the conclusion that there must be some problem with the RTMP communication or something. Oh, I've also tested that the amfpolling URLs are all accessible too. Any help would be great!!! Thanks in advance. Cheers Niklas
RE: [flexcoders] alternating row color in bar chart
Mark -- the gridlines class, which defines the background gridlines for the chart, supports alternating row colors. Look at the documentation for GridLines for more information. off the top of my head, it would look something like: BarChart backgroundElements GridLines horizontalFill=#FF horizontalAlternateFill=#00FF00 horizontalChangeCount=1 / /backgorundElements /BarChart Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Sent: Thursday, February 22, 2007 8:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] alternating row color in bar chart I'm using a bar chart that can get pretty long so I'd like to alternate the background row color. Is this something I can do, and if so, is there an example or maybe point me in the right direction on how to go about doing it?
RE: [flexcoders] Are other developers hesitant to extend existing classes in Flex?
I've had a somewhat different experience extending the framework than the people pushing on to this thread, I haven't gotten any headaches, and actually use extending the framework to learn the framework, perhaphs What I've been doing is much simpler than what you guys have been doing, but I do have one occuring problematic theme, And I'm not sure if it's an extending the framework issue or another form of code organization issue so I thought I'd throw it Out there and see if you guys have some clever solutions I can steal and tell my coworkers I dreamt up. I would like to extend objects way up the food chain like DisplayObject, UIComponent and have it propogate all down the line, but not to modify their behavior just to add some functions to help me implement a few of our business rules more elegantly. An example is we support several different languages, all of the translations reside in the database so we're forced to pull the data in and then on every thing that displays text we use a function to look up the text based of the users selected language, and biz rules. (some things are required to be in English). As it is, I have to import the freaking language pack object to EVERY SINGLE object which means an mx:script in EVERY SINGLE object. Sure would be nice to have that language pack function already there. B. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Thursday, February 22, 2007 7:17 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Are other developers hesitant to extend existing classes in Flex? On Wednesday 21 Feb 2007, Dana Gutride wrote: Recently on this list, somebody said that the Flex framework team has been surprised at the resistance many developers have to subclassing and they'd like to understand it better. Really ? We've written several sub classes of the standard controls (like a SelectableCellDataGrid). It was hard work, but only as hard as I expected, given I knew little about the Framework. I expect future tasks to be easier because I'll understand more about how the inards work. -- Tom Chiverton Helping to paradigmatically scale exceptional data This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups - Join or create groups, clubs, forums amp; communities. Links *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
[flexcoders] Re: Problem transferring DTO containing ArrayCollection to the web service
I solved it - the solution was in using an Array - not the ArrayCollection - when sending from Flex to web service. So, it's convenient to have two types of collections - one for getting stuff from the web service, the other for putting stuff to the web service: [Bindable] public class MyDtoCollectionGet { public var IsError:Boolean = false; public var ErrorMessage:String = ; public var Items:ArrayCollection; } [Bindable] public class MyDtoCollectionPut { public var IsError:Boolean = false; public var ErrorMessage:String = ; public var Items:Array; } --- In flexcoders@yahoogroups.com, Danko Kozar [EMAIL PROTECTED] wrote: I've got a weird problem: - When passing an ArrayCollection (of strings) to the web service as its method argument, everything works OK. - But, when wrapping an ArrayCollection (of objects) into a custom collection object, only the first item in the collection is transferred. The problem is in Flex - I checked this using Fiddler. - This is my DTO item: [Bindable] public class MyDtoItem { public var Id:int = -1; public var Name:String = ; public var Value:String = ; } I push my items into the MyDtoItem collection as its Items: [Bindable] public class MyDtoCollection { public var IsError:Boolean = false; public var ErrorMessage:String = ; public var Items:ArrayCollection; } Then I send this collection to the web service method which should accept it (I checked the WSDL).
Re: [flexcoders] falshvars SDK Actionscript 3.0 non-flex app - SOLVED
Yeah, in AS3 your main class should extend Sprite (or a child of Sprite) in order to (a) get on the DisplayList of the stage and (b) receive keyboard/mouse focus. You could also inherit from MovieClip (like AS2). The root is not defined right away because you're checking for it in the constructor. To be honest, that had confounded me right up until the point that I read your e-mail. Now I think I understand what's going on (perhaps an Adobe engineer can confirm or deny): In the class constructor, root/stage/etc. are not defined because your object has not yet been added to any DisplayList. This is a side-effect of the new feature in AS3's display architecture that allows you to have off-stage DisplayObjects (which is a good thing). If you imagine what the Flash Player is doing (pseudo-code, I'm sure the player is not using AS3): var mainInteractiveObject:flash.display.InteractiveObject = new YourMainClass(); stage.addChild(mainInteractiveObject); So, you see, when the constructor is called your object is not yet a child of the stage, thus the class member stage and root are meaningless. Instead of the timer event, you should add an event listener for the addedToStage event (Event.ADDED_TO_STAGE). You will then have a valid stage property set. Troy. On 2/22/07, {reduxdj} [EMAIL PROTECTED] wrote: I didn't realize two things trying to get at flashvars in a non-timeline swf compiling with SDK. 1. To get the LoaderInfo apparently you have to extend Sprite (er, i think) 2. The root is not defined right away... so I am doing a cheesy timer event because you can't add a listener to the loaderInfo there's probably a better way... this seems quite hackish, i guess I could make it loop the timer object till it's defined etc. P package com.me.views { import flash.display.Sprite; import flash.display.*; import com.me.data.PictureProvider; import flash.events.Event; import flash.display.LoaderInfo; import flash.events.TimerEvent; import flash.utils.Timer; public class AbstractSlideView extends Sprite { protected var _data:PictureProvider; public function AbstractSlideView() { var timer:Timer = new Timer(1000,1); timer.addEventListener(TimerEvent.TIMER, installVars); timer.start(); } public function installVars(e:TimerEvent){ var keyStr:String; var valueStr:String; trace (this.root); try { var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters; trace (paramObj.toString()); for (keyStr in paramObj) { valueStr = String(paramObj[keyStr]); trace (folderid=+String(paramObj[folderid])) trace(\t + keyStr + :\t + valueStr + \n); trace (folderid=+paramObj.folderid); } _data = new PictureProvider(paramObj); _data.addEventListener(Event.CHANGE,draw); }catch (error:Error){ trace (error); } } protected function draw(event:Event):void{ } } }
Re: [flexcoders] Multiple Instances of CF / FDS and messaging broken?
Niklas, do the event gateways in cfusion and cfusion-testing have the same name? João Fernandes
Re: [flexcoders] Multiple Instances of CF / FDS and messaging broken?
Hi Joao, Yes they do. However, surely if they're on different instances that doesn't matter? Cheers Niklas On 2/22/07, João Fernandes [EMAIL PROTECTED] wrote: Niklas, do the event gateways in cfusion and cfusion-testing have the same name? João Fernandes -- Niklas Richardson Prismix Ltd UK based Flex and ColdFusion Specialists
[flexcoders] Java to Flex shifting ! Major Hurdles!!! (Shud I say Roadblocks! )
Hi, I am basically a Java guy, recently into Flex. It may be due to the sudden paradigm shift from serial programming ( incl Threads) to Event Based Programming, that I find many features totally new and surprising. I read in a article that Flash/Flex is based on AMPED (Asymmetric-Multi Process Event Driven) Architecture. In this kind of architecture , We have a single thread dispatching the events and the control gets transferred between the Events and the main thread. ( These are my vague conclusions from what I have read and understood, Correct me if I am wrong! ) So if the event dispatched doesn't have a IO/Network operation, the control reaches back to the EventDispatcher only after the eventhandler method is totally complete. But if our eventhandling mechanism has a huge data crunching operation , doesn't that freeze the client? 1. Lets say I have 2 things to be done, Doing a animation and some huge data operation simultaneously! In Java, what we usually do is spawn a new thread for doing the animation (or) doing the data operation! This takes care of the scenario. Now in Flex, We dispatch events, Lets say, OperateDataEvent and AnimateEvent, both of them have some handlers (ODEHandler, AEHandler respectively). Now when we do something like this, dispatchEvent(new OperateDataEvent()) and dispatchEvent(new AnimateEvent()) How does the control flow?? Does this fully complete the DataOperationEvent first and then return to animateEvent ! Since its a single thread model, I guess it should be done so! But then it doesnt sound logical for any matured programming languge to cripple an application from doing another task and make it wait. 2. Second thing is, How does the Timer/setInterval actually function in the Flex architecture, Is it a separate 'thread' ( Oops!this Java hangover is not gonna leave me ! ) Is it advisable to have big operations inside the timerHandler which may result in periodic glitches in the application. 3 Can anyone give a good resource of the AVM structure and design and how it differs from JVM! Thanks in advance Cheers, Ravi Kumar G PartyGaming Plc. www.partygaming.com What is right is right, even if no one is doing it. What is wrong is wrong, even if everyone is doing it. 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news
[flexcoders] How to add a component in the field with AS3
Hi, I'm quite new to Flex and I need help with Three things. I have an file thats sending me an XML based on data i got from the DB, I have to loop trough the XML and i saw in another thread that we can do it by using the code: //the XML Tipos Tipo Situa0/Situa Imagem Conteudo=''/ QtdComputador: 11/Qtd /Tipo Tipo Situa0/Situa Imagem Conteudo=''/ QtdMonitor: 9/Qtd /Tipo Tipo Situa0/Situa Imagem Conteudo=''/ QtdNo break: 3/Qtd /Tipo Tipo Situa0/Situa Imagem Conteudo=''/ QtdNotebook: 3/Qtd /Tipo /Tipos for each (var s:XML in data.lastResult.Tipos){ //some code here } the first problem is that it only loops once even tough there are 3. the second is that i need to add components(TextArea, Image, Label, etc.)on a Panel, but i must do it Using AS3 since its going to be created based on the XML(i searched livedocs AND flex help but didn't find it). the third one is the most tricky of the three, I an getting the image from the DB and its binary i need to send it into flex and use it as a kind of source to the Image component PS: its not an URL its the data itself. i know it can be rather confusing but please answer me even if its to say its impossible to do this. Gratefull for your help, Daniel Fernandes Credidio
[flexcoders] custom icons to tree nodes
How do I insert my custom icons to the individual tree nodes? I am able to insert it on the root node and on the leaf nodes but not on any of the branch nodes. So the problem scenario here is not replacing all the existing folder icons with my icons, but able to insert different icons at different levels of the tree depending on its type. Any help would be appreciated. Thanks -MS
[flexcoders] Re: .NET Web Services w/Soap Headers
Try this: mx:Application pageTitle=Americas IT Radar xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical minWidth=850 xmlns:v=customComp.* creationComplete=onCreationComplete() script ![CDATA[ /* *** BEGING WEB SERVICE CALL WITH ADDING HEADERS *** */ private function onCreationComplete():void { var qName:QName = new QName (http://radar.us.na.ey.net/RadarXML.asmx,AuthHeader;); var headerInfo:XML = AuthHeader xmlns=http://tempuri.org/; UserNameeyadmin/UserName Passwordeyadmin/Password /AuthHeader; var header:SOAPHeader = new SOAPHeader (qName, headerInfo); ws.addHeader(header); sendData(); } // private function sendData(): void { ws.PullXML.send(); } // private function onResult (event:ResultEvent): void { projectXML = XML(event.result); } // private function onFault(event:FaultEvent): void { trace( FAULT\n + ObjectUtil.toString( event.fault )); } /* *** END WEB SERVICE CALL WITH ADDING HEADERS *** */ ]] /script !-- web service -- mx:WebService id=ws wsdl=http://radar.us.na.ey.net/RadarXML.asmx?WSDL; showBusyCursor=true mx:operation name=PullXML result=onResult (event) fault=onFault(event)/ /mx:WebService
RE: [flexcoders] Java to Flex shifting ! Major Hurdles!!! (Shud I say Roadblocks! )
Threading is one of the major missing features in Flex/Flash Player. Basically, the player is multi-threaded and some operations will happen asynchronously but ActionScript code always executes on the same thread. For example, when you make a HTTPService call the network code itself will run on a separate thread, but your call and the event handler for the callback run on the same thread. If you do a lot of processing that takes more than a frame then the frame rate will decrease and perceived performance will suffer. To combat this use the built-in functionality which is multithreaded as much as possible and when appropriate offload processing work to the server. When you have to do heavy processing on the client one solution is to break up the work into separate chunks and then use a frame-based loop to process the chunks until it's done. One problem is it's hard to know how much processing to do in each frame because there's no way to know how much time has already elapsed in the current frame before your code started or how much other work is going to be done before the frame is complete. HTH, Sam --- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ravi kumar gummadi Sent: Thursday, February 22, 2007 1:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Java to Flex shifting ! Major Hurdles!!! (Shud I say Roadblocks! ) Hi, I am basically a Java guy, recently into Flex. It may be due to the sudden paradigm shift from serial programming ( incl Threads) to Event Based Programming, that I find many features totally new and surprising.
[flexcoders] Re: Expand All tree nodes
a couple of points which may help you in your endeavor... yourTree.selectedItem is a reference to data provider element which is currently selected. So, if your tree is backed by an XML data structure, this would point to the XML node which is currently selected with the tree control... yourTree.isItemOpen(item): item here expects to be an element in your tree's data provider yourTree.expandItem(item, true): again, item is an element in your tree's data provider. the second argument is boolean denoting if you want to close or expand the tree branch good luck. --- In flexcoders@yahoogroups.com, Ramanamurthy Medarametla [EMAIL PROTECTED] wrote: Hi all, I'm new to flex. I have a requirement that i have to expand all tree nodes when my tree initializes. it is showing only one parent node, but i need to display all nodes expanded some thing shown below. 1234 8923 ---821932 ---348273 9821 ---342233 342342 ---425231 ---412412 -- 5678 Thanks in advance
[flexcoders] RemoteObject - request timeout
Does anyone have an example of how to handle a request timeout for a remote data service? I have a RemoteObject in my app and it has a requestTimeout property. Does this dispatch an event when the timeout occurs? mx:RemoteObject id=myService requestTimeout=10 endpoint=http://localhost; destination=TestService fault=onFault(event); showBusyCursor=true I could create a timer that is started when the invoke event is fired, but what would the point of the requestTimeout property be then?
Re: [flexcoders] Negative plane in Column Chart
Thanks guys for your fast replies. I have no that code right now, but the problem was that: I use ColumnSet as the only element in ColumnChart and it has no yField property of course(but there are yFields in ColumnSeries in ColumnSet). I don't understand very much how this component(ColumnChart) works with it's dataProvider, because it doesn't display negative values in that situation (only ColumnSet in the ColumnChart). But when I add another (invisible) ColumnSeries with empty dataProvider in my ColumnChart, it began to display negative values for that ColumnSet. This problem description is rather messy, I am sorry :) Is there are any thoughts about such a behavior? 2007/2/22, Ely Greenfield [EMAIL PROTECTED]: Hi Mikhail. Can you be more specific about what you're looking for? In general, the charts support negative values with no problems, so maybe I'm not understanding your question. Ely. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Mikhail Shevchuk *Sent:* Thursday, February 22, 2007 3:18 AM *To:* Flex *Subject:* [flexcoders] Negative plane in Column Chart How to implement such a thing? Simple defining negative values doesn't help. These columns just not displayed. If this is impossible within Column Chart, could you please advise me where should I look for? Thanks. -- A vivid and creative mind characterizes you. -- A vivid and creative mind characterizes you.
Re: [flexcoders] Multiple Instances of CF / FDS and messaging broken?
It's something that I already spoke with Tom J. Can you try to create different names for the EG instance and if it doesn't work, try to use different destinationNames? João Fernandes
Re: [flexcoders] Java to Flex shifting ! Major Hurdles!!! (Shud I say Roadblocks! )
Hey everyone, I know there exists an article/whitepaper from Adobe outlining the new AS3 VM2(?), but I can't find it. Anyone know where that is? I think it would be helpful for this gentleman's situation. Thanks, -Scott On 2/22/07, ravi kumar gummadi [EMAIL PROTECTED] wrote: Hi, I am basically a Java guy, recently into Flex. It may be due to the sudden paradigm shift from serial programming ( incl Threads) to Event Based Programming, that I find many features totally new and surprising. I read in a article that Flash/Flex is based on AMPED (Asymmetric-Multi Process Event Driven) Architecture. In this kind of architecture , We have a single thread dispatching the events and the control gets transferred between the Events and the main thread. ( These are my vague conclusions from what I have read and understood, Correct me if I am wrong! ) So if the event dispatched doesn't have a IO/Network operation, the control reaches back to the EventDispatcher only after the eventhandler method is totally complete. But if our eventhandling mechanism has a huge data crunching operation , doesn't that freeze the client? 1. Lets say I have 2 things to be done, Doing a animation and some huge data operation simultaneously! In Java, what we usually do is spawn a new thread for doing the animation (or) doing the data operation! This takes care of the scenario. Now in Flex, We dispatch events, Lets say, OperateDataEvent and AnimateEvent, both of them have some handlers (ODEHandler, AEHandler respectively). Now when we do something like this, dispatchEvent(new OperateDataEvent()) and dispatchEvent(new AnimateEvent()) How does the control flow?? Does this fully complete the DataOperationEvent first and then return to animateEvent ! Since its a single thread model, I guess it should be done so! But then it doesnt sound logical for any matured programming languge to cripple an application from doing another task and make it wait. 2. Second thing is, How does the Timer/setInterval actually function in the Flex architecture, Is it a separate 'thread' ( Oops!this Java hangover is not gonna leave me ! ) Is it advisable to have big operations inside the timerHandler which may result in periodic glitches in the application. 3 Can anyone give a good resource of the AVM structure and design and how it differs from JVM! Thanks in advance Cheers, Ravi Kumar G PartyGaming Plc. www.partygaming.com What is right is right, even if no one is doing it. What is wrong is wrong, even if everyone is doing it. -- Never miss an email again! Yahoo! Toolbarhttp://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/alerts you the instant new Mail arrives.Check it out. -- : : ) Scott
Re: [flexcoders] custom icons to tree nodes
i did the same thing to discrete file types; so here is my solution; every files extension is found in the server and embed into the xml result as the icon field with the matching variable names in the actionScript. here is the php code : ?php function findexts ($filename) { $filename = strtolower($filename) ; $exts = split([/\\.], $filename) ; $n = count($exts)-1; $exts = $exts[$n]; return $exts; } function findIcon($ext){ switch($ext){ case doc: return ico_doc; case pdf: return ico_pdf; case ppt: return ico_ppt; case zip: return ico_zip; default: return ico_diger; } } //and in the item of the xml , here row2 is the mysql_fetch_array result and isim is the filename .icon=\.findIcon(findexts($row2['isim'])).\ ? after you send the xml in the above format; you just need to load images to variables so ; in the mx:script tag of the component; i load the icon files to variables: [Bindable] [Embed(source=icons/dosyalar/diger.png)] public var ico_diger:Class; [Bindable] [Embed(source=icons/dosyalar/doc.png)] public var ico_doc:Class; and so on then this will work. if you cannot manage from this info; i can send the php and mxml files directly to your e-mail adress... - Original Message From: Mrinmoyee Sanyal [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 22, 2007 8:16:34 PM Subject: [flexcoders] custom icons to tree nodes How do I insert my custom icons to the individual tree nodes? I am able to insert it on the root node and on the leaf nodes but not on any of the branch nodes. So the problem scenario here is not replacing all the existing folder icons with my icons, but able to insert different icons at different levels of the tree depending on its type. Any help would be appreciated. Thanks -MS !-- #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;} -- Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121
Re: [flexcoders] Java to Flex shifting ! Major Hurdles!!! (Shud I say Roadblocks! )
Ok, here it is. Right on my desktop, wouldn't you know!: (not it, but worth looking) http://www.adobe.com/devnet/actionscript/articles/actionscript3_overview.html (this is it!) http://www.onflex.org/ACDS/AS3TuningInsideAVM2JIT.pdf =Scott On 2/22/07, slangeberg [EMAIL PROTECTED] wrote: Hey everyone, I know there exists an article/whitepaper from Adobe outlining the new AS3 VM2(?), but I can't find it. Anyone know where that is? I think it would be helpful for this gentleman's situation. Thanks, -Scott On 2/22/07, ravi kumar gummadi [EMAIL PROTECTED] wrote: Hi, I am basically a Java guy, recently into Flex. It may be due to the sudden paradigm shift from serial programming ( incl Threads) to Event Based Programming, that I find many features totally new and surprising. I read in a article that Flash/Flex is based on AMPED (Asymmetric-Multi Process Event Driven) Architecture. In this kind of architecture , We have a single thread dispatching the events and the control gets transferred between the Events and the main thread. ( These are my vague conclusions from what I have read and understood, Correct me if I am wrong! ) So if the event dispatched doesn't have a IO/Network operation, the control reaches back to the EventDispatcher only after the eventhandler method is totally complete. But if our eventhandling mechanism has a huge data crunching operation , doesn't that freeze the client? 1. Lets say I have 2 things to be done, Doing a animation and some huge data operation simultaneously! In Java, what we usually do is spawn a new thread for doing the animation (or) doing the data operation! This takes care of the scenario. Now in Flex, We dispatch events, Lets say, OperateDataEvent and AnimateEvent, both of them have some handlers (ODEHandler, AEHandler respectively). Now when we do something like this, dispatchEvent(new OperateDataEvent()) and dispatchEvent(new AnimateEvent()) How does the control flow?? Does this fully complete the DataOperationEvent first and then return to animateEvent ! Since its a single thread model, I guess it should be done so! But then it doesnt sound logical for any matured programming languge to cripple an application from doing another task and make it wait. 2. Second thing is, How does the Timer/setInterval actually function in the Flex architecture, Is it a separate 'thread' ( Oops!this Java hangover is not gonna leave me ! ) Is it advisable to have big operations inside the timerHandler which may result in periodic glitches in the application. 3 Can anyone give a good resource of the AVM structure and design and how it differs from JVM! Thanks in advance Cheers, Ravi Kumar G PartyGaming Plc. www.partygaming.com What is right is right, even if no one is doing it. What is wrong is wrong, even if everyone is doing it. -- Never miss an email again! Yahoo! Toolbar http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/alerts you the instant new Mail arrives.Check it out. -- : : ) Scott -- : : ) Scott
RE: [flexcoders] custom icons to tree nodes
http://livedocs.macromedia.com/flex/201/html/dpcontrols_062_22.html Hard to say exactly what you need, but an iconFunction might be what you are looking for. Specifying Tree control icons The Tree control provides four techniques for specifying node icons: * The folderOpenIcon, folderClosedIcon, and defaultLeafIcon properties * Data provider node icon fields * The setItemItcon() method * The iconFunction property -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mrinmoyee Sanyal Sent: Thursday, February 22, 2007 1:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] custom icons to tree nodes How do I insert my custom icons to the individual tree nodes? I am able to insert it on the root node and on the leaf nodes but not on any of the branch nodes. So the problem scenario here is not replacing all the existing folder icons with my icons, but able to insert different icons at different levels of the tree depending on its type. Any help would be appreciated. Thanks -MS