[flexcoders] Drag is cancelling Click event
I have a component that is drag enabled, and I want him to be click enabled also... Unfortunately I am not able to catch any click event (or even mouseUp)... Do you have any ideas to solve this problem ? mx:Canvas mouseDown=drag(event) mouseUp=click(event) mx:Script ![CDATA[ [Bindable] public var color:uint = Constants.DEFAULT_COLOR; private function click(e:MouseEvent):void { // do my click things } private function drag(event:MouseEvent):void { var ds:DragSource = new DragSource(); ds.addData(color, 'color'); DragManager.doDrag(this,ds,event); } ]] /mx:Script /mx:Canvas {Maz}
[flexcoders] Re: How can I loop through a Tile ?
--- In flexcoders@yahoogroups.com, Ciarán [EMAIL PROTECTED] wrote: Hi Mark, Hi Ciarán Thanks for your answer. I can see your point, so I'll try to illustrate what I'm doing and trying to achieve: In the application, I have a mx:tile id=tile1/ In a HTTPService Result Handler, I loop through the result and add a component (spreadView) to tile1. Now each component (spreadView) has a function that will add children til it (see below function pageHandler) I have clipped alot of var's etc from the code, to save some space - and it's still quite messy, so please bear with me. Again : Basicly I need to access a childObject of a childObject in a Tile - Have been looking at rawchildren, which doesn't really bring me anywhere, propably wrong usage !! Any helpers is greatly appreciated, it might (obviously) also be, that I am doint his all wrong, should I avoid using a Component, and instead build each component in AS ? Thanks for your time! Best regards, Mark private var newspread:SpreadView = null; private function pageHandler(event:ResultEvent):void { tile1.removeAllChildren(); if (event.result.action.pageset is ObjectProxy) { pages.addItem( event.result.action.pageset ) ; } else { pages = event.result.action.pageset; } for (var i:int=0;ipages.length;i++){ //trace( pages[i].left.page.pageid ); newspread = new SpreadView(); newspread.leftPageID = pages[i].left.page.pageid; newspread.rightPageID = pages[i].right.page.pageid; tile1.addChild(newspread); } } ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=init() width=100% height=100% mx:Script ![CDATA[ import mx.controls.Image; import mx.containers.Canvas; private function init():void { // Clear the canvas of any children initLeft(); initRight(); this.name = leftPageNo + + leftPageTitle +-+ rightPageNo + + rightPageTitle; } private var leftThumb:Image = null; private var rightThumb:Image = null; private var lc:Canvas = null; private var rc:Canvas = null; private function initLeft():void{ lc = new Canvas; lc.id = leftCanvas; lc.percentHeight = 100; lc.percentWidth = 50; lc.verticalScrollPolicy = off; lc.horizontalScrollPolicy = off; if (leftIsRegion) { lc.setStyle(backgroundColor, 0x00C4FF); } else { //lc.setStyle(backGroundColor, 0xFF); } mainbox.addChild(lc); leftThumb = new Image(); leftThumb.name = leftThumb; leftThumb.source = leftImgLink; leftThumb.id = leftPageNo; leftThumb.scaleX = 1; leftThumb.scaleY = 1; leftThumb.y = 10; leftThumb.toolTip = leftImgLink; lc.addChild(leftThumb); if (leftHasSwift) { leftFooter.setStyle(backgroundColor, 0x00); } else { leftFooter.setStyle(backgroundColor, 0xFF); } leftPageno.text = leftPageNo + + leftPageTitle; } private function initRight():void{ rc = new Canvas; rc.name = rightCanvas; rc.percentHeight = 100; rc.percentWidth = 50; rc.verticalScrollPolicy = off; rc.horizontalScrollPolicy = off; if (rightIsRegion) { rc.setStyle(backgroundColor, 0x00C4FF); } else { //rc.setStyle(backgroundColor, 0xFF); } mainbox.addChild(rc); rightThumb = new Image(); rightThumb.name
[flexcoders] Multi-axis chart
Hello, What is the best way to implement multi-axis line chart like this ( http://www.infosoftglobal.com/FusionCharts/PowerCharts.asp#maxisline) ? -- A vivid and creative mind characterizes you.
Re: [flexcoders] Re: Keyboard issues on VISTA
On Monday 26 Feb 2007, iko_knyphausen wrote: Ok, thanks. No the processor was around 10% max. And it seems to happen on all Vista boxes with Vista Home Premium (see my visit to COMPUSA), with the exception of one AMD laptop that I had upgraded to Vista Ultimate. Continues to run fine on any XP machine Hmm, and they were all on the same (latest) Player version ? -- Tom Chiverton Helping to assertively negotiate fine-grained market-growth at http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups 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/
Re: [flexcoders] Re: Quick Flex 2.0 questions
On Saturday 24 Feb 2007, Adam Pasztory wrote: automatically when you declare a var using that data type. I love clever little features like that. comment:PetGripe=stupid 'cross platform' IDE that doesn't run on Linux; :-) -- Tom Chiverton Helping to synergistically embrace open-source environments at http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups 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: How can I loop through a Tile ?
Just to visualize the problem : http://flex2.dk/mark/screencaps/tileproblems.jpg
Re: [flexcoders] (Simple?) Problem with TextInput component
On Monday 26 Feb 2007, Ciarán wrote: How do I get rid of it? Have you tried the padding/margin etc. CSS properties ? -- Tom Chiverton Helping to synergistically mesh interactive applications at http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups 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/
Re: [flexcoders] Flex Fullscreen Apps
On Monday 26 Feb 2007, john_69_11 wrote: though. Do I need to manually change the sized/position of all my components when changing between normal and fullscreen or am I doing If you've absolutely positioned them, yes. You'd have the same problem if someone resized the browser window. -- Tom Chiverton Helping to widespreadedly pursue next-generation bandwidth at http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/4It09A/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups 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/
Re: [flexcoders] Multi-axis chart
On Tuesday 27 Feb 2007, Mikhail Shevchuk wrote: What is the best way to implement multi-axis line chart like this ( http://www.infosoftglobal.com/FusionCharts/PowerCharts.asp#maxisline) ? The normal Flex Charting stuff supports multiple axis. -- Tom Chiverton Helping to elementarily brand fine-grained appliances at http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/kOt0.A/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups 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/
Re: [flexcoders] pie chart: group small values together
On Monday 26 Feb 2007, bruno.navert wrote: Is there some quick painless way to get this to work ? You'll need to loop over the results you get back and construct a new collection to bind the chart to that has the properties you want. This may mean learning a bit of ActionScript. -- Tom Chiverton Helping to continuously optimize bricks-and-clicks applications at http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups 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/
RE: [flexcoders] Drag is cancelling Click event
You should use the drag events for dragging, there is an example in the help that shows how to work with dragging. _ Van: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Namens ecpmaz Verzonden: dinsdag 27 februari 2007 9:14 Aan: flexcoders@yahoogroups.com Onderwerp: [flexcoders] Drag is cancelling Click event I have a component that is drag enabled, and I want him to be click enabled also... Unfortunately I am not able to catch any click event (or even mouseUp)... Do you have any ideas to solve this problem ? mx:Canvas mouseDown=drag(event) mouseUp=click(event) mx:Script ![CDATA[ [Bindable] public var color:uint = Constants.DEFAULT_COLOR; private function click(e:MouseEvent):void { // do my click things } private function drag(event:MouseEvent):void { var ds:DragSource = new DragSource(); ds.addData(color, 'color'); DragManager.doDrag(this,ds,event); } ]] /mx:Script /mx:Canvas {Maz}
Re: [flexcoders] The complete component communication solution for Flex. ALON DP.
On Tuesday 27 Feb 2007, helihobby wrote: To solve this, I came up with the ALON Design Pattern and I wish to get some feedback. How does this strategy compare to Cairngorm's ? It looks fairly similar - things fire abstract events to a central controller. -- Tom Chiverton Helping to confidentially e-enable end-to-end market-growth at http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/0It09A/bOaOAA/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/ * 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: How can I loop through a Tile ?
Hi Ciarán Just put up a small example for you (and others) to see. Rightclick to view source: http://flex2.dk/mark/addchild/childTest.html Very simple app - 2 buttons. Add Children - will add 12 vboxes, each containing 2 images Loop Through Children - Will loop through tile1.numChildren - printing each name into the textarea. But HOW can I get hold of the names of the images (and even more, their source) I need this to be able to loop through each item, check if the source has been updated, and if so, reload the image. Thanks for your time. Mark
[flexcoders] Re:How do I prevent the user from selecting text in a text area
Make the enabled property as false add a suitable color value to the 'disabledColor' attribute.
RE: [flexcoders] Chart annotationElements based on series data
There's no obvious way to do what you're doing. The annotation element has access to the chart, so you could iterate over the series of the chart, and ask for their data. To get access to what is currently visible on screen, you could ask for their renderData, then look at the filteredCache inside of that. Of course, now you're tying your annotation element pretty tightly to the details and implementation of the individual series. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of durnelln Sent: Monday, February 26, 2007 7:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Chart annotationElements based on series data Hi all - and hopefully Ely ;-) I have a LineChart containing a LineSeries which updates automagically from an arrayCollection - works great. I have also created a simple annotationElements element which renders a horizontal line across the chart at a configured value. What I'm trying to do now is to create a more complex annotationElement which draws a nice curve across the chart based on the data point values. So this time I need to access the data values themselves to perform some calculations. How do I get hold of the lineseries data values from my annotationElement? Similarly, is there a way to retrieve only the data points that are currently visible on the chart? I've had a quick poke around the charting help files and source code but I'm only getting more confused... Thanks, Nick.
Re: [flexcoders] Creating a Video Player in Flex
You can also take this one step farther and put an HSlider and a ProgressBar inside a Canvas container (overlaying one over the other) and create a video scrubber that also displays percentage loaded. Brian On 2/26/07, Alan Rother [EMAIL PROTECTED] wrote: Awesome Thank you. I had searched the archives but didn't find this one. =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer -- Brian Dunphy
Re: [flexcoders] flash 9 alpha IDE run on mac os x intel?
No, it is not available for Intel Macs at this time. I've setup a good development environment on an Intel Mac by doing the following: - Using Flex Builder 2 (OS X) for my Actionscript 3 development environment - Using Parallels (virtualization software) to load Flash 9 w/ Actionscript 3 preview in Windows - Simply sharing folders between the two operating systems, save my FLA file within my Actionscript 3 Project directory on the OS X side, that way the classpath is setup properly. The benefit to this approach is that you have a real AS3 IDE with code completion, syntax checking, etc. To be honest, it's much quicker on an Intel-based Mac to develop in Flash 8/Flash 9 under Parallels than it is to try to use Flash 8 natively under OS X. Can't wait until Flash 9 is released as a universal binary (I think the peasants might rejoice). Hope this helps! Brian On /26/07, disasterstruckonthedayofmybirth [EMAIL PROTECTED] wrote: Hey Everyone, sorry this is on the wrong list. I can't seem to get flashcoders list to subscribe me. Is the flashcoders list still up and running? anyway, does anyone know if flash 9 alpha IDE is supported on Intel Mac? I try compiling and it tells me the java runtime enviornment failed to intiailize. Just curious if anyone has experienced this? thanks a -- Brian Dunphy
RE: [flexcoders] How to align identical CategoryAxis as HorizontalAxis and SecondHorizontalAxis
Are you trying to align the gridlines, or align the axes? The short answer is no. There's no general way to force the chart to align a horizontal and secondary horizontal axis (with the asumption, perhaps wrong, being that the reason you're using secodary axes in the first place is because the data is unrelated). If you have the same number of values in the horizontal and second horizontal axes, you could explicitly set the gutterLeft and gutterRight on the chart, which would make the two axes line up, at the expense of some auto-layout functionality. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mgrayfmr Sent: Monday, February 26, 2007 8:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to align identical CategoryAxis as HorizontalAxis and SecondHorizontalAxis Help Ely (or anyone who knows) !!! I'm having trouble with the data being displayed in a LineChart. I have same data in a horizontal and secondhorizontal category axis. I am also displaying vertical gridlines using the backgroundElements property. What is happening is that the spacing is different for the bottom and top axis. The bottom axis is fine but the top is spacing the interval differently than the bottom axis. The gridlines are aligne with the top axis interval. Basically, I end up with data in each series that don't match up because they align to two different axises. Is there a way to control how Flex sets the divlines ? I have tried creating a sub-class of Category axis, but nothing seems to be of help. I have managed to get the top axis labels to display in the correct spacing, but this does not change the actual plot points on the gridlines. Any help would be appreciated !!!
RE: [flexcoders] Re: broken: stacked AreaChart when using horizontal DateTimeAxis
The DateTimeAxis uses the built in ECMAScript Date parsing function to convert strings to dates. So if your dates are in a different format, you need to provide your own parsing function. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of munkydung Sent: Monday, February 26, 2007 10:26 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: broken: stacked AreaChart when using horizontal DateTimeAxis wow, that was totally it. thanks! I was under the impression that Flex was interpreting my date values just fine as it rendered appropriate values in my third example, but I guess we have to be explicit about it. Mike --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Mark [EMAIL PROTECTED] wrote: I was having the same problem and found from the help files I needed to make sure my dates were coming in as dates, so there's a parseFunction I needed to add, like this: mx:horizontalAxis mx:DateTimeAxis labelUnits=months dataUnits=days displayLocalTime=true parseFunction=myParseFunction / /mx:horizontalAxis //function public function myParseFunction(s:String):Date { // Get an array of Strings from the comma-separated String passed in. var a:Array = s.split(,); // Create the new Date object. var newDate:Date = new Date(a[0],a[1],a[2]); return newDate; } Hope it helps
RE: [flexcoders] FDS with Java Question: Why is it grouping requests?
When you get the fault for the first delete, you probably just need to call revertChanges - either for all changes or just that item. After any fault, all messages you commit as part of that batch get reverted - i.e. put back into the uncommitted list. When you revert them, we'll undo those changes - i.e. recreate the deleted item. This is necessary to keep the client's view of the managed state in sync with the server's view. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of billy_d_white Sent: Monday, February 26, 2007 9:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FDS with Java Question: Why is it grouping requests? Maybe Vroom or one of you other FDS experts can tell my what I'm doing wrong : I'm using Cairngorm with a Java/Spring backend. I'm using autocommit and autosync enabled and when I perform a deleteItem which I want to fail, it calls my Java assembler which attempts the deletion and fails. I customize the error message and send it back as a MessageException. So far so good. However, if I then try another deletion, the request is sent to the assembler with an array of inside the DataMessage and this array contains the previous delete request as well as the new delete request. Apparently it is trying to batch the multiple requests since the previous one failed. (These are stored in that _token_chain_ property of the request) How do I avoid this and make each deletion request atomic so it will not attempt to execute the previous (failed) request? Do I need to re-write the service call on the client to use the manual commit() call or something like that? Any
RE: [flexcoders] pie chart: group small values together
Hi Bruno. You could apply a sort to the data on the client before assigning it to the chart. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bruno.navert Sent: Monday, February 26, 2007 8:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] pie chart: group small values together I'm quite new to Flex, so please forgive me if this is a no-brainer. I have a Pie Chart control that shows a lot of wedges, and I would like it to automatically group together smaller wedges (say all those whose percentage value is lower than 1-2%) and display something like Others - x%, x being the sum of all the grouped wedges. Is there some quick painless way to get this to work ? Obviously the data comes from an external data provider, which sources the data from a database, so I don't have direct control over it (i.e. the grouping has to be done at run time) thanks, Bruno
RE: [flexcoders] Re: Custom Component Styles
Hi Graham, Isn't that similar to the example in the docs here: http://livedocs.adobe.com/flex/201/html/skinstyle_149_7.html Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of g_odds Sent: Monday, February 26, 2007 11:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Custom Component Styles It would appear the link I gave is broken. But nevermind, I have found the solution by delving through the framework source code, where the developers do it differently from what is documented in the Live Docs. The solution is to use something along the lines of: private static var stylesInitialised:Boolean = initStyles(); private static function initStyles():Boolean { var sd:CSSStyleDeclaration = StyleManager.getStyleDeclaration(AreaZoom); if (!sd) { sd = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(AreaZoom, sd, false); } sd.defaultFactory = function():void { this.borderColour = 0x017C98; this.borderAlpha = 1; this.fillColour = 0x96CEFD; this.fillAlpha = 0.2; } return true; } Graham --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , g_odds [EMAIL PROTECTED] wrote: I have been looking through the Adobe documentation for a few hours now and have no suggestion of how to achieve what I want to do. I have a custom component that has some custom style attributes. I would like these style attributes to have default values. So, I followed what is described in the Live Docs (http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/js/html/wwhelp.h tm?href=Part2_DevApps_048_1.html http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/js/html/wwhelp.h tm?href=Part2_DevApps_048_1.html ). All is fine and dandy, except for a (rather major?) problem. This method of setting defaults forces someone using the component to set all the style values or none, because if they set a single style attribute the default values are not set for any of the other attributes. Am I missing something or is this styling malarky complicated? Cheers, Graham
RE: [flexcoders] Re: How to get the real X Y of a repeater item
Here is a sample app which does what you describe. - Gordon ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script![CDATA[ import mx.containers.Canvas; import mx.containers.TitleWindow; import mx.controls.Button; import mx.managers.PopUpManager; private var popUp:TitleWindow; private function b_clickHandler(event:MouseEvent):void { var b:Button = Button(event.target); var pt:Point = b.localToGlobal(new Point(0, 0)); // global coords of b's top-left corner // var pt:Point = vb.localToGlobal(new Point(b.x, b.y)); // another way to compute the global coords of b's top-left corner createPopUp(pt.x, pt.y + b.height + 2); } private function createPopUp(x:Number, y:Number):void { popUp = new TitleWindow(); popUp.x = x; popUp.y = y; popUp.width = 100; popUp.height = 100; popUp.title = Panel; popUp.setStyle(styleName, opaquePanel); popUp.showCloseButton = true; popUp.addEventListener(Event.CLOSE, popupCloseHandler); PopUpManager.addPopUp(popUp, this); } private function popupCloseHandler(event:Event):void { PopUpManager.removePopUp(popUp); popUp = null; } ]]/mx:Script mx:VBox mx:TabNavigator width=300 height=200 mx:VBox id=vb label=Tab 1 mx:Repeater id=r dataProvider={[ 1, 2, 3 ]} mx:Button id=b label=Button {r.currentItem} click=b_clickHandler(event)/ /mx:Repeater /mx:VBox /mx:TabNavigator /mx:VBox /mx:Application From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of zipo13 Sent: Sunday, February 25, 2007 1:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to get the real X Y of a repeater item Hi, Thank you for the help but non of these methods seem to help. The repeater I use is in a canvas that sits in a tab navigator that sits in a vbox in an application. All in different components. I have tried to open the dialog: var pt:Point = new Point(event.stageX, event.stageY); pt = event.target.contentToGlobal(pt); this.renameTagDlg.x = pt.x;// this.renameTagDlg.y = pt.y;// I've changed the contentToLocal to all 6 possibilities but none of them work. contentToGlobal,contentToLocal,globalToContent,globalToLocal,localToCont ent,localToGlobal I have even tried to get the X,Y of the mouse globalyy and just open the dialog there but that didn't work too. I think that jer_ela was on the right track but I just can subtract all the containers X Y. THIS IS SO FRUSTRATING. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Robert Chyko [EMAIL PROTECTED] wrote: or if your container uses absolute positioning you would need to use contentToGlobal -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Keun Lee Sent: Friday, February 23, 2007 2:09 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Re: How to get the real X Y of a repeater item Hey you might want to also look into localToGlobal I.e var comp : UIComponent = UIComponent( event.target ); var point : Point = comp.localToGlobal( new Point( comp.x, comp.y ) ); trace( point.x + : + point.y ); -Keun On 2/22/07 9:24 AM, jer_ela [EMAIL PROTECTED] wrote: The following code gets the x and y positions of an image that has been clicked on that was generated by a repeater. Getting the coords for a button should be pretty much the same. stageX and Y are the x and y coords of the mouse position relative to the application stage. mainCanvas is a direct child of the application and is the container that I want the coords relative to. If you have additional containers between the stage and the one you need coords relative to, you have to subtract the x and y at each level to get from stage coords to that container's coords. Subtracting the mouseX and Y moves the coords from the point or the click to the upper left corner of the image. selectedImage.x = event[stageX] - mainCanvas.x - event.currentTarget.mouseX; selectedImage.y = event[stageY] - mainCanvas.y - event.currentTarget.mouseY; --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , zipo13 zipo13@ wrote: Hi, In my app I create a repeater the generats VBoxes each with button in it. When the user clicks on the button I want to generate a small dialog that will open up under the
Re: [flexcoders] Re: Cairngorm FDS Sample
remoteobject which requires FDS RemoteObject use in CF does NOT require FDS. DK On 2/26/07, auddaraj [EMAIL PROTECTED] wrote: Thanks for getting back posting your sample, Jeff. Yes Cairngorm store uses remoteobject which requires FDS, however they don't make you data management services. I would be intersted if any one might have any tips or sample app using data management services with Cairngorm. --- In flexcoders@yahoogroups.com, Jeffry Houser [EMAIL PROTECTED] wrote: I thought that any use of RemoteObject was accessing Flex Data Services (or a ColdFusion server). The Cairngorm Store 2.1 uses RemoteObject and therefore must be using Flex Data Services. I also converted the Cairngorm Store to work with a CF backend if anyone is interested, download are more details are here: http://www.jeffryhouser.com/index.cfm/2007/2/19/Learning-Cairngorm- Part-3 . At 02:53 PM 2/26/2007, you wrote: Hi, We are planning to use Cairngorm in our flex project which uses FDS. I tried looking around for samples that use FDS(not remoting) but no luck. From www.cairngormdocs.org I am able to find number of sample that use webservices, remoting etc.. Can anyone suggest a sample Cairngorm app that uses FDS(Data services). I am trying to see how FDS methods like fill etc. fit into cairngorm model Thanks, ANAND. -- Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com Connecticut Macromedia User Group: http://www.ctmug.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 -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
Re: [flexcoders] loading a swf file and dynamic symbols
Hi, Embedding is a compile-time operation, so you need to embed your symbols initially, then reference them later. You might try embedding all the symbols as separate assets within your flex app, i.e. [Embed(source='imageSwf.swf;,symbol='symbolName')] public var symbolName:Class; You can of course group these into a class of their own, i.e. public class Images { [Embed(source='imageSwf.swf;,symbol='symbolNameA')] public static var symbolNameA:Class; [Embed(source='imageSwf.swf;,symbol='symbolNameB')] public static var symbolNameB:Class; } ... then reference with Images.symbolNameX; Get the dataProvider in your repeater component to reference using that mechanism and it should work. If there's some special reason why you're using text to reference the image, you can always create another object type, with both name and class variables, then use whichever is applicable to render the correct image. Best Regards, Ciarán On 2/27/07, Mark [EMAIL PROTECTED] wrote: I have a swf file with a number of symbols that I'd like to display dynamically. I have a repeater with an Image component. The repeater is binded to an Array of text that mimics the symbol names in my SWF. This Array is dynamically populated with the symbol binded to the currentItem of the repeater (which doesn't work). I can't seem to display the swf this way, is there a way to do this? mx:Repeater id=rp dataProvider={arrayImage} mx:Image source=@Embed(source=imageSwf.swf, symbol={rp.currentImage}) / /mx:Repeater -- 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
Re: [flexcoders] (Simple?) Problem with TextInput component
mx:TextInput does not create or extend any class with the properties paddingTop/paddingBottom - I wish it were that easy! -Ciarán On 2/27/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 26 Feb 2007, Ciarán wrote: How do I get rid of it? Have you tried the padding/margin etc. CSS properties ? -- Tom Chiverton Helping to synergistically mesh interactive applications at http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] ctrl key with a combination - doesnt seem to work
Are you sure you want to be capturing a capital C (keyCode == 67)? I think I am using keyCode == 17 for lowercase c (but you will want to double check). -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jmorpher03 Sent: Monday, February 26, 2007 5:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ctrl key with a combination - doesnt seem to work Hi, I am trying to trap the ctrl key along with a combination of any other alphanumeric key by using the following code on a DataGrid control: public void myKeyDown(event:KeyBoardEvent):void { if ( event.ctrlKey event.keyCode == 67 ) // for 'C' { // copy selected row } } This does not seem to work. Nor is any other key combination detected when we use the ctrl key. Isnt this the way to handle keyboard events ? Is there any other explicit way to handle it ? Regards, Asgar.
Re: [flexcoders] Time Based State Transitions
You could use Timer, but this would also work. You may want to switch it to use a Singleton. Usage: var myTraceBack:CommunicationManager = new CommunicationManager(); myTraceBack.addEventListener(CommunicationManager.ANIMATION_COMPLETE, onDoneMove); myTraceBack.startCountdown(1000); package { import flash.display.Sprite; import flash.events.TimerEvent; import flash.utils.Timer; import flash.display.MovieClip; import flash.events.Event; [Event(name=done, type=flash.events.Event)] public class CommunicationManager extends Sprite { public var myOwner:MovieClip; public static var ANIMATION_COMPLETE:String = done; public function CommunicationManager() { super(); } public function startCountdown( duration:Number ):void { var minuteTimer:Timer = new Timer(duration, 1); minuteTimer.addEventListener(TimerEvent.TIMER, onTick); minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete); minuteTimer.start(); } public function onTick(event:TimerEvent):void { trace(onTick); } public function onTimerComplete(event:TimerEvent):void { trace(onTimerComplete!); this.dispatchEvent(new Event(done)); } } } hth, Mike Britton On 2/26/07, nextadvantage [EMAIL PROTECTED] wrote: How would I go about changing view states say every 10 secs... with a 1 sec fade? -- Mike -- http://www.mikebritton.com http://www.mikenkim.com
Re: [flexcoders] Re: FDS/Hibernate Sample of updating hierarchical list of values
Hi Simon, I'm one of the leaders for the Red5 project (http://osflash.org/red5), and I also run a consulting business focused on Flash, Flex, Java and Red5. I saw this post that you sent to the Flexcoders list about the troubles that you are having with FDS and Hibernate. I thought that it might be worth your while to look at Red5. Integration with Hibernate through the Spring context is really well established and of course Red5 is open source so you could conceivably fix any problems that might arise. I know that others have successfully integrated Red5 and Hibernate with little or no problems. It would be great to get more people to look at using Red5 as an alternative to FDS. Right now, I don't think that people realize that you can even do this, not to mention the power in doing so. Anyway, feel free to contact me if you have any questions, and good luck with your project. -Chris On 2/23/07, simonjpalmer [EMAIL PROTECTED] wrote: PW and Jeff, PW, you and I seem to be in the same boat. I am trying to fight off the people who were flex skeptics to start with. Not being able to write data back makes the whole thing look pretty amateur and confirms people's belief that the technology isn't ready - which given this experience it clearly isn't. The baby is definitely at risk of being thrown out with the bath water. It stands in our company simply because I have the final call as Technical Director (CTO if you are in the US). I am a huge flex advocate and really doing my best to evangelise on the topic. What's more I think that the bridge to operational data is the most profound leap forward for flash, it takes it out of the world of gimicks and into the world of real business applications. Jeff, you and your and team deserve huge credit for that vision and excellent execution. However, much as it pains me to say it, the bottom line is that the hibernate middle tier provided does not work, as PW and I (and a host of other people on various forums) have found. I know that I can re-write the whole thing myself and will probably have to, but when introducing new technologies it is unfortunately all about initial perception. I have made a career of doing this sort of thing myself and I have seen excellent projects fail to fly because of low initial quality, even though we fixed them immediately, the damage was done because people's impression was that they were flaky. I'm sure you know it is hard to get back from that first impression and the word of mouth that springs from it. Once it becomes entrenched that opinion becomes fact and you are irrevocably lost. If I were Adobe I would be a little worried about the tone of the posts I am seeing about integration with Hibernate. The Hibernate Assembler is very important and I would really hate to see that happen to it. The corollary is very unfortunate. That little bit of technology transform the boardroom conversation about FDS. Suddenly the cost of the licensing of FDS becomes justifiable against the dev cost savings because we can just plug into the ORM. Having made that justification myself it is very difficult for me now to go back and say, by the way I also have to incur the dev costs. When asked why? I have to confess that the Adobe code doesn't work and we don't know when we're getting a fix. For the Flex/Flash skeptics in the room that's a god send. For me it is a complete nightmare. It is hard for me to separate the cost of FDS licenses (which is almost prohibitively large) against the cost of dev. I would urge Jeff and Co to get the Hibernate Assembler code watertight and shipping asap. If I can be of any assistance I will gladly offer my services. If either of you would like to contact me, post a reply and I will happily give you my details. Simon Palmer Technical Director The PMCo 62 St Peters Street St Albans HERTS AL1 3HG UK --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, parkerwhirlow [EMAIL PROTECTED] wrote: Thats very unfortunate. I'm getting farther and farther into hot water not being able to reliably update our data model using Flex. Last it was just wait for 2.0.1, there's a lot of Hibernate/FDS fixes in it and now we're waiting for another unknown amount of time for fixes we can only hope will help our situation. I'm apologize, I understand it's not your fault, and I really appreciate the insight you provide as to what can be causing our problems, I'm just getting up to my neck in unsolved problems. If you have any insight as to roughly when this next release could occur, can you tip me off? thanks, PW --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jeff Vroom jvroom@ wrote: I have finished making the changes and the use of the merge call seems to be a) much simpler and b) more robust than the way the current code works. Unfortunately we've made enough changes to the code surrounding the HibernateAssembler so I can't just send you the updated file and
Re: [flexcoders] Creating a Video Player in Flex
I made this component with that in mind. It's a work in progress, but the HSlider code is pretty solid: ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx= http://www.adobe.com/2006/mxml; creationComplete=init() mx:states mx:State name=Full Screen mx:SetProperty target={myVid} name=width value=100%/ mx:SetProperty target={myVid} name=height value=100%/ mx:SetProperty target={hbox1} name=width value=100%/ mx:SetProperty target={hbox1} name=height value=100%/ mx:RemoveChild target={hSliderScale}/ mx:SetProperty target={button1} name=label value=Close Full Screen/ mx:SetStyle target={hbox1} name=horizontalAlign value=center/ mx:SetStyle target={hbox1} name=paddingTop value=5/ /mx:State mx:State name=*/ /mx:states mx:Script ![CDATA[ import mx.events.CuePointEvent; import mx.events.*; import mx.managers.PopUpManager; private static var SCRUB_POINT:Number; private static var DURATION:Number; private static var IS_PAUSED:Boolean; public static var CURRENT_TIME:Number; private var playheadPos:Number = 0; private var isFullScreen:Boolean; [Bindable] public var screenWidth:Number; [Bindable] public var screenHeight:Number; [Bindable] public var myCuePoints:Array = [ {name:Cue Point 1,time:2}, {name:Cue Point 2,time:4}, {name:Cue Point 3,time:6} ] private function init():void { myVid.addEventListener(VideoEvent.PLAYHEAD_UPDATE, progressHandler); screenWidth = 320; screenHeight = 240; isFullScreen = false; } private function cpHandler(event:CuePointEvent):void { //cp.text = ; //cp.text = Reached Cuepoint: + event.cuePointName + + String(event.cuePointTime); } private function scrubHandler():void { playheadPos = Math.floor((hSlider.value*.01)*DURATION); if (IS_PAUSED) { IS_PAUSED = false; } } private function progressHandler(event:VideoEvent):void { var progress:Number = event.target.playheadTime; var totalHSliderVal:Number = hSlider.maximum; DURATION= Math.floor(event.target.totalTime); playheadPos= Math.floor(event.target.playheadTime); setTime(); hSlider.value = Math.floor(progress/DURATION*100); } private function onScrubComplete():void { IS_PAUSED = true; myVid.playheadTime = playheadPos; myVid.pause(); } private function onScrubStart():void { IS_PAUSED = true; myVid.pause(); } private function initPlayback(event:VideoEvent) { DURATION = Math.floor(event.target.totalTime); playheadPos = Math.floor((hSlider.value*.01)*DURATION); } private function setTime() { CURRENT_TIME = playheadPos; } private function scaleDisplay() { var percChange:Number = hSliderScale.value; var inc:Number = percChange*.001; var increaseX:Number = inc*myVid.width; var increaseY:Number = inc*myVid.height; if (hSliderScale.value == hSliderScale.minimum) { myVid.width = screenWidth; myVid.height = screenHeight; } else if (hSliderScale.value == hSliderScale.maximum) { myVid.width = myVid.width+100; myVid.height = myVid.height+100; } else { myVid.width = increaseX+screenWidth; myVid.height = increaseY+screenHeight; } hSlider.width = myVid.width; } private function sizePressHandler() { } private function sizeReleaseHandler() { if (hSliderScale.value == 100) { myVid.width = screenWidth; myVid.height = screenHeight; } hSlider.width = myVid.width; } private function toggleFullScreen() { if (!isFullScreen) { currentState = Full Screen; isFullScreen = true; } else { currentState = *; isFullScreen = false; } } ]] /mx:Script mx:Box id=pnl_main height=100% width=100% horizontalAlign=center textAlign=center paddingTop=0 paddingLeft=0 paddingRight=0 paddingBottom=0
RE: [flexcoders] Re: Can anyone help on getting data from a grid cell .. I know the row/column index
yourDataGrid.addEventListener(ListEvent.ITEM_CLICK, setColumnCopy); function setColumnCopy(){ _selectedCol = yourDataGrid.columns[event.columnIndex].dataField; Alert.show(yourDataGrid.selectedItem[_selectedCol]); } -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of helihobby Sent: Monday, February 26, 2007 11:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Can anyone help on getting data from a grid cell .. I know the row/column index Thank you all for the answers ... The problem is that I need to know which cell he clicked on. Or in other words, what is the text that displayed on that cell... Getting the complete ArrayCollection object which the user clicked on is easy as I can ( as u guys mentioned ) simply grab the event and do event.selectedItem.SOME_PROP_HERE However, I need to know which prop he clicked on as during runtime I do not know the name of SOME_PROP_HERE. In my case I have over 40 columns per row and each carries the name of Open1 Open2 Open3 Open4 . etc ... So of course doing event.selectedItem.Open1 will work. But how do I know if clicked on the column Open1 or Open2 or Open3 etc ... I need to figure out which OpenN ( N = number ) he clicked on ... Thanks again, Sean. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , helihobby [EMAIL PROTECTED] wrote: Hello, Can anyone help out ... I know the Data Grid Cell's Row and Colum Index. How can I retrieve the data in that cell if I know these two values ? Thank you, Sean.
Re: [flexcoders] observing a model change in cairngorm
Could you explain how a little? If I have a Class Foo containing a ArrayCollection of Goo classes and Goo has a ArrayCollection of Hoo classes and I change one of the Hoo instances, my bindings to Foo will not fire. Seems my bindings to one of the Goos will thugh. Its as if the change events are firing up one level only. How to get the top level object to fire change events if its lowliest memeber changes? DK On 2/20/07, Battershall, Jeff [EMAIL PROTECTED] wrote: I've had pretty good luck using mx.binding.utils.ChangeWatcher to map a change event in data to a defined function, thereby allowing me to control the response to the change event. Jeff -Original Message- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Gareth Edwards *Sent:* Sunday, February 18, 2007 4:46 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] observing a model change in cairngorm Typically a binding like the one described will only execute if the actual property changes, and not its children. So, if need be, you can do something like this to make sure the binding executes. model.someData = new ArrayCollection(mysomeDataArray); Many ways to do what you might need, just getting the best solution for you (or maybe best practices?). But I think Flex and some best practices is a little up in the air still. So, find something that works for you and go with it I reckon. An Observer works nicely to. Cheers Gareth. [EMAIL PROTECTED] Grant Davies wrote: Thanks Dimitrios.. Question is when the Model.someData changes, will my set dataProvider function be called again ? During my testing it appeared to be called when it was first run, but when the model changed the setProvider function was never called again... Grant ... b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED]://www.bluetube.com/bti -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders@yahoogroups.com] On Behalf Of Dimitrios Gianninas Sent: Sunday, February 18, 2007 11:24 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] observing a model change in cairngorm One way to do it is for the ChartView to manipulate the data as it wishes. So have a setter in the ChartView MXML like so: bla:ChartView dataProvider={ModelLocator.someData}/ And inside the view it looks like so: mx:Box mx:Script public function set dataProvider( values:XML ):void { ... do stuff here } /mx:Script ... view stuff here ... /mx:Box Dimitrios Gianninas Optimal Payments Inc. -Original Message- From: flexcoders@yahoogroups.com on behalf of Grant Davies Sent: Sat 2/17/2007 5:57 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] observing a model change in cairngorm gareth, thanks for the response... I think my concern is poluting the model with view specific data... The results of a command is xml and this is set in the model which is an as class (VisitorModel) , the chart bound to the model via its data provider. when the app first starts up, I don't have any xml, a user picks a date range, I hit a web service and get valid xml back, then the chart has to has create a column series based on some labels in the xml, so I need to know when the xml has changed so that the column series can be created and the chart updated. In your example below, does the buildJobsTree just manipulate the data or does it actually do something to the view ? Grant ... b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) [EMAIL PROTECTED]://www.bluetube.com/bti http://www.bluetube.com/bti http://www.bluetube.com/bti A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ http://www.tribalchicken.com/ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders@yahoogroups.com] On Behalf Of Gareth Edwards Sent: Saturday, February 17, 2007 5:43 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] observing a model change in cairngorm Why not define an as class for your model (if you aren't already), and define a separate variable that you can populate on the other data being set? The snippet I posted is from something I've done that looks like this public function set jobs (data:ArrayCollection data:ArrayCollection ) : void { _jobs = data; buildJobsTree(_jobs); } Not sure if its the best option.. but it certainly works for me. Either that, or there are some observer classes from Adobe Consulting that allow you to watch changes to your model from the UI. Cheers Gareth. Grant Davies wrote: Thanks gareth.. the model is used by multiple views, a grid and a chart, the chart needs the xml from the model manipulated a
RE: [flexcoders] Cairngorm FDS Sample
Heya, I was looking for one too and there doesn't seem to be one. I'm able to currently encapsulate Create/Read/Delete actions in commands, but I haven't yet found a reliable way to encapsulate Updates in a command. Everything else works very nicely. Example of fill: var ev:ProductEvent = new ProductEvent(ProductEvent.FIND_ALL); ev.collection = model.products; CairngormEventDispatcher.getInstance().dispatchEvent(ev); Execute: public function execute(event:CairngormEvent):void { var ds:DataSource = new DataSource(productHome); var ev:ProductEvent = event as ProductEvent; ds.fill(ev.collection); // event is carrying a reference to an arbitrary collection contained in your model } Example of createItem: var ev:ProductEvent = new ProductEvent(ProductEvent.INSERT); ev.product = someProduct; CairngormEventDispatcher.getInstance().dispatchEvent(ev); Execute: public function execute(event:CairngormEvent):void { var ds:DataSource = new DataSource(productHome); var ev:ProductEvent = event as ProductEvent; ds.createItem(ev.product); // event is carrying a reference to a product bean } Example of deleteItem: var ev:ProductEvent = new ProductEvent(ProductEvent.DELETE); ev.product = someProduct; CairngormEventDispatcher.getInstance().dispatchEvent(ev); Execute: public function execute(event:CairngormEvent):void { var ds:DataSource = new DataSource(productHome); var ev:ProductEvent = event as ProductEvent; ds.deleteItem(ev.product); // event is carrying a reference to a product bean } When you find a good way to handle updates, you let me know ;) Currently there is no fine-grained approach to updating only one specific record manually, which kinda sucks. Jay Proulx [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of auddaraj Sent: February 26, 2007 2:54 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm FDS Sample Hi, We are planning to use Cairngorm in our flex project which uses FDS. I tried looking around for samples that use FDS(not remoting) but no luck. From www.cairngormdocs.org I am able to find number of sample that use webservices, remoting etc.. Can anyone suggest a sample Cairngorm app that uses FDS(Data services). I am trying to see how FDS methods like fill etc. fit into cairngorm model Thanks, ANAND.
RE: [flexcoders] Re: Just curious, A big development team or individual developers
We are a team of 6 developers working on a flex project from two offices using SVN. We have a modular setup where we use different RSL's and external modules which are pulled in from a main application. This way we can work independently. I have been developing Adobe (Macromedia) products for about 5 years and this time I was hoping for a solid product. But right now it feels like I am a paying beta tester... Flexbuilder is not easy to setup for a modular application approach. Right now we are using the Flex SDK and ANT which makes it easier to set up a large application with many external modules and RSL's. Now we only use Flexbuiler for the text editor and step debugger. $500 for a text editor, silly huh! Hopefully we will se good updates in the near future. Jonas -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of softwarecat Sent: den 23 februari 2007 15:35 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Just curious, A big development team or individual developers For our project it is a TEAM of 2. I am entirely new to flex and AS3 with more of a design/html background. I'm now knee (sometimes it feels neck deep) in the front end design while my partner is more code PHP background is providing the code and architectures. It seems to work. We are sharing with CVS through flex builder, but it is tough to work on the main file (commit - update issues maybe someone has some advice on this area). It is working, but we are only 6 weeks in and development has definately been slowed by our learning curve, But with that said I'm head over heels in love with Flex and AS. We plan to add an additional developer over the next two weeks (any ideas where to find a respectable one?) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Robert Chyko [EMAIL PROTECTED] wrote: For the project I am on now, it is just me. For the project that is being designed it will be a team. We have 3 inhouse Flex devs currently (myself and 2 others) and will either be hiring more or bringing in some consultants. -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of boy_trike Sent: Friday, February 23, 2007 1:57 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Just curious, A big development team or individual developers I wonder how many people are working on TEAM to develop their flex applications (and how many are 1 or 2 men (whoops I mean PEOPLE) developers. Please discount the Graphic artists, HTML coders. et. al. If you have 3 or more people working on the same flex application, please answer as a TEAM. 2 or 1, INDIVIDUAL. Thanks Bruce
RE: [flexcoders] ctrl key with a combination - doesnt seem to work
Please disregard my reply... i got my code from a coworker and after some testing based on your post I believe the code I am using is incorrect. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jmorpher03 Sent: Monday, February 26, 2007 5:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ctrl key with a combination - doesnt seem to work Hi, I am trying to trap the ctrl key along with a combination of any other alphanumeric key by using the following code on a DataGrid control: public void myKeyDown(event:KeyBoardEvent):void { if ( event.ctrlKey event.keyCode == 67 ) // for 'C' { // copy selected row } } This does not seem to work. Nor is any other key combination detected when we use the ctrl key. Isnt this the way to handle keyboard events ? Is there any other explicit way to handle it ? Regards, Asgar.
RE: [flexcoders] Looking for guidance on HTTPService sequencing
Here is how I do this: 1) create a single result handler function, used by all calls. 2) When I invoke send, on the returned AsyncToken, I set a property, sCallId, to a string that identifies the call 3) When a result returns, I get the sCallId and use it in a switch statement to run the appropriate processing, often another data service call. This is very easy to set up and to maintain. The key is the AsyncToken returned by send(). Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Karl Johnson Sent: Monday, February 26, 2007 11:03 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Looking for guidance on HTTPService sequencing Data access via HTTP and Web services is asynchronous so there is no way to guarantee natively that your services return in a certain order. But you can accomplish this if you really need to by chaining together service calls via result handlers. Calling service 1, and then in the result handler for service one, calling service two, and so on. Karl Cynergy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pgp.coppens Sent: Monday, February 26, 2007 9:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Looking for guidance on HTTPService sequencing Hello Flex fans, Yet another flex 101 I have read and (hopefully) understood how HTTPService and its result handling works. What I am struggling with is how I can enforce a certain sequencing so that I have the guarantee that flash will not send a second request after the first has been completed. Alternatively, are there any synchronization mechanisms available at all that could be used to implement the above? Thanks, Peter
Re: [flexcoders] (Simple?) Problem with TextInput component
The UITextField can be extended, but there is no way to get rid of the border/padding directly. If you really want, you should be able override x, y, width and height of UITextField to fake out the bounds with an offset of 2 in each direction, but overriding those properties can get tricky. Good luck if you want to go with that. - Dan On 2/26/07, Ciarán [EMAIL PROTECTED] wrote: Hi All, I also posted this question to the Adobe boards (albeit in completely the wrong forum...). In a UITextField there's some padding around the edge of the component - just a few pixels of whitespace that clips the font so it doesn't touch the edge of the box. How do I get rid of it? The best example to see this artifact is to resize the height of a text input to about 18 or so, then try typing in it. With a few adjustments, it's quite feasible to fit a font in here if it weren't for the clipping. I noticed further up the hierarchy things extend from flash.text (which to my knowledge is non-editable)... so I'm prepared to accept this may be impossible. Has anyone done it before? Best Regards, Ciarán
Re: [flexcoders] Re: Problem with List Item Renderer (and states)
Thanks to everyone who has put forward a suggestion so far :). My List is populated with an ArrayCollection of Typed objects (of type Band). Obviously my Band class should not have the responsibility of storing the current state (expanded/collapsed) - or even knowing anything about it, so I am wondering if the data property and the Band instance are indeed the same thing here? If they are, it doesn't sound ideal to add stuff to the data object - or is this not the case? Cheers, Neil On 2/25/07, Harald Dehn [EMAIL PROTECTED] wrote: There is a better solution solution: You could save the state to the underlying data. In your item renderer you could override the commitProperties method: private function buttonExpandedHandler(event:Event):void { // pressing the button data[ExpandedState] = (data[ExpandedState] != true ); // Change state with effects } // protected override function commitProperties():void { super.commitProperties(); var expandedState:Boolean = ( data data[ExpandedState] ) ; // Change state if necessary without effect } Harald *Von:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *Im Auftrag von *shuell2000 *Gesendet:* Sonntag, 25. Februar 2007 16:16 *An:* flexcoders@yahoogroups.com *Betreff:* [flexcoders] Re: Problem with List Item Renderer (and states) Your problems stem from the fact that Lists reposition and resize children each time updateDisplayList is called. Which is whenever you scroll or resize any of their children. List components extend TileBase which has a method called makeRowsAndColumns which is the method that is causing you frustration at the moment. Lists were not meant to hold itemRenderers that can resize themselves. Instead Lists have built in mouseOver and mouseDown handlers that recolor the background behind the object causing the mouseEvent and they must have thought that would be good enough. I recently had to rewrite the list classes to allow a resize to work on mouseOver of its children. It was an ugly hack but the project timeline did not allow me to do much more at the moment. Basically I created my own Tilebase and ListBase classes then changed the updateDisplayList method and the makeRowsAndColumns method to leave alone any itemRenderer that was not in its default state. Aside from a few issues caused by this, it seems to have solved my issue but is hardly clean enough to post here. Take a look at those methods I mentioned and see if you can't do something in them to ignore anything that is transitioning to a new state or in a new state. Good Luck, John Shuell --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, nwebb [EMAIL PROTECTED] wrote: Hi, I have a custom item renderer with two states (expanded and collapsed) My items are displayed in a List component, and the data is currently coming from an ArrayCollection. You can see the page here (click on Gig Calender): http://www.bathbands.co.uk/test2007/ Here is an example of the problem I'm facing: 1) Click the Read More button of the first item in the List - it will expand. 2) Scroll down and you can see that the third and last item have also expanded. 3) Scroll back up and you will see that the first item is now in the collapsed state again, but other items are now in the expanded state. I'm not sure what's causing the other items to open/close. I guess it has something to do with Flex redrawing stuff as it goes off screen, and would appreciate suggestions on how best to prevent this kind of thing from happening. Cheers, Neil
Re: [flexcoders] Creating a Video Player in Flex
I'd like to know how to embed youtube videos to Flex On 2/26/07, Alan Rother [EMAIL PROTECTED] wrote: Awesome Thank you. I had searched the archives but didn't find this one. =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer -- André Rodrigues Pena LOCUS www.locus.com.br Blog www.techbreak.org
RE: [flexcoders] Be patient, some messages are taking many hours to post.
Well, that one didn't! Maybe I embarrassed the server. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Monday, February 26, 2007 1:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Be patient, some messages are taking many hours to post. Yahoo Groups must be choking on something. Tracy
Re: [flexcoders] Time Based State Transitions
you can use setInterval or setTimeout On 2/26/07, nextadvantage [EMAIL PROTECTED] wrote: How would I go about changing view states say every 10 secs... with a 1 sec fade? -- http://indeegrumpee.spaces.live.com/
[flexcoders] Re: Can anyone help on getting data from a grid cell
a complete sample: - ?xml version=1.0? !-- DataGrid control example. -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; initialize=initApp() mx:Script![CDATA[ import mx.controls.Alert; import mx.events.ListEvent; private function initApp():void{ dg.addEventListener(ListEvent.ITEM_CLICK,setColumnCopy) ; } private function setColumnCopy(event:ListEvent):void{ var _selectedCol:Object = dg.columns[event.columnIndex].dataField; Alert.show(dg.selectedItem[_selectedCol]); } ]]/mx:Script mx:XMLList id=employees employee nameChristina Coenraets/name phone555-219-2270/phone email[EMAIL PROTECTED]/email activetrue/active /employee employee nameJoanne Wall/name phone555-219-2012/phone email[EMAIL PROTECTED]/email activetrue/active /employee employee nameMaurice Smith/name phone555-219-2012/phone email[EMAIL PROTECTED]/email activefalse/active /employee employee nameMary Jones/name phone555-219-2000/phone email[EMAIL PROTECTED]/email activetrue/active /employee /mx:XMLList mx:Panel title=DataGrid Control Example height=100% width=100% paddingTop=10 paddingLeft=10 paddingRight=10 mx:Label width=100% color=blue text=Select a row in the DataGrid control./ mx:DataGrid id=dg width=100% height=100% rowCount=5 dataProvider={employees} mx:columns mx:DataGridColumn dataField=name headerText=Name/ mx:DataGridColumn dataField=phone headerText=Phone/ mx:DataGridColumn dataField=email headerText=Email/ /mx:columns /mx:DataGrid mx:Form width=100% height=100% mx:FormItem label=Name mx:Label text={dg.selectedItem.name}/ /mx:FormItem mx:FormItem label=Email mx:Label text={dg.selectedItem.email}/ /mx:FormItem mx:FormItem label=Phone mx:Label text={dg.selectedItem.phone}/ /mx:FormItem /mx:Form /mx:Panel /mx:Application - - Original Message From: helihobby [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, February 27, 2007 10:25:58 AM Subject: [flexcoders] Re: Can anyone help on getting data from a grid cell .. I know the row/column index Found the solution from a guy who emailed me ... thx This is what worked for me: yourDataGrid. addEventListener (ListEvent. ITEM_CLICK, setColumnCopy) ; function setColumnCopy( ){ _selectedCol = yourDataGrid. columns[event. columnIndex] .dataField; Alert.show(yourData Grid.selectedIte m[_selectedCol] ); } As always, Thank you for all the help and support. BRA HREF=http://www.helihobb y.com/html/ alon_desingpatte rn.htmlFONT SIZE=-1 FACE=Verdana, Tahoma,Arial, Helvetica, Sans-serif Read my solution for Flex Component communication here.../FONT /A BRSean - A HREF=http://www.helihobb y.comFONT SIZE=-1 FACE=Verdana, Tahoma,Arial, Helvetica, Sans-serif HeliHobby. com/FONT Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. http://farechase.yahoo.com/promo-generic-14795097
RE: [flexcoders] disabling COPY in drag/drop operations
Create a dragStart event and if (event.altKey==true){ event.preventDefault(); return; } un tested but should get you on the right track... jason -Message d'origine- De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la part de darvon4u Envoyé : lundi 26 février 2007 22:16 À : flexcoders@yahoogroups.com Objet : [flexcoders] disabling COPY in drag/drop operations Hi everybody, Here is an interesting issue. We have a datagrid where the user should be able to reorder items by dragging/dropping. everything is nice an easy, except when they hold ctrl it copies and messed up the whole list :( I have tried to add the dragover and etc event handlers and set event.ctrlKey = false in there, but it does nothing. Can somebody recommend something? this is one of those things that should be really easy but it is not. it is easy to disable move operation, but i want to do the opposite and force move while disabling copy. anybody? Thanks!
Re: [flexcoders] Finding out when an arraycollection in my model is set
Thanks fellow Flex coders; Slangeberg's tip did the trick I was looking for ; ) On 2/25/07, slangeberg [EMAIL PROTECTED] wrote: You can use simple binding, via {} brackets. MyComp dataProvider={model.library} / Or, you can use the ChangeWatcher: ChangeWatcher.watch( model, library, onLibraryChange ); function onLibraryChange(){ /*do stuff*/ } -Scott On 2/24/07, Webdevotion [EMAIL PROTECTED] wrote: Hello, How can I now when my arraycollection in my modellocator is filled with items ? I tried using collectionEvent.collection_change, but it does not fire when setting my AC like this in my command, after the remoting result handler: model.library = new ArrayCollection(data.result); What is the correct way ? ( I'm using Cairngorm ) -- : : ) Scott
[flexcoders] Links defined in Label or Text htmlText doesn't work upon the first click when in TabNavigator
Hi All! Take a look at this example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:TabNavigator width=100% height=100% mx:VBox label=Adobe mx:Label selectable=true mx:htmlText ![CDATA[a href=http://www.adobe.com;Adobe/ahttp://www.adobe.com%22%3eadobe%3c/a ]] /mx:htmlText /mx:Label /mx:VBox /mx:TabNavigator /mx:Application When you first click Adobe link, nothing happens. Though, if you click it second time, application redirects you to Adobe website. Moving this Label instance outside the TabNavigator causes correct behavior. Any ideas? Sergey.
[flexcoders] Tree Leaf Renderer (TreeItemRenderer)
Hi All, I'd like to present Tree leaves as value pairs with the first value in a fixed width space. ie. simple columns. I attempted to extend TreeItemRender and swap the default label:UITextField with a VBox containing two UITextFields but am coming up against a few problems, not the least of which is that I can't override these: mx_internal function getLabel():UITextField protected var label:UITextField Do I have to write a whole new renderer just for this? Any tips appreciated. tonio //---Attempted Solution-// package components { import mx.controls.treeClasses.TreeItemRenderer; import mx.controls.treeClasses.TreeListData; import mx.containers.VBox; import mx.core.UITextField; public class TwoColTreeItemRenderer extends TreeItemRenderer { public function TwoColTreeItemRenderer() { super(); } override protected function createChildren():void { if (!label) { label = new TwoColLabel() as UITextField; //-- Bad idea, I know :( label.styleName = this; addChild(label); } //hopefully creating the label before calling super //will prevent the same block from running in the super method //fingers crossed super.createChildren(); } } } package components { import mx.containers.VBox; import mx.controls.Label; import mx.core.UITextField; public class TwoColLabel extends VBox { private var _label1:UITextField; private var _label2:UITextField; private var _style:Object; private var _text:String; private var _multiline:Boolean; private var _wordWrap:Boolean; public var delimiter:String = ::; public var colWidth:Number = 30; public function TwoColLabel():void { super(); this.verticalScrollPolicy = off; this.horizontalScrollPolicy = off; _label1 = new UITextField(); _label2 = new UITextField(); } override public function set styleName(value:Object):void { _label1.styleName = _label2.styleName = _style = value; } override public function get styleName():Object { return _style; } public function set text(value:String):void { _text = value; var index:Number= _text.indexOf(delimiter); if (index0){ _label1.text= _text.substr(0, index); _label1.width = colWidth; _label2.text= _text.substr(index+(delimiter.length)); } else { _label1.text= _text; _label2.width = 0; } } public function get text():String { return _text; } public function set multiline(value:Boolean):void { _multiline = value; _label1.multiline = _multiline; _label2.multiline = _multiline; } public function get multiline():Boolean { return _multiline; } public function set wordWrap(value:Boolean):void { _wordWrap = value; _label1.multiline = _wordWrap; _label2.multiline = _wordWrap; } public function get wordWrap():Boolean { return _wordWrap; } public function get textWidth():Number{ return _label1.textWidth+_label2.textWidth; } public function set setColor(color:uint):void { _label1.setColor(color);
Re: [flexcoders] Multiple TrackHighLight for a slider without thumbs
Very interesting approach and I guess I should give it a shot. However, what if I want to have multiple track highlights in one HSlider. e.g. a track highlight for b/w 10 - 20 and other track highlight for 30 - 40 so forth. Add more HSlider for each highlight segment? Can we implement this progmatically? On 2/24/07, Doug McCune [EMAIL PROTECTED] wrote: My initial reaction is to suggest using two HSliders, one overlaid directly on top of the other. For the bottom one, set the skin for the thumb to draw nothing, so the thumbs won't appear. For the top one set the skin for the track to a skin that draws nothing. So what you would end up seeing is the track of the bottom slider but the thumb of the top slider. Then you just set the bottom slider to have a thumbcount of 2, the top slider has a thumbcount of 1, and when they drop the top slider it sets the values of the bottom slider. Hopefully that makes sense. Doug On 2/24/07, ad9798 [EMAIL PROTECTED] wrote: I am trying to highlight multiple segments from a HSlider without multiple thumbs. For example, I drag the thumb to a certain position on the slider to mark and then drag it again to the other place to mark again. After second mark, the segment between two marks is highlighted. Has anybody done this? or knows how to do this? Much appreciated.
[flexcoders] how do you call the super's super?
Hi, Sorry for the lame AS questions, but can anyone tell me how to call the super method of the class I'm extending? ie. the grandparent and not the parent. Thanks, tonio
[flexcoders] Data Corruption with Multiple Trees
The lack of information about how to populate the Tree component with a non-XML data source is driving me nuts. Now I'm having an issue with populating multiple Trees, as soon as I set the dataProvider for the second Tree the information in both gets corrupted. I'm about ready to write this off as a bug and convert the object I pulled with AMF to XML just to comply with what seems standard. If anyone can see something wrong with this method for recursing an Object to make it Tree component complaint please straighten me out. //---// private function makeTreeObject(obj:Object, label:String=null):Object { obj['label'] = label; var children:Array = new Array(); for (var i in obj){ if (i == 'length' || i == 'label') continue; if (typeof obj[i] == 'object'){ children.push(makeTreeObject(obj[i], i)); } else { if (typeof i == 'number'){ children.push({label:obj[i]}); } else { children.push({label:i+:+obj[i]}); } } if (label!=null) delete obj[i]; } if (label!=null) obj['children'] = children; return obj; }
Re: [flexcoders] Storing / retrieving rich text
I don't know how you are reading and writing data. If it's HTTPService (more likely) you may need to set the resultFormat to text. On 2/27/07, pdflibpilot [EMAIL PROTECTED] wrote: I am trying to develop a method to allow web administrators to be able to edit text in their Flex application directly in the UI (without Flex). This text gets saved to mySQL when they close the rich text editor. The data is stored correctly in mySQL however when its retrieved it gets formated as an XML object when extracted from the event.result. While this makes it easy to populate the various labels and text objects with the rich text data. The problem is that the rich text data gets formatted as XML with new lines and indents. Like in this dmup contentLive TEXTFORMAT LEADING=2 P ALIGN=CENTER FONT FACE=Verdana SIZE=14 COLOR=#FF LETTERSPACING=0 KERNING=0 BThis is /B FONT COLOR=#0033FF B Ulive content/U /B /FONT /FONT /P /TEXTFORMAT /contentLive How can I force it to treat it as raw text just like its stored in mySQL without the formatting ? -- André Rodrigues Pena LOCUS www.locus.com.br Blog www.techbreak.org
[flexcoders] channel disconnected before an acknowledgement was received
I am getting an error *channel* *disconnected* before an acknowledgement was received when i envoke a fill method on my Assembler. This method uses Spring remoting to make an RMI call to retrieve data and i have confirmed the method call works. Is there any way of increasing the timeout on a channel? Will this fix my problem? -john
[flexcoders] Re: Cairngorm FDS Sample
Thanks Dimitrios Billy for your posting your thoughts. It would be great if someone can share a sample project using FDS with Cairngorm along with data services(not remoting). Thanks --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: Ok I'll chime in here since I use FDS with Cairngorm. Examples taken from the first Flex 2.0 app we built. First off we initialize the DS in the model that it relates too: public class ConsumerModel { public var consumerDS:DataService; public function ConsumerModel() { consumerDS = new DataService( consumerDS ); consumerDS.autoCommit = false; // set other properties first } } Then in the commands that we need to, we use the DS to perform the operations that the command requires, as an example update: public class SaveConsumerCmd { public function execute( event:CairngormEvent ):void { ... var token:AsynToken = ConsumerModel.getInstance ().consumerDS.commit(); token.addResponders( this ); } } Now the examples are simple, but working with a DataService and a RemoteObject is different. So I don't use delegates, but because u can set responders for each operation, thus u can have every command handle each DataService operation as it sees fit. Hope that helps, Dimitrios Gianninas Optimal Payments Inc. -Original Message- From: flexcoders@yahoogroups.com on behalf of billy_d_white Sent: Mon 2/26/2007 4:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cairngorm FDS Sample So far I'm finding that using FDS mixed with Cairngorm is pretty difficult. 1. When I define my services in the services.xml file, if I specify 'autoSyncEnabled' in the XML declaration, it throws a null pointer exception. It looks to me like things are getting initialized out of order. 2. I've had to specify fault handlers in the services.xml file if you want to user 'fault' attributes in the service declaration tags. If I do not do this, then some errors do not get handled at all, even if I have a fault handler method declared correctly on my responder (ie my calling command) 3. Many of the solutions I read about on this forum that show how to handle calls to the backend in FDS are not easily applied to a Cairngorm structure. For example, it is hard to call service.revertChanges in my fault routine because my fault handler method is in my command object and the service call is made in my delegate object. I have to create a reference to the service using the ServiceLocator solely to call revertChanges in the event of a fault. Anyone else experience these problems using FDS and Cairngorm together? If not, I'd love to see some examples showing me what I'm doing wrong. Thanks --- In flexcoders@yahoogroups.com, auddaraj auddaraj@ wrote: Thanks for getting back posting your sample, Jeff. Yes Cairngorm store uses remoteobject which requires FDS, however they don't make you data management services. I would be intersted if any one might have any tips or sample app using data management services with Cairngorm. --- In flexcoders@yahoogroups.com, Jeffry Houser jeff@ wrote: I thought that any use of RemoteObject was accessing Flex Data Services (or a ColdFusion server). The Cairngorm Store 2.1 uses RemoteObject and therefore must be using Flex Data Services. I also converted the Cairngorm Store to work with a CF backend if anyone is interested, download are more details are here: http://www.jeffryhouser.com/index.cfm/2007/2/19/Learning- Cairngorm- Part-3 . At 02:53 PM 2/26/2007, you wrote: Hi, We are planning to use Cairngorm in our flex project which uses FDS. I tried looking around for samples that use FDS(not remoting) but no luck. From www.cairngormdocs.org I am able to find number of sample that use webservices, remoting etc.. Can anyone suggest a sample Cairngorm app that uses FDS(Data services). I am trying to see how FDS methods like fill etc. fit into cairngorm model Thanks, ANAND. -- Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com Connecticut Macromedia User Group: http://www.ctmug.com -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this
[flexcoders] Re: Test for Network Connection
Good lord Jim, you have saved me TONS of work! Thank you so very much! --- In flexcoders@yahoogroups.com, Jim Cheng [EMAIL PROTECTED] wrote: Matt Maher wrote: I'm writing an on-line/off-line application that will sync your data once you return to an on-line status. Instead of calling an http service every 15 seconds to test for connection status, is there some way I can see deeper into the client's machine to see the status of network connection? Or perhaps a lighter ping mechanism that doesn't actually send anything over the wire to test for connection? Right now, you'll probably need to do the regular remote ping, or alternatively, you could maintain an open socket connection to the server from your application and send pings over that rather than HTTP as doing so would reduce the amount of network traffic. Doing this might be a little trickier though, particularly if you don't have much expertise on non-HTTP technologies on the server-side. However, before you get too far ahead of yourself, note that ALL of these features will be in Adobe's upcoming Apollo platform. Apollo is geared perfectly for the type of application you're envisioning: an RIA that can run both in a online mode and offline, with the capability to synchronize data against a remote server upon reconnection, and the ability to detect and receive notifications of changes in network connectivity. You can see all of these features in action on Mike Downey's recent demo of the new eBay Desktop application that we're currently building here at effectiveUI. Here's a video of the demonstration: http://www.demo.com/demonstrators/demo2007/91259.php According to Adobe, a public beta of Apollo will be available soon on the Adobe Labs site, and you can learn more about Apollo and sign up to be notified when the beta becomes available for public consumption: http://labs.adobe.com/wiki/index.php/Apollo Jim Cheng effectiveUI
[flexcoders] Annoying IE Error (Works in All other browsers!)
I have a Flex app, an administration panel for one of my clients site. There is a section where the client can add / delete/ edit advertising supporters. There are three states, one to create the new supporters, one to view all the supporters, and then from there edit the sponsers or delete them. Here is it running live : http://www.reinvestorsnetwork.net/new/admin/main.html You can sign in using test / test for now. (Advertising Supporters- Manage Existing Advertisers) A Datagrid should come up. As soon as you click delete and say yes you are sure you want to delete it, the datagrid should automatically refresh and the deleted sponser shouldn't be there anymore. However in Internet Explorer 7 / SP2 it doesn't. Any dynamic updating doesn't work!! It's really frustrating. I've tried it in Firefox Opera and they both work. Can anybody point me in the right direction? I can post the source code to my main.mxml file if you wish, but it's extremely messy and poorly coded [:p]
[flexcoders] channel disconnected before an acknowledgement was received
I am getting an error channel disconnected before an acknowledgement was received when I call a fill method on my Assembler. This fill method uses Spring remoting to make an RMI call to retrieve data and I have confirmed the method call works. Is there any way of increasing the timeout on a channel? Will this fix my problem? -john
[flexcoders] list of events really dispatched by a view
Hi to All, I'm looking to get the list of events really connected in a view. For example: mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=dispatchEvent (new Event ('myViewCreationCompleteHandler')) mx:Button id=myButton click=dispatchEvent (new Event ('myButtonClickHandler')) / /mx:Canvas So I would like to get [creationComplete , click] and [myViewCreationCompleteHandler , myButtonClickHandler] In precedent version of actionscript I existed an attributes named _listeners... but unfortunately this one has been deprecated... Do you know if it exists a substitute? Thanks in advance Eric
[flexcoders] Re: Timers Not Firing
I had some weird deal where I had 2 timers calling the same EventHandler (copy and paste mistake) and even though i stopped both Timers one kept going Not that this is optimal but I would try offsetting your Timers 100, 101, 102, etc and see if that works or running one function and using removeEventListener (although that may throw an exception?). --- In flexcoders@yahoogroups.com, Daniel Thompson [EMAIL PROTECTED] wrote: So, I tried to post this over to Flashcoders, but something funky is going on over there. I would like to try here, as it is an ActionScript 3 question, and I think the people here may be able to help. However, this is just an ActionScript project for now (hopefully, not for long). I posted earlier about timers going wonky when I tried to disable my application. I was attempting to remove all the display list items and then reinstantiate them later. I'm no longer trying to do that, but still am having problems when I come back to this window, to get the timers to start up again. When I set a breakpoint in the classes' load() method, I see the timer being instantiated and set and told to run. The first time I load the class, everything works fine. When the user clicks the expand button and opens up another window, the class runs an unload method which stops the timers. When you come back to the window, I can see the very same breakpoint hit that sets up the timers and calls start. This time, however, the timers don't fire. I've been working several days now trying to get around this; any and all advice/help is greatly appreciated. I have tried creating the timers in the constructor (I may try that again just for good measure), I've tried resetting the timers... I've tried setInterval. Nothing is working for me. Should I post this to Flexcoders? There is (of course) more AS3 stuff going on over there. I'm not using Flex, though... just ActionScript 3. public override function load():void { if (!_initialized) { // I'll set a breakpoint around here and it will hit every time. // But after unload is called, none of the timer handlers will // ever be invoked. _playbackTimer = new Timer(100); _playbackTimer.addEventListener(TimerEvent.TIMER, playbackTimerHandler); _progressTimer = new Timer(100); _progressTimer.addEventListener(TimerEvent.TIMER, progressTimerHandler); _loadCheckTimer = new Timer(100); _loadCheckTimer.addEventListener(TimerEvent.TIMER, loadCheckTimerHandler); _loadCheckTimer.start(); _stateTimer = new Timer(100); _stateTimer.addEventListener(TimerEvent.TIMER, stateTimerHandler); _stateTimer.start(); _statusTimer = new Timer(1000); _statusTimer.addEventListener(TimerEvent.TIMER, statusTimerHandler); _statusTimer.start(); _queueLoad = true; return; } ... } public override function unload():void { if (_progressTimer != null _progressTimer.running) { _progressTimer.stop(); } if (_playbackTimer != null _playbackTimer.running) { _playbackTimer.stop(); } if (_stateTimer != null _stateTimer.running) { _stateTimer.stop(); } if (_statusTimer != null _statusTimer.running) { _statusTimer.stop(); } ... _initialized = false; } Thanks, -DT
[flexcoders] flash cookie
Is it possible to store a cookie (LSO) from a domain www.x.com and then access this cookie from a .swf played outside internet explorer or mozilla (in flash player directly) if we know the name of the domain www.x.com ?? thanks
[flexcoders] Re: Storing / retrieving rich text
Have you tried using CDATA around your text when retrieving from your database? ![CDATA[ ]] I use it to store HTML formatted text in a database and to retrieve it back into any HTML capable control, such as rtfedit or textarea... even a simple TEXT control as itemrenderer works with this method... HTH Iko --- In flexcoders@yahoogroups.com, pdflibpilot [EMAIL PROTECTED] wrote: I am trying to develop a method to allow web administrators to be able to edit text in their Flex application directly in the UI (without Flex). This text gets saved to mySQL when they close the rich text editor. The data is stored correctly in mySQL however when its retrieved it gets formated as an XML object when extracted from the event.result. While this makes it easy to populate the various labels and text objects with the rich text data. The problem is that the rich text data gets formatted as XML with new lines and indents. Like in this dmup contentLive TEXTFORMAT LEADING=2 P ALIGN=CENTER FONT FACE=Verdana SIZE=14 COLOR=#FF LETTERSPACING=0 KERNING=0 BThis is /B FONT COLOR=#0033FF B Ulive content/U /B /FONT /FONT /P /TEXTFORMAT /contentLive How can I force it to treat it as raw text just like its stored in mySQL without the formatting ?
[flexcoders] Re: Invalid Configuration Exception
Hi Dimitrios, Thanks for the advise. I found the exception details on the log file. And the details solved my problem missing folder WEB- INF/flex/classes. I don't know why I didn't check the log file before I submit my enquiry. That's an obvious step to do when debugging. In case if someone comes up with the same error. I'm building the entire web application from a project folder, where my files (Java source files, jars, mxml, as files...) are ditributed in different folders. I'm using Ant the build the project.When I run a target which copies all these files to the destination folder for ready delpoy, I'm using an instruction like: copy **/*.* to dist directory, all the folders and their files are copied. But in flex.war application theres a folder in WEB-INF/flex/classes containing a file without extension. So my copy **/*.* task didn't copy that folder because it contains a file without extension. I renamed it as myAsFile.as then this folder was copied to the right place. So flex.war application has a file structure which should be kept as is. If a folder is missing like in my case an exception will be thrown. Thank you for you help Regards Jairo --- --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: Look at your tomcat log file, before that exception, you will find another exception that will explain what the real problem is. Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jairokan Sent: Sunday, February 25, 2007 2:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Invalid Configuration Exception Hi all, Just joined this group. I'm having an exception when I try to request my swf file from Tomcat container. The Web application is exactly the same as the felex.war provided with FDS. No setting changed. The only difference I'm deploying the application from deployment project directory, using a custom Ant build file. Checking the directory structure after deploying in Tomcat is as flex.war. I get this Exception: javax.servlet.ServletException: Invalid Configuration: see previous failures. flex2.server.j2ee.SwfServlet.init(SwfServlet.java:71) javax.servlet.GenericServlet.init(GenericServlet.java:211) flex2.server.j2ee.CompileAgentServlet.init (CompileAgentServlet.java:20) flex.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59) nbs! p;org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:118) org.apache.coyote.tomcat5.CoyoteAdapter.service (CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces sConnection(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt (PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:683) java.lang.Thread.run(Thread.java:595) Can please someone advise what I'm missing or doing wrong. Thanks Jairo -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e- mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
[flexcoders] Re: How to clear a TileList of its items?
Thanks for the tips! It worked like a charm for me :) --- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED] wrote: Odd... did you try setting the dataprovider to a new object instead of setting it too null? You could also try: yourTileListID.dataProvider.removeAll(); On 1/6/07, Sascha [EMAIL PROTECTED] wrote: Thanks Clint, but all of them result in the same exception. Any other ideas? -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Clint Modien *Sent:* Sunday, 07 January, 2007 10:40 *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] How to clear a TileList of its items? I would try any new non-null complex type: new Object(); new Array(); new ArrayCollection(); On 1/5/07, *Sascha* [EMAIL PROTECTED] wrote: I'm trying to initialize a TileList after items were put into it so that it is empty again and I can load new items into it after that. I'm setting the TileList dataprovider to null but when I then try to load new items into it, it gives me an exception: Parameter child must be non-null. What would I have to do additionally to properly initialize the TileList? Sascha
Re: [flexcoders] Re: Dynamically creating a text object
I have a (possibly) related isssue : creating a component which then creates a seres of Overlays on top of itself - one of which is a series of text objects - -- the base component that I am addingChild' to is a Sprite - adding multiple shapes or sprites works fine but when I add Text Fields, Labels or Text they do not appear - I tried creating them indpeendintly and also attcahing them to the 300 sprites that I created in the parent sprite (so there are 3 nest levels) - whatever I try doens't work! any ideas anyone ... sure its something painfully obvious and that I hve been looking at it too long! tks Matt On 26 Feb 2007, at 20:12, Tim wrote: You are correct - it needs to be an embedded font to render when rotated. Unfortunately, also, the rotation of the text is about the top left corner and the class does not correctly report its dimensions when rotated. I posted a RotableText class to the Flex 2 General Discussion forum a couple of months ago that provides an extension of the Text class which correctly reports its dimensions after rotation, and correctly positions the text when rotated. Tim --- In flexcoders@yahoogroups.com, leds usop [EMAIL PROTECTED] wrote: Actually Tim, he already mentioned in a previous post that more than just to add a circle, he wanted to add a circle.. and rotate it to vertical. i have already suggested adding the text child directly to the canvas (main or child.. shouldnt really matter). However, i think what makes the text not render is the rotate action he is applying. I dunno, correct me if im wrong.. but you cant rotate text and have it render correctly like other visual stuff (basic shapes, etc) without embedding the font am i right? --- Tim [EMAIL PROTECTED] wrote: You should be able to do something like this: var myText:Text = new Text(); myText.text = Hello World; myText.x = 220; myText.y = 140; mainCanvas.addChild(myText); If you're just wanting to draw a shape, you should use Sprite rather than Canvas. Canvas is a container and is intended to layout other UIComponents - more than is needed just to draw a circle. Tim --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: You definitely can do that. addChild() is the method to use. I can't guess at what you are doing wrong without seeing what you are doing. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Guy Morton Sent: Sunday, February 25, 2007 8:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Dynamically creating a text object Hello. I'm stumped. I'm creating some circles in AS and putting them on a Canvas that's declared in my MXML file like so var childCanvas:Canvas = new Canvas(); childCanvas.graphics.lineStyle(1, 0x33, 1); childCanvas.graphics.beginFill(0xCC,0.6); childCanvas.graphics.drawCircle(200,150,7); childCanvas.graphics.endFill(); childCanvas.id = myCircle; childCanvas.toolTip = I'm a circle; mainCanvas.addChild(childCanvas); This all works fine. However, I want to add some text next to the circle (with AS) and I can't see how to do it. I've tried many ways and nothing worked. It seems I can't add an instance of a text object as a child to the canvas in the same way that I can a shape. How should I be doing this? Guy __ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
RE: [flexcoders] Re: Quick Flex 2.0 questions
Jamie, you can try out FlexBuilder for free (I think for 30 days) to help decide whether it's worth it. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Adam Pasztory Sent: Saturday, February 24, 2007 11:06 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Quick Flex 2.0 questions I just took the plunge and purchased FlexBuilder after spending a lot of time exploring other options (OK, you can call me stingy). The existing FlashDevelop solution was too problematic in my opinion, and there's no indication about when FD3 will be out. And unless you're a big fan of command line in general, it's probably not going to cut it for you. After having played around with FB for about 2 days, I realize the decision was a no-brainer. The design mode is excellent. I was able to throw together nice-looking UIs for unit testing within a matter of hours. The AS coding support is on par with FlashDevelop. So far my favorite new feature is that the editor adds in import statements for you automatically when you declare a var using that data type. I love clever little features like that. -Adam On 2/23/07, Jamie [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thanks for the info guys, that's exactly what I need. I'm definitely going to download the demo of Flex Builder and play with it. I suspect I'll end up buying it if my prototypes with Flex prove to work the way I expect them to. I have to say, I'm really excited to discover Flex. I was trying to figure out a solution for this project via AJAX and it just wasn't working. Even using all the latest stuff, the web UI just couldn't match the desktop app that this web app needs to replace. I had talked with the client about using Flash, but as a developer, I always found developing apps for Flash really difficult. I had no idea you guys were working on essentially a UI/App framework for Flash. What a great idea! From what I've seen so far, it seems like the way to go for rich web app UI. I'm excited to see what I can do with Flex. Thanks! Jamie --- In flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com , Gordon Smith [EMAIL PROTECTED] wrote: I'm assuming that Flex retains the Flash socket ability to communication over TCP/IP? Yes. All Flash Player 9 APIs (the flash.* packages) are available in Flex. If all I want to do is deliver a Flex Flash app on the client that talks to a back end server over TCP/IP, I don't need to be paying for Flex Data Services, correct? Correct. There are no licensing fees to distribute regular Flex applications? Correct. If I want to do some simple 2-D pie charts, will I need to buy the Adobe Flex Charting? Yes, unless you want to write your own 2-D pie charts. Or is ther some basic charting built into Flex? There is not. How much easier is it to build a Flex app with Flex Builder than with the SDK? The three main advantages of FlexBuilder are: * code hints and code completion that make writing MXML and AS code easier and faster * visual debugging instead of command-line debugging with fdb * design view for doing visual layout I've heard developers say that FB pays for itself pretty quickly, but since I work for Adobe I'll let other recommend whether you should buy it or not. We love having SDK-only developers just as much as those using FlexBuilder. - Gordon From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Jamie Sent: Friday, February 23, 2007 2:01 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] Quick Flex 2.0 questions I am architecting an RIA that needs to be able to connect via TCP/IP to a back-end server. I've looked at a lot of technologies, and Flex 2.0 Flash seems to be the best front end solution. 4 questions: 1) I'm assuming that Flex retains the Flash socket ability to communication over TCP/IP? 2) All of the extremely expensive licensing for Flex Data Services has me a little spooked. If all I want to do is deliver a
[flexcoders] Result to ArrayCollection - somtimes node is single, sometimes it's an array
When I use an HTTPService result as an ArrayCollection, certain nodes will be set as a single item or an array depending on the number of items in the node. Is there a simple way to always force a node to an array regardless of how many items there are?
[flexcoders] Re: WS call sucessful with resultFormat=e4x, fails otherwise
Anyone? --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: Hello, we are seeing some weird behavior when calling an RPC encoded .NET web service. Unless we set resultFormat to e4x, we receive the following error: fault: [FaultEvent fault=[RPC Fault faultString=Error #1009: Cannot access a property or method of a null object reference. faultCode=DecodingError faultDetail=null] messageId=BCCBBAB0-1457-00EA-5329-FE83F9158923 type=fault bubbles=false cancelable=true eventPhase=2] ServiceCapture shows that the call does return successfully, and the response contains data. A faultCode of DecodingError leads me to believe Flex is having trouble deserializing the response into objects, but I am not sure why that would be. Are there certain SOAP structures Flex is known to have problems with? Thanks, Ben
[flexcoders] Re: Custom Component Styles
Hi Stephen, The link you posted was what I was attempted to point people to in my first post. What I posted is indeed similar to what the Live Docs suggest but with a fairly vital twist. That suggested by the Live Docs means if a user defines only one of the component's style attributes using a css file then none of the defaults will be set (if you look at the code with that in mind it's quite clear why), thereby forcing the user to define all style attributes in the css file. Where as the code I posted (picked up from the charting code) allows the component to behave as those created for the framework, i.e. use the default value for any style attribute not specified by the user's css file. Hope that clears things up. Graham --- In flexcoders@yahoogroups.com, Stephen Gilson [EMAIL PROTECTED] wrote: Hi Graham, Isn't that similar to the example in the docs here: http://livedocs.adobe.com/flex/201/html/skinstyle_149_7.html Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of g_odds Sent: Monday, February 26, 2007 11:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Custom Component Styles It would appear the link I gave is broken. But nevermind, I have found the solution by delving through the framework source code, where the developers do it differently from what is documented in the Live Docs. The solution is to use something along the lines of: private static var stylesInitialised:Boolean = initStyles(); private static function initStyles():Boolean { var sd:CSSStyleDeclaration = StyleManager.getStyleDeclaration(AreaZoom); if (!sd) { sd = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(AreaZoom, sd, false); } sd.defaultFactory = function():void { this.borderColour = 0x017C98; this.borderAlpha = 1; this.fillColour = 0x96CEFD; this.fillAlpha = 0.2; } return true; } Graham --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , g_odds g_odds@ wrote: I have been looking through the Adobe documentation for a few hours now and have no suggestion of how to achieve what I want to do. I have a custom component that has some custom style attributes. I would like these style attributes to have default values. So, I followed what is described in the Live Docs (http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/js/html/wwhelp.h tm?href=Part2_DevApps_048_1.html http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/js/html/wwhelp.h tm?href=Part2_DevApps_048_1.html ). All is fine and dandy, except for a (rather major?) problem. This method of setting defaults forces someone using the component to set all the style values or none, because if they set a single style attribute the default values are not set for any of the other attributes. Am I missing something or is this styling malarky complicated? Cheers, Graham
[flexcoders] Re: Chart annotationElements based on series data
Seeing as the annotation element would be tied so tightly to the details of the individual series, would it maybe be an idea to create your own series that draws the series and, optionally, the curve annotation? That way it'd simplify accessing the series data too. The downside would be that you end up with something that's maybe not particularly flexible. Graham --- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: There's no obvious way to do what you're doing. The annotation element has access to the chart, so you could iterate over the series of the chart, and ask for their data. To get access to what is currently visible on screen, you could ask for their renderData, then look at the filteredCache inside of that. Of course, now you're tying your annotation element pretty tightly to the details and implementation of the individual series. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of durnelln Sent: Monday, February 26, 2007 7:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Chart annotationElements based on series data Hi all - and hopefully Ely ;-) I have a LineChart containing a LineSeries which updates automagically from an arrayCollection - works great. I have also created a simple annotationElements element which renders a horizontal line across the chart at a configured value. What I'm trying to do now is to create a more complex annotationElement which draws a nice curve across the chart based on the data point values. So this time I need to access the data values themselves to perform some calculations. How do I get hold of the lineseries data values from my annotationElement? Similarly, is there a way to retrieve only the data points that are currently visible on the chart? I've had a quick poke around the charting help files and source code but I'm only getting more confused... Thanks, Nick.
Re: [flexcoders] Re: Storing / retrieving rich text
Wrapping the text in ![CDATA causes the CDATA to be interpreted literally and rendered along with the text. setting the resultFormat to text makes it much more difficult to handle the text and distribute it to the appropriate display objects. Barring any easier solutions at this point it looks like stripping out the white space with AS is the only option. iko_knyphausen wrote: Have you tried using CDATA around your text when retrieving from your database? ![CDATA[ ]] I use it to store HTML formatted text in a database and to retrieve it back into any HTML capable control, such as rtfedit or textarea... even a simple TEXT control as itemrenderer works with this method... HTH Iko --- In flexcoders@yahoogroups.com, pdflibpilot [EMAIL PROTECTED] wrote: I am trying to develop a method to allow web administrators to be able to edit text in their Flex application directly in the UI (without Flex). This text gets saved to mySQL when they close the rich text editor. The data is stored correctly in mySQL however when its retrieved it gets formated as an XML object when extracted from the event.result. While this makes it easy to populate the various labels and text objects with the rich text data. The problem is that the rich text data gets formatted as XML with new lines and indents. Like in this dmup contentLive TEXTFORMAT LEADING=2 P ALIGN=CENTER FONT FACE=Verdana SIZE=14 COLOR=#FF LETTERSPACING=0 KERNING=0 BThis is /B FONT COLOR=#0033FF B Ulive content/U /B /FONT /FONT /P /TEXTFORMAT /contentLive How can I force it to treat it as raw text just like its stored in mySQL without the formatting ?
RE: [flexcoders] Re: WS call sucessful with resultFormat=e4x, fails otherwise
What data types are your returning in your SOAP Response from the .NET web service? There definitely are complex object types that java/.net support that Flex/AS do not. Karl Cynergy From: flexcoders@yahoogroups.com on behalf of ben.clinkinbeard Sent: Tue 2/27/2007 8:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WS call sucessful with resultFormat=e4x, fails otherwise Anyone? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , ben.clinkinbeard [EMAIL PROTECTED] wrote: Hello, we are seeing some weird behavior when calling an RPC encoded .NET web service. Unless we set resultFormat to e4x, we receive the following error: fault: [FaultEvent fault=[RPC Fault faultString=Error #1009: Cannot access a property or method of a null object reference. faultCode=DecodingError faultDetail=null] messageId=BCCBBAB0-1457-00EA-5329-FE83F9158923 type=fault bubbles=false cancelable=true eventPhase=2] ServiceCapture shows that the call does return successfully, and the response contains data. A faultCode of DecodingError leads me to believe Flex is having trouble deserializing the response into objects, but I am not sure why that would be. Are there certain SOAP structures Flex is known to have problems with? Thanks, Ben
[flexcoders] AS3 component woes
Hey ppl! I'm trying to buil a menu component in here and I ran in some strange issues. I know how to workaround this issue but still i'm pretty much interested in why is it so. What I have is pretty straight forward routine. When user sets dataProvider I set allChildrenChanged = true and fire invalidateDisplayList() so updateDisplayList() gets called on next frame render. Afterwards in updateDisplayList I have this: override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); if(allChildrenChanged == true){ allChildrenChanged = false; removeChildren(); _dataProvider.source.forEach(createChild); } } And protected method that handles single menu subitem creation: protected function createChild(element:Object, index:int, arr:Array):void { var child:MenuItem = new MenuItem(); child.addEventListener(MacMenuItemEvent.ROLL_OVER, onRollOverChild); child.addEventListener(MacMenuItemEvent.ROLL_OUT, onRollOutChild); child.itemId = element.id child.icon = element.icon trace(child +child) addChild(child); } At this point, _dataProvider has several records of proper type, createChild is called proper number of times trace(child +child) trace exactly what I've been expecting. But, theres and error ArgumentError: Error #2004: One of the parameters is invalid.. Wheres a problem? MenuItem class extends mx.controlls.Image and work just fine when used without this class. The most amazing thing is that if I move exactly the same code from updateDisplayList to commitProperties it just works. regards janis radins
[flexcoders] Re: Programatically creating LineSeries
Thanks Tariq. I've looked at that example earlier but it doesn't quite work properly to do what I'm trying. The example uses an already known ArrayCollection and thus the yField of the different series can be set very easily. In my case, I'm getting an XML and then I'm not sure how to set up my yField/xField. Do I need to parse the XML and create an ArrayCollection first, or is there a simpler approach? Below is what I have done, but the series does not show up. In my mxml, I have: [Bindable] public var _elements:XMLList; public function createXMLList(data:String):XMLList { var _xml:XML = new XML(data); _elements = _xml.elements(); return _elements; } mx:Panel width=450 height=400 id=panel mx:LineChart id=chart height=350 width=300 paddingLeft=5 paddingRight=5 showDataTips=true visible=false dataProvider={_elements} mx:horizontalAxis mx:CategoryAxis dataProvider=[EMAIL PROTECTED] / /mx:horizontalAxis /mx:LineChart /mx:Panel In my html file, I use the XMLHttpRequest to get my xml and do the following: function createChart() { if (req.readystate == 4 req.status == 200) { var seriesArray = new Array(); var flexApp = FABridge.example.root(); var chart = flexApp.getPanel().getChildByName(chart); var s = FABridge.example.create(mx.charts.series.LineSeries); flexApp.createXMLList(req.responseText); s.set(yField, datapoint); seriesArray.push(s); chart.setSeries(seriesArray); chart.setVisible(true); } } My XML file has the following structure: ?xml version=1.0 encoding=utf-8? result metricDfn=Price company1 id=1 datapoint date=Jan50/datapoint datapoint date=Feb60/datapoint datapoint date=Mar40/datapoint datapoint date=Apr50/datapoint datapoint date=May40/datapoint /company1 /result Anything obvious that I'm not doing right? Thanks, Mehul. Re: [flexcoders] Re: Programatically creating LineSeries 1) If you're able to get the XML in a way that you're comfortable, I would say don't worry about it. Data Services will be worth looking into down the line if you're doing a lot of transactions or a lot of data. 2) Here's an example of how to dynamically create series to a chart: http://www.cflex.net/showFileDetails.cfm? ObjectID=489Object=FileChannelID=1 Mehul Doshi wrote: Could someone please look at my post below and provide me some help? Thanks. --- In flexcoders@yahoogroups.com, Mehul Doshi [EMAIL PROTECTED] wrote: Hi, I have a few questions on how I should go about achieving something using Flex Charting. I have a Java servlet/controller that will return XML data. The data will consist of multiple datapoints for multiple companies. Let's assume that the xml follows the below structure: company1 name=ABC datapoint date=Jan50/datapoint datapoint date=Feb70/datapoint /company1 company2 name=DEF datapoint date=Jan70/datapoint datapoint date=Feb50/datapoint /company2 Using this XML, I need to programatically (using Javascript/Actionscript) create a chart with multiple LineSeries and set the dataprovider for each. My questions are: 1. How do I obtain the XML data? I'm currently using XMLHttpRequest to get it...any better approach? Do I need to use the DataServices feature of Flex? 2. Using my current approach, I'm not sure how I can set the dataprovider (and xfield,yfield) for each LineSeries (each company)? Thanks, Mehul.
[flexcoders] Re: loading a swf file and dynamic symbols
I didn't think of that (that it's a compile-time operation), thanks for pointing that out, it makes sense now why it wouldn't be working. So then let me ask this, is there another way to get to that symbol without embedding the SWF? The example you give, although I'm sure will work for me, still embeds it all up front (right?). I was hoping to display that symbol on the fly only because we're talking about close to 30 separate symbols, and that could grow as time goes on. Also right now I'm just trying to see how I can get the images (symbols) to display dynamically so I'm not tied to anything other than that Array. The Array holds country identification id's (US = United States, CA=Canada, etc.). This Array is created from a series of country ID's tied to the current Item they're looking at (it could be 1 to 30 countries). Each symbol is named for the specific ID. What I'm getting at is at this point I'm looking for the best way to display that corresponding symbol with the ID so when the user sees the country, they'll also see a little image of the country. Thanks, Mark --- In flexcoders@yahoogroups.com, Ciarán [EMAIL PROTECTED] wrote: Hi, Embedding is a compile-time operation, so you need to embed your symbols initially, then reference them later. You might try embedding all the symbols as separate assets within your flex app, i.e. [Embed(source='imageSwf.swf;,symbol='symbolName')] public var symbolName:Class; You can of course group these into a class of their own, i.e. public class Images { [Embed(source='imageSwf.swf;,symbol='symbolNameA')] public static var symbolNameA:Class; [Embed(source='imageSwf.swf;,symbol='symbolNameB')] public static var symbolNameB:Class; } ... then reference with Images.symbolNameX; Get the dataProvider in your repeater component to reference using that mechanism and it should work. If there's some special reason why you're using text to reference the image, you can always create another object type, with both name and class variables, then use whichever is applicable to render the correct image. Best Regards, Ciarán On 2/27/07, Mark [EMAIL PROTECTED] wrote: I have a swf file with a number of symbols that I'd like to display dynamically. I have a repeater with an Image component. The repeater is binded to an Array of text that mimics the symbol names in my SWF. This Array is dynamically populated with the symbol binded to the currentItem of the repeater (which doesn't work). I can't seem to display the swf this way, is there a way to do this? mx:Repeater id=rp dataProvider={arrayImage} mx:Image source=@Embed(source=imageSwf.swf, symbol= {rp.currentImage}) / /mx:Repeater -- 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
Re: [flexcoders] Embedding FusionCharts in a Flex application
FusionCharts are AS2. You'll be able to load a FusionChart swf into a Flex app, but you won't be able to control it from Flex though. regards, Muzak - Original Message - From: Jon Rowland [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, February 27, 2007 11:16 AM Subject: [flexcoders] Embedding FusionCharts in a Flex application Hi there, I'm looking at embedding a diagramming tool called PowerCharts from the FusionCharts suite within a Flex application. The chart is shipped as an SWF file, there are lots of examples of use, but none using Flex. Has anyone done this before? Basically I want to access it programatically, and use it like you would a 3rd party control in Visual Studio - e.g. drop it on my flex designer and access it programatically. Is this possible? Many thanks, Jon Rowland
[flexcoders] Re: Getting XML from an item in an ArrayCollection
I'm having the same problem when affecting the result of an httprequest to an ArrayCollection. The problem is, when there's no results or only 1, I get the same error (#1034) as you. Any ideas how to solve this? Thanks! Nicolas --- In flexcoders@yahoogroups.com, gekkemus [EMAIL PROTECTED] wrote: I have a simple HTTPService that gets an XML document. The XML document is structured like this: STOCK_EXCHANGE . STOCK_HISTORY STOCK SYMBOLGOOG/SYMBOL FULLNAMEGoogle Corporation/FULLNAME RATES RATE123,12/RATE RATE123,13/RATE /RATES /STOCK STOCK ... /STOCK /STOCK_HISTORY /STOCK_EXCHANGE I have a resulthandler on the HTTPService, that handles the ResultEvent. It basically makes an ArrayCollection: stockDetailCollection = event.result.STOCK_EXCHANGE.STOCK_HISTORY.STOCK; So when done my ArrayCollection contains a collection of stocks. Now I want to filter my collection to select just one specific stock, so I added a filterFunction, which filters the stockDetailCollection to show only the specific stock by using the SYMBOL: private function stockDetailCollectionFilter(item:Object):Boolean { return item.SYMBOL == stockDetailSymbol; } In this function stockDetailSymbol is a bindable that gets set in a pulldown or whatever. After applying the filter function, I call stockDetailCollection.refresh() to filter. The problem I have is that now I have 1 item in the ArrayCollection. From this item I want to use the RATES elements to create a new collection that I can use as a datasource for a line-chart. If I try something like: stockDetailCollection.filterFunction=stockDetailCollectionFilter; stockDetailCollection.refresh(); stockData = ArrayCollection(stockDetailCollection.getItemAt(0).RATES); It fails with the message: TypeError: Error #1034: Type Coercion failed: cannot convert mx.utils::[EMAIL PROTECTED] to mx.collections.ArrayCollection. I hope it's clear what I'm trying to achieve. Can someone point me in the right direction? This is my first Flex application, and I'm struggling a bit ;-) TIA, Bastiaan
Re: [flexcoders] Re: broken: stacked AreaChart when using horizontal DateTimeAxis
On Monday 26 Feb 2007, Ely Greenfield wrote: The DateTimeAxis uses the built in ECMAScript Date parsing function to convert strings to dates. So if your dates are in a different format, you need to provide your own parsing function. Plug :-) http://thefalken.livejournal.com/40103.html -- Tom Chiverton Helping to administratively network value-added paradigms at http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/kOt0.A/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups 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/
Re: [flexcoders] Annoying IE Error (Works in All other browsers!)
On Tuesday 27 Feb 2007, danneri21 wrote: It's really frustrating. I've tried it in Firefox Opera and they both work. Do all three browsers have the latest debug player installed ? -- Tom Chiverton Helping to heterogeneously expedite efficient infomediaries at http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups 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] DataGrid to Xml
Hi all, To populate a DataGrid is simple thru binding an ArrayCollection. Is there also a simple way to save the DataGrid (or ArrayCollection) as Xml? Regards Jaap Cammeraat
[flexcoders] Re: Drag is cancelling Click event
You should use the drag events for dragging, there is an example in the help that shows how to work with dragging. What do you mean by 'drag events' ? A drag operation has to be initiated by a std mouse event, no ? Anyway, changing 'mouseDown' to 'mouseMove' to initiate the drap operation does the trick. Do not ask me why... maybe the mouse move do not set any handler that would mess up with my other mouseUp event... mx:Canvas mouseMove=drag(event) mouseUp=click(event) mx:Script ![CDATA[ [Bindable] public var color:uint = Constants.DEFAULT_COLOR; private function click(e:MouseEvent):void { // do my click things } private function drag(event:MouseEvent):void { var ds:DragSource = new DragSource(); ds.addData(color, 'color'); DragManager.doDrag(this,ds,event); } ]] /mx:Script /mx:Canvas {Maz}
[flexcoders] Re: Be patient, some messages are taking many hours to post.
ROFLOL!
Re: [flexcoders] Re: loading a swf file and dynamic symbols
On Tuesday 27 Feb 2007, Mark wrote: hoping to display that symbol on the fly only because we're talking about close to 30 separate symbols, and that could grow as time goes on. I think you want the URLLoader here then. -- Tom Chiverton Helping to autoschediastically transform enterprise-class environments at http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups 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: Flex Fullscreen Apps
Not browser resizing, the new fullscreen option stage.displayState = StageDisplayState.FULL_SCREEN; Figured this out by just setting the stage.scaleMode = EXACT_FIT Works perfect now --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 26 Feb 2007, john_69_11 wrote: though. Do I need to manually change the sized/position of all my components when changing between normal and fullscreen or am I doing If you've absolutely positioned them, yes. You'd have the same problem if someone resized the browser window. -- Tom Chiverton Helping to widespreadedly pursue next-generation bandwidth at http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: Keyboard issues on VISTA
Have you been able to try it on home basic or professional? It is odd that it would only happen on premium and not ultimate.
[flexcoders] Flash Video Player
I've created a flv video player and have a step button to slowely move through the video. This step button is really just a hack, on mouse down it plays the video, on mouse up it pauses. Only problem is that when reporting the playheadTime from the video. When I play the video normally vs when step is used at the same point in the video the playhead time is reported differently (stepping shows an earlier time than normal playing). Has anyone else ran into something similar? Is there a better way to do stepping or a more accurate way to obtain the playhead time? Thanks for the help, -John
[flexcoders] Re: Annoying IE Error (Works in All other browsers!)
I just ran it without the issues you just described. Using IE 6, Firefox 2 and IE Tabs in Firefox. I was receiving the following errors before being able to login. When i refreshed only received the loginform state error but even using log out it never actually logged me out when i refreshed the browser. ArgumentError: Undefined state 'LoginForm'. at mx.core::UIComponent/::getState() at mx.core::UIComponent/::findCommonBaseState() at mx.core::UIComponent/::commitCurrentState() at mx.core::UIComponent/::creationCompleteHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/set initialized() at mx.managers::LayoutManager/::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() TypeError: Error #1009: Cannot access a property or method of a null object reference. at main/::updateStats() at main/__membersRegistered_result() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler() at mx.rpc::Responder/result() at mx.rpc::AsyncRequest/acknowledge() at ::DirectHTTPMessageResponder/completeHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::onComplete() TypeError: Error #1009: Cannot access a property or method of a null object reference. at main/::updateStats() at main/__forumPostCount_result() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler() at mx.rpc::Responder/result() at mx.rpc::AsyncRequest/acknowledge() at ::DirectHTTPMessageResponder/completeHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::onComplete()
RE: [flexcoders] Re: Timers Not Firing
Thanks norealnamesleft. I think it's turning out to be a bug in the Flash player. In 9r28 the timers start firing again; in 9r16 (or 9r15...), they do not. Thanks, -DT -Original Message- I had some weird deal where I had 2 timers calling the same EventHandler (copy and paste mistake) and even though i stopped both Timers one kept going Not that this is optimal but I would try offsetting your Timers 100, 101, 102, etc and see if that works or running one function and using removeEventListener (although that may throw an exception?). This time, however, the timers don't fire.
[flexcoders] Re: The complete component communication solution for Flex. ALON DP.
It is similair. But in this Design Pattern you also have the direct com using getService and setService. Regards, Sean - HeliHobby.com --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 27 Feb 2007, helihobby wrote: To solve this, I came up with the ALON Design Pattern and I wish to get some feedback. How does this strategy compare to Cairngorm's ? It looks fairly similar - things fire abstract events to a central controller. -- Tom Chiverton Helping to confidentially e-enable end-to-end market-growth at http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] changing states from within a component
Hi, I'm working on an application, which is component based. One of my components is a Login screen, in which the user enters the username and password, these details are passed to a ColdFusion CFC and checked, the result is then checked. If the login is successful I want to be able to change the state in the main application file from the Login state to the Home state, originally I tried using: this.currentState = 'Home'; But this was in the Login component, which doesn't have states, so that didn't work. What is the best practice for components to call the main application to perform tasks like changing the state? Thanks Stephen
RE: [flexcoders] changing states from within a component
Like everything, there are a million ways to do this. And best practices involve opinions sometimes...but I would say the best practice is to fire off an event in your login cfc result handler, and have the parent app listen on that loginSuccessfull event. Then have this.currentState = Home, etc in loginSuccessfull event handler in the parent app. Communication via events keeps everything flexible and independent. Karl Cynergy From: flexcoders@yahoogroups.com on behalf of stephen50232 Sent: Tue 2/27/2007 11:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] changing states from within a component Hi, I'm working on an application, which is component based. One of my components is a Login screen, in which the user enters the username and password, these details are passed to a ColdFusion CFC and checked, the result is then checked. If the login is successful I want to be able to change the state in the main application file from the Login state to the Home state, originally I tried using: this.currentState = 'Home'; But this was in the Login component, which doesn't have states, so that didn't work. What is the best practice for components to call the main application to perform tasks like changing the state? Thanks Stephen
Re: [flexcoders] changing states from within a component
Have the login component fire an event upon succesful, or failed, login. Have the 'main app respond to the event by changing states (or displaying an error). At 12:23 PM 2/27/2007, you wrote: Hi, I'm working on an application, which is component based. One of my components is a Login screen, in which the user enters the username and password, these details are passed to a ColdFusion CFC and checked, the result is then checked. If the login is successful I want to be able to change the state in the main application file from the Login state to the Home state, originally I tried using: this.currentState = 'Home'; But this was in the Login component, which doesn't have states, so that didn't work. What is the best practice for components to call the main application to perform tasks like changing the state? Thanks Stephen -- Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com Connecticut Macromedia User Group: http://www.ctmug.com
[flexcoders] disabling COPY in drag/drop operations
set the dragMoveEnabled=false on your datagrid a+ brian.. *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
[flexcoders] Flex Builder Syntax Highlighting Not Working
Has anyone experienced syntax highlighting for the Flex Builder plugin (2.0.1) in Eclipse (3.2.1) failing all together or at best working sporadically? And has anyone determined a fix?
[flexcoders] Basic inheritance question
Hi, I'm reading the Developer's Guide and in the section using Events, they say on a paragraph that : If you try to call another method on the currentTarget (for example, the setStyle() method), Flex returns an error. The setStyle() method is defined on UIComponent, a subclass of DisplayObject. Therefore, you must cast currentTarget to UIComponent before calling the setStyle() method for example: mx:Script ![CDATA[ import mx.core.UIComponent; private function myEventHandler(e:Event):void { UIComponent(e.currentTarget).setStyle(color, red); } ]] /mx:Script and e.currentTarget is of type Button. But Button extends UIComponent, so we don't have to upcast the reference because setStyle method is public and is available to Button object reference0. I tried the code without upcasting and it works. Is the writer wrong or Am I missing something on the concept. Thanks Jairo
[flexcoders] Re: ArrayCollection.filterFunction assigned but returns null
Anyone? --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: I've got a filterFunction assigned, the DataGrid that is bound to the ArrayCollection shows the correctly filtered list, and debugging shows that the source Array has 10 items while the collection only has 3. However, myCollection.filterFunction returns null. Anyone have an idea of what could be going on here? TIA, Ben
[flexcoders] Re: Storing / retrieving rich text
Maybe I misunderstood your last post, but I am getting an XML field from a HTTPservice call with resultformat e4x and this XML field has HTML content wrapped in a CDATA tag. I bound this XML field to a regular text control's html property and it renders as HTML not as text --- In flexcoders@yahoogroups.com, Ben Marchbanks [EMAIL PROTECTED] wrote: Wrapping the text in ![CDATA causes the CDATA to be interpreted literally and rendered along with the text. setting the resultFormat to text makes it much more difficult to handle the text and distribute it to the appropriate display objects. Barring any easier solutions at this point it looks like stripping out the white space with AS is the only option. iko_knyphausen wrote: Have you tried using CDATA around your text when retrieving from your database? ![CDATA[ ]] I use it to store HTML formatted text in a database and to retrieve it back into any HTML capable control, such as rtfedit or textarea... even a simple TEXT control as itemrenderer works with this method... HTH Iko --- In flexcoders@yahoogroups.com, pdflibpilot flex@ wrote: I am trying to develop a method to allow web administrators to be able to edit text in their Flex application directly in the UI (without Flex). This text gets saved to mySQL when they close the rich text editor. The data is stored correctly in mySQL however when its retrieved it gets formated as an XML object when extracted from the event.result. While this makes it easy to populate the various labels and text objects with the rich text data. The problem is that the rich text data gets formatted as XML with new lines and indents. Like in this dmup contentLive TEXTFORMAT LEADING=2 P ALIGN=CENTER FONT FACE=Verdana SIZE=14 COLOR=#FF LETTERSPACING=0 KERNING=0 BThis is /B FONT COLOR=#0033FF B Ulive content/U /B /FONT /FONT /P /TEXTFORMAT /contentLive How can I force it to treat it as raw text just like its stored in mySQL without the formatting ?
Re: [flexcoders] Re: Storing / retrieving rich text
Can you share a sample of the XML content that you bind to your text control ? For now I have stripped the XML formatting (i.e. newlines and indents - rich Text tags remain in place) to achieve the desired results with AS. Otherwise my process is very much as you describe yours and works fine for now. Are you writing rich text back to your data source ? Are you implicitly adding the !CDATA ? wrapper or is this wrapper automated ? Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 iko_knyphausen wrote: Maybe I misunderstood your last post, but I am getting an XML field from a HTTPservice call with resultformat e4x and this XML field has HTML content wrapped in a CDATA tag. I bound this XML field to a regular text control's html property and it renders as HTML not as text --- In flexcoders@yahoogroups.com, Ben Marchbanks [EMAIL PROTECTED] wrote: Wrapping the text in ![CDATA causes the CDATA to be interpreted literally and rendered along with the text. setting the resultFormat to text makes it much more difficult to handle the text and distribute it to the appropriate display objects. Barring any easier solutions at this point it looks like stripping out the white space with AS is the only option. iko_knyphausen wrote: Have you tried using CDATA around your text when retrieving from your database? ![CDATA[ ]] I use it to store HTML formatted text in a database and to retrieve it back into any HTML capable control, such as rtfedit or textarea... even a simple TEXT control as itemrenderer works with this method... HTH Iko --- In flexcoders@yahoogroups.com, pdflibpilot flex@ wrote: I am trying to develop a method to allow web administrators to be able to edit text in their Flex application directly in the UI (without Flex). This text gets saved to mySQL when they close the rich text editor. The data is stored correctly in mySQL however when its retrieved it gets formated as an XML object when extracted from the event.result. While this makes it easy to populate the various labels and text objects with the rich text data. The problem is that the rich text data gets formatted as XML with new lines and indents. Like in this dmup contentLive TEXTFORMAT LEADING=2 P ALIGN=CENTER FONT FACE=Verdana SIZE=14 COLOR=#FF LETTERSPACING=0 KERNING=0 BThis is /B FONT COLOR=#0033FF B Ulive content/U /B /FONT /FONT /P /TEXTFORMAT /contentLive How can I force it to treat it as raw text just like its stored in mySQL without the formatting ?
RE: [flexcoders] Basic inheritance question
In general you always want to cast something like this - because event.currentTarget is of type object and NOT UIComponent or Button. But since objects are loosely typed as type Object, then you reference any property or method you want at compile time. Often at runtime though you will hit errors unless it is properly casted. Your sample application was done in Flex 2 right? Definitely a best practice to be casting generic objects like this to the type of object you want to be working with to avoid runtime errors Karl Cynergy From: flexcoders@yahoogroups.com on behalf of jairokan Sent: Tue 2/27/2007 11:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Basic inheritance question Hi, I'm reading the Developer's Guide and in the section using Events, they say on a paragraph that : If you try to call another method on the currentTarget (for example, the setStyle() method), Flex returns an error. The setStyle() method is defined on UIComponent, a subclass of DisplayObject. Therefore, you must cast currentTarget to UIComponent before calling the setStyle() method for example: mx:Script ![CDATA[ import mx.core.UIComponent; private function myEventHandler(e:Event):void { UIComponent(e.currentTarget).setStyle(color, red); } ]] /mx:Script and e.currentTarget is of type Button. But Button extends UIComponent, so we don't have to upcast the reference because setStyle method is public and is available to Button object reference0. I tried the code without upcasting and it works. Is the writer wrong or Am I missing something on the concept. Thanks Jairo
[flexcoders] Error Handling on Computers with No Sound Hardware
When I have flex play a sound effect on a computer with no sound hardware I get this actionscript error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.effects.effectClasses::SoundEffectInstance/play() at mx.effects::EffectInstance/startEffect() at mx.effects::Effect/play() at MethodInfo-3348() at Function/http://adobe.com/AS3/2006/builtin::apply() at () at flash.utils::SetIntervalTimer/flash.utils:SetIntervalTimer::onTimer() at flash.utils::Timer/flash.utils:Timer::_timerDispatch() at flash.utils::Timer/flash.utils:Timer::tick() How can I handle this error for computers without sound hardware so it doesn't halt their flex app? Thanks! -Jamie
[flexcoders] Re: Storing / retrieving rich text
Sure... see below... The data gets stored as HTML (posted via Form fields) but without CDATA wrapping. The server side script that returns the data puts the wrapper CDATA tags around before sending the XML... mx:HTTPService id=xmlItemGridLog resultFormat=e4x fault=httpsFault(event) useProxy=false method=POST url=itemlogsXML.asp/ mx:DataGrid id=dgItemLog height=310 verticalScrollPolicy=auto variableRowHeight=true right=10 left=10 y=10 dataProvider={xmlItemGridLog.lastResult.LOGENTRY} focusAlpha=0 borderColor=#cc mx:columns mx:DataGridColumn width=75 headerText=Date dataField=LOGDATE/ mx:DataGridColumn width=75 headerText=Person dataField=PERSON/ mx:DataGridColumn width=75 headerText=Type dataField=LOGTYPE/ mx:DataGridColumn wordWrap=true headerText=Details dataField=LOGDETAILS mx:itemRenderer mx:Component mx:Text htmlText={data.LOGDETAILS} / /mx:Component /mx:itemRenderer /mx:DataGridColumn /mx:columns /mx:DataGrid --- In flexcoders@yahoogroups.com, Ben Marchbanks [EMAIL PROTECTED] wrote: Can you share a sample of the XML content that you bind to your text control ? For now I have stripped the XML formatting (i.e. newlines and indents - rich Text tags remain in place) to achieve the desired results with AS. Otherwise my process is very much as you describe yours and works fine for now. Are you writing rich text back to your data source ? Are you implicitly adding the !CDATA ? wrapper or is this wrapper automated ? Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 iko_knyphausen wrote: Maybe I misunderstood your last post, but I am getting an XML field from a HTTPservice call with resultformat e4x and this XML field has HTML content wrapped in a CDATA tag. I bound this XML field to a regular text control's html property and it renders as HTML not as text --- In flexcoders@yahoogroups.com, Ben Marchbanks flex@ wrote: Wrapping the text in ![CDATA causes the CDATA to be interpreted literally and rendered along with the text. setting the resultFormat to text makes it much more difficult to handle the text and distribute it to the appropriate display objects. Barring any easier solutions at this point it looks like stripping out the white space with AS is the only option. iko_knyphausen wrote: Have you tried using CDATA around your text when retrieving from your database? ![CDATA[ ]] I use it to store HTML formatted text in a database and to retrieve it back into any HTML capable control, such as rtfedit or textarea... even a simple TEXT control as itemrenderer works with this method... HTH Iko --- In flexcoders@yahoogroups.com, pdflibpilot flex@ wrote: I am trying to develop a method to allow web administrators to be able to edit text in their Flex application directly in the UI (without Flex). This text gets saved to mySQL when they close the rich text editor. The data is stored correctly in mySQL however when its retrieved it gets formated as an XML object when extracted from the event.result. While this makes it easy to populate the various labels and text objects with the rich text data. The problem is that the rich text data gets formatted as XML with new lines and indents. Like in this dmup contentLive TEXTFORMAT LEADING=2 P ALIGN=CENTER FONT FACE=Verdana SIZE=14 COLOR=#FF LETTERSPACING=0 KERNING=0 BThis is /B FONT COLOR=#0033FF B Ulive content/U /B /FONT /FONT /P /TEXTFORMAT /contentLive How can I force it to treat it as raw text just like its stored in mySQL without the formatting ?
[flexcoders] Re: setFocus - help needed
Change the line of code in your goTo() method to be: focusManager.setFocus(one); --- In flexcoders@yahoogroups.com, dffmyco [EMAIL PROTECTED] wrote: Three text input controls. Tab enabled, tab index 1,2,3. On the focus out of text control three I run a function to set focus back to text control 1. Text control 1 gets the focus(blue outline) but the cursor is not displayed until I click on the box. What do I have to do to have the cursor appear in the text control. Thanks, Dave ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.core.*; private function goto():void{ one.setFocus() } ]] /mx:Script mx:TextInput x=137 y=77 id=one tabIndex=1 tabEnabled=true/ mx:TextInput x=137 y=147 id=two tabIndex=2 tabEnabled=true/ mx:TextInput x=137 y=237 id=three tabIndex=3 focusOut=goto() tabEnabled=true/ /mx:Application
[flexcoders] Re: Need help seaching and comparing in an ArrayCollection
That is exactly what you need to do. Create a for loop and get a handle on each object in the loop. Then, set up a method that returns a Boolean if it needs to be flagged. This method will check the dates. if true, then inside your For loop, flag the data object. Note: You can do the conditionals inside the for loop, it's just better for readability to extract that logic out to another method within the same class. --- In flexcoders@yahoogroups.com, Mark [EMAIL PROTECTED] wrote: I'm at a bit of a loss right now how to do something. I'm building an app that shows current and future projects with deploy dates, names, etc. One thing they want this app to do is to flag projects that are to be deployed within a week of any other project. In other words, if one is going out the door on March 1 and anther is going out on March 3 or February 27, each gets a flag. I'm really at a loss on how to best go about searching my ArrayCollection for these items. Can someone please help with how I can get started? I guess I somehow need to pull out one item at a time from the AC and compare it with all the rest in the AC? Thanks