[flexcoders] Horizontal List - the Images don't appear - help?!
Hi! I'm trying to display images in a Horizontal List. I receive the url's of the images via a webservice at run time - so can't embed the images. I've tried something like this: chartList.addItem({label:myLabel, icon:myImageURL}); Where chartList is the dataprovider of the H-List... but this doesn't work - I see the labels but no images. The url's are definitely correct - I can paste one into a browser and view the image. Any ideas? Thanks, Jamie.
[flexcoders] Relative Axes on DateTime Chart
Hi, Hit a small piece of weirdness and hope someone knows of a solution... I'm plotting three dateTime series on the same chart and unexpectedly, the lines aren't plotted relative to one another - ie I was expecting that a datapoint relating on one line to a particular date to correspond to a datapoint on another line in terms of its x-position but it seems that each dateTime series on the chart holds its own axis and therefore if the date ranges for each line aren't precisely the same for each then the chart just doesn't make any sense - you cannot look at one position on the x axis and see what values exist on each line for that position. Is there any way I can force the lines to 'relate' to one another in the x-dimension? Thanks, Jamie.
[flexcoders] Chart DataTime series - forcing the start and end points?
Hi, Is there a way to force the start and end points of the date time axis? I need to show exactly one month on a chart though I may not have a full month's worth of data to display. Thanks in advance, Jamie.
[flexcoders] Chart - Horizontal Labels tiny!
Hi, Wonder if you guys can help! I have a chart I'm plotting and the h-axis labels are so tiny they're almost 'dots'. So I tried creating a secondary axis, eliminating all but twelve (it's yearly data) points which have the year/month values and placing that on the chart - but again, although just twelve points are shown, these are almost microscopic! Anyone else had this happen before? Any ideas for a fix? Cheers, Jamie.
[flexcoders] Background Cell Colour in Grid - remove the whitespace?
Hi, I've just used the example here: http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailspostId=61productId=2 To successfully colour the background colours of some cells. Unfortunately though, there's some whitespace at the top and the bottom of the coloured area. I can't figure out how to remove this and make the filled area encompass the entire cell. Can anyone help with this? Thanks, Jamie.
[flexcoders] Removing extreme ends of an Axis
Hi, Weird one this... if you run the attached code, you'll see that on the horizontal axis, at each side of it, it extends fractionally past the vertical axes... anyone know how to prevent this? Thanks, Jamie. ?xml version=1.0? !-- charts/AddLabelsWithOffsetLines.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; backgroundColor=0xFF backgroundGradientColors=[0xFF, 0xFF] mx:Script![CDATA[ import mx.containers.HBox; import mx.charts.LinearAxis; import mx.containers.Box; import mx.collections.ArrayCollection; import mx.charts.series.items.ColumnSeriesItem; import mx.charts.ChartItem; import mx.charts.chartClasses.CartesianCanvasValue; import mx.charts.chartClasses.CartesianTransform; import qs.charts.dataShapes.*; [Bindable] public var profits:ArrayCollection = new ArrayCollection([ {Month:1, Profit:1300}, {Month:2, Profit:750}, {Month:3, Profit:1100}, {Month:4, Profit:1000}, {Month:5, Profit:980}, {Month:6, Profit:1500}, {Month:7, Profit:2060}, {Month:8, Profit:1700}, {Month:9, Profit:1690}, {Month:10, Profit:2200}, {Month:11, Profit:2550}, {Month:12, Profit:3000} ]); ]]/mx:Script mx:Stroke id=yAxisStroke color=#44 alpha=1 weight=2/ mx:Stroke id=xAxisStroke color=#44 alpha=1 weight=2/ mx:Canvas id=mainCanvas width=80% height=80% backgroundAlpha=0 mx:LineChart id=myChart width=100% height=90% dataProvider={profits} selectionMode=single mx:seriesFilters mx:Array/ /mx:seriesFilters mx:backgroundElements mx:CartesianDataCanvas id=canvas alpha=0 includeInRanges=false / /mx:backgroundElements mx:horizontalAxis mx:CategoryAxis dataProvider={profits} categoryField=Month / /mx:horizontalAxis mx:secondVerticalAxis mx:LinearAxis / /mx:secondVerticalAxis mx:horizontalAxisRenderer mx:AxisRenderer showLabels=false canStagger=false placement=top tickLength=0 minorTickPlacement=outside tickPlacement=outside minorTickLength=0 fontSize=11 mx:axisStroke{xAxisStroke}/mx:axisStroke mx:tickStroke{xAxisStroke}/mx:tickStroke mx:minorTickStroke{xAxisStroke}/mx:minorTickStroke /mx:AxisRenderer /mx:horizontalAxisRenderer mx:verticalAxisRenderer mx:AxisRenderer tickLength=0 minorTickPlacement=outside tickPlacement=outside minorTickLength=0 fontSize=11 fontWeight=normal mx:axisStroke{yAxisStroke}/mx:axisStroke mx:tickStroke{yAxisStroke}/mx:tickStroke mx:minorTickStroke{yAxisStroke}/mx:minorTickStroke /mx:AxisRenderer /mx:verticalAxisRenderer mx:secondVerticalAxisRenderer mx:AxisRenderer tickLength=0 minorTickPlacement=outside tickPlacement=outside minorTickLength=0 fontSize=11 fontWeight=normal mx:axisStroke{yAxisStroke}/mx:axisStroke mx:tickStroke{yAxisStroke}/mx:tickStroke mx:minorTickStroke{yAxisStroke}/mx:minorTickStroke /mx:AxisRenderer /mx:secondVerticalAxisRenderer mx:series mx:LineSeries id=mainSeries xField=Month yField=Profit displayName=Profit selectable=true mx:lineStroke mx:Stroke id=mainLine color=0x44 weight=2 / /mx:lineStroke /mx:LineSeries /mx:series /mx:LineChart /mx:Canvas /mx:Application
[flexcoders] Re: Removing extreme ends of an Axis
Thanks Eddie - works a treat! Jamie --- In flexcoders@yahoogroups.com, EddieBerman [EMAIL PROTECTED] wrote: The good news is that it's not a bug. Just add caps=none to your xAxisStroke definition. -Eddie --- In flexcoders@yahoogroups.com, jamiebadman jamie.badman@ wrote: Hi, Weird one this... if you run the attached code, you'll see that on the horizontal axis, at each side of it, it extends fractionally past the vertical axes... anyone know how to prevent this? Thanks, Jamie. ?xml version=1.0? !-- charts/AddLabelsWithOffsetLines.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; backgroundColor=0xFF backgroundGradientColors=[0xFF, 0xFF] mx:Script![CDATA[ import mx.containers.HBox; import mx.charts.LinearAxis; import mx.containers.Box; import mx.collections.ArrayCollection; import mx.charts.series.items.ColumnSeriesItem; import mx.charts.ChartItem; import mx.charts.chartClasses.CartesianCanvasValue; import mx.charts.chartClasses.CartesianTransform; import qs.charts.dataShapes.*; [Bindable] public var profits:ArrayCollection = new ArrayCollection([ {Month:1, Profit:1300}, {Month:2, Profit:750}, {Month:3, Profit:1100}, {Month:4, Profit:1000}, {Month:5, Profit:980}, {Month:6, Profit:1500}, {Month:7, Profit:2060}, {Month:8, Profit:1700}, {Month:9, Profit:1690}, {Month:10, Profit:2200}, {Month:11, Profit:2550}, {Month:12, Profit:3000} ]); ]]/mx:Script mx:Stroke id=yAxisStroke color=#44 alpha=1 weight=2/ mx:Stroke id=xAxisStroke color=#44 alpha=1 weight=2/ mx:Canvas id=mainCanvas width=80% height=80% backgroundAlpha=0 mx:LineChart id=myChart width=100% height=90% dataProvider={profits} selectionMode=single mx:seriesFilters mx:Array/ /mx:seriesFilters mx:backgroundElements mx:CartesianDataCanvas id=canvas alpha=0 includeInRanges=false / /mx:backgroundElements mx:horizontalAxis mx:CategoryAxis dataProvider={profits} categoryField=Month / /mx:horizontalAxis mx:secondVerticalAxis mx:LinearAxis / /mx:secondVerticalAxis mx:horizontalAxisRenderer mx:AxisRenderer showLabels=false canStagger=false placement=top tickLength=0 minorTickPlacement=outside tickPlacement=outside minorTickLength=0 fontSize=11 mx:axisStroke{xAxisStroke}/mx:axisStroke mx:tickStroke{xAxisStroke}/mx:tickStroke mx:minorTickStroke{xAxisStroke}/mx:minorTickStroke /mx:AxisRenderer /mx:horizontalAxisRenderer mx:verticalAxisRenderer mx:AxisRenderer tickLength=0 minorTickPlacement=outside tickPlacement=outside minorTickLength=0 fontSize=11 fontWeight=normal mx:axisStroke{yAxisStroke}/mx:axisStroke mx:tickStroke{yAxisStroke}/mx:tickStroke mx:minorTickStroke{yAxisStroke}/mx:minorTickStroke /mx:AxisRenderer /mx:verticalAxisRenderer mx:secondVerticalAxisRenderer mx:AxisRenderer tickLength=0 minorTickPlacement=outside tickPlacement=outside minorTickLength=0 fontSize=11 fontWeight=normal mx:axisStroke{yAxisStroke}/mx:axisStroke mx:tickStroke{yAxisStroke}/mx:tickStroke mx:minorTickStroke{yAxisStroke}/mx:minorTickStroke /mx:AxisRenderer /mx:secondVerticalAxisRenderer mx:series mx:LineSeries id=mainSeries xField=Month yField=Profit displayName=Profit selectable=true mx:lineStroke mx:Stroke id=mainLine color=0x44 weight=2 / /mx:lineStroke /mx:LineSeries /mx:series /mx:LineChart /mx:Canvas /mx:Application
[flexcoders] Drawing on Charts - pixel perfection?
Hi, I'm having some trouble drawing exactly how I'd like to on a chart. I'll post the example code below - but basically the problem appears to be this: I'm trying to draw a rectangle on the background to cover *exactly* half of the background area on the chart. So I have a CartesianDataCanvas and then using the height and half the width of this Canvas, I call localToData to convert the co-ordinates needed for drawRect. The problem appears to be that doing this ties the converted co-ordinates to the nearest underlying axis point. But of course, this then may not correspond to the exact half-way point. My question is, how can I draw such a rectangle if not via this method - or if this method is the correct approach, how can I obtain the accurate co-ordinates with which to call the drawRect function? Example Code found below... Thanks, Jamie. ?xml version=1.0? !-- charts/AddLabelsWithOffsetLines.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script![CDATA[ import mx.containers.HBox; import mx.charts.LinearAxis; import mx.containers.Box; import mx.collections.ArrayCollection; import mx.charts.series.items.ColumnSeriesItem; import mx.charts.ChartItem; import mx.charts.chartClasses.CartesianCanvasValue; import mx.charts.chartClasses.CartesianTransform; [Bindable] public var profits:ArrayCollection = new ArrayCollection([ {Month:1, Profit:1300}, {Month:2, Profit:750}, {Month:3, Profit:1100}, {Month:4, Profit:1000}, {Month:5, Profit:980}, {Month:6, Profit:1500}, {Month:7, Profit:2060}, {Month:8, Profit:1700}, {Month:9, Profit:1690}, {Month:10, Profit:2200}, {Month:11, Profit:2550}, {Month:12, Profit:3000} ]); private function draw():void { canvas.clear(); canvas.beginFill(0x62dce1); var canvasWidth:int = canvas.width; var canvasHeight:int = canvas.height; var minPt:Array = canvas.localToData(new Point(0, 0)); var maxPt:Array = canvas.localToData(new Point(canvasWidth/2,canvasHeight)); canvas.drawRect(minPt[0]-1, maxPt[1], maxPt[0]-1, minPt[1]); canvas.endFill(); } ]]/mx:Script mx:Panel mx:AreaChart id=myChart dataProvider={profits} selectionMode=single mx:annotationElements mx:CartesianDataCanvas id=canvas alpha=0.2 includeInRanges=true/ /mx:annotationElements mx:horizontalAxis mx:CategoryAxis dataProvider={profits} categoryField=Month / /mx:horizontalAxis mx:series mx:AreaSeries id=series1 xField=Month yField=Profit displayName=Profit selectable=true / /mx:series /mx:AreaChart mx:Legend dataProvider={myChart}/ mx:Button id=b1 label=draw click=draw(); / /mx:Panel /mx:Application
[flexcoders] Re: Drawing on Charts - pixel perfection?
Thanks - I just tried this out - but seem to have the same problem. As far as I can make out, the DataDrawingCanvas works in the same way - via the internal chart dimensions as per their axes rather than through pixel co-ordinates within the canvas itself... So to draw the halfway line in my example, I'd use something like this: canvas.drawRect(Edge.LEFT,Edge.TOP,6,Edge.BOTTOM); Where the '6' is the halfway point on the chart by virtue of being the closest datapoint. I can't see any way of providing a more accurate value here. For example, can I draw ten rectangles on the back of the chart side by side, each of equal width, to take up the full width of the DataDrawingCanvas? I can't figure out how to do this - any clues? Cheers, Jamie. --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 29 Oct 2008, jamiebadman wrote: I'm trying to draw a rectangle on the background to cover *exactly* half of the background area on the chart. So I have a Sounds like a job for DataDrawingCanvas from Quietly Scheming: http://demo.quietlyscheming.com/chartBackgrounds/app.html -- Tom Chiverton Helping to revolutionarily pursue seamless efficient bricks-and-clicks 24/365 methodologies 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. 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 Solicitors Regulation Authority. 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 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: Drawing on Charts - pixel perfection?
Reading up some more, it would appear that CartesianDrawingCanvas is intended to be the Flex 3 implementation of Ely's DataDrawingCanvas. It also appears that the functionality for both is to permit drawing on this canvas based on data values in the data. This is the root of my problem though - I don't necessarily want to draw my objects based on the data values - I'd like to draw on the background of the chart wherever I'd like. Is there any way to do this? Jamie. --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 29 Oct 2008, jamiebadman wrote: I'm trying to draw a rectangle on the background to cover *exactly* half of the background area on the chart. So I have a Sounds like a job for DataDrawingCanvas from Quietly Scheming: http://demo.quietlyscheming.com/chartBackgrounds/app.html -- Tom Chiverton Helping to revolutionarily pursue seamless efficient bricks-and-clicks 24/365 methodologies 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. 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 Solicitors Regulation Authority. 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 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: Drawing on Charts - pixel perfection?
Thanks Tom... but that's still working with the data related to the chart rather than the chart dimensions and as such won't work unless your drawing requirements happen to correspond to actual data points. However... I've resolved this now - by creating a CartesianDataCanvas on the chart, placing the chart on a canvas and creating ANOTHER canvas on this canvas, behind the chart in the same position and with the same dimensions as the CartesianDataCanvas. I can then place objects on the new 'background' canvas completely freely. Works a treat. Cheers, Jamie. --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 29 Oct 2008, jamiebadman wrote: canvas.drawRect(Edge.LEFT,Edge.TOP,6,Edge.BOTTOM); Where the '6' is the halfway point on the chart by virtue of being the closest datapoint. I can't see any way of providing a more accurate If you have something like: mx:verticalAxis mx:LinearAxis title=volume id=vAxis/ /mx:verticalAxis then you can get the '6' by doing: vAxis.maximum/2 -- Tom Chiverton Helping to efficiently empower end-to-end eligible solutions 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. 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 Solicitors Regulation Authority. 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 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: LiveCycle with multiple data services failing...
That helped tremendously Jeff - the problem turned out to be that I'd moved the project to a new version of Flex but it had retained the link to the old config in the project properties compiler option. Cheers, Jamie. --- In flexcoders@yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: I am not sure why this is failing, but you might check to see what configuration if any is getting compiled into your SWF. Check the static variable: mx.messaging.config.ServerConfig.xml. If you trace that out, it should contain a subset of the configuration found on your server. It gets it through the compiler's -services services-config.xml option. It sounds like maybe you are compiling against a different version of the config that only has that one destination? The other approach DS has for getting the server's configuration is by loading it from the server at connect time. It will do this if you a) do not compile in the configuration and b) define your channel set on the client so that the client knows which server to talk to. In this case, the ServerConfig.xml variable gets populated only after you connect. Again, it would be interesting to see what is in there as that might help you track down how you are getting incomplete configuration. I'd also recommend turning on the mx:TraceTarget/ option as that logs some good debug info the flashlog.txt (including the config that is being used). Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jamiebadman Sent: Tuesday, November 20, 2007 8:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LiveCycle with multiple data services failing... Hi, I have a strange problem - hopefully someone might be able to figure out what's wrong... First, I'm using Flex 3 beta (Eclipse 3.2+WTP1.5), LiveCycle 2.5, JBoss 4.02. So here's what I do... I use the Flex 3 'create application from database' (if you've not used it yourself, don't give up on me - the problem is almost certainly unrelated to this step!) to create a flex 3 livecycle app from the wizard. This runs fine! I then run it again, against a different table. Again, the second app is fine. But when I try to combine the two applications (obviously renaming variables on both sides to avoid a clash), one of the dataservices runs absolutely fine but when I try to use the other, I get: 'Destination 'SIM_USER_REPORT_PAGESJava' either does not exist or the destination has no channels defined (and the application does not define any default channels.)' But this destination is defined in the same data-management-config.xml as the one that is working - and they're both using the same channel - so I know that channel both exists and works! Any ideas why the second service won't work when combined with the first? I've listed the data-management-config.xml below in case it helps... Thanks, Jamie. ?xml version=1.0 encoding=UTF-8? service id=data-service class=flex.data.DataService adapters adapter-definition id=actionscript class=flex.data.adapters.ASObjectAdapter default=true/ adapter-definition id=java-dao class=flex.data.adapters.JavaAdapter/ /adapters default-channels channel ref=my-rtmp/ /default-channels destination id=SIM_USER_REPORTSJava adapter ref=java-dao/ properties use-transactionstrue/use-transactions sourcecom.db.storage.dao.SIM_USER_REPORTSAssembler/source scopeapplication/scope cache-itemsfalse/cache-items metadata identity property=REPORT_ID/ /metadata network session-timeout0/session-timeout paging enabled=false pageSize=5/ throttle-inbound max-frequency=500 policy=ERROR/ throttle-outbound max-frequency=500 policy=REPLACE/ /network /properties /destination destination id=SIM_USER_REPORT_PAGESJava adapter ref=java-dao/ properties use-transactionstrue/use-transactions sourcecom.db.storage.dao.SIM_USER_REPORT_PAGESAssembler/source scopeapplication/scope cache-itemsfalse/cache-items metadata identity property=REPORT_ID/ /metadata network session-timeout0/session-timeout paging enabled=false pageSize=5/ throttle-inbound max-frequency=500 policy=ERROR/ throttle-outbound max-frequency=500 policy=REPLACE/ /network /properties /destination /service
[flexcoders] Flex 3 + LiveCycle: Is debugging Java possible?
Hi, Our project is a Flex 3 + LiveCycle 2.5 application and is all built under a single project - ie the Flex and Java are contained within a single project and can be built entirely from there. Nice... except for when we want to debug the Java code (which so far has not been necessary since it's been very simple). We can't figure out how to do this. There are articles by Farata and others on how this can be done but these seem to require the Java in a separate project in Eclipse. Has anyone managed to accomplish what we're trying to do - and if so, would you mind sharing the steps required? We're currently using JBoss but if we need to switch to Tomcat, Weblogic or JRun for the purposes of debugging this is not a problem. Thanks, Jamie.
[flexcoders] LiveCycle with multiple data services failing...
Hi, I have a strange problem - hopefully someone might be able to figure out what's wrong... First, I'm using Flex 3 beta (Eclipse 3.2+WTP1.5), LiveCycle 2.5, JBoss 4.02. So here's what I do... I use the Flex 3 'create application from database' (if you've not used it yourself, don't give up on me - the problem is almost certainly unrelated to this step!) to create a flex 3 livecycle app from the wizard. This runs fine! I then run it again, against a different table. Again, the second app is fine. But when I try to combine the two applications (obviously renaming variables on both sides to avoid a clash), one of the dataservices runs absolutely fine but when I try to use the other, I get: 'Destination 'SIM_USER_REPORT_PAGESJava' either does not exist or the destination has no channels defined (and the application does not define any default channels.)' But this destination is defined in the same data-management-config.xml as the one that is working - and they're both using the same channel - so I know that channel both exists and works! Any ideas why the second service won't work when combined with the first? I've listed the data-management-config.xml below in case it helps... Thanks, Jamie. ?xml version=1.0 encoding=UTF-8? service id=data-service class=flex.data.DataService adapters adapter-definition id=actionscript class=flex.data.adapters.ASObjectAdapter default=true/ adapter-definition id=java-dao class=flex.data.adapters.JavaAdapter/ /adapters default-channels channel ref=my-rtmp/ /default-channels destination id=SIM_USER_REPORTSJava adapter ref=java-dao/ properties use-transactionstrue/use-transactions sourcecom.db.storage.dao.SIM_USER_REPORTSAssembler/source scopeapplication/scope cache-itemsfalse/cache-items metadata identity property=REPORT_ID/ /metadata network session-timeout0/session-timeout paging enabled=false pageSize=5/ throttle-inbound max-frequency=500 policy=ERROR/ throttle-outbound max-frequency=500 policy=REPLACE/ /network /properties /destination destination id=SIM_USER_REPORT_PAGESJava adapter ref=java-dao/ properties use-transactionstrue/use-transactions sourcecom.db.storage.dao.SIM_USER_REPORT_PAGESAssembler/source scopeapplication/scope cache-itemsfalse/cache-items metadata identity property=REPORT_ID/ /metadata network session-timeout0/session-timeout paging enabled=false pageSize=5/ throttle-inbound max-frequency=500 policy=ERROR/ throttle-outbound max-frequency=500 policy=REPLACE/ /network /properties /destination /service
[flexcoders] Components in a TileList?
Hi, I'm pretty sure this is possible - but I can't get it working so wondered if anyone had an example of how I could do this: I have a TileList and on this TileList I'd like to show a number of Flex Components (most likely based on Tile I guess?). I've tried defining the TileList with a dataprovider ArrayCollection then creating a component based on Tile, creating an actionscript instance of the Tile and then inserting it into the ArrayCollection. I suspect though, that TileList requires something a little more precise if it's going to be able to render the Tiles... I hope the above makes some kind of sense... Can anyone help? Thanks, Jamie.
[flexcoders] Migrating to J2EE LiveCycle + Cairngorm - help!
Hi, I wonder (yet again!) if someone here can help: I'm currently trying to migrate an existing application to LiveCycle DS 2.5 + Cairngorm. Here's the deal so far... The existing app is Cairngorm 2.1 based, using WebServices. I've written a basic app in a J2EE environment using LCDS to connect to our database using DataServices so now I'm happy with that, I want to migrate the proper application. My approach was going to be to get it working in a J2EE LiveCycle build then start migrating the WebService calls over to LiveCycle. So I created a LCDS J2EE app in Eclipse and moved the app into this new build area... and ran it. The app starts up fine - but then I get this error: TypeError: Error #1006: faultHandler is not a function. at com.db.storage.business::Services/__DbsoiService_fault() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractService/dispatchEvent() at mx.rpc.soap.mxml::WebService/dispatchEvent() at mx.rpc.soap::WebService/http://www.adobe.com/2006/flex/mx/internal::wsdlFaultHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc.wsdl::WSDLLoader/faultHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler() at mx.rpc::Responder/fault() at mx.rpc::AsyncRequest/fault() at DirectHTTPMessageResponder/securityErrorHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/redirectEvent() My initial instincts was this could be a problem using Cairngorm 2.1 in this environment - so I downloaded 2.2 and tried that... same error. Then 2.21 beta... same error. So maybe it's *not* Cairngorm - I'm really not sure now. Does anyone have any ideas what might be causing this problem and how I might go about resolving it? Thanks, Jamie.
[flexcoders] Re: Migrating to J2EE LiveCycle + Cairngorm - help!
Hi again! This problem is a little different from expected. Turns out the actual problem is when I use the Cairngorm 2.2 instead of 2.1 - this error appears as a result - so it looks like Cairngorm 2.2 breaks my existing codeline. Any clues?! Jamie. --- In flexcoders@yahoogroups.com, jamiebadman [EMAIL PROTECTED] wrote: Hi, I wonder (yet again!) if someone here can help: I'm currently trying to migrate an existing application to LiveCycle DS 2.5 + Cairngorm. Here's the deal so far... The existing app is Cairngorm 2.1 based, using WebServices. I've written a basic app in a J2EE environment using LCDS to connect to our database using DataServices so now I'm happy with that, I want to migrate the proper application. My approach was going to be to get it working in a J2EE LiveCycle build then start migrating the WebService calls over to LiveCycle. So I created a LCDS J2EE app in Eclipse and moved the app into this new build area... and ran it. The app starts up fine - but then I get this error: TypeError: Error #1006: faultHandler is not a function. at com.db.storage.business::Services/__DbsoiService_fault() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractService/dispatchEvent() at mx.rpc.soap.mxml::WebService/dispatchEvent() at mx.rpc.soap::WebService/http://www.adobe.com/2006/flex/mx/internal::w sdlFaultHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc.wsdl::WSDLLoader/faultHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::d ispatchRpcEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::f aultHandler() at mx.rpc::Responder/fault() at mx.rpc::AsyncRequest/fault() at DirectHTTPMessageResponder/securityErrorHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/redirectEvent() My initial instincts was this could be a problem using Cairngorm 2.1 in this environment - so I downloaded 2.2 and tried that... same error. Then 2.21 beta... same error. So maybe it's *not* Cairngorm - I'm really not sure now. Does anyone have any ideas what might be causing this problem and how I might go about resolving it? Thanks, Jamie.
[flexcoders] Re: Setting ByteArray to a specific string value ?
Thanks for the info. Does this mean that until the hotfix is released, there's no way I can call this webservice from Flex? Unfortunately time constraints on this mean I need to find a way to do this asap so waiting for a fix won't be an option. Don't suppose this fix is already in Flash 9 is it ? I could possibly create a function in Flash for the call to the webservice then embed the Flash in Flex and call the Flash function from the Flex... would that work ?! BTW - an earlier post suggested I try writeUTFBytes - unfortunately it doesn't seem to work. Here's what happens... My string in Flex, for example, might be 'FRED'... so I do this: var bAryObj:ByteArray = new ByteArray(); var password:String = FRED; bAryObj.writeUTFBytes(password); If I look in bAryObj I can see it is 4 bytes in size. So I then call the webservice and look at the packet sent to it via Ethereal which shows me this: ns0:password xmlns:ns0=http://xxx.yyy.com; R1JFRA== /ns0:password And then of course the service fails with invalid username/password. So what is happening is, the bAryObj is being 64-bit encoded before it gets sent to the service. Normally this would be fine - but unfortunately in this case, I do not want the encoding to take place - because the string I have is already encoded. I thought maybe I could decode it then pass THAT value across so it then gets encoded back to the original but unfortunately the decoded version does not seem to be a string at all; it's a true binary array. Any ideas ? Jamie. --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: The new WebService implementation due out soon in Flex 2.0.1 Hotfix 2 (developed during the LCDS 2.5 timeframe) should fix this problem. FWIW, there is a Base64Encoder in rpc.swc that is not yet documented (but will be in the next version of Flex). Here's how you can use it now: import mx.utils.Base64Encoder; // ... var encoder:Base64Encoder = new Base64Encoder(); encoder.encode(myPassword); var encodedPassword:String = encoder.drain(); From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jamiebadman Sent: Friday, May 04, 2007 6:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Setting ByteArray to a specific string value ? Ok, I'm not even sure if the topic is right... here's what I'm trying to do... I need to call a webservice which has as a parameter a base 64 binary field. This needs to contain a password field in an encrypted (string) form. This has been provided to me as a string and it is this exact value I need to send to the webservice. So I tried first sending it as a string but when I run ethereal (which shows me what's actually being sent to the webservice) I see that no data is being sent for the password. So I tried using ByteArray instead - and this shows data being sent - but not the data I tried to store in the ByteArray... I tried storing the string into the ByteArray using writeUTF, writeMultiByte, looping through the string and storing each char code in each ByteArray element... no luck as yet - the value of the ByteArray being sent to the Service always seems to have a value different from the value I'm trying to set it to! I'm certain this is a case of pure ignorance on my part - does anyone both understand what I'm trying to do and also understand why it's not right ?! If so... help Thanks, Jamie.
[flexcoders] Setting ByteArray to a specific string value ?
Ok, I'm not even sure if the topic is right... here's what I'm trying to do... I need to call a webservice which has as a parameter a base 64 binary field. This needs to contain a password field in an encrypted (string) form. This has been provided to me as a string and it is this exact value I need to send to the webservice. So I tried first sending it as a string but when I run ethereal (which shows me what's actually being sent to the webservice) I see that no data is being sent for the password. So I tried using ByteArray instead - and this shows data being sent - but not the data I tried to store in the ByteArray... I tried storing the string into the ByteArray using writeUTF, writeMultiByte, looping through the string and storing each char code in each ByteArray element... no luck as yet - the value of the ByteArray being sent to the Service always seems to have a value different from the value I'm trying to set it to! I'm certain this is a case of pure ignorance on my part - does anyone both understand what I'm trying to do and also understand why it's not right ?! If so... help Thanks, Jamie.
[flexcoders] Re: Checkbox in DataGrid cell won't turn invisible!
Hi Alex, I think that's what I'm doing already with the Component tag ? Or is this something different ? Regards, Jamie. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I'm not sure DG allows invisible renderers. We flip visible as part of recycling renderers. Wrap in a UIComponent and see if that helps. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jamiebadman Sent: Tuesday, April 03, 2007 1:25 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Checkbox in DataGrid cell won't turn invisible! I'll try it tomorrow in FB 2.0 - though that won't help me 'cos the project requires 2.0.1 unfortunately. Thanks for the info though. If it turns out to be definitely a bug in Flex 2.0.1 then I'll report it (somehow! anyone know how ?!). I guess I'll have to figure out a different metaphor for now. Shame. Jamie. --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Ben Densmore bsdensmore@ wrote: Hi Jamie, I believe this is a bug in 2.0.1. I have run into the same issue with trying to set a datagrid column to visible=false. It seems to be ignored. Can you try and build your project in 2.0 and see if the issue still occurs? Ben - Original Message From: jamiebadman jamie.badman@ To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Sent: Tuesday, April 3, 2007 12:18:27 PM Subject: [flexcoders] Checkbox in DataGrid cell won't turn invisible! Can someone help please ? In the following itemRenderer code for a dataGridColumn, I'm trying to have the checkbox not show - but it seems that despite having 'visible=false ' or even 'includeInLayout= false' it still shows up! In reality, of course, I have a function defining whether or not I show the checkbox but to illustrate the problem I'm having I think the following is as basic an example as I can get: mx:DataGridColumn headerText= dataField=@ itemSelected mx:itemRenderer mx:Component mx:CheckBox visible=false / /mx:Component /mx:itemRenderer /mx:DataGridColumn As you can see, checkbox is forced to false always - but this is totally ignored and the checkbox shows up on all rows! Does anyone know why this happens - and how I can resolve it ? Thanks, Jamie. !-- #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- trans form: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;pa dding-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-hei ght:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o {font-size:0;} .MsoNormal { margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} .replbq {margin:4;} --
[flexcoders] Checkbox in DataGrid cell won't turn invisible!
Can someone help please ? In the following itemRenderer code for a dataGridColumn, I'm trying to have the checkbox not show - but it seems that despite having 'visible=false' or even 'includeInLayout=false' it still shows up! In reality, of course, I have a function defining whether or not I show the checkbox but to illustrate the problem I'm having I think the following is as basic an example as I can get: mx:DataGridColumn headerText= dataField=@itemSelected mx:itemRenderer mx:Component mx:CheckBox visible=false/ /mx:Component /mx:itemRenderer /mx:DataGridColumn As you can see, checkbox is forced to false always - but this is totally ignored and the checkbox shows up on all rows! Does anyone know why this happens - and how I can resolve it ? Thanks, Jamie.
[flexcoders] Re: Checkbox in DataGrid cell won't turn invisible!
I'll try it tomorrow in FB 2.0 - though that won't help me 'cos the project requires 2.0.1 unfortunately. Thanks for the info though. If it turns out to be definitely a bug in Flex 2.0.1 then I'll report it (somehow! anyone know how ?!). I guess I'll have to figure out a different metaphor for now. Shame. Jamie. --- In flexcoders@yahoogroups.com, Ben Densmore [EMAIL PROTECTED] wrote: Hi Jamie, I believe this is a bug in 2.0.1. I have run into the same issue with trying to set a datagrid column to visible=false. It seems to be ignored. Can you try and build your project in 2.0 and see if the issue still occurs? Ben - Original Message From: jamiebadman [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, April 3, 2007 12:18:27 PM Subject: [flexcoders] Checkbox in DataGrid cell won't turn invisible! Can someone help please ? In the following itemRenderer code for a dataGridColumn, I'm trying to have the checkbox not show - but it seems that despite having 'visible=false ' or even 'includeInLayout= false' it still shows up! In reality, of course, I have a function defining whether or not I show the checkbox but to illustrate the problem I'm having I think the following is as basic an example as I can get: mx:DataGridColumn headerText= dataField=@ itemSelected mx:itemRenderer mx:Component mx:CheckBox visible=false / /mx:Component /mx:itemRenderer /mx:DataGridColumn As you can see, checkbox is forced to false always - but this is totally ignored and the checkbox shows up on all rows! Does anyone know why this happens - and how I can resolve it ? Thanks, Jamie. !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a { text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc { background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o {font-size:0;} .MsoNormal { margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} .replbq {margin:4;} --
[flexcoders] Full Screen Mode bug with TextInput
Hi, I notice there's a problem with TextInput fields when in Full Screen Mode... you can't enter any text into the field. At least that's what happens here ;-) Anyone got a workaround for this at all ? Is this a problem that Adobe are aware of, or does this need to be reported ? Jamie.
[flexcoders] Re: Full Screen Mode bug with TextInput
Wow! It's a 'feature' that's transformed 'Full Screen Mode' from being really, really useful to totally, utterly useless for a lot of Flex apps! Features like that make bugs look good ;-) Thanks for the info, in any case, Troy. Jamie. --- In flexcoders@yahoogroups.com, Troy Gilbert [EMAIL PROTECTED] wrote: It's not a bug, it's a feature. A security feature. When in full- screen, the Flash Player absorbs all keyboard events for itself, thus only the mouse is useful (no keyboard input of any kind). Yeah, sucks, don't it? Oh well... Troy. On 21 Mar 2007 07:33:10 -0700, jamiebadman [EMAIL PROTECTED] wrote: Hi, I notice there's a problem with TextInput fields when in Full Screen Mode... you can't enter any text into the field. At least that's what happens here ;-) Anyone got a workaround for this at all ? Is this a problem that Adobe are aware of, or does this need to be reported ? Jamie.
[flexcoders] Coldfusion FDS App Wizards for FB 2 ?
Hi, Hopefully this is a quick'un! I've just installed CF developers edition and FDS single user SDK - I'd like to use the CF App Wizard from Eclipse - I'm *sure* it used to be an option to install it at some stage but I was offered no such option when I installed CF or FDS... any ideas ? I've looked all over for a separate download for this to no avail. Perhaps it's part of the FB2 install ? If so, is there any way I can install the plugin without having to reinstall FB2 ? Thanks, Jamie.
[flexcoders] Re: flex main-debug.html won't build...
I tried what you suggested, Troy... in fact here's what I did: (1) Deleted the project... *totally* from Flex and Disk. (2) Pulled the whole thing back from CVS (3) Uninstalled all Flash Players (4) Reinstalled the Flash 9 Debug player and... It still doesn't work :-( The app runs - but there's never a 'connection' to Flash Builder for debug. The Builder just times out waiting for the Flash Player to communicate with it. I'm getting desperate now - it's really hard to work on a large application with no debug available. Does anyone have any further ideas ? Is there a way I can confirm that it's Flash Player 9 *debug* that's running when I see a Flash App ? I can't see anything that might indicate one way or the other ? Thanks, Jamie. --- In flexcoders@yahoogroups.com, Troy Gilbert [EMAIL PROTECTED] wrote: I've run into the same issue before -- I usually chalk it up to the project settings getting confused when syncing to SVN. To fix it, I usually have to revert the project settings manually from outside of Flex Builder. Try these steps: 1) Remove your project from Flex Builder (close it, delete it -- but not its contents on disk, obviously!). 2) Close Flex Builder. 3) Go to your project's folder and delete the bin folder. 4) Reopen Flex Builder. 5) Import your project back into Flex Builder. That should clear out any caching that Flex Builder may be doing related to timestamps, etc. Really, Project -- Clean should do that, but my experience with clean operations is that they often aren't as clean as they should be, usually because they don't do it brute force, rather they simply follow their dependencies in reverse so to speak. As a result, once it gets confused by timestamps it can't get unconfused. Troy. On 3/7/07, jamiebadman [EMAIL PROTECTED] wrote: I wasn't aware of that option - but I just tried it and it still doesn't work. Thanks for the suggestion though. Regards, Jamie. --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.com, Soenke Rohde srohde@ wrote: Did you try Project-clean? Cheers, Sönke From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders% 40yahoogroups.com] On Behalf Of jamiebadman Sent: Mittwoch, 7. März 2007 14:01 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] flex main-debug.html won't build... Hi, Wonder if someone can help! My project's stopped working with Debug - I have no idea why! It no longer builds flex main-debug.html at all - though it does create a debug SWF. If I run in debug it complains of no flex main-debug.html and if I run the debug SWF directly, FlexBuilder can't see it - so I guess they're trying to communicate on different ports. I can't see any debug options or anything like that in the 'project config'... can anyone help me to get the project debuggable again please ?! Thanks, Jamie.
[flexcoders] flex main-debug.html won't build...
Hi, Wonder if someone can help! My project's stopped working with Debug - I have no idea why! It no longer builds flex main-debug.html at all - though it does create a debug SWF. If I run in debug it complains of no flex main-debug.html and if I run the debug SWF directly, FlexBuilder can't see it - so I guess they're trying to communicate on different ports. I can't see any debug options or anything like that in the 'project config'... can anyone help me to get the project debuggable again please ?! Thanks, Jamie.
[flexcoders] Re: flex main-debug.html won't build...
I wasn't aware of that option - but I just tried it and it still doesn't work. Thanks for the suggestion though. Regards, Jamie. --- In flexcoders@yahoogroups.com, Soenke Rohde [EMAIL PROTECTED] wrote: Did you try Project-clean? Cheers, Sönke From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jamiebadman Sent: Mittwoch, 7. März 2007 14:01 To: flexcoders@yahoogroups.com Subject: [flexcoders] flex main-debug.html won't build... Hi, Wonder if someone can help! My project's stopped working with Debug - I have no idea why! It no longer builds flex main-debug.html at all - though it does create a debug SWF. If I run in debug it complains of no flex main-debug.html and if I run the debug SWF directly, FlexBuilder can't see it - so I guess they're trying to communicate on different ports. I can't see any debug options or anything like that in the 'project config'... can anyone help me to get the project debuggable again please ?! Thanks, Jamie.
[flexcoders] Zooming out of a list ?!
Hi, I've been exploring the wonderful world of effects and transitions recently... there's something I would *love* to be able to do - but I suspect this is not possible. Could someone confirm or deny accordingly ?! Here's the idea... I have a horizontal list which consists of a set of charts. This list is quite small - acting really, like a row of thumbnails for the charts. If the user clicks on a chart, it appears in a nice big readable size in a popup window. Now... what I'd like to do is apply a 'zoom' style transition from the clicked list element to the popup window so that the popup appears to zoom out of the list itself. Actually, as I write this, a *possible* solution has occurred to me... (1) The user clicks on an element on the list (2) This causes a totall borderless popup window to be created, exactly over the chart in the list that the user clicked on. This would appear 'invisble' to the user since visually it should look the same. (3) A sequence (consisting of a zoom effect and move) is applied to the popup to expand it and bring it into the centre of the screen. If this is possible, I *think* it would look ok ? Question then is, how to achieve (2)... Or am I barking up the wrong tree ?! Jamie.
[flexcoders] Webservices (maybe with Cairngorm...) problem
Hi, Really weird problem here... I have two webservices defined in my Services.mxml in my cairngorm-based app. One services is a nuSoap created one. The other is a Java-based CapeClear created service. I've only just 'plugged' the nuSoap one in. Prior to that, the Java one was perfectly fine. But now, when the app executes the 'loadWSDL' prior to firing off an operation on the webservice, it gives an error. The weird thing... if I run the app in debug - even with no breakpoints - the app runs fine - no errors. Any ideas ? If it helps - the error I get is this: TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.db.optool.business::Services/__PmreService_fault() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE ventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractService/dispatchEvent() at mx.rpc.soap.mxml::WebService/dispatchEvent() at mx.rpc.soap::WebService/http://www.adobe.com/2006/flex/mx/internal::w sdlFaultHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE ventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc.soap::WSDLParser/dispatchEvent() at mx.rpc.soap::WSDLParser/::dispatchFault() at mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::h ttpFaultHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE ventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::d ispatchRpcEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::f aultHandler() at mx.rpc::Responder/fault() at mx.rpc::AsyncRequest/fault() at ::DirectHTTPMessageResponder/securityErrorHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE ventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::redirectEvent() Thanks, Jamie.
[flexcoders] Setting variables... confusion over scope, ref/val etc.
I'm getting really confused here! This is what's happening... I have an arrayCollection on the 'model' and also an arrayCollection in a local function (the result function in a 'command' module which is fired on return from a web service). So I'm using this local arrayCollection to build up the one on the model. However... model.globalAC.addItem(localAC); will add an item on the model AC but if I then do this: localAC.removeAll(); Not only does localAC get cleared down - so does the item on globalAC! So if I do this: model.globalAC.addItem(localAC); model.globalAC.addItem(localAC); I get two elements created in globalAC... again the localAC.removeAll () clears down not just localAC but both elements on the globalAC! So it seems that when I do the 'addItem', I'm actually adding a reference to localAC to globalAC. How can I not do this - I want a copy of localAC created in globalAC[]. Also, localAC is defined locally. How is it then, that another component that uses model, can see the contents of localAC via the reference in globalAC ? Isn't localAC destroyed when the local function is exited ? Again, thanks for any insight/help anyone can offer! Cheers, Jamie.
[flexcoders] Re: using soapHeaders to pass UserName and Password
Here's how I did it a way back... not using this anymore but I'm pretty sure it worked at the time ;-) import mx.rpc.soap.SOAPHeader; private function login():void{ ModelLocator.getInstance().qname = new QName(http://docs.oasis- open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext- 1.0.xsd,Security); ModelLocator.getInstance().headerSecurity = new SOAPHeader (ModelLocator.getInstance().qname, XML(String( wsse:Security + xmlns:wsse='http://docs.oasis- open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd' + xmlns:wsu='http://docs.oasis- open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd' + wsse:UsernameToken wsu:Id='+username_ti.text+' + wsse:Username+username_ti.text+/wsse:Username + wsse:Password+password_ti.text+/wsse:Password + /wsse:UsernameToken + /wsse:Security)) ); ourService.addHeader(ModelLocator.getInstance().headerSecurity); ourService.myWebService.send(); } Hope this helps. Jamie. --- In flexcoders@yahoogroups.com, pusateri02 [EMAIL PROTECTED] wrote: Hello - I'm having a hard time figuring out how to add a header in Flex. I need to pass a UserName and Password back to the Web Service in order to get back the results. In this case the result is just an XML which I then parsed and formated in Flash. Can anyone lend a hand that has done it successfully? I went over the built-in help but it isn't making a lot of sence to me. So far the only help I've gotten is don't use the WebService tag. Here's what I used in Flash 7 (and it works), maybe this will help someone help me convert what I need - // START WEB SERVICE CALL \\ function addSOAPHeaderFix() { if (mx.services.PendingCall.prototype.__encodeSOAPHeader__ != null) { return; } mx.services.PendingCall.prototype.__encodeSOAPHeader__ = mx.services.PendingCall.prototype.encodeSOAPHeader; mx.services.PendingCall.prototype.encodeSOAPHeader = function() { var theService = this.myCall.wsdlOperation.wsdl.serviceProxy.service; // here is how to do headers that apply to all calls for (var i = 0; i theService.headersForAllCalls.length; i++) { this.addHeader(theService.headersForAllCalls); } // here is how to do headers that apply to only one specific call for (var j = 0; j theService.headersForOneCall.length; j++) { this.addHeader(theService.headersForOneCall[j]); } theService.headersForOneCall = null; this.__encodeSOAPHeader__(); }; } addSOAPHeaderFix(); var service:mx.services.WebService; service = new mx.services.WebService (http://radar.net/RadarXML.asmx? WSDL); var header1 = new XML('AuthHeader xmlns=http://tempuri.org/;UserNameadmin/UserNamePasswordadmin /Password/AuthHeader'); service.headersForAllCalls = new Array(); service.headersForAllCalls.push(header1); var myObj:mx.services.PendingCall = service.PullXML(); // // IF no fault has occured then XML is received \\ myObj.onResult = function(result) { // change results to Flash XML \\ _global.theResults = new XML(result); // strip out any white space \\ theResults.firstChild.stripWhite(); //load necessary script \\ loadAndSeperate(); }; // IF a fault occures get XML \\ myObj.onFault = function(result) { _global.theResults = new XML(); theResults.ignoreWhite = true; theResults.onLoad = function(success) { loadAndSeperate(); }; // load the XML into the XML object theResults.load(PublishXML/PublishedProjects.xml); }; // END WEB SERVICE CALL \\
[flexcoders] Re: Setting variables... confusion over scope, ref/val etc.
Thanks Ralf - extremely helpful. Just looked at ObjectUtil and that looks like it'll do the job. I'm at home now though so it'll wait 'til tomorrow ;-) Cheers, Jamie. --- In flexcoders@yahoogroups.com, Ralf Bokelberg [EMAIL PROTECTED] wrote: Hi Jamie The following two simple rules might be helpful: 1. Objects and Arrays are always references (in contrast to numbers, bools and strings, which are always values) 2. Objects and Arrays exist as long, as a reference to it exits. If you want to add copies of an Object to a collection, you have to create this copy on your own because of rule 1. Maybe ObjectUtil is helpful here. If you globally store a reference to a locally created object, the object ist not destroyed, when the method is finished (rule 2) Cheers, Ralf On 1/31/07, jamiebadman [EMAIL PROTECTED] wrote: I'm getting really confused here! This is what's happening... I have an arrayCollection on the 'model' and also an arrayCollection in a local function (the result function in a 'command' module which is fired on return from a web service). So I'm using this local arrayCollection to build up the one on the model. However... model.globalAC.addItem(localAC); will add an item on the model AC but if I then do this: localAC.removeAll(); Not only does localAC get cleared down - so does the item on globalAC! So if I do this: model.globalAC.addItem(localAC); model.globalAC.addItem(localAC); I get two elements created in globalAC... again the localAC.removeAll () clears down not just localAC but both elements on the globalAC! So it seems that when I do the 'addItem', I'm actually adding a reference to localAC to globalAC. How can I not do this - I want a copy of localAC created in globalAC[]. Also, localAC is defined locally. How is it then, that another component that uses model, can see the contents of localAC via the reference in globalAC ? Isn't localAC destroyed when the local function is exited ? Again, thanks for any insight/help anyone can offer! Cheers, Jamie. -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
[flexcoders] Selecting datagrid row on rollover...
Hi, The title sums it up... basically, I'd like to select a datagrid row on rollover. There's a rollover event on the datagrid but I see no way from that, to obtain the id of the row that's currently being 'rolled over'... any ideas ? Alternatively... and here's the reason I'm trying to do the above... I have a context menu on the datagrid which provides the user with options to carry out on the currently 'rolled over' row... but when the user clicks the right mouse button, the 'rollover' color disappears. I want the rollover color to remain when the menu pops up. My only solution was to force the rollover row to be the selected row - which would solve this. If anyone can think of an alternative way to stop the loss of the rollover color then that'll be just as good ;-) Thanks, Jamie.
[flexcoders] ViewHelper is dead ? So what's the 'best practice' here... ?
Hi, I'm currently implementing an app in Cairngorm 2.1 and I've hit a kind of brick wall that wouldn't have existed in 0.99... I'm led to believe that we should no longer use ViewHelper/ViewLocator in V2.1 and instead rely more on data binding to control everything... so here's the problem... I have a treeView. In another mxml file I have a 'selection' screen which builds a SQL query up based on things the user does. This is then fired off and the results displayed in a table. Don't panic! This will all be converted to formal webservices later, so the 'inline' SQL will go away - this is just a quick prototype. But anyway... here's the thing... In mxml_1 we have the treeview. In mxml_2 we have the selection screen and a function which constructs the SQL based on the values of fields on the screen. We also have the firing of an event to send the constructed query to the db. The grid is bound to an array collection which is constructed when the command result is invoked. One of the selection criteria is the branch of the treeview the user is currently on... So when the user selects another branch on the treeview, what I need to happen is the sql construction function should be fired on mxml_2 which in turn retrieves the new SQL which is then displayed in the table. The problem I have is, how can I cause the function on mxml_2 to fire ? Once upon a time I could have simply used viewLocator to find the mxml_2ViewHelper and fired a function on there... But now... how can this work via databinding ? I already have an int defined in the AppModelLocator which represents the id of the current branch - but you can't add a 'change' listener to an int - only ArrayCollections as far as I can see. I *could* store this info in an ArrayCollection and have a listener on that - but this seems pretty clunky and I'm sure there's a much more 'correct' way to go about doing this in Cairngorm. Another way I can do this is to invoke the function directly on mxml_2, from mxml_1. I can do this because mxml_1 is in fact part of a viewStack on mxml_1. However, is this the 'correct' way ? This is how I'm currently doing it, because at least it works - but I really want to build this application as closely to the Cairngorm 'ideal' as I possibly can. The docs on Cairngorm seem to be extremely sparse and none of the examples I've seen so far illustrate how this situation should be handled. Can someone please provide me with some guidance as to what's the 'best practice' here ? Many thanks, Jamie.
[flexcoders] Custom icons on Tree - scroll corruption...
Hi, I've implemented custom icons on a tree component - which looks great until the vertical scrollbar appears and I use it... scrolling up and down seems to confuse the tre into showing the icons in the wrong places - sometimes, two icons against one tree entry. Anyone else experienced this at all ? Any idea what might be causing this and/or how I might go about fixing it ?! I imagine a lot of people are custom rendering the tree icons so there *must* be someone else out there who's already felt my pain! Thanks, Jamie.
[flexcoders] Re: crossdomain.xml - is there an alternative ?
Thanks guys - but no joy - I have crossdomain.xml (which is set to allow any domain) in the doc root on the server side and also in the same directory as the swf. I still get the security error. Regarding the LoadPolicyFile question - I tried to load it from https://serverdomain.com:9443/ - not from 'mydomain' - thinking about it, this may be kinda dumb - I'll try loading it from 'mydomain' instead. However if this works, then there's something I don't really understand... Isn't the point of the crossdomain.xml file to control whether or not the Flashplayer can access the remote domain and therefore should be hosted ON that remote domain ? If you can host it locally and therefore change it to whatever you like, then what's the point in having the control there at all ? Cheers, Jamie. --- In flexcoders@yahoogroups.com, Jeremy Rottman [EMAIL PROTECTED] wrote: Mark is correct, if you put your crossdomain.xml file inside of the document root that is the first place flex / flash look for it, if it doesn't find it inside of there, then the second place it looks is the directory that the swf is sitting inside of. So place your crossdomain.xml file in http://mydomain.com and that should work. Just a quick question for you though when you used LoadPolicyFile where you trying to load it from httpS://mydomain:9443/ or were you trying to load it from http://mydomain.com? The port number might be throwing it off. I've gotten LoadPolicyFile to work on a few things but I loaded it from a standard URL like http://mydomain.com/project/crossdomain.xml hope this helps. Good luck. Jeremy On 12/20/06, Mark McCray [EMAIL PROTECTED] wrote: Have you tried placing the crossdomain.xml file in whatever https://mydomain:9443/; maps its docroot to? Because that is where it will look I think. On Dec 20, 2006, at 11:33 AM, jamiebadman wrote: Hi, I'm trying to access https webservices from a flex app hosted under http and I'm getting security errors. The full error states that there's a security sandbox violation trying to access https://mydomain:9443/ccx/myservice So it would seem this could be resolved with a crossdomain.xml file placed at that location, right ? However the location doesn't actually exist on the server. the /ccx portion of the URL is to do with a product called 'Cape Clear' which manages the webservices and it would seem that requests that go into /ccx and beyond are somehow intercepted and dealt with by CapeClear. So there's actually not a physical location to place the crossdomain.xml that I can make out. I tried using the LoadPolicyFile approach to have it load the crossdomain.xml from a different location - but this didn't seem to do anything from Flex. I also tried 'allowInsecureDomain' but again, no effect. Does anyone have any suggestions - any ideas on how we can get this to work ? Thanks in advance, Jamie.
[flexcoders] Re: Cairngorm 2.1 - calling a webservive more than once
I'm getting some strange behaviour also. The first time I call the WebService, event.result contains the data I'd expect. The second time though, the data is found in event.result.result - is this the same as you're seeing ? Any ideas anyone ?! Also, does anyone have any examples of using the new CairngormMessage feature ? The online docs supplied with 2.1 are so sparse - there's no in-depth explanation of anything and no examples at all. Jamie. --- In flexcoders@yahoogroups.com, Robin Burrer [EMAIL PROTECTED] wrote: Hi there, This is driving me mad When I try to call a webservice more than once the webservice object returns an empty object. The result method still gets triggered but the returned data object has no properties... Everything works fine for the first time though. The same service works fine in a Cairngorm 2.0 app. Any ideas? Regards Robin
[flexcoders] crossdomain.xml - is there an alternative ?
Hi, I'm trying to access https webservices from a flex app hosted under http and I'm getting security errors. The full error states that there's a security sandbox violation trying to access https://mydomain:9443/ccx/myservice So it would seem this could be resolved with a crossdomain.xml file placed at that location, right ? However the location doesn't actually exist on the server. the /ccx portion of the URL is to do with a product called 'Cape Clear' which manages the webservices and it would seem that requests that go into /ccx and beyond are somehow intercepted and dealt with by CapeClear. So there's actually not a physical location to place the crossdomain.xml that I can make out. I tried using the LoadPolicyFile approach to have it load the crossdomain.xml from a different location - but this didn't seem to do anything from Flex. I also tried 'allowInsecureDomain' but again, no effect. Does anyone have any suggestions - any ideas on how we can get this to work ? Thanks in advance, Jamie.
[flexcoders] showRoot not working on mx:Tree ?
Hi, Can anyone explain why with this code: [Bindable] private var xmlTopicTree:XML = new XML('roottopics name=topicstopic subject=one id=33 parent_id=0/topic subject=two id=34 parent_id=0//topics/root'); mx:Tree id=topicTree dataProvider={xmlTopicTree.topics} labelField=@subject showRoot=false/mx:Tree it makes no difference if I have showRoot set to true or false ? It seems that whatever I do, the root node shows the actual 'xml' on the tree... I'm certain it's something dumb I'm doing/not-doing but can't figure out what! Anyone have any clues ?! Thanks, Jamie. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Escaping textArea HTML to pass back to WebService...
Yeah, I know I can do this but then I lose all the formatting. I want to send the data back to a DB via a webservice so that I can then retrieve it in the future. I believe that to do this I need to 'escape' some of the characters in the HTML I retrieve from the textArea. Thinking about it, it may just be the '' and '' that I need to 'escape' in which case of course it's simple. My initial instincts were that it might be more involved than that but perhaps not! Cheers, Jamie. --- In flexcoders@yahoogroups.com, Hilary Bridel [EMAIL PROTECTED] wrote: Hi Jamie, Not sure if I understand what you require, but did you know you can get a plain text representation of the html in the textarea using myTextArea.text Hilary -- On 11/5/06, jamiebadman [EMAIL PROTECTED] wrote: Hi, I need to 'escape' the html text from a textArea to pass back to a WebService. I wondered if anyone out there has already written a convenient function to accomplish this in its entirety ? If you have and you're willing to share, please let me know. If no one's done this yet (and I'm not barking up the wrong tree entirely!) then I'll share when I've done it. Anyway, let me know if you can help (or if I'm going in a wrong/stupid direction). Cheers, Jamie. -- 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 -- Hilary -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Escaping textArea HTML to pass back to WebService...
Hi, I need to 'escape' the html text from a textArea to pass back to a WebService. I wondered if anyone out there has already written a convenient function to accomplish this in its entirety ? If you have and you're willing to share, please let me know. If no one's done this yet (and I'm not barking up the wrong tree entirely!) then I'll share when I've done it. Anyway, let me know if you can help (or if I'm going in a wrong/stupid direction). Cheers, Jamie. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Disabling button on buttonBar - error...
Hi, I'm trying to disable a button on a buttonbar but I'm getting an error... here's what I have: mx:ButtonBar id=controlBar height=20 width=100% horizontalGap=0 itemClick=buttonBarClickHandler(event); mx:dataProvider mx:Array mx:StringNew Topic/mx:String mx:StringReply/mx:String mx:StringEdit/mx:String mx:StringDelete/mx:String mx:StringSave/mx:String /mx:Array /mx:dataProvider /mx:ButtonBar Then I have this: import mx.controls.Button; private function setAccess( accessLevel:String ):void { switch(accessLevel) { case core: Button(controlBar.getChildAt(1)).enabled = false; break; default: trace(Error setting button states: Out of range); } } The error I'm getting is: Call to a possibly undefined method getChildAt through a reference with static type mx.core:IUIcomponent. Does anyone know why I'm getting this error - and how I can resolve it please ?! Thanks, Jamie. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Disabling button on buttonBar - error...
Thanks Igor - but that generates a further error. In any case, I need to be able to enable/disable other buttons on the bar based on which button is clicked on etc... won't this approach only permit the enabling/disabling of the currently clicked button on the bar ? It's looking like perhaps the ButtonBar isn't the best thing to use here... this does seem like a bit of an oversight though - if you can't enable/disable buttons on the bar it's pretty awkward in a lot of instances. Anyway, thanks for taking a look - much appreciated. Jamie. --- In flexcoders@yahoogroups.com, Igor Costa [EMAIL PROTECTED] wrote: Try that. The problem it's because the buttonBar doesn't have the getChildAt properties it's only reserved to Containers. If you want to use that you have to create new a new override the mx.controls.buttonBar. But in other way you can try that. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=100% height=100% mx:Script ![CDATA[ import mx.messaging.management.ObjectName; import mx.utils.UIDUtil; import mx.core.UIComponent; import mx.events.ItemClickEvent; import mx.controls.Button; [Bindable] private function setAble (event:ItemClickEvent):void { var noAble:Object = this.enabled = false; Button(event.index = noAble.item); } ]] /mx:Script mx:ButtonBar id=controlBar height=20 width=100% horizontalGap=0 itemClick=setAble(event); mx:dataProvider mx:Array mx:String New Topic/mx:String mx:StringReply/mx:String mx:StringEdit/mx:String mx:StringDelete/mx:String mx:StringSave/mx:String /mx:Array /mx:dataProvider /mx:ButtonBar /mx:Application Regards. On 11/3/06, jamiebadman [EMAIL PROTECTED] wrote: Hi, I'm trying to disable a button on a buttonbar but I'm getting an error... here's what I have: mx:ButtonBar id=controlBar height=20 width=100% horizontalGap=0 itemClick=buttonBarClickHandler(event); mx:dataProvider mx:Array mx:StringNew Topic/mx:String mx:StringReply/mx:String mx:StringEdit/mx:String mx:StringDelete/mx:String mx:StringSave/mx:String /mx:Array /mx:dataProvider /mx:ButtonBar Then I have this: import mx.controls.Button; private function setAccess( accessLevel:String ):void { switch(accessLevel) { case core: Button(controlBar.getChildAt(1)).enabled = false; break; default: trace(Error setting button states: Out of range); } } The error I'm getting is: Call to a possibly undefined method getChildAt through a reference with static type mx.core:IUIcomponent. Does anyone know why I'm getting this error - and how I can resolve it please ?! Thanks, Jamie. -- Igor Costa www.igorcosta.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 Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Avoiding Error 1502 - timeout: How can I increase the timeout period
Hi, I have some code that needs to build a very large tree. Building this tree is causing the application to timeout with Error 1502: flex script has executed for longer than the default timeout period of 15 seconds. How can I over-ride this timeout period and allow the tree build to complete ? Thanks, Jamie. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Click Event in Item Renderer... firing a second barrel ?!
Hi, Can someone help ? I've created a custom item renderer for a tree in which I have a listener on the mouse click event. Unfortunately, though, the main app code also needs to act on the click event - I have the tree defined as: mx:Tree id=tvCompanies itemRenderer=CompanyTreeItemRenderer click=getCompanyDetail() dataProvider={myData.companies} / The event is being picked up by the renderer and the function in there is working fine - but 'getCompanyDetail' isn't firing off at all. Any ideas ? Thanks, Jamie. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Populating a tree with E4X notation
Hi, Wonder if someone can help... I'm trying to build a basic tree using E4X notation but it's going kinda weird - as you can see if you run the code below, the tree seems to show ok - but it also shows the XML over the top of the tree! I guess I'm doing something quite wrong here - could someone put me on the right track ? (code below) Thanks, Jamie. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.collections.XMLListCollection; import mx.collections.ArrayCollection; [Bindable] public var myData:XML = catalog category name=Companies / /catalog; private function buildTree():void{ myData.category.name[0]=Nat West PLC; myData.category.name[0].name[0]=Nat West Reading; } ]] /mx:Script mx:Panel mx:Tree id=prodTree dataProvider={myData} width=200 showRoot=false labelField=@name enabled=true borderStyle=inset/ mx:Button click=buildTree() label=Build/ /mx:Panel /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Flex 2, Coldfusion and the Treeview...
Hi, Hoping someone can put me on the right track... I have a database containing a hierarchical company structure (it's the DB db). I need to represent searches on the database in a Flex application as a tree hierarchy. I'm using Coldfusion with Flex. I'm trying to figure out how I can have CF return a suitable data structure back to Flex that would then be directly usable as a dataprovider for the Treeview. I can find no Coldfusion examples in the Flex help for anything like this. What's the right approach here ? Should I have coldfusion return an XML structure describing the tree or is there a more 'native' (and therefore more efficient) way of doing this ? Are there any code samples out there ? Any help would be gratefully received! Thanks, Jamie. -- 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] Flex work in the UK
Hi, I've been working with Flex application development for a good while now and am looking for a new role. Can anyone recommend either companies that might be seeking Flex app designers/developers or recruitment agencies that are well placed for such roles, in the UK ? Apologies if this post is inappropriate but it seems to be the largest group of 'FlexHeads' on the internet and I've been hanging around here for a while! Thanks in advance (or apologies if required!), Jamie. 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] Arrays, Pushing and DataProviders...
I wonder if anyone can help with the following... I'm getting some weird results... Here's the basic idea: I have an array which is used as a data provider for a grid. I have a 'copy' button which calls a function that amongst other things, does this: ModelLocator.creditItemList.push(ModelLocator.creditItemList [dgItems.selectedIndex]); (ModelLocator.creditItemList is the array, dgItems is the datagrid using the array as its data provider). Then I do an executeBindings and a draw so everything on the grid looks fine... But then I find that if I select a row on the grid and drag the mouse downwards, it 'selects' the copied row as well - in fact the grid 'selected row' seems to be totally confused. Does anyone have any thoughts on how I can resolve this ? Thanks, Jamie. Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/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] Re: Arrays, Pushing and DataProviders...
Thanks - that would explain the strange behaviour... maybe! How can I 'push' a copy rather than a reference ? Is there an easy way to do this ? Thanks, Jamie. --- In flexcoders@yahoogroups.com, Douglas Knudsen [EMAIL PROTECTED] wrote: I may be off here, but isn't ModelLocator.creditItemList.push(ModelLocator.creditItemList [dgItems.selectedIndex]); pushing a reference to your selected item on the the dataProvider? That would mean both your original selectedItem and this new 'copy' would be selected. DK On 12/12/05, jamiebadman [EMAIL PROTECTED] wrote: I wonder if anyone can help with the following... I'm getting some weird results... Here's the basic idea: I have an array which is used as a data provider for a grid. I have a 'copy' button which calls a function that amongst other things, does this: ModelLocator.creditItemList.push(ModelLocator.creditItemList [dgItems.selectedIndex]); (ModelLocator.creditItemList is the array, dgItems is the datagrid using the array as its data provider). Then I do an executeBindings and a draw so everything on the grid looks fine... But then I find that if I select a row on the grid and drag the mouse downwards, it 'selects' the copied row as well - in fact the grid 'selected row' seems to be totally confused. Does anyone have any thoughts on how I can resolve this ? Thanks, Jamie. -- 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 -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/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] Arrays sharing the same memory ?!
Hi, Wonder if someone can help ? I have the following code: var mciPrintFilter = new Array(); var wholesalePrintFilter = new Array(); if (result.length 0){ // Need to split up the returned array into two sub-arrays for filtering by customer type for (var i = 0; i ModelLocator.printCreditList.length; i++){ if (ModelLocator.printCreditList[i].ro_customer_type == 1){ mciPrintFilter.push(ModelLocator.printCreditList[i]); } else { wholesalePrintFilter.push(ModelLocator.printCreditList[i]); } } mx.core.Application.alert( MCI: + mciPrintFilter.length ); mx.core.Application.alert( MCIW: + wholesalePrintFilter.length ); mx.core.Application.alert( ALL: + ModelLocator.printCreditList.length ); } - The problem seems to be that the lengths for each of the arrays at the end is exactly the same! It seems that mciPrintFilter and wholesalePrintFilter share the same memory space or something - since I also tried commenting out that loop, inserting one element from printCreditList into mciPrintFilter and then checking the length of wholesalePrintFilter - and it increases by one! Pretty certain I'm doing something dumb ;-) Can anyone help me out please ?! Thanks, Jamie. Yahoo! Groups Sponsor ~-- Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/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] Context Menu - hiding everything ?
Is it possible to hide the 'Settings' and 'About' parts of the contextMenu ? I've added some menu items of my own for the application I'm developing but the 'Settings' and 'About' parts just don't look appropriate in the menu - I'd really like the menu to just contain elements pertinent to the application. Thanks, Jamie. Yahoo! Groups Sponsor ~-- Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/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] fileIO - just can't get it working...
Hi, I've been trying to get file upload working here for a couple of days now with absolutely no joy. I tried the example on the Macromedia site using fileIO.swf - I use their 'simpleUpload.mxml' example, putting the upload.cfm in my CF area and fileIO.swf in the same location as the MXML file. When I click 'browse'... nothing. Also, are the parameters for the methods in fileIO.swf available anywhere ? We don't yet have Flash 8 here so can't open the FLA. Not permitted to install the trial version here either - a corporate policy thing. If anyone could help, I'd much appreciate it - either with getting this thing working - or with the docs for the methods! Cheers, Jamie. 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] Re: fileIO - just can't get it working...
Doh! Got it working... User stupidity error ;-) Thanks, Jamie. --- In flexcoders@yahoogroups.com, jamiebadman [EMAIL PROTECTED] wrote: I'm using FP 8. Just not permitted to install the Flash 8 Dev environment here. Jamie. --- In flexcoders@yahoogroups.com, Carson Hager [EMAIL PROTECTED] wrote: You have to have FP8 to use this functionality. That's the problem. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jamiebadman Sent: Monday, November 14, 2005 7:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] fileIO - just can't get it working... Hi, I've been trying to get file upload working here for a couple of days now with absolutely no joy. I tried the example on the Macromedia site using fileIO.swf - I use their 'simpleUpload.mxml' example, putting the upload.cfm in my CF area and fileIO.swf in the same location as the MXML file. When I click 'browse'... nothing. Also, are the parameters for the methods in fileIO.swf available anywhere ? We don't yet have Flash 8 here so can't open the FLA. Not permitted to install the trial version here either - a corporate policy thing. If anyone could help, I'd much appreciate it - either with getting this thing working - or with the docs for the methods! Cheers, Jamie. 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 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] More print woes ;-)
Hi, I found in the archives of this group some code to print a datagrid. It doesn't work so well and this was reported in the Flex Macromedia forum: http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm? catid=346threadid=966370highlight_key=ykeyword1=print There is some new code listed there, from Mike Collins, which does a much better job - but there are still problems that I can't seem to resolve with it... I wonder if anyone here has any ideas... (1) When you use that code to print, the area outside the grid is printed in dark grey... how can this be stopped - ie have it white ?! (2) Is there any way to have the print job default to landscape ? Thanks - any help much appreciated. Jamie. Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/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] 2-way binding ?
Hi, Probably a simple question ;-) I have an object, elements of which are bound to on-screen components - for example, edit boxes. A call to the database populated the object - and I then see the data appear in the on-screen components. This is fine! But what I want to be able to do is change the data in the edit box and have the change reflected back in the object, so I can then write the change back to the database. This doesn't seem to work for me - when I examine the content of the object just before the DB write, it has the original data in it, not the changed data. I've tried setting up a 2-way bind but that didn't make any difference... This seems to me like something very fundamental and something which should easily work but I'm having no joy. Am I trying to do this the wrong way, missing something or... ?! Thanks, Jamie. P.S. Thanks to Markus Ansamaa for the 'fix' on my print problem - works an absolute treat. Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/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] Flex Pricing - a question about a Starter Kit ?
Hi, I recently stumbled across an entry on the Blog at http://www.mossyblog.com/archives/436.cfm where Lucian Beebe describes a 'Starter Kit' for Flex consisting of 4 CPU's plus Gold Support for $29,000. Just wondered if this package exists ? I Can't find any details on it on the Macromedia site... Anyone ? Regards, Jamie. Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12hj900ou/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123519782/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy/a./font ~- -- 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] Dynamically Built SWF's with Flex
I have a deep-down feeling I might be asking a stupid question here - but I was once told there are NO stupid questions - yeah, right! So here's the situation... An application I'm building contains three quite distinct 'sections': 'Invoices', 'Credits' and 'Customers'. Some users will exclusively use, for example, the 'Credits' subsystem while some may use all or just two. I determine what a user will access because each user has a set of roles associated with their login (which is managed externally, outside of Flex). Is it possible to have the SWF built by Flex to only deliver to an individual, components of the subsystems they have access to ? I can get the roles via a remoting call - but how do I have this execute server-side and subsequently control what Flex does as a result ? If this is *not* possible, could someone explain to me the advantages of Flex as a server-side system ? Thanks, Jamie. P.S. So was it stupid ? Actually no... keep that answer to yourselves ;-) -- 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: Dynamically Built SWF's with Flex
Scott: Thanks for the info; much appreciated, regardless of how scary it reads! Sounds like it's a pretty pointless thing to do, then, if the code + RSL on a per-user basis will be as large, if not larger than the code including the unwanted stuff ;-) I must admit that I'm finding it hard to understand what the reason is for Flex building Flash 'on the fly' at all. What's the point of this as opposed to simply having Flex generate a SWF which you put on the server as you would a normal Flash file ? What does Flex offer you that a static SWF wouldn't ? I know it's a pretty fundamental question that I kind of feel I should already know the answer to - but I don't ;-) Flex is great for building RIA's and I'm getting great results from it - but I don't yet understand why it's a server side tool at all... Any hints ? ;-) Cheers, Jamie. --- In flexcoders@yahoogroups.com, Scott Barnes [EMAIL PROTECTED] wrote: On 7/26/05, jamiebadman [EMAIL PROTECTED] wrote: I have a deep-down feeling I might be asking a stupid question here - but I was once told there are NO stupid questions - yeah, right! As a wise code-mentor once said to me: There aren't stupid questions, only people who are too stupid to ask. So yes, it was a stupid question (joke). If this is *not* possible, could someone explain to me the advantages of Flex as a server-side system ? Yes, but not the way you think it will probably come together. There are two main ingredients that you will probably need to research some more in order to make a better informed decision to suite your objective(s), they are mx:Loader and Runtime Shared Libraries (RSL). You can *kind* of piece together an application per user through these concepts, especially leveridging XML - the key to do this though, is much the same way you would bake a cake - you need the ingredients into the mix in order to bake it, the icing can be loaded after but thats a module that can be seperate (based on a users preference). Sorry if the analogy is weak but its after a 13hr code-off..so bare with me. What i'm trying to say is that if you plan on using a mx:Button in your application, and your first stage of the SWF doesn't have that at runtime, but want it to be used based on a remoting call's result...then you're going to have to load that in via the initial first stage - or - unless you load in a swf which embeds the symbol, and *then* you can use it (second stage) *pant*.. (i'm too afraid to re-read that hehe). In theory (i've never backed this up btw, its all based on reading and theories) you can piece together an application piece by piece, but you have to plan your staging up front and kind of pinpoint when user(s) will need components, then using the RSL concept they can bring in such components as needed. There are a few things to be aware of (ie pulled from docs) # The aggregate size of the RSL plus the Flex application will be larger than a Flex application that internalizes all of its assets. However, file size across multiple applications will be smaller. # The client must make additional HTTP requests to get the RSLs used by a Flex application. This can add latency to the application startup process. Typically, the number of RSLs is not great, so the number of requests is not great, either. # The compilation of a runtime RSL can add additional application startup time because a separate compiler instance must be created on the server. This adds latency to the first request only, since subsequent requests will request the existing RSL without the need to recompile it. Again, easist solution would be use CFMX to pre-roll your MXML...but nothing wrong with a bit of a good challenge to ear ones pay ;) hehe. Hope that helps, if you need a flex-gun-slinger to do the above for you, i'm cheap ;) hehehe.. -- Regards, Scott Barnes http://www.mossyblog.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 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] Strange scroll behaviour with DG + CheckBox
Hi, I've built a datagrid with a custom cell renderer to insert a checkbox in the first column. I'm experiencing weird behaviour with the grid scroll as a result... If I select a row as normal, everything's fine but if I actually click in the checkbox then the grid will sometimes scroll the current row as though it's trying to centre that row within the grid ?! So if I have 5 visible rows in the grid and I check the box of the bottom-most, the grid scrolls to make the checked row the third from top! Just selecting the bottom row causes no scroll at all (which is exactly what I want!). Any ideas on how I can prevent this unwanted scrolling from happening ?! The code for the cell renderer is pretty much that from page 383/384 of the 'Developing Flex Applications' manual. Thanks, Jamie. -- 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: Second retrieval not working - anyone help ?!
Thanks; that was it... doh! --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: In your getInvoiceItems method you call getSapInvoiceItemData (note lower-case SAP) but in your RemoteObject you declared it as getSAPInvoiceItemData (note upper-case). Since it's working on the network monitor I'm guessing you need to change the RemoteObject version to use lower-case. -- 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] Second retrieval not working - anyone help ?!
Hi, I wonder if someone has any ideas on this... I've attached the code at the end. Basically I have two grids, each attached to a data provider. The first grid shows a list of invoices then when a row is clicked on, a call to retrieve invoice line items is issued. These items are to be displayed in the second grid. However, it doesn't quite work out that way! The top grid gets populated with invoices, no problem. Then when I click on one of them, I can see in the network monitor that the call to Coldfusion is issued correctly and with the parameters I'd expect. I then get an 'onResult' from the RemoteObject in the network monitor and I can see that all the expected data has been returned... But the second grid does NOT get populated with this data AND the 'onResult' function - getSAPInvoiceItemDataResult() - does not get called! It seems everyone is working correctly right up to the point the data's sent back for the items then it hits a wall! I've pored over this for a good time now and have run out of ideas (not that I had too many to begin with!). Have I missed something obvious ? Anyone have any ideas why it might be behaving this way ? Any help is gratefully received! Thanks, Jamie. The code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* xmlns:local=localComponents.* xmlns:manageCredits=appScreens.credits.manageCredits.* xmlns:importCredits=appScreens.credits.importCredits.* initialize=searchInvoices() height=650 width=1000 themeColor=#78CDD7 mx:RemoteObject id=creditMethods endpoint=http://localhost:8501/flashservices/gateway; source=alchemy.coldfusion.creditMethods fault=doFault(event) showBusyCursor=true mx:method name=getSAPInvoiceData result=getSAPInvoiceDataResult() fault=doFault(event) / mx:method name=getSAPInvoiceItemData result=getSAPInvoiceItemDataResult() fault=doFault(event) / /mx:RemoteObject mx:Array id=invoiceList {creditMethods.getSAPInvoiceData.result}/mx:Array mx:Array id=invoiceItemList {creditMethods.getSAPInvoiceItemData.result}/mx:Array mx:Script function doFault(event:Object):Void { parentDocument.alert(Error invoking CFC: + event.fault.faultstring); } function cancelPopUp() { doLater(this, deletePopUp); } function closePopUp() { doLater(this, deletePopUp); } function searchInvoices(){ creditMethods.getSAPInvoiceData( 2100, 'GBT610', '', '', '', 21525217 ); } function getInvoiceItems( event ){ // Row clicked - so retrieve the items for this invoice... var currentIndex = 0; currentIndex = dgInvoiceList.selectedIndex; creditMethods.getSapInvoiceItemData( 2100, 'GBT610', '21525217' ); } function getSAPInvoiceDataResult(){ trace('received the invoices'); } function getSAPInvoiceItemDataResult(){ trace('received items'); trace('length of items '
[flexcoders] Horizontal Form ?
Hi, Is it possible to create a Form so that the items are displayed horizontally across the page rather than vertically ? Thanks, Jamie. -- 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] Refresh grid after bound data changes...
Hi, I have a datagrid (dgHeader) bound to a dataprovider returned from a DB (headerList). Also on screen is a textInput box, which is bound inward to a column on the datagrid and the column on the datagrid is bound to the textInput. So what happens is this: Data retrieved and appears in the grid. You select a row on the grid and the textInput field is populated as expected. You change the textInput field and the cell on the selected row on the grid does NOT change... until you click on the row on the grid - when you do this, the data is refreshed and all is fine... My question is - how can I cause the cell to show the updated value from the textInput component without having to click the row on the grid ? Thanks, Jamie. 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] Application background gradient
Hi, Can someone tell me - when I build a Flex app, the background around the application has a dark-grey to light-grey gradient. How can I alter this ? There's a property on the application to set the background and it over-rides the gradient - but there's no apparent way to replace the existing gradient with another gradient - just another solid colour. Any ideas ? Cheers, Jamie. 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] Setting a RadioButton from data...
Hi, I feel as though this should be obvious but I can't see it! I have a RadioButtonGroup called 'channel'. In 'channel' I have two RadioButtons - one which has a data value of 'Direct' and the other 'Indirect'. The datasource I'm using contains a field 'channel_code'. When a row in the grid associated with my datasource changes, I want to set the approproate RadioButton in the 'channel' group according to whatever the new value of 'channel_code' is. I can see I can obviously fire an AS function on rowChange to figure out which RadioButton to set - but this seems extremely clunky and I'm hoping there's a more elegant approach - perhaps using Binding ??? Anyone offer any advice on this ? Thanks, Jamie. 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: Fade effect just showing end state ?
Thanks - taking the quotes away did the trick. Regards, Jamie. --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 6/13/05, jamiebadman [EMAIL PROTECTED] wrote: However, when I actually run the code, there seems to be no actual fade effect taking place - the object just moves directly to Alpha 30 on fadeOutEffect and back to 100 on fadeInEffect. There's no actual gradual fading at all. Try increasing the duration and see if that helps. Also, try removing those quotes around the values for alphaFrom and alphaTo (set them as numbers, not string). 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] Remote Object Busy Cursor after Popup closed...
Hi, First... thanks for all the help that's been offered to me from you guys in reponse to my (mostly) stupid questions over the past couple of weeks - it's MUCH appreciated. Ok... now for another possibly stupid question ;-) I have the 'showBusyCursor' set to 'true' on all my RemoteObject definitions. It seems to work ok except... When I *close* a popup window, the busy cursor appears, despite there being no obvious call to any RemoteObject being made. It stays in this state. Does anyone have any idea what might be causing this ? And if so, what should I do to avoid this ? Or failing that, is there a way I can simply toggle the state of the BusyCursor ? Thanks in advance! Jamie. 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] Fade effect just showing end state ?
Hi, I've coded a couple of AS functions which I intended to use to fade the component they're within, in and out. I've listed the functions below... However, when I actually run the code, there seems to be no actual fade effect taking place - the object just moves directly to Alpha 30 on fadeOutEffect and back to 100 on fadeInEffect. There's no actual gradual fading at all. I guess I'm doing something wrong! Any ideas ?! Thanks, Jamie. function fadeOutEffect(){ var fadeOut = new mx.effects.Fade(this); fadeOut.alphaFrom = 100; fadeOut.alphaTo = 30; //fadeOut.suspendBackgroundProcessing = true; fadeOut.duration = 1000; fadeOut.playEffect(); } function fadeInEffect(){ var fadeIn = new mx.effects.Fade(this); fadeIn.alphaFrom = 30; fadeIn.alphaTo = 100; //fadeOut.suspendBackgroundProcessing = true; fadeIn.duration = 1000; fadeIn.playEffect(); } 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] popup in subdirectory ?
Hi, I think this is probably a very basic question - but I'm really having trouble figuring this out - wonder if someone here can explain... Basically I've just restructured my project; it started off as a 'demo' and now it's outgrowing that and I needed to structure it a little better so... I now have it broken down in to a logical directory structure... And it all works except the popups! In this specific case, the popup screen is in a directory called... 'popups' under the directory in which the current .mxml resides. The AS script *was*: var popupScreen:TitleWindow = TitleWindow( PopUpManager.createPopUp( this, ManageCreditItems, true, {title: 'Credit Note Items', closeButton: false, parentComponent: this.itemData}, false) ); The 'ManageCreditItems.mxml' *used* to be at the same directory level as this calling code - and it all worked fine. Now it's in './popup/ManageCreditItems.mxml' and it won't work anymore! How do I qualify the reference to the popup in order for it to work ? Thanks, Jamie. 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: Forms in TabNavigator
Well this is what I'm doing: At app level: mx:ViewStack id=screenStack width=100% height=100% !-- The viewstack contains all screens within the application -- local:InitialScreen xmlns:local=* id=scInitialScreen / local:ManageCredits xmlns:local=* id=scManageCredits /` local:ImportCredits xmlns:local=* id=scImportCredits/ /mx:ViewStack ManageCredits contains a canvas. On this is a tab navigator: mx:TabNavigator vScrollPolicy=off hScrollPolicy=off themeColor=#78CDD7 local:ManageCreditsCustomerTabpage id=customer_details height=295 width=778 label=Customer Details/ ManageCreditsCustomerTabpage contains a form: ?xml version=1.0 encoding=utf-8? mx:Form xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns:local=localComponents.* mx:FormHeading label=customer_details/ mx:FormItem id=sap_id_item label=SAP Cust No: required=true local:RawTextInput id=sap_id toolTip=Unique SAP Customer Number (SAP ID)/ /mx:FormItem mx:FormItem id=contact_details_item label=Contact Details: required=false local:RawTextInput id=contact_details width=271 toolTip=Contact within Company/ /mx:FormItem mx:FormItem id=customer_name_item label=Customer Name: required=false local:RawTextInput id=customer_name width=271 toolTip=Name of Company/ /mx:FormItem mx:FormItem id=billing_address_item label=Billing Address: required=false local:RawTextInput id=address_line_1 width=271 / local:RawTextInput id=address_line_2 width=271 / local:RawTextInput id=address_line_3 width=271 / local:RawTextInput id=address_line_4 width=131 / local:RawTextInput id=address_line_5 width=271 / /mx:FormItem mx:FormItem id=region_item label=Region: required=false local:enhancedComboBox id=region dataField = code dataProvider={regionList} labelField=text width=211 / /mx:FormItem /mx:Form The error I get from Flex in the build is: 'Mixed Content Not Allowed in mx.containers.ViewStack' Without the form, it builds fine. The error is issued from the app level. Any ideas ? Thanks, Jamie. --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi Jamie, Forms should work in TabNavigator also. What problem are you facing? Can you briefly explain here? A complete sample code would help. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jamiebadman Sent: Wednesday, June 08, 2005 10:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Forms in TabNavigator Hi, I've seen that you can use Forms in the Accordion component - but I can't get anything similar working using the TabNavigator rather than the Accordion. Is this achievable ? I don't want to waste time running down the wrong track! Are forms only workable via the Accordion ? Grateful for any help, Jamie. Yahoo! Groups Links 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: Passing parameter from panel to popupwindow
I'm relatively new to all this but I do happen to have done this recently and here's how: A model containing data to be passed to the popup. This exists on the parent of the popup. mx:Model id=searchData searchView{cbSearchView.selectedItem.data}/searchView searchCN{tiSearchCN.text}/searchCN searchSapCustNo{tiSapCustNo.text}/searchSapCustNo searchBatchID{tiBatchID.text}/searchBatchID /mx:Model The AS to create the popup: var popupScreen:TitleWindow = TitleWindow( PopUpManager.createPopUp ( this, creditBatchPopup, true, {title: 'Credit Batches', closeButton: false, parentComponent: this.searchData}, false) ); The popup can then refer to data in the model with parentComponent.searchView etc etc. As I say, I'm new - so there's a good chance there's a better way (if so, can someone please tell me!) - but the above does seem to work! Cheers, Jamie. --- In flexcoders@yahoogroups.com, Francesco [EMAIL PROTECTED] wrote: Hi, I've a question about passing parameter. The problem: I have a panel with a button. (popupwindowdemo.mxml) When I press the button a popup window will be opened (the definition of the window stay in another file logonwindowdemo.mxml) My question is: How can I pass a parameter (String) from the panel to the popup windows (pressing the button) ? In my case I'd like that the field userid will be automatically completed... Thanks Francesco Here is the code (from explorer) // popupwindowdemo.mxml // ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script function showWindow(modal) { var popup = mx.managers.PopUpManager.createPopUp(_root, LogonWindow, modal, {deferred: true}); } /mx:Script mx:Button label=Show Window click=showWindow(false) width=150/ mx:Button label=Show Modal Window click=showWindow(true) width=150/ /mx:Application /*/ logonwindowdemo.mxml /*/ ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml; title=Logon mx:Form mx:FormItem label=UserId required=true mx:TextInput id=userId width=150/ /mx:FormItem mx:FormItem label=Password required=true mx:TextInput id=password width=150/ /mx:FormItem mx:FormItem mx:HBox horizontalGap=30 mx:Button label=Logon/ mx:Button label=Cancel click=this.deletePopUp ()/ /mx:HBox /mx:FormItem /mx:Form /mx:TitleWindow 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: Hiding 'Null'...
--- In flexcoders@yahoogroups.com, alex_harui [EMAIL PROTECTED] wrote: The TextInput is kind enough to do a toString() on anything passed to its .text property, which is great for Number and other things, but is the root of your problem. My advice, subclass TextInput and put the null check on the text setter. -Alex Hi, At the risk of sounding stupid (well it's painfully obvious to be honest ;-) )... I've scoured for a good example of how to do this subclassing and can't find anything. There's an article on the Macromedia site called 'A Primer for Building Flex Applications' that seems to *almost* help - but the example doesn't go so far as actually explaining how the subclass is used/referenced. Can anyone point me somewhere that contains a good example of subclassing that I might be able to learn from ? Thanks, Jamie. 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] Hiding 'Null'...
Hi, I have a datagrid and some detail boxes (mostly textInput). If a column is null on the grid, it shows as an empty cell - which is what I want (looks best that way) but the data is shown as 'null' in the textInput box. Is there an easy way to prevent this from happening - and simply not showing anything at all in the textInput box when there's a null in the data ? The 'null' appears as actual text in the textInput box btw - so if I then save the data, I'll get the string 'null' saved to the DB! Thanks in advance, Jamie. 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] Flex - the general feeling about the product is...
Hey guys, A really general question... We've developed a number of enterprise-style applications here, in pure Flash MX 2004 (oh and one of them also uses Firefly a LOT!). We're considering moving to Flex - particularly to replace the Firefly-based app - but generally as the new standard development environment. We had the Macromedia guys over for a talk, demo etc and I've been toying with Flex for the past couple of weeks... but obviously my experience to this point is very superficial. So far though, I'm very impressed and I'm hoping to put my case forward for purchasing some Flex licenses shortly... but before I do, I could do with some feedback: My questions are... Generally, are people happy with the Flex environment ? Are you finding it a productive development environment and are you happy with the apps you're creating ? Are there many really nasty 'problem areas' that you're waiting for Macromedia to address in a future release that you've found impossible - or very hard - to workaround ? Compared to developing a similar app in Flash, how're you finding the development speeds ? Thanks in advance! Cheers, Jamie. 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/