[flexcoders] OlapDataGrid calculated column % of total?
... a percentage aggregator that would calculate what percentage the value is of the entire value of that particular row or column Sreenivas said... This is difficult to achieve in the current OLAP implementation because the total value for the row or column gets generated in the end where as the values of the individual cells needs to get computed before it. So it requires support for lazy evaluation. I need to do this can anyone explain lazy evaluation or point me in a direction where this can be done? TIA, Mic.
[flexcoders] OTish - UK printers with a remote printing API
Anyone care to suggest a UK based printing operation with a good print service using an API? I'm finding it quite hard to find out who's offering such services. I think smugmug is popular in the US, but may not be so popular here. Thanks, Paul
Re: [flexcoders] Re: a simple way to search within a datagrid
Great!. The filter function is really handy and its very fast aswell. The example searches every column and row of data quite fast so if you one ned to search one column it will be even faster. Paul. On Sep 19, 2009, at 9:10 PM, ew6014 wrote: ah!! . i found the error. it seems there was some problem with the priceranges datacolumn. i deleted the entire line and it works. one thing though... i have no idea how that code works. i know how to retrieve data and everything else except the search function. how exactly it is working. perhaps i need to read about filterfunction --- In flexcoders@yahoogroups.com, Paul Kukiel pkuk...@... wrote: This example might help http://tutorial7.flexcf.com/ Paul. On Sep 19, 2009, at 7:57 PM, ew6014 wrote: hi guys. ive been searching for a easy way to search within a datagrid and found an answer from flex 3 cookbook from orielly. but for some strange reason it does not work. when i click on search it doesnt do anything. can someone help me please here is the code for the application mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=initApp() mx:HTTPService id=srv url=assets/homesforsale.xml resultFormat=object result=onResult(event)/ mx:Form mx:FormItem label=Search mx:TextInput id=search_ti/ /mx:FormItem mx:FormItem mx:Button label=Search City click=searchCity()/ /mx:FormItem /mx:Form mx:DataGrid id=grid width=300 height=150 editable=true dataProvider={homesForSale} mx:columns mx:DataGridColumn headerText=Total No. dataField=total/ mx:DataGridColumn headerText=City dataField=city/ mx:DataGridColumn headerText=State dataField=state/ /mx:columns /mx:DataGrid mx:Script ![CDATA[ import mx.collections.SortField; import mx.collections.Sort; import mx.collections.IViewCursor; import mx.events.FlexEvent; import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; [Bindable] private var homesForSale:ArrayCollection; private var cursor:IViewCursor; private function initApp():void { this.srv.send(); } private function onResult(evt:ResultEvent):void { var sort:Sort = new Sort(); sort.fields = [ new SortField(city,true) ]; this.homesForSale = evt.result.data.region; this.homesForSale.sort = sort; this.homesForSale.refresh(); this.cursor = this.homesForSale.createCursor(); } private function searchCity():void { if(search_ti.text != ) { if(this.cursor.findFirst({city:search_ti.text})){ var idx:int = this.homesForSale.getItemIndex(this.cursor.current); this.grid.scrollToIndex(idx); this.grid.selectedItem = this.cursor.current; } } } ]] /mx:Script /mx:Application here is the code for the xml ?xml version=1.0 encoding=utf-8? data region cityTampa/city stateFL/state total1002/total range range170/range1 range220/range2 range310/range3 /range /region region cityBoston/city stateMA/state total2705/total range range130/range1 range260/range2 range310/range3 /range /region
[flexcoders] How to implement GroupBox component in Flex world?
Does anyone know how to implement a GroupBox(like below) in the flex? I shall appreciate it if you can provide me some source code. Thanks in advance. Title | | |label1 | |label2 | | | Someone told me I can get help from below link.But I didn't find my answer. http://code.google.com/p/jwopitz-lib/ --Michael
Re: [flexcoders] Trying to convince people to develop with Flex
While I agree that building out something would be great. That's probably not possible right now. I think they don't have enough awareness of Flex to know what it could do for them. I think if they could see a couple of slick data viz apps, they'd suddenly get it. I was hoping that a few flexcoders might have data viz apps they'd like to show off. Thanks very much. On Sep 19, 2009, at 10:32 AM, Angelo Anolin angelo_ano...@yahoo.com wrote: I believe the best way to do this is to port (convert) one of your slow, dull and hard to maintain application and show how the same could be done in Flex, albeit much better. Manager would only see the value of a development platform if they know that their business bottom line is improved, which is in this case a better application that they utilize. Angelo From: Schnurgle Schnurgle schnur...@yahoo.com To: flexcoders@yahoogroups.com Sent: Saturday, 19 September, 2009 12:39:56 Subject: [flexcoders] Trying to convince people to develop with Flex I'd like to get some people that I work with excited about developing RIAs with Flex. We currently do data visualization with fusion charts. I'd like to show folks here Flex apps that go beyond what fusion charts can do. I've googled a bunch but I've not found much. Also, any links to flex business apps that would help make the case that we could be offering amazing user experiences if we were to build with Flex would be great ammo. Thank you very much for any help with this. sh
[flexcoders] Re: Add text on an image
Hi Paul, Thanks for the link, but this is on CF and im not knowledgable on using CF. would this be possible on a flex application? THanks! --- In flexcoders@yahoogroups.com, Paul Kukiel pkuk...@... wrote: This shoudl help: http://www.bennadel.com/blog/775-Learning-ColdFusion-8-CFImage-Part-III-Watermarks-And-Transparency.htm Paul http://blog.kukiel.net On Sun, Sep 6, 2009 at 9:31 PM, kcg_21kcg...@... wrote: Hi, I want to create an application that allow users to manually add text to an image. But I don't know how. Is it possible to do this? If so, how? Thanks! :) Kaye
RE: [flexcoders] How to implement GroupBox component in Flex world?
Extend a container. Choose the one that provides the layout functionality you want. Override createChildren and add the Title label. Test with borders to be sure you don't have a z-order issue. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of slx_19801103 Sent: Sunday, September 20, 2009 8:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to implement GroupBox component in Flex world? Does anyone know how to implement a GroupBox(like below) in the flex? I shall appreciate it if you can provide me some source code. Thanks in advance. Title | | | label1 | | label2 | | | Someone told me I can get help from below link.But I didn't find my answer. http://code. http://code.google.com/p/jwopitz-lib/ google.com/p/jwopitz-lib/ --Michael
[flexcoders] Re: Creating Resize Handles
I sounds like you might be having issues with where you added the TransformTool as a child. Try adding the TransformTool as a child of the application and see if that helps. If you are still having problems you could email me or post your code and then I could take look at it. Here is an example of how I used it this tool before. All of this code was right in a script tag on the main mxml file. private var transformTool:TransformTool; private function imageClickHandler(event:MouseEvent):void if (!transformTool) { transformTool = new TransformTool(); addChild(transformTool); } transformTool.target = event.currentTarget as DisplayObject; } --- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote: Robert, have you used the transformtool in a flex app before? When I try to add it via tool.target = mySprite and myOtherSprite.addChild(tool). It puts the tool on screen but its so small I can barely see it. If I try to set the w or h it stays the same size; tiny. Also when the tool is put on screen its about 200 pixels away on the x-axis. Jason --- In flexcoders@yahoogroups.com, ag_rcuren robert.vancuren.jr@ wrote: ObjectHandles is ok but they do not handle rotation very well. Have a look at this http://www.sephiroth.it/weblog/archives/2007/07/transformtool_modification.php --- In flexcoders@yahoogroups.com, Fotis Chatzinikos fotis.chatzinikos@ wrote: Google ObjectHandles ;-) On Thu, Sep 17, 2009 at 5:06 PM, flexaustin flexaustin@ wrote: Anyone ever create or see a tut/example on how to create resize/skew handles on Sprites or UIComponents? Say you click a Sprite on screen, the sprite would should show a bounding box, similar to Flash, Photoshop, Visio or Firefox, which allow you to make the clicked Sprite wider, thinner, skew, or rotate the Sprite. TIA, J -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation Fotis.Chatzinikos@,
[flexcoders] Re: Creating Resize Handles
I should have done a debug and walked in through, but my issue has to do something with the creation of the tool and when its created in the marks layer of Flare. I had to do the following: tool = new TransformTool(); tool.moveEnabled = false; tool.skewEnabled = false; tool.registrationEnabled = false; tool.constrainScale = true; tool.maxScaleX = 2; tool.maxScaleY = 2; //tool.scaleWithRegistration = scale_registration.selected; _vis.marks.addChild(tool); tool.x = _targ.x; tool.y = _targ.y; tool.target = _targ; My issue before was I was assigning the target of the tool then doing addChild. Which even though I had a reference to targ to pass in I guess it makes sense that the tool needs to be added the marks layer before assigning a target so as to understand its boundaries and what not. So problem solved. Thanks for your help, though. J --- In flexcoders@yahoogroups.com, ag_rcuren robert.vancuren...@... wrote: I sounds like you might be having issues with where you added the TransformTool as a child. Try adding the TransformTool as a child of the application and see if that helps. If you are still having problems you could email me or post your code and then I could take look at it. Here is an example of how I used it this tool before. All of this code was right in a script tag on the main mxml file. private var transformTool:TransformTool; private function imageClickHandler(event:MouseEvent):void if (!transformTool) { transformTool = new TransformTool(); addChild(transformTool); } transformTool.target = event.currentTarget as DisplayObject; } --- In flexcoders@yahoogroups.com, flexaustin flexaustin@ wrote: Robert, have you used the transformtool in a flex app before? When I try to add it via tool.target = mySprite and myOtherSprite.addChild(tool). It puts the tool on screen but its so small I can barely see it. If I try to set the w or h it stays the same size; tiny. Also when the tool is put on screen its about 200 pixels away on the x-axis. Jason --- In flexcoders@yahoogroups.com, ag_rcuren robert.vancuren.jr@ wrote: ObjectHandles is ok but they do not handle rotation very well. Have a look at this http://www.sephiroth.it/weblog/archives/2007/07/transformtool_modification.php --- In flexcoders@yahoogroups.com, Fotis Chatzinikos fotis.chatzinikos@ wrote: Google ObjectHandles ;-) On Thu, Sep 17, 2009 at 5:06 PM, flexaustin flexaustin@ wrote: Anyone ever create or see a tut/example on how to create resize/skew handles on Sprites or UIComponents? Say you click a Sprite on screen, the sprite would should show a bounding box, similar to Flash, Photoshop, Visio or Firefox, which allow you to make the clicked Sprite wider, thinner, skew, or rotate the Sprite. TIA, J -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation Fotis.Chatzinikos@,
[flexcoders] Re: How to implement GroupBox component in Flex world?
The shape of groupbox like this. Title | | |label1| |label2| || --- In flexcoders@yahoogroups.com, slx_19801103 slx_19801...@... wrote: Does anyone know how to implement a GroupBox(like below) in the flex? I shall appreciate it if you can provide me some source code. Thanks in advance. Title | | |label1| |label2| || Someone told me I can get help from below link.But I didn't find my answer. http://code.google.com/p/jwopitz-lib/ --Michael
Re: [flexcoders] Highlighting a day in DateChooser
Hi Angelo, Thanks for the reply, but I just want the date to be highlighted, not selected. I want to be able to highlight the date from the first picker and allow the user to pick any other date, but have the first one highlighted as it may (or may not depending on business rules) effect their choice in the second one. Cheers, David On Sun, Sep 20, 2009 at 4:47 AM, Angelo Anolin angelo_ano...@yahoo.comwrote: Datefield2.selectedDate = Datefield1.selectedDate -- *From:* David Harris djohnsma...@gmail.com *To:* flexcoders@yahoogroups.com *Sent:* Saturday, 19 September, 2009 10:50:51 *Subject:* [flexcoders] Highlighting a day in DateChooser Hi Everyone, Is it possible with a DateField/DateChoos er to highlight a specific day? EG: I have 2 DateChoosers. The user selectes a date in the first one, and then when they open the second one I would like the selected date from the first one to be highlighted. I see there is the ability to disable specific days, but I don't want to disable anything, just highlight it I might be missing something in the docs, but I can't see what I am looking for! Cheers!
[flexcoders] Re: SystemManager????
Shouldn't systemManager send out a MouseEvent.click on everything clicked in the application? It seems as though if the item clicked is a swf or embedded icon (even if included in a sprite) they don't seem to register with the systemManager? Or the systemManager doesn't send out a MouseEvent.click. Is their a way to make the systemManager send the click 100% of the time? --- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote: I am building app that is something similar to photoshop or illustrator where you have several tools to choose. I want to use a State Object pattern, where selecting a tool changes the state of the app. I then want to have the mouse throw different events depending on, which tool is selected rather than have state objects in my listeners or having conditionals or table look up in my listeners. I am using custom mouse pointers for tools so what I am wondering is, is it possible for my custom systemmanager or cursormanager to tell when a click, doubleclick, or drag happens? If so then I was thinking the systemmanager or cursormanager could know what tool is selected, thus what mode/state the app is in, and send out different events for say mouse clicks. So: fingermouse's click = open thing clicked zoommouse's click = zoom in 25% mousepointer click = select to transform pointer with a + on it = add a new thing to stage ponter with a - on it = sub a new thing from stage TIA, J
[flexcoders] Graphics Layer
Is there a way in Flex 3 or Flex 4 to draw items to a sprite graphics layer without the manual lineTo and curveTo way. I know with mxml you can do this easily with I think its SVG, but can this be done with actionscript and the graphic draw methods? Is there a way to put in the SVG coord in actionscript? I have swf icons I am embedding into my project, but would be better if I could draw them in my sprites. TIA, J
RE: [flexcoders] Re: SystemManager????
If you click on content loaded from another domain, you don't get a click event. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of flexaustin Sent: Sunday, September 20, 2009 6:10 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: SystemManager Shouldn't systemManager send out a MouseEvent.click on everything clicked in the application? It seems as though if the item clicked is a swf or embedded icon (even if included in a sprite) they don't seem to register with the systemManager? Or the systemManager doesn't send out a MouseEvent.click. Is their a way to make the systemManager send the click 100% of the time? --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, flexaustin flexaus...@... wrote: I am building app that is something similar to photoshop or illustrator where you have several tools to choose. I want to use a State Object pattern, where selecting a tool changes the state of the app. I then want to have the mouse throw different events depending on, which tool is selected rather than have state objects in my listeners or having conditionals or table look up in my listeners. I am using custom mouse pointers for tools so what I am wondering is, is it possible for my custom systemmanager or cursormanager to tell when a click, doubleclick, or drag happens? If so then I was thinking the systemmanager or cursormanager could know what tool is selected, thus what mode/state the app is in, and send out different events for say mouse clicks. So: fingermouse's click = open thing clicked zoommouse's click = zoom in 25% mousepointer click = select to transform pointer with a + on it = add a new thing to stage ponter with a - on it = sub a new thing from stage TIA, J
[flexcoders] Re: Declaring New Variable from XML Source
Thanks - new issue. Getting error 1131: Classes must not be nested The var testInfo loads fine. But when I try to filter down - using private var jane:XMLList = testData.(country == India); - I get nothing. I've played around with argument order but with no success. Any ideas? // Structure of XML file APAC.xml // data Location regrank6/regrank countryChina/country regionAsia/region reg08184/reg08 reg09584/reg09 regp2.8/regp regn200/regn ex08767/ex08 ex09100/ex09 exp3.9/exp exn263/exn /Location /data // My MXML File // ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=testData.send() mx:HTTPService url=assets/APAC.xml id=testData result=xmlHandler(event) resultFormat=e4x/ mx:Script ![CDATA[ [Bindable] public var testInfo:XMLList; private var jane:XMLList = testData.(country == India); --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: Use an e4x expression. They all return XMLList, so watch for that if you need to assign a result to an XML var. If you are sure there is only one node in the result, do var xmlResult:XML = xmllistResult[0]; See the documentation for e4x syntax and usage, post back here if you have a specific question or problem. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of AJC2357 Sent: Thursday, September 17, 2009 11:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Declaring New Variable from XML Source Hello, I have a large XML file that I use with Flex to graphically display specific data. For example, it is easy to create a graph that shows GDP by country. (which creates a graph for all countries in XML file) But how can narrow or filter these searches? I want to have the graph show only the countries that are in region x for instance. Can anyone show me how to create a new variable that is derived from a subset of the XML file? I am new to actionscript but the logic would seem to be: create new variable from XML source based on a given criteria (i.e., region == Asia) Any help?
RE: [flexcoders] x and y localToGlobal
If tool and targ have the same parent, then a simple assignment of the x,y should be good enough, assuming that both are drawing into positive coordinates only. If you've got something drawing into negative coordinates because it is centering and rotation, then you need more calculations. If their parents are different, and it sound like they are, then if targ is from a mouseEvent, the mouseEvent's stageX/Y should be good enough to back calculate using globalToLocal. Note that for a mouseEvent, the event.target could be a sub-component and thus not have the same parent as the other. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of flexaustin Sent: Saturday, September 19, 2009 2:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] x and y localToGlobal Can anyone tell me if any of these are correct? I am using Senocular TransformTool (e.g. http://www.sephiroth.it/weblog/archives/2007/07/transformtool_modification.php) I have a Flex that has the following layers: Flex Project Layers (top to bottom): -Application --main sprite ---visualization sprite holder layer - where TARG and TOOL are located. What I need is for TOOL's X Y to be TARG's X Y at all times. So if I drag TARG then TOOL needs to stay with it in the same spot (And no I can't put TOOL inside TARG). So I tried the following which doesn't work: tool.x = targ.x; (in debug it shows this before assignment tool.x=289 and targ.x=0) tool.y = targ.y; (in debug it shows this before assignment tool.y=200 and targ.y=0) So, I tried each of the following (substituting in each var), but none of which works. tool.x = gtlpt.x; tool.y = gtlpt.y; var gtlpt:Point = tool.globalToLocal( new Point( targ.x, targ.y ) ); var ltgpt:Point = tool.localToGlobal( new Point( targ.x, targ.y ) ); var toolgtlpt:Point = targ.globalToLocal( new Point( tool.x, tool.y ) ); var toolltgpt:Point = targ.localToGlobal( new Point( tool.x, tool.y ) ); var mgtlpt:Point = _vis.marks.globalToLocal( new Point( tool.x, tool.y ) ); var mltgpt:Point = _vis.marks.localToGlobal( new Point( tool.x, tool.y ) ); var mmgtlpt:Point = _vis.marks.globalToLocal( new Point( targ.x, targ.y ) ); var mmltgpt:Point = _vis.marks.localToGlobal( new Point( targ.x, targ.y ) );
RE: [flexcoders] Graphics Layer
If you have a SWF with symbols, unless you need to control scaling or use styles or run script, it should be more efficient to just embed the symbol. The amount of code required to make the same graphics calls is usually larger. Otherwise, check the whole FXG-SWF workflow in Flex 4. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of flexaustin Sent: Sunday, September 20, 2009 9:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Graphics Layer Is there a way in Flex 3 or Flex 4 to draw items to a sprite graphics layer without the manual lineTo and curveTo way. I know with mxml you can do this easily with I think its SVG, but can this be done with actionscript and the graphic draw methods? Is there a way to put in the SVG coord in actionscript? I have swf icons I am embedding into my project, but would be better if I could draw them in my sprites. TIA, J
[flexcoders] Flash builder 4 Slower Compilation
Hello, I'm trying to use FB4 as main ide. Ok, I know it's beta! But everything that I want works. The problem is that the compilation time on the same workspace with a lot of big java and flex projects is much longer than the time when I'm using FB3. It's really weird but it's true. I have both well configured for my projects for months now. Every time I try again to use Fb4 I quit after some hours because of that. Anybody had this problem too and found a workaround? Btw, I read on Jira that there's been some fixes for FB4 after the Beta 1 release. Can we get the updated version? -- Jhonny Everson