[flexcoders] LCDS 2.6 Clustering Problem
We are trying to get clustering configured for our application so that jms topic messages will be handled properly by the servers in the cluster. We are using a hardware load balancer. We have set up a default-cluster, using tcp and set the cluster-message-routing property to server-to-server. We see subscription messages being broadcast and received between the servers in the cluster. From the server you subscribe to: 2009-06-30 17:49:01,248 INFO [STDOUT] [Flex] Sending subscription to peers for subscribe? false selector: login='john' or systemwide='true' subtopic: null and on the other server: 2009-06-30 17:49:01,989 INFO [STDOUT] [Flex] Received subscription from peer: 10.230.3.4:7800 subscribe? true selector: login='john' or systemwide='true' subtopic: null The issue is that messages posted to the jms topic don't seem to get sent to the other servers in the cluster. If you are connected to the server handling the message you will receive it, otherwise nothing. Also there is nothing in the logs indicating the topic messages are being sent to the other servers. Any thoughts on what may be wrong? Thanks for your help. in services-config.xml: channels channel-definition id=my-rtmp class=mx.messaging.channels.RTMPChannel endpoint url=rtmp://myserver.com:2037 class=flex.messaging.endpoints.RTMPEndpoint/ properties idle-timeout-minutes0/idle-timeout-minutes /properties /channel-definition /channels clusters cluster id=default-cluster properties=jgroups-tcp.xml url-load-balancing=false default=true/ /clusters in messaging-config.xml: adapters adapter-definition id=actionscript class=flex.messaging.services.messaging.adapters.ActionScriptAdapter de fault=true / adapter-definition id=jms class=flex.messaging.services.messaging.adapters.JMSAdapter/ /adapters destination id=topicMessage properties server cluster-message-routingserver-to-server/cluster-message-routing /server jms destination-typeTopic/destination-type message-typejavax.jms.ObjectMessage/message-type connection-factoryTopicConnectionFactory/connection-factory destination-jndi-nametopicMessage/destination-jndi-name destination-nametopicMessage/destination-name delivery-modePERSISTENT/delivery-mode message-priorityDEFAULT_PRIORITY/message-priority acknowledge-modeCLIENT_ACKNOWLEDGE/acknowledge-mode transacted-sessionsfalse/transacted-sessions initial-context-environment property nameContext.PROVIDER_URL/name valuejnp://server002:1099/value /property /initial-context-environment /jms /properties channels channel ref=my-rtmp/ /channels adapter ref=jms/ /destination
[flexcoders] Problem with DataGrid ItemRenderer
We have a datagrid that is using an item renderer that consists of an HBox implementing IDropInListItemRenderer with a few components in it. One of these components is a Text component used so some text can be wrapped. The problem is there are a few cases were the datagrid does not seem to size the cell properly to the item renderer. The easiest case to demonstrate is sorting the datagrid. The datagrid renders fine when first loaded but if a column is sorted the row heights no longer are variable, they are all the same height. Is there something else that needs to be in the item renderer? Here's some simplified code that demonstrates the problem (run it, then sort the columns to see the issue): ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var dataSet:ArrayCollection = new ArrayCollection([{item:1, text:Some text}, {item:2, text:Some really long text that should wrap.}]); ]] /mx:Script mx:DataGrid dataProvider={dataSet} variableRowHeight=true width=200 mx:columns mx:DataGridColumn dataField=item/ mx:DataGridColumn dataField=text itemRenderer=MyRenderer/ /mx:columns /mx:DataGrid /mx:Application ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; implements=mx.controls.listClasses.IDropInListItemRenderer mx:Text id=myText width=100%/ mx:Script ![CDATA[ import mx.controls.dataGridClasses.DataGridListData; import mx.controls.listClasses.BaseListData; import mx.events.FlexEvent; [Bindable(dataChange)] private var _listData:BaseListData; public function get listData():BaseListData { return _listData; } public function set listData (value:BaseListData):void { _listData = value; dispatchEvent(new FlexEvent (FlexEvent.DATA_CHANGE)); } override protected function updateDisplayList (w:Number, h:Number):void { super.updateDisplayList(w, h); if (data != null ) { var ld:DataGridListData = DataGridListData(_listData); myText.text = ld.label; } } ]] /mx:Script /mx:HBox
[flexcoders] Re: Specifying LineSeries itemRenderer with Actionscript
Try something like: columnSeries.setStyle(itemRenderer, new ClassFactory (DiamondItemRenderer)); --- In flexcoders@yahoogroups.com, j_sevlie [EMAIL PROTECTED] wrote: I have some LineSeries charts that are generated all through ActionScript (because the number of lines I need is not know until run-time). --- CODE START --- var seriesArray:Array = new Array(); var i:int; var marketShareData:ArrayCollection = new ArrayCollection; marketShareData = wsData.getMarketShare.lastResult; for(i=0; imarketShareData.length; i++) { // Line for brand-specific data var columnSeries:ColumnSeries = new ColumnSeries(); columnSeries.xField = fiscalyear; columnSeries.yField = sharepercentage; columnSeries.dataProvider = marketShareData.getItemAt(i); columnSeries.displayName = marketShareData.getItemAt(i).getItemAt(0).series; seriesArray.push(columnSeries); } columnchartMarketShare.dataProvider = marketShareData; columnchartMarketShare.series = seriesArray; --- CODE END --- My question is: How in the world do I specify a custom itemRenderer through Actionscript? With MXML you can do it like this: LineSeries yField=costs itemRenderer=mx.charts.renderers.DiamondItemRenderer/ But I'm not defining my LineSeries that way. I saw the demo of the charting stuff over at QuietlyScheming.com (http://demo.quietlyscheming.com/ChartSampler/app.html) but he's also defining the series at design-time. Any thoughts? Thanks in advance for any help that somebody can provide. Cheers, Jacob -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Identifying line series for datatip function
try trace (LineSeries(h.element).yField) --- In flexcoders@yahoogroups.com, yaagcur [EMAIL PROTECTED] wrote: To elaborate I want to do something like public function dtFunc(h:HitData):String { trace (h.chartItem.element.yField); } but there is no property yField You used to be able to do obj.hitData.chartItem.element.yField but I think that is no longer available and the chartItemEvent also has not proven the answer to date --- In flexcoders@yahoogroups.com, yaagcur agcur@ wrote: On a line chart with multiple series, I wish to have a datatip function that differs according to which line is hit but I'm having difficulty identifying the property that would tell me that Any help much appreciated -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] ColumnChart problem
I have a stacked column chart with the showDataEffect set to a SeriesInterpolate effect. The chart begins to render, the axes get drawn, and the application freezes with this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.charts.chartClasses::NumericAxis/filterCache() [C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\NumericAxis.as:577] at mx.charts.series::ColumnSeries/mx.charts.series:ColumnSeries::updateF ilter() [C:\dev\GMC\sdk\frameworks\mx\charts\series\ColumnSeries.as:606] at mx.charts.chartClasses::Series/mx.charts.chartClasses:Series::validat eTransform() [C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\Series.as:943] at mx.charts.chartClasses::Series/getRenderDataForTransition ()[C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\Series.as:994] at mx.charts.effects.effectClasses::SeriesInterpolateInstance/play() [C:\dev\GMC\sdk\frameworks\mx\charts\effects\effectClasses\SeriesInte rpolateInstance.as:91] at mx.effects::EffectInstance/startEffect() [C:\dev\GMC\sdk\frameworks\mx\effects\EffectInstance.as:438] at mx.effects.effectClasses::ParallelInstance/play() [C:\dev\GMC\sdk\frameworks\mx\effects\effectClasses\ParallelInstance. as:196] at mx.charts.chartClasses::ChartBase/mx.charts.chartClasses:ChartBase::a dvanceEffectState() [C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\ChartBase.as:1562] at mx.charts.chartClasses::ChartBase/mx.charts.chartClasses:ChartBase::u pdateDisplayList() [C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\ChartBase.as:1268] at mx.charts.chartClasses::CartesianChart/mx.charts.chartClasses:Cartesi anChart::updateDisplayList() [C:\dev\GMC\sdk\frameworks\mx\charts\chartClasses\CartesianChart.as:9 61] at mx.core::UIComponent/validateDisplayList() [C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:5672] at mx.managers::LayoutManager/mx.managers:LayoutManager::validateDisplay List()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:594] at mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstant iation()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:664] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2() [C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7789] at mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher() [C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:7732] Any ideas? Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/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 Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Problem with chart license
We compile our app using ant and mxmlc.jar. Bought a charting license and followed the install instructions and put the license key in the license.properties but still get the Flex Charting Trial Watermark on our charts. Tried a variety of deleting/reinstalling things but the watermark is still there. Anyone have any ideas? Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex 2 Final : Error #1034, in ChartBase dataTip functions
The method signature for a datatip function changed in from beta3 to release, it used to take ChartItemEvent as an argument now it takes HitData. --- In flexcoders@yahoogroups.com, Benoit Hediard [EMAIL PROTECTED] wrote: Error #1034: Echec de la contrainte de type: conversion de mx.charts::[EMAIL PROTECTED] mx.charts.events.ChartItemEvent est impossible at mx.charts.chartClasses::ChartBase/::invokeDTFunction() at mx.charts::HitData/get displayText() at mx.charts.chartClasses::DataType/set data() at mx.charts.chartClasses::ChartBase/::updateDataTipToMatchHitSet() ... Here is another error I've never encountered since FP9 + Flex 2 Final. It is generated when doing a rollover on bar of a BarChart on our app. I'm going to try to isolate and reproduce the bug on a simple case. Anyone else facing this issue? And found a workaround? Benoit Hediard Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Problem Printing Charts with Embedded Fonts
I have a chart that is using an embedded font. The chart renders fine in the flash player but when it is printed all of the textfields in the axes have a lime green background. Seems like I might be missing a style, but couldn't find one that fixed the issue. Any thoughts? Here's some sample code that show's the issue: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Style @font-face { fontFamily: labelFont; src: local(Arial); } BarChart{ fontFamily: labelFont; } /mx:Style mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var medalsAC:ArrayCollection = new ArrayCollection( [ { Country: USA, Gold: 35, Silver:39, Bronze: 29 }, { Country: China, Gold: 32, Silver:17, Bronze: 14 }, { Country: Russia, Gold: 27, Silver:27, Bronze: 38 } ]); private function printChart():void { var pj:PrintJob = new PrintJob(); if (pj.start()) { pj.addPage(print); pj.send(); } } ]] /mx:Script mx:VBox id=print backgroundColor=#ff mx:BarChart id=bar height=100% width=45% paddingLeft=5 paddingRight=5 showDataTips=true dataProvider={medalsAC} mx:verticalAxis mx:CategoryAxis categoryField=Country/ /mx:verticalAxis mx:series mx:BarSeries yField=Country xField=Gold displayName=Gold/ mx:BarSeries yField=Country xField=Silver displayName=Silver/ mx:BarSeries yField=Country xField=Bronze displayName=Bronze/ /mx:series /mx:BarChart /mx:VBox mx:Button label=Print click=printChart()/ /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Chart Data Tip Function
Did the argument for a chart datatip function change in the release? The docs still show it taking a ChartItemEvent, but that seems to cause errors that weren't there in beta3: TypeError: Error #1034: Type Coercion failed: cannot convert mx.charts::[EMAIL PROTECTED] to mx.charts.events.ChartItemEvent. at mx.charts.chartClasses::ChartBase/::invokeDTFunction() at mx.charts::HitData/get displayText() at mx.charts.chartClasses::DataTip/set data() at mx.charts.chartClasses::ChartBase/::updateDataTipToMatchHitSet() at mx.charts.chartClasses::ChartBase/::processRollEvents() at mx.charts.chartClasses::ChartBase/::mouseMoveHandler() Looks like it might now take HitData. Is this correct or do I have some other issue? Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Chart Data Tip Function
Thanks. --- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: Sorry, yes, in the final release chart datatip functions take a hitData structure as its only parameter. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pasflex Sent: Wednesday, June 28, 2006 11:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Chart Data Tip Function Did the argument for a chart datatip function change in the release? The docs still show it taking a ChartItemEvent, but that seems to cause errors that weren't there in beta3: TypeError: Error #1034: Type Coercion failed: cannot convert mx.charts::[EMAIL PROTECTED] to mx.charts.events.ChartItemEvent. at mx.charts.chartClasses::ChartBase/::invokeDTFunction() at mx.charts::HitData/get displayText() at mx.charts.chartClasses::DataTip/set data() at mx.charts.chartClasses::ChartBase/::updateDataTipToMatchHitSet() at mx.charts.chartClasses::ChartBase/::processRollEvents() at mx.charts.chartClasses::ChartBase/::mouseMoveHandler() Looks like it might now take HitData. Is this correct or do I have some other issue? Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] BarChart bug f2b3
If the type on a bar chart is set to 'stacked' or '100%' the bars do not show up at all. Works fine on a column chart. ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; backgroundColor=#FF mx:Script ![CDATA[ private var Medals:Array = [ { Country: USA, Gold: 35, Silver:39, Bronze: 29 }, { Country: China, Gold: 32, Silver:17, Bronze: 14 }, { Country: Russia, Gold: 27, Silver:27, Bronze: 38 } ]; ]] /mx:Script mx:Panel title=Column and Bar Chart Panel height=100% width=100% mx:BarChart id=bar paddingLeft=5 height=100% type=stacked width=45% paddingRight=5 dataProvider={Medals} showDataTips=true mx:verticalAxis mx:CategoryAxis dataProvider={Medals} categoryField=Country/ /mx:verticalAxis mx:series mx:Array mx:BarSeries yField=Country xField=Gold displayName=Gold/ mx:BarSeries yField=Country xField=Silver displayName=Silver/ mx:BarSeries yField=Country xField=Bronze displayName=Bronze/ /mx:Array /mx:series /mx:BarChart mx:Legend dataProvider={bar}/ /mx:Panel /mx:Application Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/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 Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Problem with LineChart - Flex 2 Beta 3
Any ideas on this? I've tried setting filterData to true on the lineseries (should be by default anyhow) but it still seems to try to plot these null values. Thanks. --- In flexcoders@yahoogroups.com, pasflex [EMAIL PROTECTED] wrote: We are populating a line chart with some data returned from an HTTPService. The data is xml which flex parses to an object (resultFormat='object'). For some of the LineSeries the data is not contiguous. The problem is that the chart is still drawing these missing datapoints. It draws them at 0, although the datatips show no value for them. We have tried returning an empty tag or leaving the tag out completely but the points still show up. Here's some sample code that demonstrates the issue without using the HTTPService. Any ideas? ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Script ![CDATA[ [Bindable] private var xml:XML = values value a/a b2/b /value value a1/a b2/b /value value a1.5/a b2/b /value value b2/b /value /values; ]] /mx:Script mx:Panel title=Line Chart mx:LineChart dataProvider={xml.value} showDataTips=true mx:series mx:Array mx:LineSeries yField=a/ mx:LineSeries yField=b/ /mx:Array /mx:series /mx:LineChart /mx:Panel /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Problem with LineChart - Flex 2 Beta 3
Thanks Ely, that'll work for now. --- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: You're tripping over some of the conversion rules AS3 has inherited (by necessity) from EcmaScript. The LineSeries can correctly render missing data, but unfortunately the XML API never reports the data as missing, only as an empty stringwhich converts to the numeric value 0. The bug has been logged, but if you want to work around it in the meantime, any non-numeric value will get interpreted as bad data and stripped out of the data set. i.e., turn soemthing like this: value a/a c12/c /value Into this: value ajunk/a bjunk/b c12/c /value Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pasflex Sent: Wednesday, May 24, 2006 11:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Problem with LineChart - Flex 2 Beta 3 Any ideas on this? I've tried setting filterData to true on the lineseries (should be by default anyhow) but it still seems to try to plot these null values. Thanks. --- In flexcoders@yahoogroups.com, pasflex pswiss@ wrote: We are populating a line chart with some data returned from an HTTPService. The data is xml which flex parses to an object (resultFormat='object'). For some of the LineSeries the data is not contiguous. The problem is that the chart is still drawing these missing datapoints. It draws them at 0, although the datatips show no value for them. We have tried returning an empty tag or leaving the tag out completely but the points still show up. Here's some sample code that demonstrates the issue without using the HTTPService. Any ideas? ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Script ![CDATA[ [Bindable] private var xml:XML = values value a/a b2/b /value value a1/a b2/b /value value a1.5/a b2/b /value value b2/b /value /values; ]] /mx:Script mx:Panel title=Line Chart mx:LineChart dataProvider={xml.value} showDataTips=true mx:series mx:Array mx:LineSeries yField=a/ mx:LineSeries yField=b/ /mx:Array /mx:series /mx:LineChart /mx:Panel /mx:Application Yahoo! Groups Sponsor ~-- Everything you need is one click away. Make Yahoo! your home page now. http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM --- -~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Problem with LineChart - Flex 2 Beta 3
We are populating a line chart with some data returned from an HTTPService. The data is xml which flex parses to an object (resultFormat='object'). For some of the LineSeries the data is not contiguous. The problem is that the chart is still drawing these missing datapoints. It draws them at 0, although the datatips show no value for them. We have tried returning an empty tag or leaving the tag out completely but the points still show up. Here's some sample code that demonstrates the issue without using the HTTPService. Any ideas? ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Script ![CDATA[ [Bindable] private var xml:XML = values value a/a b2/b /value value a1/a b2/b /value value a1.5/a b2/b /value value b2/b /value /values; ]] /mx:Script mx:Panel title=Line Chart mx:LineChart dataProvider={xml.value} showDataTips=true mx:series mx:Array mx:LineSeries yField=a/ mx:LineSeries yField=b/ /mx:Array /mx:series /mx:LineChart /mx:Panel /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: How to access the tag name in a tree XML data provider
Try something like: var tagName:String = node.name().toString(); --- In flexcoders@yahoogroups.com, greenfishinwater [EMAIL PROTECTED] wrote: I forgot to mention that this is using Flex 2 Beta 2 --- In flexcoders@yahoogroups.com, greenfishinwater greenfishinwater@ wrote: In my tree I use an XML based data provider. An example is: category name=cat 1 code=001 group name=group 1 code=987 brand name=barnd 1 code=ABC/ /group /category When a user opens a tree node, I can access an attribute as: var n:String = [EMAIL PROTECTED]; How can I access the tag name to find out if it is a category, group or brand etc. Thank you Andrew -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Problems with tree selectedNode - Flex 2
Thanks Matt. Few more things I found recently: 1. If you drag a node that has been set using selectedNode and you try something like this in a dragEnter handler: var treeItems:Array = event.dragSource.dataForFormat(treeItems) as Array; you get a 'null has no properties error'. 2. If enabled is set to false on the tree it still dispatches itemClicks. 3. If you create a TextInput with enabled=false and then set it to true later it becomes enabled but retains the disabledBackgroundColor. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: I think we just fixed the first issue internally, I'll forward on the issue about it remaining highlighted. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pasflex Sent: Friday, March 31, 2006 8:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problems with tree selectedNode - Flex 2 I'm seeing some odd behavior when using the selectedNode property of the tree to return to a node in a tree or it's quite possible that I'm not using it correctly. The first issue is that if there are identical nodes in different branchs of the tree visible setting selectedNode will just go the first node. Run the example code below, but first open the 'dir1' branch before clicking the button to see this behavior, it works as expected if the 'dir1' branch is closed. The second thing is that when selectedNode is set and another element of the tree is selected the selectedNode remains highlighted until you mouse over it. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=initTree() mx:XML id=xml node label=root node label=dir1 node label=file1/ /node node label=dir2 node label=file1/ /node /node /mx:XML mx:Tree id=t1 labelField=@label showRoot=false width=200 / mx:Button label=Select Node click=selectNode()/ mx:Script ![CDATA[ import mx.collections.XMLListCollection; import mx.collections.XMLList; private function initTree():void { t1.dataProvider = new XMLListCollection(new XMLList(xml)); } private function selectNode():void { t1.setIsOpen(t1.getNodeDisplayedAt(0), true); t1.setIsOpen(t1.getNodeDisplayedAt(0).children()[1], true); t1.selectedNode = t1.dataProvider.children()[0].children() [1].children()[0]; } ]] /mx:Script /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Problems with tree selectedNode - Flex 2
I'm seeing some odd behavior when using the selectedNode property of the tree to return to a node in a tree or it's quite possible that I'm not using it correctly. The first issue is that if there are identical nodes in different branchs of the tree visible setting selectedNode will just go the first node. Run the example code below, but first open the 'dir1' branch before clicking the button to see this behavior, it works as expected if the 'dir1' branch is closed. The second thing is that when selectedNode is set and another element of the tree is selected the selectedNode remains highlighted until you mouse over it. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=initTree() mx:XML id=xml node label=root node label=dir1 node label=file1/ /node node label=dir2 node label=file1/ /node /node /mx:XML mx:Tree id=t1 labelField=@label showRoot=false width=200 / mx:Button label=Select Node click=selectNode()/ mx:Script ![CDATA[ import mx.collections.XMLListCollection; import mx.collections.XMLList; private function initTree():void { t1.dataProvider = new XMLListCollection(new XMLList(xml)); } private function selectNode():void { t1.setIsOpen(t1.getNodeDisplayedAt(0), true); t1.setIsOpen(t1.getNodeDisplayedAt(0).children()[1], true); t1.selectedNode = t1.dataProvider.children()[0].children() [1].children()[0]; } ]] /mx:Script /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] History iframe shows up in flex 2 beta 2
The history iframe is visible in the html wrapper (firefox at least). It shows up beneath the lower left corner of an application, or when using the mouse scrollwheel on an application that fills the browser window. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; height=100 / Looking at the source of the page there is this: iframe name=_history src=history.htm width=22 height=20/iframe -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Tree itemRenderer - flex 2
When setting an itemRenderer for a tree in flex2, the tree controls and indentation disappear. For example, if I try to display a label and an image for each node in the tree and I create an itemrenderer to do so, the tree will only display the root node using the itemrenderer with no controls to open it (basically turning the tree into a one item list). In flex 1.5 a cellrenderer assigned to a tree didn't override the default tree behavior, it only changed the renderering of the item in the node. How does one accomplish this is flex2? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Tree itemRenderer - flex 2
I have tried extending the TreeItemRenderer class similar to your example, the problem that I have is that the item is still rendered by a single label. It's not clear to me how I can create a more complex item renderer, for example, one that consists of a label and an image. Is there a way to do this in flex 2 short of writing a custom renderer that handles it's own indentation and controls? Thanks. --- In flexcoders@yahoogroups.com, Joan Tan [EMAIL PROTECTED] wrote: You cannot just drop in any renderer for a Tree component or Menu which need to deal with indentation because your renderer doesn't know anything about it. Instead, the easiest thing to do is to use an itemRenderer that subclasses the TreeItemRenderer class. Here is an example of a Tree item renderer. The renderer will change the font weight and color of parent nodes and add text as to how many children each node has. package { import mx.controls.treeClasses.*; import mx.collections.*; public class MyTreeItemRenderer extends TreeItemRenderer { public function MyTreeItemRenderer() { super(); mouseEnabled = false; } override public function set data (value:Object):void { super.data = value; if(TreeListData (super.listData).hasChildren) { setStyle(color, 0xff); setStyle(fontWeight, 'bold'); } else { setStyle(color, 0x00); setStyle(fontWeight, 'normal'); } } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); if(super.data) { if(TreeListData(super.listData).hasChildren) { var tmp:XMLList = new XMLList(TreeListData(super.listData).node); var myStr:int = tmp[0].children().length(); super.label.text = TreeListData(super.listData).text + ( + myStr + ); } } } } } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pasflex Sent: Wednesday, March 22, 2006 9:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tree itemRenderer - flex 2 When setting an itemRenderer for a tree in flex2, the tree controls and indentation disappear. For example, if I try to display a label and an image for each node in the tree and I create an itemrenderer to do so, the tree will only display the root node using the itemrenderer with no controls to open it (basically turning the tree into a one item list). In flex 1.5 a cellrenderer assigned to a tree didn't override the default tree behavior, it only changed the renderering of the item in the node. How does one accomplish this is flex2? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Problem with DateChooser selectedDate - flex 2
If the selectedDate of a DateChooser is set to a date that is created using new Date() with no arguments (or any similar constructor to get the current date/time), the selectedDate is not highlighted on the DateChooser when showToday is false. Interestingly, it works if the date created using new Date(2006,2,15), but I would just like to highlight today's date whatever that is. Here's an example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* mx:DateChooser showToday=false selectedDate={now}/ mx:Script [Bindable] public var now:Date = new Date(); /mx:Script /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Prob]lem with wordwrap - flex 1.5
Thanks for the response. Same behavior when setting the width of the column, as long as the column is narrow enough to cause the contents of the cell to take up more vertical space than the height of a grid row. Basically as soon as you click the scroll arrow the column keeps resizing itself (with no additional user input) until it disappears. Also, if there are multiple rows like this as you scroll down the grid it jumps to the top of each row so some content in the cell is never displayed. This is partly fixed in 2.0 in that the column no longer resizes itself, but there is still content in the cell that is never displayed. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: What happens if you hard-code the column width for the word- wrapping column? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pasflex Sent: Tuesday, March 07, 2006 1:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Prob]lem with wordwrap - flex 1.5 I have a datagrid that has wordwrap turned on for one of it's columns. If the contents of a cell in that column are long enough to cause a scrollbar to appear when the scrollbar is moved or the scroll down arrow clicked the column gets narrower until it disappears. Also if there are multiple rows with values like this scrolling does not reveal the entire contents of the cell, it only goes to the top of the next row. Here is some sample code that recreates the problem. Any ideas? Thanks. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* width=250 height=250 backgroundColor=#FF mx:DataGrid width=100% height=100% variableRowHeight=true mx:columns mx:Array mx:DataGridColumn columnName=name/ mx:DataGridColumn columnName=title/ mx:DataGridColumn columnName=longString wordWrap=true/ /mx:Array /mx:columns mx:dataProvider mx:Array mx:Object namename/name titletitle/title longStringClick on the scroll down arrow or on the scroll bar below the scroll control. This is a long string that is long enough to cause a vertical scroll bar to be displayed./longString /mx:Object /mx:Array /mx:dataProvider /mx:DataGrid /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Problem dynamically creating text controls
Matt, Thanks for the semi-useful suggestion ;) Tried to set creationPolicy=all on the view stack and it has the same behavior. For kicks, I also tried moving the call to initLayout to the creationComplete event on the second VBox, this did not help either. Any other ideas? --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: What happens if you set creationPolicy=all on the view stack? Maybe the height it messed up because the VBox was not really ready to accept children? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pasflex Sent: Wednesday, November 02, 2005 2:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem dynamically creating text controls We have an application where we are dynamically creating various controls in containers in a viewstack. If a text control is created in a non-visible layer of the viewstack, the height of the control is not correct. This only happens for text controls in 1.5. It does not seem to happen in 2.0. Is this a bug or is there something we are missing? Thanks Here is some code that demonstrates the problem: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; creationComplete=initLayout() mx:Panel width=250 height=300 mx:ViewStack id=vs width=100% height=100% mx:VBox id=vb1 width=100% height=100%/mx:VBox mx:VBox id=vb2 width=100% height=100%/mx:VBox /mx:ViewStack /mx:Panel mx:Script ![CDATA[ var textArray = new Array(The quick brown fox jumped over the lazy dog, The quick brown fox jumped over the lazy dog, The quick brown fox jumped over the lazy dog); function initLayout():Void { for (var i=0; itextArray.length; i++) { vb1.createChild (mx.controls.Text, , {text:textArray[i], width:100%}); vb2.createChild (mx.controls.Text, , {text:textArray[i], width:100%}); } var vb1Button = vb1.createChild (mx.controls.Button,, {label:vbox 2, id:button1}); vb1Button.addEventListener(click, this); var vb2Button = vb2.createChild (mx.controls.Button,, {label:vbox 1, id:button2}); vb2Button.addEventListener(click, this); } function handleEvent(event:Object):Void { if( event.type == click ) { if (event.target.id = button1) { vs.selectedIndex = 1; } if (event.target.id = button2) { vs.selectedIndex = 0; } } } ]] /mx:Script /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Problem dynamically creating text controls
We have an application where we are dynamically creating various controls in containers in a viewstack. If a text control is created in a non-visible layer of the viewstack, the height of the control is not correct. This only happens for text controls in 1.5. It does not seem to happen in 2.0. Is this a bug or is there something we are missing? Thanks Here is some code that demonstrates the problem: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; creationComplete=initLayout() mx:Panel width=250 height=300 mx:ViewStack id=vs width=100% height=100% mx:VBox id=vb1 width=100% height=100%/mx:VBox mx:VBox id=vb2 width=100% height=100%/mx:VBox /mx:ViewStack /mx:Panel mx:Script ![CDATA[ var textArray = new Array(The quick brown fox jumped over the lazy dog, The quick brown fox jumped over the lazy dog, The quick brown fox jumped over the lazy dog); function initLayout():Void { for (var i=0; itextArray.length; i++) { vb1.createChild (mx.controls.Text, , {text:textArray[i], width:100%}); vb2.createChild (mx.controls.Text, , {text:textArray[i], width:100%}); } var vb1Button = vb1.createChild (mx.controls.Button,, {label:vbox 2, id:button1}); vb1Button.addEventListener(click, this); var vb2Button = vb2.createChild (mx.controls.Button,, {label:vbox 1, id:button2}); vb2Button.addEventListener(click, this); } function handleEvent(event:Object):Void { if( event.type == click ) { if (event.target.id = button1) { vs.selectedIndex = 1; } if (event.target.id = button2) { vs.selectedIndex = 0; } } } ]] /mx:Script /mx:Application Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/