Re: [flexcoders] Flex to HTML5 Conversion tool?
Just to throw in my two cents... I would not hold out any hope for any solution that will magically convert your Flex app to a HTML/JS app. Not in 6 months, not in 6 years. I don't want to be a downer, but I just don't see it happening. Sure, we may see some tech demos that work on super simple Flex apps, but I think that's about as far as you'll get. You also might get tools that let you write a new app in MXML/AS, specifically with targeting HTML/JS in mind, and that might work well. But I have almost no confidence that you will ever be able to take an existing, large Flex app and magically get it to run well as an HTML app. I'd of course love to be proven wrong. My advice is that if you really need to target HTML/JS is to build it new from scratch. It's a harsh reality, and you're going to hate a lot of the toolchain, language, and process, but if you really do have the requirement that you need to have an HTML/JS app, you might as well just rip off the band-aid in one go instead of holding out hope for a holy grail solution. On Thu, Dec 1, 2011 at 6:27 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: ** Check out another possibility - using haXe for converting an MXML/Actionscript project to HTML5/Javascript. The syntax is extremely similar to Actionscript, so you could convert the MXML (via the option with the compiler to save the generated Actionscript from MXML) to haXe code, and the Actionscript too. ** ** Jason Merrill Instructional Technology Architect II** * Bank of America* Global Learning ** ** ** ** ** ** ** ** ** ** ___ ** ** *From:* flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] *On Behalf Of *ganaraj p r *Sent:* Thursday, December 01, 2011 4:13 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Flex to HTML5 Conversion tool? ** ** If my understanding is right, Adobe is working on it currently. So you might have to wait for another 6 months or so. ** ** If that time frame is not suitable for you, I suggest you rewrite the project in HTML 5. On Thu, Dec 1, 2011 at 3:27 AM, Sells, Fred fred.se...@adventistcare.org wrote: I am looking at the same problem. A very long time ago I designed a tool called ezX that was similar to Flex but not nearly as robust. That was an Xwindows tool and has since gone the way of the dinosaur. I’m still researching but I think a tool like pyjamas pyjs.org might be a building block. You could write an xml parser to handle the mxml to dom and then use the dom to generate pyjamas class definitions (which you would probably have to tweak by hand). I’m not sure about the action script. Source parsing is too tricky and I don’t know if the byte code is easy to handle. Might be better to outsource that overseas. Let me know what you decide *From:* flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] *On Behalf Of *Venkat M *Sent:* Wednesday, November 30, 2011 12:56 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Flex to HTML5 Conversion tool? *Hi Group,* * * *I have a quick question.* *I have a web application that was developed using 100% flex (AS included).* *Now to be on the safe side we want to evaluate the options of converting the same on to HTML5. * * * *Do any one know of any tools that can help in the process of converting from flex (developed) to html5 version?* *Your help will be greatly appreciated.* Cheers, *Venkat.* ** ** -- Regards, Ganaraj P R -- This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or
[flexcoders] flexcoders stats and charts (and full data download)
Hey guys, Last night I put together a post that details some of the stats for this list: http://dougmccune.com/blog/2009/11/03/flexcoders-mailing-list-stats-pretty-graphs-full-dataset/ The post also contains a download of the entire archive of all flexcoders messages (up through last night). The file is a CSV file and contains the sender name, subject, and date of every message ever posted to the list. It contains 148,826 posts. I also have the full database archive (it's in MS Access format) that contains all the full-text of the messages, but that file is 1.5 gigs so I'm not posting it for download, but if someone has some ideas about what to do with it I can probably get it to you somehow. I know we had a long discussion back a long time ago about whether the list was declining in traffic, whether it should be split up, yadda yadda. I finally got around to getting a really good complete dataset to play with. Hope you enjoy the post and let me (and the rest of us on the list) know if you do anything cool with the data yourself. Doug
Re: [flexcoders] flexcoders stats and charts (and full data download)
And of course instantly my server decides to go down. I'm aware, working on it. Sorry for the check this out, oh wait, server crashed :P Doug On Tue, Nov 3, 2009 at 8:04 AM, primo411 primo...@gmail.com wrote: Wow ! The UI looks really nice :) 2009/11/3 Doug McCune d...@dougmccune.com Hey guys, Last night I put together a post that details some of the stats for this list: http://dougmccune.com/blog/2009/11/03/flexcoders-mailing-list-stats-pretty-graphs-full-dataset/ The post also contains a download of the entire archive of all flexcoders messages (up through last night). The file is a CSV file and contains the sender name, subject, and date of every message ever posted to the list. It contains 148,826 posts. I also have the full database archive (it's in MS Access format) that contains all the full-text of the messages, but that file is 1.5 gigs so I'm not posting it for download, but if someone has some ideas about what to do with it I can probably get it to you somehow. I know we had a long discussion back a long time ago about whether the list was declining in traffic, whether it should be split up, yadda yadda. I finally got around to getting a really good complete dataset to play with. Hope you enjoy the post and let me (and the rest of us on the list) know if you do anything cool with the data yourself. Doug
Re: [flexcoders] flexcoders stats and charts (and full data download)
Seems to be back up, god I hate servers, but I guess that's why I do front-end development. BTW, I'm going to be investigating getting a full dataset of the Adobe Flex forums too and will likely do some similar visualizations once I figure out how to get the data. Looks like the forum software Adobe uses (from Jive) has webservice access and I should be able to write something to pull all the data. If anyone has any experience with this, drop me a line. Doug On Tue, Nov 3, 2009 at 8:07 AM, Doug McCune d...@dougmccune.com wrote: And of course instantly my server decides to go down. I'm aware, working on it. Sorry for the check this out, oh wait, server crashed :P Doug On Tue, Nov 3, 2009 at 8:04 AM, primo411 primo...@gmail.com wrote: Wow ! The UI looks really nice :) 2009/11/3 Doug McCune d...@dougmccune.com Hey guys, Last night I put together a post that details some of the stats for this list: http://dougmccune.com/blog/2009/11/03/flexcoders-mailing-list-stats-pretty-graphs-full-dataset/ The post also contains a download of the entire archive of all flexcoders messages (up through last night). The file is a CSV file and contains the sender name, subject, and date of every message ever posted to the list. It contains 148,826 posts. I also have the full database archive (it's in MS Access format) that contains all the full-text of the messages, but that file is 1.5 gigs so I'm not posting it for download, but if someone has some ideas about what to do with it I can probably get it to you somehow. I know we had a long discussion back a long time ago about whether the list was declining in traffic, whether it should be split up, yadda yadda. I finally got around to getting a really good complete dataset to play with. Hope you enjoy the post and let me (and the rest of us on the list) know if you do anything cool with the data yourself. Doug
Re: [flexcoders] flexcoders stats and charts (and full data download)
I've got the numbers for longest threads too, just didn't include those stats in the post. Here are the top 5 threads for all time and for the past year. For all time: Splitting FlexCoders into smaller, focused groups - 137 messages Will Microsofts new Silverlight Player kill our beloved Flex? - 129 messages Flex 1.5 price - 103 messages Choice of backend systems - 82 messages SEO Compatibility - 66 messages For only 2009: Flex Builder on Linux being scrapped - 38 messages New Adobe Forums coming! - 37 messages Question about a Flex component - 34 messages Roles Based UI - 33 messages Ribbon in FLEX - 30 messages On Tue, Nov 3, 2009 at 9:02 AM, John McCormack j...@easypeasy.co.uk wrote: Very interesting stats., and it's hat's off to Tom Chiverton and Tracy Spratt. Thank you to them. How about a star burst to show which topics led to the most subsequent activity? John Doug McCune wrote: Seems to be back up, god I hate servers, but I guess that's why I do front-end development. BTW, I'm going to be investigating getting a full dataset of the Adobe Flex forums too and will likely do some similar visualizations once I figure out how to get the data. Looks like the forum software Adobe uses (from Jive) has webservice access and I should be able to write something to pull all the data. If anyone has any experience with this, drop me a line. Doug On Tue, Nov 3, 2009 at 8:07 AM, Doug McCune d...@dougmccune.comdoug%40dougmccune.com mailto:d...@dougmccune.com doug%40dougmccune.com wrote: And of course instantly my server decides to go down. I'm aware, working on it. Sorry for the check this out, oh wait, server crashed :P Doug On Tue, Nov 3, 2009 at 8:04 AM, primo411 primo...@gmail.comprimo411%40gmail.com mailto:primo...@gmail.com primo411%40gmail.com wrote: Wow ! The UI looks really nice :) 2009/11/3 Doug McCune d...@dougmccune.com doug%40dougmccune.com mailto:d...@dougmccune.com doug%40dougmccune.com Hey guys, Last night I put together a post that details some of the stats for this list: http://dougmccune.com/blog/2009/11/03/flexcoders-mailing-list-stats-pretty-graphs-full-dataset/ The post also contains a download of the entire archive of all flexcoders messages (up through last night). The file is a CSV file and contains the sender name, subject, and date of every message ever posted to the list. It contains 148,826 posts. I also have the full database archive (it's in MS Access format) that contains all the full-text of the messages, but that file is 1.5 gigs so I'm not posting it for download, but if someone has some ideas about what to do with it I can probably get it to you somehow. I know we had a long discussion back a long time ago about whether the list was declining in traffic, whether it should be split up, yadda yadda. I finally got around to getting a really good complete dataset to play with. Hope you enjoy the post and let me (and the rest of us on the list) know if you do anything cool with the data yourself. Doug
Re: [flexcoders] Nobody ever answers any of my posts...
Ha, I totally thought you meant try starting the post 1/2 pixel down from the previous post if he wanted someone to answer. Why isn't anyone answering me?!?!?! Dude, your posts are off by a half pixel, duh. On Sat, Oct 31, 2009 at 12:39 AM, dorkie dork from dorktown dorkiedorkfromdorkt...@gmail.com wrote: Maybe try starting them 1/2 to 1 pixel before your current positions and 1/2 to 1px after your end position. On Fri, Oct 30, 2009 at 6:41 PM, cjsteury2 cra...@steury.com wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, cjsteury2 cra...@... wrote: Okay... i have finally figured out how to write a custom itemrenderer for HOLC Chart Series Item... And the secret is posted below (about 99% of the way)... can anyone PLEASE tell me how to render the Open and Close Tick marks correctly?? Using this code they are a little off... I have tried to get the DrawRect() function a million diff ways but do not know what is throwing it off... package com.steury.controls.orders { // empty package. import flash.display.Graphics; import mx.charts.series.items.HLOCSeriesItem; import mx.core.IDataRenderer; import mx.skins.ProgrammaticSkin; public class ChartColorRenderer extends mx.skins.ProgrammaticSkin implements IDataRenderer{ private var color:Number; private var green:Number = 0x00ff00; private var red:Number = 0xfe; private var _hlocItem:HLOCSeriesItem; private var open:Number; private var close:Number; public function ChartColorRenderer() { // Empty constructor. } public function get data():Object { return _hlocItem; } public function set data(value:Object):void { _hlocItem = value as HLOCSeriesItem invalidateDisplayList(); open=_hlocItem.openFilter; close=_hlocItem.closeFilter; } override protected function updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); if (open close) color = red; if (open close) color = green; var g:Graphics = graphics; g.clear(); g.beginFill(color,1); g.drawRect(0, 0, unscaledWidth, unscaledHeight); g.endFill(); g.beginFill(color,1); g.drawRect(open,0,10,1); g.endFill(); g.beginFill(color,1); g.drawRect(0,close,10,1); g.endFill(); } } // Close class. } // Close package.
Re: [flexcoders] Re: Flex DMV 3.4.0
Entering your license key into FB was supposed to automatically run the extraction too (although sometimes this didn't work and you had to manually run the extraction to get at the source). But yeah, now it seems like you just download the 3.4 DMV zip file from the official adobe website. On Thu, Aug 27, 2009 at 2:08 PM, tntomek tnto...@yahoo.com wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jeffry Houser j...@... wrote: But, if I have the ActionScript source code why would I need to do that? Can't I just compile my own swc? I feel like I'm missing a piece of the puzzle. tntomek wrote: Previously for 3.3 you had to run a java command that looked at your flex builder license file -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust Prior to 3.4 you didnt have the source code until you ran the java encrypted extract
Re: [flexcoders] Flex 4 Profiling Question - GC Root?
will filter out chains that have long paths back to the root as those are less likely to be the source of a problem. I'm curious about this part about filtering out chains with very long paths. I've come across quite a few instances of loitering objects in the FB 4 profiler that don't show any back references. When you expand the reference it just lists itself and it says that it is a GC root node. But then doing some really aggressive stuff to try to free up all possible references does indded get those items collected (meaning that I don't think it can be blamed on the GC simply not running when I took my snapshot, etc). Could this be because there are filtered out chains that I'm not seeing? Is there any way to selectively turn any kind of filtering like this off? Doug
Re: [flexcoders] FlowBox Nesting
FlowBox has a pretty serious bug having to do with how it does its height calculation. This bug has been logged and has remained unresolved for far too long (I say this as the main flexlib maintainer, it's basically my laziness that has kept this from being fixed). That said, there's a second container in FlexLib that also accomplishes the same goal, it's called FlowContainer. It was origianlly written as part of the docking toolbar component. It more or less does the exact same thing, but doesn't have the problem with the height calculation. So I'd advise trying to use FlowContainer instead of FlowBox, I bet it will solve your problem. Doug On Tue, May 12, 2009 at 5:56 PM, Mike Oliver moli...@corenttech.com wrote: Yes its the flow box see attached. http://www.nabble.com/file/p23513630/ToolbarDemo.swf ToolbarDemo.swf It looks like the flow box calculates its height based on all components wrapping. Ollie Tracy Spratt-2 wrote: Is it the FlowBox that is causing the problem? What happens if you replace it with an HBox? Do you still get that space? Can you put a border or background on the FlowBox to see if it is causing the layout issue? Something is confusing the layout. The space between items in a VBox should be only the verticalGap. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Mike Oliver Sent: Tuesday, May 12, 2009 8:13 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: RE: [flexcoders] FlowBox Nesting I said that I tried a VBox and that did NOT give me what I want, Here is the mxml mx:VBox x=10 y=42 height=650 width=100% ns1:FlowBox width=100% paddingBottom=10 paddingLeft=10 paddingRight=10 paddingTop=10 left=10 mx:ComboBox/mx:ComboBox mx:DateField/ mx:Button label=Save/ mx:Button label=Add/ mx:Button label=Cancel/ mx:HSlider/ /ns1:FlowBox mx:DataGrid height=100% width=100% left=0 mx:columns mx:DataGridColumn headerText=Column 1 dataField=col1/ mx:DataGridColumn headerText=Column 2 dataField=col2/ mx:DataGridColumn headerText=Column 3 dataField=col3/ /mx:columns /mx:DataGrid /mx:VBox and I attached the swf and here is a screen shot. http://www.nabble. http://www.nabble.com/file/p23513102/ToolbarDemo.swf com/file/p23513102/ToolbarDemo.swf ToolbarDemo.swf Now note that the space between the flowbox and the grid is what I want to eliminate. http://www.nabble. http://www.nabble.com/file/p23513102/ScreenHunter_28%2BMay.%2B12%2B17.09.jp g com/file/p23513102/ScreenHunter_28%2BMay.%2B12%2B17.09.jpg Tracy Spratt-2 wrote: Plain old VBox will do this for you. Set the lower grid height to 100% and it should resize dynamically to fit (If the VBox has a fixed height) If the VBox height is not set then its container will show scrollbars Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.comflexcoders%2540yahoogroups.com ups.com [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.comflexcoders%2540yahoogroups.com ups.com] On Behalf Of Mike Oliver Sent: Tuesday, May 12, 2009 12:55 PM To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.comflexcoders%2540yahoogroups.com ups.com Subject: [flexcoders] FlowBox Nesting I am trying to create a screen with a grid and a toolbar on top of it. The problem is that the toolbar can have more user selectable controls in it than will fit on small screens. So I wanted to use the FlowBox and that works great but only if I allow for the space between the Flowbox and the grid control under it. I wanted the grid control to float under the toolbar and if the toolbar / flowbox gets reduced in width to wrap a control down into a second row the grid would slide down to accommodate. So I thought a flowbox with a flowbox and the grid control in it but the nested flowbox and grid won't fill the parent flow box with width=100% I have tried TileList and VBox and have yet to find the combination that will allow the grid to float under the FlowBox. -- View this message in context: http://www.nabble. http://www.nabble. http://www.nabble.com/FlowBox-Nesting-tp23506408p23506408.html com/FlowBox-Nesting-tp23506408p23506408.html com/FlowBox-Nesting-tp23506408p23506408.html Sent from the FlexCoders mailing list archive at Nabble.com. -- View this message in context: http://www.nabble. http://www.nabble.com/FlowBox-Nesting-tp23506408p23513102.html com/FlowBox-Nesting-tp23506408p23513102.html Sent from the FlexCoders mailing list archive at Nabble.com. -- View this message in context:
Re: [flexcoders] Check out my Facebook profile
A septilian teraflops?! zoids! On Tue, Feb 10, 2009 at 4:21 PM, Kelly dek...@gmail.com wrote: It is a datamining operation sponsored and run by the American/Nazi Cocaine Importation Agency (CIA). The National Slavery Agency (NSA) is also heavily involved in the project http://www.youtube.com/watch?v=ZMWz3G_gPhU It is an extension of the MK-Ultra Nazi mind control experiments of the last 80 years. http://www.abovetopsecret.com/forum/thread291893/pg1 http://www.conspiracyresearch.org/forums/Is-The-Nsa-Using-Optical-Processors-t36231.html The second book he published 'Body of Secrets - Anatomy of the Ultra-Secret National Security Agency' even went further. But in the first few pages of the book they talk about their staff working on a computer capable of a Septillion calculations per second (which is literally orders of magnitude beyond anything known to the public..) That is one heavily researched book with over 650 references at the end of it... Why is there great suspicion of the NSA having a optical computer (not to even mention a possible quantum computer) is because of a company out of Israel named Lenslet. Lenslet in 2003 debuted a Optical DSP processor on a line-card capable of 8 Teraflops of calculations per second - If you don't know how fast that is - it is equal to about 1250 high end silicon based processors working together... Read about it yourself : http://www.controleng.com/article/CA491825.html What does a scanner see? I mean, really see? Into the head? Down into the heart? Does a passive infrared scanner … see into me — into us — clearly or darkly? Nate Beck wrote: Facebook What's that? ;) On Tue, Feb 10, 2009 at 9:07 AM, Sreejith P Nair sreejith@gmail.comwrote: facebookCheck out my Facebook profile Hi Flexcoders, I set up a Facebook profile where I can post my pictures, videos and events and I want to add you as a friend so you can see it. First, you need to join Facebook! Once you join, you can also create your own profile. Thanks, Sreejith *To sign up for Facebook, follow the link below:* http://www.facebook.com/p.php?i=502238417k=56G3Y5U3SZ3MXCAHWB2XRr See who else has invited you to Facebook: [image: Tawfek Daghistani]http://www.facebook.com/p.php?i=502238417k=56G3Y5U3SZ3MXCAHWB2XRr Tawfek Daghistanihttp://www.facebook.com/p.php?i=502238417k=56G3Y5U3SZ3MXCAHWB2XRr 63 friends 5 photos [image: Vinay Pillay]http://www.facebook.com/p.php?i=502238417k=56G3Y5U3SZ3MXCAHWB2XRr Vinay Pillayhttp://www.facebook.com/p.php?i=502238417k=56G3Y5U3SZ3MXCAHWB2XRr 59 friends [image: Fernando Koike]http://www.facebook.com/p.php?i=502238417k=56G3Y5U3SZ3MXCAHWB2XRr Fernando Koikehttp://www.facebook.com/p.php?i=502238417k=56G3Y5U3SZ3MXCAHWB2XRr 44 friends [image: Trần Quang Khánh]http://www.facebook.com/p.php?i=502238417k=56G3Y5U3SZ3MXCAHWB2XRr Trần Quang Khánhhttp://www.facebook.com/p.php?i=502238417k=56G3Y5U3SZ3MXCAHWB2XRr 10 friends [image: Rose Wilson]http://www.facebook.com/p.php?i=502238417k=56G3Y5U3SZ3MXCAHWB2XRr Rose Wilsonhttp://www.facebook.com/p.php?i=502238417k=56G3Y5U3SZ3MXCAHWB2XRr 401 friends 0 photos [image: Syaahil Hamid Ramadhan]http://www.facebook.com/p.php?i=502238417k=56G3Y5U3SZ3MXCAHWB2XRr Syaahil Hamid Ramadhanhttp://www.facebook.com/p.php?i=502238417k=56G3Y5U3SZ3MXCAHWB2XRr 6 friends This e-mail may contain promotional materials. If you do not wish to receive future commercial mailings from Facebook, please opt outhttp://www.facebook.com/o.php?k=21d3f5u=715860443. Facebook's offices are located at 156 University Ave., Palo Alto, CA 94301. -- Cheers, Nate http://blog.natebeck.net
Re: [flexcoders] multiple select in List w/o holding ctrl key?
I wrote this a few years ago, might be what you're looking for: http://dougmccune.com/blog/2007/04/01/list-control-for-the-one-armed-man-take-two/ Doug On Thu, Feb 5, 2009 at 4:50 PM, coder3 rrhu...@hotmail.com wrote: Hi All, I have a mx:List that allows multipleSelection. It works. But in order to do multiple select/unselect, i need to hold the Ctrl key, otherwise, it will be single select/unselect. Is there a way to do the multiple select w/o holding the Ctrl Key? Thanks C -- View this message in context: http://www.nabble.com/multiple-select-in-List-w-o-holding-ctrl-key--tp21864541p21864541.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Custom List Item Render to have multiline (so variable Height)
I've pretty much never been able to use variableRowHeight in a real world scenario. Once you start scrolling with item renderers that need to measure themselves based on data, it all gets completely messed up. I'd love it if someone knew how to get it working all the time (as opposed to only on the first rendering pass). But I've basically resigned myself to the fact that variableRowHeight can't be used. Doug On Wed, Feb 4, 2009 at 1:26 PM, Flap Flap flapflapl...@kilooctet.netwrote: Hi there, Second night that I'm pulling my hairs on this stuff, I'm sure you will give me some good hints. So, I have a custom list item render. It's a VBOx with a GradientCanvas (width 100%, no height) child that have a TextArea for child (width 100%, no height). The GradientCanvas he's a custom component to have a advanced gradient background. The problem is one the TextArea. Here is the behavior that I'd like to have: When text is on several lines, the item renderer should update his height to match the TextArea height. At this moment, the TextArea display scrollbars. I've try with Label (but no multiline). With UITextField, but not a mx component... With Text component but the list act weird with this one... Can you point me to some clues ? thx Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
Re: [flexcoders] Custom List Item Render to have multiline (so variable Height)
Perhaps I was a bit harsh in my initial comment about variableRowHeight :) I'll certainly try some examples and report back on what works and what doesn't for me. Maybe I've just always done my custom renderers wrong somehow for working with variableRowHeight with scrolling. Doug On Wed, Feb 4, 2009 at 2:54 PM, Fotis Chatzinikos fotis.chatzini...@gmail.com wrote: Doug, have you tried adding the following on the textarae? It solves real world renderer recycling :-) minHeight=0 //to accomodate for really short renderers change=invalidateSize() //re-measure on text change when a renderer is recycled new text from the data provider is feed inside the textarea, so the change event fires which is wired to invalidateSize which in turn calls the overriden measure function. In the measure function, as Alex mentions in another mail do not use height but measuredheight instead. On Wed, Feb 4, 2009 at 11:47 PM, Doug McCune d...@dougmccune.com wrote: I've pretty much never been able to use variableRowHeight in a real world scenario. Once you start scrolling with item renderers that need to measure themselves based on data, it all gets completely messed up. I'd love it if someone knew how to get it working all the time (as opposed to only on the first rendering pass). But I've basically resigned myself to the fact that variableRowHeight can't be used. Doug On Wed, Feb 4, 2009 at 1:26 PM, Flap Flap flapflapl...@kilooctet.netwrote: Hi there, Second night that I'm pulling my hairs on this stuff, I'm sure you will give me some good hints. So, I have a custom list item render. It's a VBOx with a GradientCanvas (width 100%, no height) child that have a TextArea for child (width 100%, no height). The GradientCanvas he's a custom component to have a advanced gradient background. The problem is one the TextArea. Here is the behavior that I'd like to have: When text is on several lines, the item renderer should update his height to match the TextArea height. At this moment, the TextArea display scrollbars. I've try with Label (but no multiline). With UITextField, but not a mx component... With Text component but the list act weird with this one... Can you point me to some clues ? thx Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
Re: [flexcoders] Charting 1 minute data over 1 year
What if you aggregate your data by some amount (say the maximum resolution you can display on the x-axis), and then for each data point you plot the min, max, and average, kind of like the HLOCChart that's used to show stock data. That would let you see the average trend as well as identify any peaks or valleys that were out of the ordinary. So then the task involves being able to efficiently take 500,000 points and turn it into 2,000 aggregated points with min/max/avg. Or even just do 3 completely separate line series for the min, max, and avg. There's only so much information you can show in a single horizontal pixel, so there's simply no way to show all the data. But showing min/max/avg might get you the info you need. Doug On Thu, Jan 29, 2009 at 3:27 PM, Maciek Sakrejda msakre...@truviso.comwrote: How about, on the main graph, showing the raw data as limited by the slider, but on the slider, show points that average over some period of time, combined with a separate series for outlying points (those outside 1 or 2 standard deviations from the mean)? This gives you an overview of the general trends, a quick indication of outliers, and an ability to zoom in on any single section fairly easily. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Mark Easton mar...@azurebell.co.nz mark63%40azurebell.co.nz Reply-To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Charting 1 minute data over 1 year Date: Fri, 30 Jan 2009 12:16:16 +1300 Hi Maciek, Thanks for your response. Yes I have seen that example and I liked it. We still need to contend, though, with having 500,000 values to plot for the full graph. Using standard graphing that takes for ever to plot - in fact I could not get it to plot. 2000 values seems to the maximum number of points that can be plotted, or to be exact the number of pixels available on x-axis. So how can I take 500,000 points and : 1. Producre a graph that as closely as possible retains its shape? 2. Shows exceptional values If I were to massage the 500,000 points by taking sample of 250 points and averaging them, then I can miss important detail. I could use a vertical column graph with floating columns, where I plotted the line starting at min and ending at max for the plot point. Furthermore as the user used the slider to look at a smaller portion of the graph I would still want to plot at maximum pixel detail. That is if the user uses the slider to look at 1 month then that would allow me to plot points where each point was calculated from a smaller sample size. Cheers Mark -Original Message- From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com]On Behalf Of Maciek Sakrejda Sent: Friday, 30 January 2009 11:21 a.m. To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Charting 1 minute data over 1 year Have you suggested a thumbnail slider solution à la Google Finance (say, like here: http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night)? We've implemented something similar, and it works quite well. I can't share our implementation, but the example I linked has source. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Mark Easton mar...@azurebell.co.nz mark63%40azurebell.co.nz Reply-To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com To: Flexcoders flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Charting 1 minute data over 1 year Date: Fri, 30 Jan 2009 11:04:42 +1300 Hi, I am trying to work out how best to produce a chart which allows a user to make sense of data logged every minute for up to 12 months (ie 524160 values). To complicate matters the graphs are are presented on a dashboard where the user can display many graphs at once - so we are not just displaying the one graph and the size of the graph will change depending on how many graphs are being displayed in the dashboard window. We are logging sensor data (temperature, current, vibration, humidity, wind speed etc). Client does not like a month, week, day, hour, minute drill down scenario - I tried that and it was rejected. He wants a line graph, but where we do have to average data would like to some idea of max and mins - maybe that can be done in point comment. Trouble is if we chart so many points then there are too many points for the mouse click to discern. Essentially the client would like to see the data always at maximum detail no matter what period is being looked at. I have read this http://www.cynergysystems.com/blogs/page/andrewtrice?entry=visualizing_large _data_sets, and am thinking that I will need to proceed in kind and to
Re: [flexcoders] Charting 1 minute data over 1 year
Hey Mark, This might be out of the question due to client restrictions, but I'd be very interested in seeing a screenshot of the solution you come up with (even if you have to use some fake data to show us). It's an interesting data visualization problem and I think it would benefit many people here (or maybe just me) to see how you decided to solve it. So if after you figure out a workable solution you can share what you did and how well it worked, I'd be interested. Best of luck, Doug On Thu, Jan 29, 2009 at 4:12 PM, Mark Easton mar...@azurebell.co.nz wrote: Thanks Doug, Yes I have been thinking (the last hour) of using such a representation or alternatively of plotting a graph of floating columns, with each column starting at min and ending at max, combined with a line graph in a different colour showing the averages. BUT (and this is a big but) the client said he was not interested in min and max, but rather exceptional values. Although I have to take his requirements with a grain of salt sometimes it does pay to listen to him - he is the client! :) The exceptions may be a single solitary value or a series of values. So, if I were to grab the points that within each sample are 1 or 2 std deviations outside the normal then I wont always have these points - so they may just be the odd value. Hence using floating columns to display these seems to make sense. Mark -Original Message- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]*on Behalf Of *Doug McCune *Sent:* Friday, 30 January 2009 12:34 p.m. *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Charting 1 minute data over 1 year What if you aggregate your data by some amount (say the maximum resolution you can display on the x-axis), and then for each data point you plot the min, max, and average, kind of like the HLOCChart that's used to show stock data. That would let you see the average trend as well as identify any peaks or valleys that were out of the ordinary. So then the task involves being able to efficiently take 500,000 points and turn it into 2,000 aggregated points with min/max/avg. Or even just do 3 completely separate line series for the min, max, and avg. There's only so much information you can show in a single horizontal pixel, so there's simply no way to show all the data. But showing min/max/avg might get you the info you need. Doug On Thu, Jan 29, 2009 at 3:27 PM, Maciek Sakrejda msakre...@truviso.comwrote: How about, on the main graph, showing the raw data as limited by the slider, but on the slider, show points that average over some period of time, combined with a separate series for outlying points (those outside 1 or 2 standard deviations from the mean)? This gives you an overview of the general trends, a quick indication of outliers, and an ability to zoom in on any single section fairly easily. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Mark Easton mar...@azurebell.co.nz mark63%40azurebell.co.nz Reply-To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Charting 1 minute data over 1 year Date: Fri, 30 Jan 2009 12:16:16 +1300 Hi Maciek, Thanks for your response. Yes I have seen that example and I liked it. We still need to contend, though, with having 500,000 values to plot for the full graph. Using standard graphing that takes for ever to plot - in fact I could not get it to plot. 2000 values seems to the maximum number of points that can be plotted, or to be exact the number of pixels available on x-axis. So how can I take 500,000 points and : 1. Producre a graph that as closely as possible retains its shape? 2. Shows exceptional values If I were to massage the 500,000 points by taking sample of 250 points and averaging them, then I can miss important detail. I could use a vertical column graph with floating columns, where I plotted the line starting at min and ending at max for the plot point. Furthermore as the user used the slider to look at a smaller portion of the graph I would still want to plot at maximum pixel detail. That is if the user uses the slider to look at 1 month then that would allow me to plot points where each point was calculated from a smaller sample size. Cheers Mark -Original Message- From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com]On Behalf Of Maciek Sakrejda Sent: Friday, 30 January 2009 11:21 a.m. To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Charting 1 minute data over 1 year Have you suggested a thumbnail slider solution à la Google Finance (say, like here: http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night)? We've implemented
Re: [flexcoders] Flex. AIR and IPhone
Apologies for how long this email became, but I was reading around on the trusty wikipedia and wanted to try to clear up some things about the success of the existing web standards. I don't want this to come off as too much of a rant, but it proably will. Let's take a look at the history of CSS (http://en.wikipedia.org/wiki/CSS): CSS level 1: November 4, 1997 CSS level 2: May 12, 1998 CSS level 3: began 1998, still unfinished A brief excerpt: The CSS Working Group began tackling issues that had not been addressed with CSS level 1, resulting in the creation of CSS level 2 on November 4, 1997. It was published as a W3C Recommendation on May 12, 1998. *CSS level 3, which was started in 1998, is still under development as of 2008*. *In 2005 the CSS Working Groups decided to enforce the requirements for standards more strictly. This meant that already published standards like CSS 2.1, CSS 3 Selectors and CSS 3 Text were pulled back from Candidate Recommendation to Working Draft level.* And if you really want to have fun look at the half-assed implementation of CSS across the many browsers: http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(CSS). It's been 10 years since CSS 2 was written (10 years!) and yet there still isn't even consistent implementation of that. And CSS 3 implementation is a joke. Maybe HTML is better, let's look at that ( http://en.wikipedia.org/wiki/HTML#Version_history_of_the_standard): HTML 2: 1995 HTML 3.2 recommendation: January, 1997 HTML 4 recommendation: December, 1997 HTML 5 working draft: January 2008 (10 years!) Hmm, maybe we can look at ECMAScript, the standard controlling JavaScript development (http://en.wikipedia.org/wiki/ECMAScript) ECMAScript 1: June 1997 ECMAScript 2: June 1998 ECMAScript 3: December 1999 Added E4X to ECMAScript: June 2004 ECMAScript 4: scrapped ECMAScript Harmony: in development And now, finally, we'll look at the timeline of Flash/ActionScript: Flash Player 2: 1997 Flash Player 3: 1998 Flash Player 4: May, 1999 Flash Player 5: August 2000 ActionScript 1: September, 2000 Flash Player 6: March 2002 Flash Player 7: September 2003 ActionScript 2: September 2003 Flash Player 8: August 2005 Flah Player 9: June 2006 ActionScript 3: June 2006 Flash Player 10: October 2008 So for literally the past 10 years the standards bodies haven't been able to release a single completed specification. That goes for HTML, CSS, and ECMASCript (the closest would be the draft of the unimplemented HTML 5 that was released a year ago). The entire standards-based web is running on stuff that was written before the dot-com bubble burst! Now look at how Flash has progressed since 1999. That includes the complete evolution of ActionScript all the way from the very first version to the AS3 (including the recent Vector, etc enhancements that come with Player 10). The entire evolution of AS3 occurred after the last ECMAScript spec was written. CSS 3 started development in 1998 and still isn't finished. In that same time period we went from Flash Player 3 to 10. I'm not holding my breath for anything new coming out of these standards groups. 10 years and they can't write a specification. The entire world changes in 10 years. Doug On Tue, Jan 27, 2009 at 12:37 AM, Guy Morton g...@alchemy.com.au wrote: On 27/01/2009, at 6:10 PM, Sam Lai wrote: I think the issue here is that if Adobe/MS used SVG as a base instead of their proprietary XML dialects, then they won't be able to innovate and implement new features as quickly. I disagree, and cite the HTML web browser example again If they added proprietary extensions to SVG, there'll be a massive backlash as seen with IE and its CSS, JS and HTML extensions. IE is criticized because it is rubbish and *doesn't follow the standards*. If they try to get it into the standard, it will take ages to get it through the committee, and they will lose the competitive advantage of developing that feature in the first place. Unfortunately the standards process just does not keep up with innovation. But personally, I don't think it should - details should be thrashed out, and issues should be resolved in standards, particularly those that could not be foreseen during the initial implementation. Yes, that tends to happen and is fine...the point is though that there is a working towards a standard, which is not currently what's happening with Flash or Silverlight. Both are pretending SVG doesn't exist. Flash has some token support for it is the best anyone can say. I'm a believer of what Sebastian said - Competition is what drives technology forward, standards come after the war to clean up the mess, but they don't innovate. Again, i disagree, but then maybe I think more highly of humanity than you do... :-) What would be nice would be a SVG container for Flex/SL, and one that can reach out into the app and allow the app to reach in. Indeed. I'd be amazed if both MS and Adobe don't have a
Re: [flexcoders] Flex. AIR and IPhone
I think you are seriously misguided about the role of standards. HTML seems to have worked pretty well. I don't see MS or Adobe trying to do their own versions of that (though they may screw up their support for it at times, yes IE is dreadful)... And ECMAScript 4 worked out just grand didn't it? If Adobe waits for all the standards zealot children to stop their infighting and crying just to improve ActionScript or Flash, that's the day I learn a new technology. Doug
Re: [flexcoders] copyright notices in code
How do people add copyright notices to their code? When they create a new file? I've only ever done manual copy/paste at the top of each file. What if the notice changes? Do they use ant to add it before compilation to each file? There's no point in adding copright notices before compilation. Comments are stripped from compiled code. Does compiling Flex remove the copyright notice? If so, should one worry about having a copyright notice in the code for if/when it is decompiled? Again, all comments are stripped, so there's no point. And if someone is decompiling your code, chances are they know that they don't own the copyright :) they just probably don't care. Doug
Re: [flexcoders] Re: Illegal override of WindowedSystemManager in mx.managers.WindowedSystemManager
Did the SWC include any classes that have the same names (but not the same package structure) as some built-in AIR or flash classes? I recently heard a report of someone unable to compile an app with player 10 for AIR 1.5 if the project had a custom class named Vector. Doug On Thu, Jan 15, 2009 at 10:38 PM, Jesse Warden jesse.war...@gmail.comwrote: I removed an SWC from my libs dir, a debug window component that has nothing to do with AIR and air related classes... and it fixed my problem. wtf? On Fri, Jan 16, 2009 at 1:20 AM, Jesse Warden jesse.war...@gmail.comwrote: I keep getting this error for Flex 3.1 in AIR in the Flex Builder IDE 3.0.2. If I switch the SDK to 3.2, the app doesn't event launch. I've even tried targeting flash player 10 via -target-player=10.0.0, but no dice. Any clue? Here's some more debug info that appears in the Output panel that isn't mine: method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::dispatchEventFromSWFBridges() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::getSandboxRoot() over-binding 0 in mx.managers::WindowedSystemManager accessor not implemented mx.managers:ISystemManager::swfBridgeGroup over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::addChildToSandboxRoot() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::addChildBridge() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::getTopLevelRoot() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::removeChildBridge() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::isTopLevelRoot() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::isDisplayObjectInABridgedApplication() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::useSWFBridge() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::getVisibleApplicationRect() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::removeChildFromSandboxRoot() over-binding 0 in mx.managers::WindowedSystemManager method not implemented mx.managers::ISystemManager/mx.managers:ISystemManager::deployMouseShields() over-binding 0 in mx.managers::WindowedSystemManager VerifyError: Error #1053: Illegal override of WindowedSystemManager in mx.managers.WindowedSystemManager. at mx.core::Window/commitProperties() at mx.core::Window/open()[E:\dev\3.1.0\frameworks\projects\airframework\src\mx\core\Window.as:2548] at com.jxl.powerz.managers::PowerBarWindowsManager/createPowerBar()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/managers/PowerBarWindowsManager.as:52] at com.jxl.powerz.managers::PowerBarWindowsManager/loadPowerBarsFromVOs()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/managers/PowerBarWindowsManager.as:42] at com.jxl.powerz.views::Main/init()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/views/Main.mxml:16] at com.jxl.powerz.views::Main/___Main_Canvas1_creationComplete()[/Users/jesse/Documents/_Projects/DnDWorkspace/Powerz/src/com/jxl/powerz/views/Main.mxml:5] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298] at mx.core::UIComponent/set initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1169] at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718] at Function/http://adobe.com/AS3/2006/builtin::apply()http://adobe.com/AS3/2006/builtin::apply%28%29 at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628] at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]
Re: [flexcoders] Cant empty context menu- previous answers don't work...
This is specifically (and has always been) impossible. You cannot ever get rid of those context menu items. As in never ever ever. The best you can hope for is supressing the context menu and replacing it with your own, which is sort of possible with a javascript hack I believe (google stuff about javascript flash context menu, I think Dan of polygeek.com was doing some tests trying to figure it out). Doug On Tue, Jan 13, 2009 at 4:51 PM, john fisher j...@jpfisher.net wrote: well since nobody had time to answer yet, I kept digging. here's one bug: if you add Settings as part of the string which forms your custom menuitem label, not just the whole String which could collide with the Settings menu, but part of a custom string, it won't show at all in the menu, and no error is thrown. Parameters is acceptable, but thats all I know one way or the other. see Alex's previous comment: http://tech.groups.yahoo.com/group/flexcoders/message/125171 this code definitely does NOT clear the two standard menuitems, Settings... and About... nor the debugger-player's debugger and show redraw regions var menuItem:ContextMenuItem = new ContextMenuItem(Our switch: Change Parameters); menuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,createParamPopUp); var customContextMenu:ContextMenu = new ContextMenu(); customContextMenu.hideBuiltInItems(); customContextMenu.customItems.push(menuItem); Though it does add an item, and run the associated function. Has anyone cleared the *whole* contextMenu out? or Taken control of mouse-rt-click events so as to avoid the standard contextMenu? John
Re: [flexcoders] recompiling framework shared library?
yup, that would work just fine On Sat, Jan 10, 2009 at 10:00 AM, Sam Lai samuel@gmail.com wrote: Could you subclass that class and make the changes there? That way you don't need to change the Flex class, and hence the RSL. 2009/1/10 luvfotography ygro...@all-digital-links.comygroups%40all-digital-links.com : Hi, I've made a change to mx.controls.videoClasses.VideoPlayer.as and placed it in my 'src' folder under the folders 'mx', then 'controls', then 'videoClasses' and it picks up the change no problem. If I then change my project to use 'runtime shared library' it's not picking up my changes. What do I need to do? do i need to recompile the framework_3.0.0.477.swz somehow? thanks, -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] recompiling framework shared library?
oh, ha, I thought that was the original poster asking that. My bad. On Sat, Jan 10, 2009 at 10:49 AM, Doug McCune d...@dougmccune.com wrote: yup, that would work just fine On Sat, Jan 10, 2009 at 10:00 AM, Sam Lai samuel@gmail.com wrote: Could you subclass that class and make the changes there? That way you don't need to change the Flex class, and hence the RSL. 2009/1/10 luvfotography ygro...@all-digital-links.comygroups%40all-digital-links.com : Hi, I've made a change to mx.controls.videoClasses.VideoPlayer.as and placed it in my 'src' folder under the folders 'mx', then 'controls', then 'videoClasses' and it picks up the change no problem. If I then change my project to use 'runtime shared library' it's not picking up my changes. What do I need to do? do i need to recompile the framework_3.0.0.477.swz somehow? thanks, -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] recompiling framework shared library?
yeah, one of the downsides of using the signed rsl is that you can't easily monkey patch. I'm not sure what happens if you try to load your code in a different RSL AFTER the framework RSL has been loaded... But in general if you want to use the cached framework RSL you're committed to using the classes as they are in that RSL. Doug On Fri, Jan 9, 2009 at 1:15 PM, Steve Mathews happy...@gmail.com wrote: The swz are signed files that only Adobe can compile. On Fri, Jan 9, 2009 at 10:45 AM, luvfotography ygro...@all-digital-links.com wrote: Hi, I've made a change to mx.controls.videoClasses.VideoPlayer.as and placed it in my 'src' folder under the folders 'mx', then 'controls', then 'videoClasses' and it picks up the change no problem. If I then change my project to use 'runtime shared library' it's not picking up my changes. What do I need to do? do i need to recompile the framework_3.0.0.477.swz somehow? thanks, -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] GPS in Flex
Check out Andy Powell's post about using Merapi and GPS: http://www.infoaccelerator.net/blog/post.cfm/live-gps-visualizations-with-air-merapi I have a small app running on my BlackBerry that posts my lat/lon to my own webserver, which just stores it in a DB. The using whatever serverside technology I want (java, php, etc) I could expose a web service to return my coordinates. So you can either communicate directly with the device via Merapi, or push data somehow from the device to a webserver and then pull the data from the server into your Flex app. Doug On Thu, Jan 8, 2009 at 4:37 PM, Nate Beck n...@tldstudio.com wrote: In addition to what Tim said. The Merapi project (http://merapiproject.net/), is an excellent candidate for a project like this. You can use Java to communicate to the GPS unit's device drivers, and then use that data with webservices or the yahoo maps API to serve maps in real time. Just a thought. On Thu, Jan 8, 2009 at 4:14 PM, Tim Rowe tim.r...@carsales.com.au wrote: If you want to do it in realtime you're going to first have to decide what devices you support. There might be some standards for communication, but others go off and do their own thing and those might be the ones you want to support. Garmin often take a lot of heat for this (despite what they're pushing with ANT+ standards). Do you have a particular device in mind to start out, and have you done any research on what dev tools they have available? Obviously at some point you're going to want to abstract things out, but you need to at least have a rough idea whether your design is even going to work for real-world existing designs and products. --Tim -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Ben Cessa *Sent:* Friday, 9 January 2009 11:10 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] GPS in Flex Hi, I'm planning to build an AIR application but I have a major doubt here, by looking at the amazing work of Doug McCune I think is possible to integrate real time GPS data into a Map on a Flex application, but my question is: how? Just in case the above is not a completely clear explanation let me put it with other words: I wanna know how ( considering first if this is even possible right now ) to get data from a GPS device and load it, real time ( well, pretty much real time ) inside a map on a Flex and/or AIR application. I really hope someone with far more experience than myself can point in the right direction on this one, thanx in advance for your attention, and have all a great new year :) -- Cheers, Nate http://blog.natebeck.net
Re: [flexcoders] Datagrid columns autosize
But doing some pretty simple calculations based on data type is easy. For example, if you know a field is a date and you want to display the full date and time string, you know how wide that needs to be. Or if a field is a phone number, etc. Unknown strings present problems, but maybe just some simple stuff would be better than nothing at all? Doug On Thu, Jan 8, 2009 at 5:04 PM, Tracy Spratt tspr...@lariatinc.com wrote: No, to size a column to the widest content, the datagrid would have to read and compute the size for every field in every record. This would be impossible for large datasets. Tracy Spratt Lariat Services Flex development bandwidth available -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *k.sigiscar *Sent:* Thursday, January 08, 2009 3:56 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Datagrid columns autosize Hello, I was wondering if somebody had a solution for sizing automatically the width of datagrid columns based on their content. I have seen some implementations but none are satisfactory in terms of performance/stability. Thanks, Karl.
Re: [flexcoders] Re: Accordion with no selection possible ?
Check out the SuperAccordion by Tink: http://www.tink.ws/blog/superaccordian-updates/ On Mon, Jan 5, 2009 at 10:06 AM, rockorgames eguilhe...@gmail.com wrote: ? im not sure how do i wanted to look like.. like all closed ? i suppose i ll have to make some kind of ugly hack like make 1 empty canvas as the last and make it open.. and then ugly put another canvas on top of the acoordion to hide this last accordion tab.. and when the user clicks any of the other tabs i remove both the empty accordion tab and the canvas on top of it but this is so ugly.. is there a better way to do it ?
Re: [flexcoders] Generating Random key
Heh, but if you're REALLY going for unreadable lines of code, you might as well go all the way: function repeat(n:Number, f:Function) : Array { return n 1 ? repeat(n-1, f).concat(f()) : [f()]; } function createUID():String { return repeat(4, function(){ return repeat(3, function(){ return String(BCDFGHJKLMNPQRSTVWXYZ).substr(int(Math.random()*19), 1) }).join() }).join(-); } On Mon, Jan 5, 2009 at 6:12 PM, Josh McDonald dzn...@gmail.com wrote: A quick take on it: function randomLetter() : String { const noVowels : String = BCDFGHJKLMNPQRSTVWXYZ; return noVowels.charAt(Math.round(Math.random() * (noVowels.length - 1))); } function repeat(n : Number, f : Function) : Array { return n 1 ? repeat(n-1, f).concat(f()) : [f()]; } var result : String = repeat(4, function() : String { return repeat(3, randomLetter).join(); }).join(-); -Josh On Tue, Jan 6, 2009 at 11:45 AM, anuj sharma anuj...@gmail.com wrote: Hi Brendan makes sense to put the code :-), With the format I was looking for following code works perfectly for me, I am not sure thats the right way of coding but this is working for my purpose. I am pretty sure there can be far far better way for this Anuj /**CODE**/ mx:Script ![CDATA[ import mx.messaging.channels.StreamingAMFChannel; import mx.controls.Alert; [Bindable] public var track:String; private function init():void { btn_genkey.addEventListener(MouseEvent.CLICK,key); } public function key(event:MouseEvent):void { var newLength:uint = 12; var userAlphabet:String = BCDFGHJKLMNPQRSTVWXYZ; var alphabet:Array=userAlphabet.split(); var alphabetLength:int = alphabet.length; var randomLetters:String = ; var _keyfirstpart:String; var _keysecondpart:String; var _keythirdpart:String; var _keyforthpart:String; var _concatenatedString:String; for (var i:uint = 0; i newLength; i++) { randomLetters += alphabet[int(Math.floor(Math.random() * alphabetLength))]; } _keyfirstpart=randomLetters.slice(0,3); _keysecondpart=randomLetters.slice(3,6); _keythirdpart=randomLetters.slice(6,9); _keyforthpart=randomLetters.slice(9,12); _concatenatedString=_keyfirstpart+-+_keysecondpart+-+_keythirdpart+-+_keyforthpart; text_ii.text=_concatenatedString; } ]] /mx:Script mx:TextInput id=text_ii x=645 y=270 width=224/ mx:Button id=btn_genkey x=513 y=270 label=Generate key width=124 / On Mon, Jan 5, 2009 at 5:39 PM, Brendan Meutzner bmeutz...@gmail.comwrote: So what did you end up putting together? Should post the code here for the next guy... Brendan On Mon, Jan 5, 2009 at 5:41 PM, anuj sharma anuj...@gmail.com wrote: Awesome guys your guidance help me in achieving this withing 30 minutes, it is working now Thanks for your help again Anuj On Mon, Jan 5, 2009 at 2:19 PM, anuj181 anuj...@gmail.com wrote: Hi I need to work on a piece of code in which whenever user clicks on the button , the code should generate random 12 character key having all caps and no vowels in the format of XXX-XXX-XXX-XXX. Can anybody guide me in this direction. Is there any built in function for that or do I have to use my own logic for random generation in this specific case. Any help will be appreciated. Thanks Anuj -- Brendan Meutzner http://www.meutzner.com/blog/ -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: j...@gfunk007.com :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
Re: [flexcoders] Re: Font for tab navigator heading not working
Out of curiosity are you loading modules or loading the framework as an RSL? Doug On Wed, Dec 31, 2008 at 1:12 PM, Tim Hoff timh...@aol.com wrote: hmm, they are buttons. So, you could try using the font in Button{} CSS. Kind of a bad hack though. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Nate Pearson napearso...@... wrote: Yup, no change. The other styles do work but not the font-family. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tim Hoff TimHoff@ wrote: Hi Nate, Have you tried it without the quotes? tabStyleName: myTabs; -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Nate Pearson napearson99@ wrote: I'm trying to get a custom font in the tabs of my tab navigator and I can't get it to work. My code is below. I can get the font to work in other stuff but not in the tabs. Thanks! -Nate .myNavigator { tabHeight: 30; tabWidth: 140; paddingLeft: 0; paddingTop:0; tabStyleName: myTabs; firstTabStyleName: myTabs; lastTabStyleName: myTabs; selectedTabTextStyleName: myTabs; font-family: AvenirLTStdMedium; borderColor: #8e8e86; borderThickness: 2; } .myTabs { highlightAlphas: 0, 0.1; fillAlphas: 1, 0.82; fillColors: #a2a2a2, #b7b6b4; backgroundColor: #758bbc; borderColor: #b7b6b4; color: #ff; textRollOverColor: #ff; themeColor: #b7b6b4; fontSize: 14; textAlign: left; font-family: AvenirLTStdMedium; } @font-face { font-family: AvenirLTStdMedium; src: url(assets/fonts/AvenirLTStdMedium.otf); }
Re: [flexcoders] Re: Font for tab navigator heading not working
ahh, I bet it's because the font you embedded didn't embed teh bold style, and Buttons by default use bold styling. Either change your embed style block to specify the bold fontWeight, or change your tab style to make the fontWeight normal. Doug On Wed, Dec 31, 2008 at 4:43 PM, Nate Pearson napearso...@yahoo.com wrote: Doug, no I'm not doing that. Tim, The button css thing didn't work either :(. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Doug McCune d...@... wrote: Out of curiosity are you loading modules or loading the framework as an RSL? Doug On Wed, Dec 31, 2008 at 1:12 PM, Tim Hoff timh...@... wrote: hmm, they are buttons. So, you could try using the font in Button{} CSS. Kind of a bad hack though. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Nate Pearson napearson99@ wrote: Yup, no change. The other styles do work but not the font-family. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Tim Hoff TimHoff@ wrote: Hi Nate, Have you tried it without the quotes? tabStyleName: myTabs; -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Nate Pearson napearson99@ wrote: I'm trying to get a custom font in the tabs of my tab navigator and I can't get it to work. My code is below. I can get the font to work in other stuff but not in the tabs. Thanks! -Nate .myNavigator { tabHeight: 30; tabWidth: 140; paddingLeft: 0; paddingTop:0; tabStyleName: myTabs; firstTabStyleName: myTabs; lastTabStyleName: myTabs; selectedTabTextStyleName: myTabs; font-family: AvenirLTStdMedium; borderColor: #8e8e86; borderThickness: 2; } .myTabs { highlightAlphas: 0, 0.1; fillAlphas: 1, 0.82; fillColors: #a2a2a2, #b7b6b4; backgroundColor: #758bbc; borderColor: #b7b6b4; color: #ff; textRollOverColor: #ff; themeColor: #b7b6b4; fontSize: 14; textAlign: left; font-family: AvenirLTStdMedium; } @font-face { font-family: AvenirLTStdMedium; src: url(assets/fonts/AvenirLTStdMedium.otf); }
Re: [flexcoders] Re: Font for tab navigator heading not working
You shouldn't need the overall Button CSS selector if you don't want all your buttons in your app to use that font, you should be able to just add the font-weight: normal part into the myTabs selector, which would make only your tabs have that font instead of all buttons. And genius must just be another way of saying I banged my head on the same wall a few times before :) Doug On Wed, Dec 31, 2008 at 5:02 PM, Nate Pearson napearso...@yahoo.com wrote: DOUG MCCUNE YOU ARE A GENIUS! Props to Tim too for mentioning the Button css. This is what it took: Button{ font-family: AvenirLTStdMedium; font-weight: normal; } --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Doug McCune d...@... wrote: ahh, I bet it's because the font you embedded didn't embed teh bold style, and Buttons by default use bold styling. Either change your embed style block to specify the bold fontWeight, or change your tab style to make the fontWeight normal. Doug On Wed, Dec 31, 2008 at 4:43 PM, Nate Pearson napearso...@... wrote: Doug, no I'm not doing that. Tim, The button css thing didn't work either :(. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Doug McCune doug@ wrote: Out of curiosity are you loading modules or loading the framework as an RSL? Doug On Wed, Dec 31, 2008 at 1:12 PM, Tim Hoff TimHoff@ wrote: hmm, they are buttons. So, you could try using the font in Button{} CSS. Kind of a bad hack though. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Nate Pearson napearson99@ wrote: Yup, no change. The other styles do work but not the font-family. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com flexcoders%40yahoogroups.com, Tim Hoff TimHoff@ wrote: Hi Nate, Have you tried it without the quotes? tabStyleName: myTabs; -TH --- In flexcoders@yahoogroups.comflexcoders%40yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Nate Pearson napearson99@ wrote: I'm trying to get a custom font in the tabs of my tab navigator and I can't get it to work. My code is below. I can get the font to work in other stuff but not in the tabs. Thanks! -Nate .myNavigator { tabHeight: 30; tabWidth: 140; paddingLeft: 0; paddingTop:0; tabStyleName: myTabs; firstTabStyleName: myTabs; lastTabStyleName: myTabs; selectedTabTextStyleName: myTabs; font-family: AvenirLTStdMedium; borderColor: #8e8e86; borderThickness: 2; } .myTabs { highlightAlphas: 0, 0.1; fillAlphas: 1, 0.82; fillColors: #a2a2a2, #b7b6b4; backgroundColor: #758bbc; borderColor: #b7b6b4; color: #ff; textRollOverColor: #ff; themeColor: #b7b6b4; fontSize: 14; textAlign: left; font-family: AvenirLTStdMedium; } @font-face { font-family: AvenirLTStdMedium; src: url(assets/fonts/AvenirLTStdMedium.otf); }
Re: [flexcoders] Flex dates and time zones.
It's not that Flash Player decides it wants to convert the Date to a different timezone. It's about what data Flash Player has about that Date. When a Date is sent over the wire, particularly when using AMF either with Blaze or CF or whatever, the date is sent as the Unix timestamp, which is the number of milliseconds since 1970. That keeps the data transfer very small and simple, all you need to send is a single Number, which only takes up 8 bytes. So then Flash Player gets this single number, which represents the number of milliseconds since 1970, and it has to figure out how to turn that into a formatted Date. But that means that if you have a date of Jan 1 2008 @ 12pm in California (Unix timestamp of 1199188800), that same timestamp gets shown as 9am in New York. Because Flash Player has no idea that that same Unix timestamp is meant to be formatted in California time, you end up showing different times (and potentially even different dates if the timezone difference extends across midnight). So like people have mentioned, in order to get the date to display the right way you have to send more data. This can either mean sending the timezone offset that is supposed to be used for display, which will then require some offset conversion on the clientside, or sending the Date as a String, which takes up more bytes than the simple Number and requires a simple String to Date conversion on the client. But using the normal Date object with AMF will only send the number of milliseconds since 1970, and that information alone is not enough if you want to show the same formatted time across all timezones. Doug On Mon, Dec 15, 2008 at 9:13 PM, Dale Fraser d...@fraser.id.au wrote: The problem is that somehow. If the server serving that date is in a different location to you, flash player says, well I wont show that date I just got from the database, I'll adjust it to your time. This is totally useless, so for example if Im logging actions in an audit, the date in those logs could look different from one user to another. Regards Dale Fraser http://learncf.com http://flexcf.com *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Randy Martin *Sent:* Tuesday, 16 December 2008 3:52 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Flex dates and time zones. I guess I really don't understand what the problem is here?? I have a smalldatetime (or a datetime) in a MSSQL database. I setup a value object in AS to have the date field as a Date object. I go get the date from ColdFusion using RemoteObject. The cfc sets up a CF value object with the date as a CF Date object. And, voila, the MSSQL datetime becomes an AS Date object. I don't have to convert anything to a string, or any other kind of object. So, what's the problem here??? ~randy *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Dale Fraser *Sent:* Monday, December 15, 2008 9:51 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Flex dates and time zones. Why does Flex do this? If I get a date out of the db and want to deal with it as a date, surely this should be possible. How can the flash player determine it needs to change it to a different date. There must be some other option rather than converting to a string. Regards Dale Fraser http://learncf.com http://flexcf.com *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Paul Kukiel *Sent:* Tuesday, 16 December 2008 1:46 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Flex dates and time zones. Thanks Tracy, I knew I was going to get this answer. I already got this working with strings as a test sample looks like I have to convert the rest of the app. Surely others are feeling my pain with this issue. And Nate I look forward to seeing what you have come up with when its ready. Paul. On 15/12/2008, at 7:46 PM, Tracy Spratt wrote: Pass the date as a string. Tracy -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Paul Kukiel *Sent:* Monday, December 15, 2008 3:17 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Flex dates and time zones. I have a date in a server in Australia: 22/12/2008 12:00:00 AM I am using this label function for the grid to try and fix the time zone issue but my date always comes back to me as 21/12/2008 in the datagrid. I really just wan the exact date from the database regardless of where I am in the world. Any ideas? // Label Grid Date public static function labelGridDate(item:Object, column:DataGridColumn):String { var formatter:DateFormatter = new DateFormatter(); var myDate:Date = item[column.dataField]; formatter.formatString = DD MMM ; var
Re: [flexcoders] doug mccune's site down
Heh, funny when this list gets used as my own personal email service :) got your other email and just responded, thanks for the heads up on the site, maybe once I start blogging again I'll pay more attention to it being down :P Doug On Sun, Dec 14, 2008 at 8:38 PM, grimmwerks gr...@grimmwerks.com wrote: Hey Doug -- was trying to contact you through your site but got a 500 server error -- for some reason I just can't compile your BouncingFisheye, but wanted to let you know about the server issue...
Re: [flexcoders] Re: Flex developer and their hourly rate
Right, so as a very rough rule of thumb, take your hourly rate and double it, then multiply by 1,000 to get the equitable annual salary. So an hourly rate of $100/hour is roughly equal to $200,000/year. And then obviously you need to factor in stuff like the cost of benefits, overhead (stuff like office rent or equipment, etc), and the cost of unbillable hours (you've gotta do unpaid work just to get paying work). So figure out what kind of annual salary you would want, then subtract the cost of benefits (do some research about benefit costs), then subtract any other expenses you have that you wouldn't have with a regular job (make sure to think about tax rate differences). Then try to think about how many hours a week you think you're going to have to spend just to get work (soliciting clients, bending over backwards with unpaid proof of concepts or wireframes, unbillable phone meetings to go over initial specs, etc). If you figure all that out then you end up with the amount of $$ you want to make per year and the number of hours per week you are hoping to bill. Then just do the math and figure out what you need to charge to make that. So yeah, if you can bill $100/hour for a solid 40 hours a week for a year (with 2 weeks vacation I think) you end up making about the equivalent of $200k/year minus benefits, overhead, and potential tax differences (of course you can write more shit off now too). But just be sure to be honest about the number of billing hours per week you can really pull off. The additional work of just getting billable contracting work, plus the added cost of benefits and overhead, is probably why Tracy quoted the general rule of thumb that he did. Doug On Tue, Nov 4, 2008 at 11:23 AM, Tracy Spratt [EMAIL PROTECTED] wrote: Yes, hello, do the math. ;) Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Vivian Richard *Sent:* Tuesday, November 04, 2008 2:05 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Flex developer and their hourly rate But should not an independent consultant get more than the salary, since he/she does not get and benefits and also the employer does not have any obligations like the regular employee? On Tue, Nov 4, 2008 at 12:14 PM, Tracy Spratt [EMAIL PROTECTED]tspratt%40lariatinc.com wrote: And understand, this is an independent contractor rate for billable hours. One rule-of-thumb I have heard is that an independent hourly rate should be one thousandth of what the annual salary would be for the same level of developer. For example if an annual salary is 100K per year, then the hourly rate should be $100 per hour. I am sure 100K is not an unusual salary for an experienced developer in SF. Tracy From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Rich Rodecker Sent: Tuesday, November 04, 2008 11:40 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Re: Flex developer and their hourly rate that's how it goes...you're talking about a much different cost of living than say, Arkansas. On Tue, Nov 4, 2008 at 6:37 AM, nathanpdaniel [EMAIL PROTECTED]ndaniel%40bsi-scs.com wrote: $100/hour Man, I'm gonna have to move to SF! HAHAHA :D --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Rich Rodecker [EMAIL PROTECTED] wrote: That's always a hard question, and mostly depends on a few major points: location, experience, and additional skill set. SF, and just about every major city is definitely going to get you a higher rate than say, Tennessee. How is your portfolio? If you have an impressive body of work that will also increase your value. On top of that, if your a flex developer that is highly skilled in additional areas, or have alot of experience building enterprise-level apps, that will also increase your value. All that being said, I don't know :) Though I'd esitmate you're going to be somewhere around $100/hr. On Mon, Nov 3, 2008 at 12:56 PM, hworke [EMAIL PROTECTED] wrote: Hi Devs, I do not have any idea about the market hourly rate that a Flex developer with 3 years experience charges in San Francisco bay area charges. Can someone please give me some idea? Best regards,
Re: [flexcoders] Re: Delays in posts
Subscribe to the email list and have it send you individual emails. Then set up a filter in gmail to label all messages from the list and throw em into a folder and automatically out of the inbox. Then just let that sit and amass thousand of messages (my flexcoders label currently has 16,500 unread messages). Doug On Fri, Oct 31, 2008 at 2:01 PM, lagos_tout [EMAIL PROTECTED] wrote: Hi, Thanks for the prompt response. I only use the web interface, both for posting and checking for responses. I do so by searching by my email address. This should should pull up all my posts, right? Yet when I do that, not even this thread shows in the results. Isn't that strange? I see posts, but the most recent one is from the 17th of October. And like I mentioned in my original post I posted a couple of new ones a few days ago. Is there a better way for me to track my posts? Thanks. LT --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: I checked your account and it is unmoderated, which is the way it is suppose to be. Maybe you can direct me to the messages offline and I check to see where they are? Can you see them via web interface? http://tech.groups.yahoo.com/group/flexcoders/messages http://tech.groups.yahoo.com/group/flexcoders/messages Dimitrios Gianninas Flexcoders Moderator From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of lagos_tout Sent: Friday, October 31, 2008 4:17 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Delays in posts You know, I love this group. But the delays suck. I posted 2 messages at least 3 days ago and they still haven't shown up. I guess if I have an urgent question, I'm going to have to post elsewhere, as much as I'm reluctant to do that - the people on this list are very knowledgeable and generous. Thanks. LT -- 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.
Re: [flexcoders] Extending UIComponent memory issues.
You've got 4,000 things all moving around at once? Are all 4,000 of those actually visible? 4,000 UI components seems like a lot for any layout manager to have to deal with. I'd try to focus on figuring out how to reduce the number of UIComponents before I worried about how much memory each one is taking up. I may be totally off base, but I can't imagine a scenario where you want 4,000 images all on the screen at the same time. And if you do really need to load 4,000 swfs all at the same time then you probably want something that's lighter than custom UIComponent classes, which would keep those 4,000 objects out of the normal invalidation/validation cycles of the display list. Doug On Wed, Oct 15, 2008 at 1:34 PM, Michael Schmalle [EMAIL PROTECTED]wrote: A side note, You are doing some very expensive leg work in the 'content' setter. You need to break that out into commitProperties() and updateDisplayList(). You would get a huge performance increase for sure. As far as the memory, doesn't look to weird, event listeners without weak references can make thing hang around as well. Mike On Wed, Oct 15, 2008 at 3:08 PM, flexaustin [EMAIL PROTECTED] wrote: So I have this base component, that when running profiler, says its eating up tons of memory. I have about 4000 of these at one time in my Flex app (see component code below). This base component is extended by two other components, which are then extended by two more components each so 3 or 4 levels above this base component. 1. My first question is does the profiler just point to the base class or are there actually 4000 of these being created outside of their extended children? 2. My 2nd question is is their anything wrong with the code below? Why is it eatin memory? The parameter content when pulled in is a swf file (icon) that is 5kb each so 5kb * 4000... you get the math. When I run this progam the CarouselImage's are using up 30% to 35% of my apps memory usage. And my app is eating up 725,000kb of mem usage, thus crashing my pretty decent computer. // --- BEGIN CODE -- package com.mysite.views.components { import flash.display.DisplayObject; import flash.system.ApplicationDomain; import mx.core.UIComponent; import mx.events.ResizeEvent; public class CarouselImage extends UIComponent { // Content private var _content:DisplayObject; private var _contentWidth:Number; private var _contentHeight:Number; public function CarouselImage(content:*=null) { super(); // Set content this.content = content; } // Properties [Inspectable] public function get content():DisplayObject { return _content; } public function set content(value:*):void { if (_content != null) { removeChild(_content) removeEventListener(ResizeEvent.RESIZE, handleResize); } if (value is String) { try { value = ApplicationDomain.currentDomain.getDefinition(value); } catch (error:*) { // Do nothing } } if (value is Class) value = new value(); _content = value as DisplayObject; if (_content != null) { _contentWidth = _content.width; _contentHeight = _content.height; addChild(_content); addEventListener(ResizeEvent.RESIZE, handleResize); scaleContent(); } this.invalidateDisplayList(); this.invalidateProperties(); this.invalidateSize(); } public function get contentWidth():Number { return _contentWidth; } public function get contentHeight():Number { return _contentHeight; } // Measure and draw private function scaleContent():void { if (_content != null width 0 height 0) { // Width _content.scaleX = width / contentWidth; // Center the image _content.x = (width - (contentWidth * _content.scaleX)) * 0.5; // Height _content.scaleY = height / contentHeight; // Center the image _content.y = (height - (contentHeight * _content.scaleY)) * 0.5; } } // Event handlers private function handleResize(event:ResizeEvent):void { scaleContent(); this.invalidateDisplayList(); this.invalidateProperties(); this.invalidateSize(); } } } // - END CODE -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] Efficiency and objects in the display list
Sprites can have mouse handling. If you don't base your class on UIComponent you lose all the automatic display list stuff (measuring, layout, etc). But if you manually control positioning and everything yourself, and don't have any need for stuff like CSS styles, then you should be OK using Sprite. Doug On Wed, Oct 15, 2008 at 4:49 PM, Guy Morton [EMAIL PROTECTED] wrote: It seems odd that there is no really lightweight class for addressing this sort of need, which I would have expected was a common one (I note it's the subject of a second thread now too). On 16/10/2008, at 9:51 AM, Guy Morton wrote: Thanks for the reply, Josh. They do need to respond to mouseovers and mousedowns, so am I stuck with UIComponent? Guy On 15/10/2008, at 8:11 AM, Josh McDonald wrote: If they don't need mouse events, base them on Shape instead. On Wed, Oct 15, 2008 at 7:09 AM, Guy Morton [EMAIL PROTECTED] wrote: Anyone? On 14/10/2008, at 11:34 AM, Guy Morton wrote: We have an app which adds 50 or 60 dynamically created and animated canvas-based objects to the display list as it runs. I've noticed when running this under the profiler that even though these canvas-based components are really simple (they have a draw function and a rotate function in them and don't import any other classes) they each add about 1 Mb to the overall memory consumed by the app. I've also tried making the components UIComponent based instead of using Canvas (as I believe it's a little more lightweight) but it doesn't seem to make a huge difference. Is there a better/more efficient way to dynamically create, draw, rotate and animate a bunch of small objects in a flex app? TIA Guy -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/
Re: [flexcoders] Efficiency and objects in the display list
Create a custom component that extends UIComponent that you will use to hold all your Sprites. Then you can use addChild to add the Sprites to that component. And since your custom holder component extends UIComponent you can add that to whatever Container class you've got in your app. Doug On Wed, Oct 15, 2008 at 5:16 PM, Guy Morton [EMAIL PROTECTED] wrote: Which gets me back to where I started... :-/ On 16/10/2008, at 11:26 AM, Tracy Spratt wrote: Container children must be UIComponents. You will need to add the sprites to a UIComponent first. Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Guy Morton *Sent:* Wednesday, October 15, 2008 8:01 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Efficiency and objects in the display list Hi Doug Yes, I tried using Sprite but it seems I can't add a sprite-based component to my other containers...I guess because they are UIComponent based? Do Sprites in flex have to be added to the display list directly? I'm having a look at the docs but it's a little confusing as they generally discuss Sprite in terms of Flash rather than Flex. Guy On 16/10/2008, at 10:55 AM, Doug McCune wrote: Sprites can have mouse handling. If you don't base your class on UIComponent you lose all the automatic display list stuff (measuring, layout, etc). But if you manually control positioning and everything yourself, and don't have any need for stuff like CSS styles, then you should be OK using Sprite. Doug On Wed, Oct 15, 2008 at 4:49 PM, Guy Morton [EMAIL PROTECTED] wrote: It seems odd that there is no really lightweight class for addressing this sort of need, which I would have expected was a common one (I note it's the subject of a second thread now too). On 16/10/2008, at 9:51 AM, Guy Morton wrote: Thanks for the reply, Josh. They do need to respond to mouseovers and mousedowns, so am I stuck with UIComponent? Guy On 15/10/2008, at 8:11 AM, Josh McDonald wrote: If they don't need mouse events, base them on Shape instead. On Wed, Oct 15, 2008 at 7:09 AM, Guy Morton [EMAIL PROTECTED] wrote: Anyone? On 14/10/2008, at 11:34 AM, Guy Morton wrote: We have an app which adds 50 or 60 dynamically created and animated canvas-based objects to the display list as it runs. I've noticed when running this under the profiler that even though these canvas-based components are really simple (they have a draw function and a rotate function in them and don't import any other classes) they each add about 1 Mb to the overall memory consumed by the app. I've also tried making the components UIComponent based instead of using Canvas (as I believe it's a little more lightweight) but it doesn't seem to make a huge difference. Is there a better/more efficient way to dynamically create, draw, rotate and animate a bunch of small objects in a flex app? TIA Guy -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/
Re: [flexcoders] Efficiency and objects in the display list
Guy, I'm curious to hear about whether shifting from UIComponent components to using sprites made your app perform fast enough for you. Once you do a bit of testing care to share your overall experience? Doug On Wed, Oct 15, 2008 at 5:32 PM, Guy Morton [EMAIL PROTECTED] wrote: Yes, thanks Doug, Josh, Tracy...I did get that working. On 16/10/2008, at 11:21 AM, Doug McCune wrote: Create a custom component that extends UIComponent that you will use to hold all your Sprites. Then you can use addChild to add the Sprites to that component. And since your custom holder component extends UIComponent you can add that to whatever Container class you've got in your app. Doug On Wed, Oct 15, 2008 at 5:16 PM, Guy Morton [EMAIL PROTECTED] wrote: Which gets me back to where I started... :-/ On 16/10/2008, at 11:26 AM, Tracy Spratt wrote: Container children must be UIComponents. You will need to add the sprites to a UIComponent first. Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Guy Morton *Sent:* Wednesday, October 15, 2008 8:01 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Efficiency and objects in the display list Hi Doug Yes, I tried using Sprite but it seems I can't add a sprite-based component to my other containers...I guess because they are UIComponent based? Do Sprites in flex have to be added to the display list directly? I'm having a look at the docs but it's a little confusing as they generally discuss Sprite in terms of Flash rather than Flex. Guy On 16/10/2008, at 10:55 AM, Doug McCune wrote: Sprites can have mouse handling. If you don't base your class on UIComponent you lose all the automatic display list stuff (measuring, layout, etc). But if you manually control positioning and everything yourself, and don't have any need for stuff like CSS styles, then you should be OK using Sprite. Doug On Wed, Oct 15, 2008 at 4:49 PM, Guy Morton [EMAIL PROTECTED] wrote: It seems odd that there is no really lightweight class for addressing this sort of need, which I would have expected was a common one (I note it's the subject of a second thread now too). On 16/10/2008, at 9:51 AM, Guy Morton wrote: Thanks for the reply, Josh. They do need to respond to mouseovers and mousedowns, so am I stuck with UIComponent? Guy On 15/10/2008, at 8:11 AM, Josh McDonald wrote: If they don't need mouse events, base them on Shape instead. On Wed, Oct 15, 2008 at 7:09 AM, Guy Morton [EMAIL PROTECTED] wrote: Anyone? On 14/10/2008, at 11:34 AM, Guy Morton wrote: We have an app which adds 50 or 60 dynamically created and animated canvas-based objects to the display list as it runs. I've noticed when running this under the profiler that even though these canvas-based components are really simple (they have a draw function and a rotate function in them and don't import any other classes) they each add about 1 Mb to the overall memory consumed by the app. I've also tried making the components UIComponent based instead of using Canvas (as I believe it's a little more lightweight) but it doesn't seem to make a huge difference. Is there a better/more efficient way to dynamically create, draw, rotate and animate a bunch of small objects in a flex app? TIA Guy -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/
Re: [flexcoders] Can you do multiple namespace manifests in a single .swc from within builder?
Yeah, you can do it. I do that both with the additional compiler args of the project properties panel and with ANT. So I've got something like this as my additional compiler args: -locale en_US -namespace http://ns1.dougmccune.com/ /manifest1.xml -namespace http://ns2.dougmccune.com/ /manifest2.xml -include-namespaces http:/ns1.dougmccune.com/ http://ns2.dougmccune.com/ I'm trying to remember now what autocomplete will pick up, and I honestly can't really remember. I pretty much use ANT for most of my real swc builds, but then I also add the actual library project to the build path too. That means I have two entries for pretty much the same swc, the one built by ANT and the local project one. That works fairly well for me to let me easily debug stuff, and then keep using ANT for when I'm ready to roll out a production build. I think sometimes I might get both options, one for the correct namespace and then also the package structure way. I just try to always choose the proper namesapce one when I select my completion option. Eitehr way your code will compile, it'll just look nicer if you keep the clean namespaces the way you want them. Doug On Thu, Oct 2, 2008 at 4:11 PM, Josh McDonald [EMAIL PROTECTED] wrote: Hey guys, I've tried a few things (adding --namespace commands in additional compiler options, and adding another entry in .flexlibProperties), but I can't seem to get this to work from Builder. It seems to break auto-complete; somethings auto-complete to package names instead of namespaces, others won't auto-complete at all, etc... I know you can do it when you're building a .swc from Ant, but then it becomes difficult to navigate between application and library code when you're debugging both at the same time. But, I would very much like to have a few separate namespaces in my library project to separate gui components from application structure elements, and command-chain elements, if I can figure out how to make it all work nicely! Any ideas? Anybody know the secret, if it can be done at all? Cheers, -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. http://flex.joshmcdonald.info/ :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Posting extended Flexlib component?
Yup, you can do whatever you want with any of the source. Flexlib is released under the MIT license. Doug On Wed, Oct 1, 2008 at 6:39 PM, Allan Pichler [EMAIL PROTECTED] wrote: Hi all I have extended the flexlib scrolling canvas to use for an image gallery and I'm wondering if it's okay to make the source of such a component downloadable from a public website? A beta non-source version can be found at www.unzipmenow.com/flib-gallery/index.html Feel free to comment/question me directly if you like, so we don't overload the mailing list! Thank you all in advance! Best regards Allan Pichler Brewmaster - ColdFusion/Flex/Ajax/UI Email: [EMAIL PROTECTED] Skype: apichler Yahoo: allan_pichler
Re: [flexcoders] Not to harp on about it....
I don't think papervision has anything on it - And its all written in Flex :) That's a big claim my friend. We're going to need to see more than 4 planes with a video material to make any assessment :)
Re: [flexcoders] Not to harp on about it....
I clicked and moved... All I'm saying is that the claim that your personal 3D engine is better than PV3D is a large claim that needs far more than that example to back it up. Does yours render faster? handle more polygons? support unique textures, etc? All I'm seeing in that demo is basic 3D planes with video materials, which any of the 3D engines (PV3D, Away3D, Sandy) have been able to do for years. Even Flash Player 10 now has built in support for 3D planes. On Thu, Sep 25, 2008 at 8:28 AM, Samuel Colak [EMAIL PROTECTED] wrote: click and move it around ! On Sep 25, 2008, at 4:50 PM, Doug McCune wrote: I don't think papervision has anything on it - And its all written in Flex :) That's a big claim my friend. We're going to need to see more than 4 planes with a video material to make any assessment :)
Re: [flexcoders] Not to harp on about it....
I didn't mean to come off as rude :) Writing your own 3D engine is a huge undertaking and it's an impressive accomplishment. Congrats on the work. Is it going to be released (open source?) On Thu, Sep 25, 2008 at 9:02 AM, Samuel Colak [EMAIL PROTECTED] wrote: then goto http://www.im-at-home.com - my other website. As for sandy and a couple of others, sure i guess they will do the same. Mine i think is faster - simply because it handle things in a different way. Ive been in the 3D space for quite some time since the Amiga - this has some shortcuts which arent publicized. Of course you are welcome to test the theory On Sep 25, 2008, at 5:53 PM, Doug McCune wrote: I clicked and moved... All I'm saying is that the claim that your personal 3D engine is better than PV3D is a large claim that needs far more than that example to back it up. Does yours render faster? handle more polygons? support unique textures, etc? All I'm seeing in that demo is basic 3D planes with video materials, which any of the 3D engines (PV3D, Away3D, Sandy) have been able to do for years. Even Flash Player 10 now has built in support for 3D planes. On Thu, Sep 25, 2008 at 8:28 AM, Samuel Colak [EMAIL PROTECTED] wrote: click and move it around ! On Sep 25, 2008, at 4:50 PM, Doug McCune wrote: I don't think papervision has anything on it - And its all written in Flex :) That's a big claim my friend. We're going to need to see more than 4 planes with a video material to make any assessment :)
Re: [flexcoders] Re: Base64Encoder / Base64Decoder
In my version of the SDK source the toString method is defined and looks like this: public function toString():String { return flush(); } On Thu, Sep 25, 2008 at 10:15 AM, Joao Coelho [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: What do you want to do with Base64? I might be able to point you at an example. I've also logged a bug for documentation to ask them to provide examples in these classes (note this, and commenting on the live docs, is a better way to get the doc team's attention). https://bugs.adobe.com/jira/browse/FLEXDOCS-509 The problem was with the toString() method in Base64Decoder(which does not exist), according to the docs Returns the string representation of the specified object.. The application threw a compile time error because the method did not exist. I ended up using the flush() method, after checking source code for the class, hence my comment on the previous post about the source. But thanks anyway.
Re: [flexcoders] Re: Base64Encoder / Base64Decoder
woops, that was in Base64Encoder, not Decoder. My mistake. On Thu, Sep 25, 2008 at 10:25 AM, Doug McCune [EMAIL PROTECTED] wrote: In my version of the SDK source the toString method is defined and looks like this: public function toString():String { return flush(); } On Thu, Sep 25, 2008 at 10:15 AM, Joao Coelho [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: What do you want to do with Base64? I might be able to point you at an example. I've also logged a bug for documentation to ask them to provide examples in these classes (note this, and commenting on the live docs, is a better way to get the doc team's attention). https://bugs.adobe.com/jira/browse/FLEXDOCS-509 The problem was with the toString() method in Base64Decoder(which does not exist), according to the docs Returns the string representation of the specified object.. The application threw a compile time error because the method did not exist. I ended up using the flush() method, after checking source code for the class, hence my comment on the previous post about the source. But thanks anyway.
Re: [flexcoders] Re: Base64Encoder / Base64Decoder
I assume the bug here is that the toString() method was supposed to be implemented the same way in Base64Decoder as it is in Base64Encoder, which would then make the docs at least make sense. But it looks like that method simply got left out of the decoder class. Add it in just like in the encoder and things aren't as confusing (although I'd argue that using the toString() method to retrieve the result is an inherently confusing way to use the classes). Doug On Thu, Sep 25, 2008 at 10:26 AM, Doug McCune [EMAIL PROTECTED] wrote: woops, that was in Base64Encoder, not Decoder. My mistake. On Thu, Sep 25, 2008 at 10:25 AM, Doug McCune [EMAIL PROTECTED] wrote: In my version of the SDK source the toString method is defined and looks like this: public function toString():String { return flush(); } On Thu, Sep 25, 2008 at 10:15 AM, Joao Coelho [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: What do you want to do with Base64? I might be able to point you at an example. I've also logged a bug for documentation to ask them to provide examples in these classes (note this, and commenting on the live docs, is a better way to get the doc team's attention). https://bugs.adobe.com/jira/browse/FLEXDOCS-509 The problem was with the toString() method in Base64Decoder(which does not exist), according to the docs Returns the string representation of the specified object.. The application threw a compile time error because the method did not exist. I ended up using the flush() method, after checking source code for the class, hence my comment on the previous post about the source. But thanks anyway.
Re: [flexcoders] Re: Base64Encoder / Base64Decoder
Woops, my bad again. I gotta stop responding to threads without really understanding what I'm talking about. I think I just noticed that both have flush() methods and I assumed that was to a String (which is wrong in the case of the decoder). I'll stop talking now. On Thu, Sep 25, 2008 at 10:42 AM, Peter Farland [EMAIL PROTECTED] wrote: Just curious, where'd folks see the decoder docs talk about a toString()? Base64Decoder's primary use is to decode to a ByteArray so it has a toByteArray() method. If you wanted to construct a String from this ByteArray you'd need to know the charset encoding used in the bytes. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug McCune Sent: Thursday, September 25, 2008 1:29 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Base64Encoder / Base64Decoder I assume the bug here is that the toString() method was supposed to be implemented the same way in Base64Decoder as it is in Base64Encoder, which would then make the docs at least make sense. But it looks like that method simply got left out of the decoder class. Add it in just like in the encoder and things aren't as confusing (although I'd argue that using the toString() method to retrieve the result is an inherently confusing way to use the classes). Doug
Re: [flexcoders] Retry: Question for Doug McCune on Drag-drop component?
For basic dragging stuff, here's typically what I do. Have a mouse down listener on whatever component you want to drag. On mouse down you keep track of the coordinates where the user pressed. Then you add a mouse move listener to the system manager. Also add a mouse up listener to system manager. Then when the user moves the mouse (which you catch with the system manager listener), perform the calculation of how far from the original mouse down position the mouse is and move the component to the right place. Then when you catch the mouse up event (again, from system manager), you remove the mouse move listener and you're done. See the code in the Panel class in the Flex framework for an example of this type of dragging. The big thing to know is that you want to use mouse move and mouse up events from the system manager, not from the component itself. If you use the component itself you'll end up losing the mouse movement if the user drags quickly off the component, or you might get stuck in endless dragging if the mouse is released while not over the component. You should also probably have a listener for when the mouse leaves the stage and stop dragging at that point too, since not doing that can make the drag operation continue after the release the mouse (if they move the mouse off your app and the release). Doug On Tue, Sep 23, 2008 at 12:30 PM, gwangdesign [EMAIL PROTECTED] wrote: Sorry if this question should be better showing up at the flexcomponent group. I didn't have any luck there so far;) Suppose I am motivated enough to roll up my sleeves to do something like what McCune is doing here at tileUI.com: http://www.youtube.com/watch?v=T0N7tgF7OOM Just for the drag part to get started, am I better off implementing the darg-drop framework that Flex provide or should I start from the more basic mouseUp/mouseDown? I guess this question is for every Flex guru besides Doug;) I appreciate it.
Re: [flexcoders] Retry: Question for Doug McCune on Drag-drop component?
Thanks :) For the dragging stuff, just check out the source of Panel. There's code in there that I often copy/paste into my own stuff to handle dragging the exact same way. On Tue, Sep 23, 2008 at 5:25 PM, Josh McDonald [EMAIL PROTECTED] wrote: Doug, you're a store (and distribution point) of much useful Flex kung-fu :) I didn't think of doing that last time I was messing with drag-n-drop, but it's a great idea. On Wed, Sep 24, 2008 at 6:02 AM, Doug McCune [EMAIL PROTECTED] wrote: For basic dragging stuff, here's typically what I do. Have a mouse down listener on whatever component you want to drag. On mouse down you keep track of the coordinates where the user pressed. Then you add a mouse move listener to the system manager. Also add a mouse up listener to system manager. Then when the user moves the mouse (which you catch with the system manager listener), perform the calculation of how far from the original mouse down position the mouse is and move the component to the right place. Then when you catch the mouse up event (again, from system manager), you remove the mouse move listener and you're done. See the code in the Panel class in the Flex framework for an example of this type of dragging. The big thing to know is that you want to use mouse move and mouse up events from the system manager, not from the component itself. If you use the component itself you'll end up losing the mouse movement if the user drags quickly off the component, or you might get stuck in endless dragging if the mouse is released while not over the component. You should also probably have a listener for when the mouse leaves the stage and stop dragging at that point too, since not doing that can make the drag operation continue after the release the mouse (if they move the mouse off your app and the release). Doug On Tue, Sep 23, 2008 at 12:30 PM, gwangdesign [EMAIL PROTECTED] wrote: Sorry if this question should be better showing up at the flexcomponent group. I didn't have any luck there so far;) Suppose I am motivated enough to roll up my sleeves to do something like what McCune is doing here at tileUI.com: http://www.youtube.com/watch?v=T0N7tgF7OOM Just for the drag part to get started, am I better off implementing the darg-drop framework that Flex provide or should I start from the more basic mouseUp/mouseDown? I guess this question is for every Flex guru besides Doug;) I appreciate it. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. http://flex.joshmcdonald.info/ :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] New to FLEX
[Shameless Plug] Flex for Dummies! http://dougmccune.com/blog/flex-for-dummies/ http://www.amazon.com/Adobe-Flex-Dummies-Computer-Tech/dp/0470277920 On Mon, Sep 22, 2008 at 11:28 AM, Sherif Abdou [EMAIL PROTECTED] wrote: Http://feeds.adobe.com http://adobe.com/flex -- Sherif Abdou http://VadexFX.com http://Sherifabdou.com - Original Message - From: NATA RAJAN To: flexcoders@yahoogroups.com Sent: Monday, September 22, 2008 11:51 AM Subject: [flexcoders] New to FLEX Hi friends am new to FLEX . can u send what are the flex sites to learn and PDF books and sample codings which u worked regards Natarajan Be the first one to try the new Messenger 9 Beta! Click here.
Re: [flexcoders] New to FLEX
Yeah, it's a hard line to walk trying to write something that someone without any knowledge of Flex can pick up and use to get started, but also trying to balance some more advanced stuff, all while keeping the page count ridiculously low (we ended up cutting a full chapter after exceeding the For Dummies absolute max allowed, make sure to check out the website on dummies.com for that extra chapter). And the dummies style is also to try to let the reader flip to any chapter without having to have read the previous ones, so that's an added challenge :) Thanks for the support! It's always wonderful to hear nice things. Doug On Mon, Sep 22, 2008 at 12:04 PM, Nancy Gill [EMAIL PROTECTED] wrote: I just picked up a copy on Friday at Borders .. mostly because I saw that it was written by you. My first impression is that it's probably easier than I need, but what really struck me about it is that it seems like a very good reference for getting it ingrained in the brain as to what everything is and does. Congrats, Doug .. despite the title :) .. looks to be a handy one to keep around! Nancy Gill Adobe Community Expert Author: Dreamweaver 8 e-book for the DMX Zone Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003) Technical Editor: Dreamweaver CS3: The Missing Manual, DMX 2004: The Complete Reference, DMX 2004: A Beginner's Guide Mastering Macromedia Contribute Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development - Original Message - From: Doug McCune To: flexcoders@yahoogroups.com Sent: Monday, September 22, 2008 11:30 AM Subject: Re: [flexcoders] New to FLEX [Shameless Plug] Flex for Dummies! http://dougmccune.com/blog/flex-for-dummies/ http://www.amazon.com/Adobe-Flex-Dummies-Computer-Tech/dp/0470277920 On Mon, Sep 22, 2008 at 11:28 AM, Sherif Abdou [EMAIL PROTECTED] wrote: Http://feeds.adobe.com http://adobe.com/flex -- Sherif Abdou http://VadexFX.com http://Sherifabdou.com - Original Message - From: NATA RAJAN To: flexcoders@yahoogroups.com Sent: Monday, September 22, 2008 11:51 AM Subject: [flexcoders] New to FLEX Hi friends am new to FLEX . can u send what are the flex sites to learn and PDF books and sample codings which u worked regards Natarajan Be the first one to try the new Messenger 9 Beta! Click here. __ Information from ESET NOD32 Antivirus, version of virus signature database 3460 (20080922) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
Re: [flexcoders] Re: New to FLEX
dang, I didn't know about http:///blog that's where all the secrets are! On Mon, Sep 22, 2008 at 4:34 PM, Josh McDonald [EMAIL PROTECTED] wrote: And read a boatload of blogs! I use bloglines myself, but google reader (or a browser bookmark) will do the trick. Here's the URLs of the Flex / RIA blogs I subscribe to: **I hope this msg doesn't get flagged as spam for all the URLs :) http://blogs.adobe.com/acom/ http://adamflater.blogspot.com/ http://rss.adobe.com/en/flex_cookbook_most_recent.rss http://blogs.adobe.com/aharui/ http://flexdiary.blogspot.com/ http://shigeru-nakagaki.com/index.cfm http://www.boostworthy.com/blog http://www.buntel.com/blog/index.cfm http://www.herrodius.com/blog http://www.darronschall.com/weblog/ http://david.realeyes.com http://davidzuckerman.com/adobe http://www.degrafa.com http://www.dgrigg.com http://dispatchevent.org http://dougmccune.com/blog http://ecmascript.zwetan.com/ http://jwopitz.wordpress.com http://sherifabdou.com http://blog.sunild.com/ http://blog.flexmonkeypatches.com http://www.dehats.com/drupal http://blogs.adobe.com/gosmith/ http://blogs.adobe.com/fcheng/ http://fullasagoog.com/ http://www.gskinner.com/blog/ http://gettingandsetting.com http://www.graviti.tv/blog http://blog.haxe.org http://iamdeepa.com/blog http://blog.iconara.net http://jacwright.com/blog http://ech.net/blog http://www.joeberkovitz.com/blog http://joshblog.net http://www.colettas.org http://office.realeyesmedia.com/blogs/jun http://kennethteo.com http://blog.kevinhoyt.org http://blog.thinkingdigital.org http://weblogs.macromedia.com/mchotin/ http:///blog http://blogs.adobe.com/flex/ http://weblogs.macromedia.com/paulw/ http://www.quasimondo.com/ http://www.riapedia.com http://www.ryangorer.com/blog/ http://thesaj.wordpress.com http://scalenine.com/ http://seantheflexguy.com/blog http://blog.smashedapples.com/ http://www.thetechlabs.com http://www.onflex.org/ted/index.php http://timwalling.com http://www.tink.ws/blog -Josh On Tue, Sep 23, 2008 at 8:31 AM, radwhite81 [EMAIL PROTECTED] wrote: the best book I would recommend is Flex 3 cookbook and Adobe flex 3 training from the source. Great books they teach the basics and then gets into what you really want to know. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. http://flex.joshmcdonald.info/ :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Re: FlexBuilder debugging kills ITunes
I've ditched debugging in Firefox and switched to only debugging in Safari. For some reason debugging in FF worked fine up until a certain point, then it became crazy crazy slow and would nearly hang my entire machine. Switched the default browser for debugging to Safari and all was normal again. Dunno what was up or if that is anything like your issue. Doug On Sun, Sep 21, 2008 at 5:49 AM, rleuthold [EMAIL PROTECTED] wrote: Is your mac starting to feel slower at the same time the iTunes begin to act shaky ? Do you debug with Firefox ? If so, check with Activity Monitor if your CPU is running at max ... If that is the case, try to do a fresh install of Firefox. With fresh I mean move the profiles and bookmarks away from the default location, reinstall Firefox and add all profile and addon stuff again. worked for me ... --- In flexcoders@yahoogroups.com, shaun [EMAIL PROTECTED] wrote: Brendan Meutzner wrote: Hi All, I'm sorry to post this not so technical question, but I figured it'd be the best place to see if other folks have this same frustration that I do. My dev machine is a Macbook Pro running Leopard, and I'm working with FlexBuilder 3.0.1. I've found that whenever I go to debug an app and it hits a breakpoint, my ITunes audio output begins skipping/hopping/jumping etc... It's terribly annoying! I've never had this issue on my Mac Pro running the same environment... EXCEPT... I haven't pushed up to 3.0.1 hotfix for FlexBuilder there yet... just running 3.0. Has anyone else had this happen to them? I'd love to just switch to another audio player, but having a lot of ITunes content, it would be really annoying to convert. Brendan man renice Might help. cheers, - shaun
Re: [flexcoders] Re: TileList changing items displayed after scrolling
You guys still use UIComponent? Man, real men go straight for Sprite. Or sometimes I just use Object and project the display list straight into the user's brain. On Thu, Sep 18, 2008 at 2:53 PM, Tracy Spratt [EMAIL PROTECTED] wrote: …extending UIComponent.. Wooo hoo, you are playing with the big boys now! Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Kyle *Sent:* Thursday, September 18, 2008 3:49 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: TileList changing items displayed after scrolling Thanks for the url's! I think that I had a number of issues with my renderer. One thing was that I was not setting the data property as [Bindable] so I don't believe that it was properly being set and/or dispatching the dataChange event. Secondly, (as you mentioned) there may have been a recycling issue. What I ended up doing was scrapping the idea of extending my item renderer off of some pre-existing class (such as Image or HBox) and extending UIComponent, then overriding all the methods to take full control over my renderer. This seemed to really do that trick! I also found a series written by Peter Ent to be extremely helpful: http://weblogs.macromedia.com/pent/archives/2008/03/itemrenderers_p_1.html
Re: [flexcoders] flex not displaying JPEG images
You could try reading the raw bytes of the JPEG and actually extracting the thumbnail if it's embedded (depending on what you're doing that could actually be a huge performance boost if all you need is the thumb). I think Kevin Hoyt had some code that extracted the thumbnail from EXIF data, check this stuff: http://blog.kevinhoyt.org/2007/12/18/samples-updated-for-air-beta-3/ Doug On Tue, Sep 16, 2008 at 7:56 PM, Paul Hastings [EMAIL PROTECTED]wrote: Alex Harui wrote: Can you repro yourself? Use some tool to generate a 150DPI image and see if Flex can show it. Then add thumbnails, etc until it dies? sort of. we thought we had id-ed 3 things different from the other working images: - 150 DPI - ICC Profile - embedded thumbnails a kind soul w/photoshop expertise stripped out the ICC Profile (and double checked that these images were indeed 8 bits/channel) as well as reducing the DPI to 72 (not exactly sure about that as the EXIF data still says 150DPI but the image's properties says 72DPI). didn't help. we used cfimage to convert to PNG then back again to JPEG which looked liked it croaked the thumbnail (not 100% sure) reduced the DPI to 96. flex still hung when we loaded the roundtripped JPEG images. tried the same thing w/fireworks, no joy. converting to PNG seems to be the only way to display these images. created a 150DPI PEG image in fireworks it too killed flex (can't tell if it also embedded a thumbnail). ditto for a 96 DPI image. based on this maybe it's an embedded thumbnail (if fireworks does indeed embed them) as the DPI seemed to have no effect. though we thought the JPEG--PNG--JPEG round trip w/cfimage should have lost those??? btw the client is using a 3.0 SDK compiled version while we're running 3.1, no difference. both are running 9.x flash players. thanks.
[flexcoders] performance implications of marking a class as final?
Anyone have any details or benchmarks about what kind of performance gain (if any) you get from making a class final?
Re: [flexcoders] Subclassing Components: Theoretical Question
heh, that's almost the exact description of what I called the CanvasButton: http://dougmccune.com/blog/2007/06/01/new-component-canvasbutton-added-to-flexlib/ Doug On Thu, Sep 11, 2008 at 3:22 PM, Josh McDonald [EMAIL PROTECTED] wrote: Yeah, I'd make one subclass of Button that lets you put whatever you please as the label, and have function set labelControl(cntrl:*) as the [DefaultProperty]. If it finds a string, go with a UITextField, if it's a DisplayObject, use it, if not throw an error. Then you have: pkg:FreeFormButton click=doStuff width=150 mx:textblah blah blah blah blah blah blah blah blah/mx:text /pkg:FreeFormButton -Josh On Fri, Sep 12, 2008 at 8:04 AM, Alex Harui [EMAIL PROTECTED] wrote: Make one subclass that handles both HTML and multiline? *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *wnoone01 *Sent:* Thursday, September 11, 2008 11:17 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Subclassing Components: Theoretical Question Hey all, I've got a theoretical question about subclassing a component. Here is the use case: A programmer requires buttons that support multiline labels. This is a requiement for Button, RadioButton, and CheckBox. Now to start, the programmer can subclass mx.controls.Button to implement the functionality. But now he needs to implement the functionality in RadioButton and CheckBox. One way is to subclass RadioButton and CheckBox and then duplicate the functionality there. However, not only will he be duplicating functionality, he is headed down a slippery slope. Let's say that for his next project, he suddenly requires a button label that supports HTML formatting. Now he must subclass again. So now the classes grow from: MultilineButton MultilineRadioButton MultilineCheckBox To MultilineButton HTMLButton MultilineRadioButton HTMLRadioButton MultilineCheckBox HTMLCheckBox The next project requires a multiline html button. So now its: MultilineButton HTMLButton MultilineHTMLButton MultilineRadioButton HTMLRadioButton MultilineHTMLRadioButton MultilineCheckBox HTMLCheckBox MultilineHTMLCheckBox And now its officially out of hand and the programmer is mired in a subclassing nightmare. --- So basically my question is what is the best way to handle this problem in Flex. Is subclassing the only way or is there a more efficient solution (decorators, item renderers, etc.)? Thanks in advance for any guidance Bill -- Therefore, send not to know For whom the bell tolls. It tolls for thee. http://flex.joshmcdonald.info/ :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] chatroom on flex and red5
no no, he can design it *on flex*, so that's all the hard work. Then all you have to do is code it and get fuctions workingm. That's the simple part, easily only worth 50%. On Wed, Sep 10, 2008 at 4:57 PM, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: sniperbe [EMAIL PROTECTED] sniperbe%40yahoo.com To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Sent: Wednesday, September 10, 2008 11:08 PM Subject: [flexcoders] chatroom on flex and red5 i would like to make a chat room website , that has cams and mics and has admins and so on and i can design it on flex but need it cod ed and get fuctions workingm, if you are able to do this we can owen it 50 50 I think anyone who can code it can do a chatroom design as well..
Re: [flexcoders] Re: turn horizontalScrollPolicy and verticalScrollPolicy off for all
filing a bug request for the egg issue (I was going to call it a feature request, but really, it's just a bad design choice)... maybe if we yell at them enough, adobe will find an answer. On Tue, Sep 9, 2008 at 7:23 AM, Tracy Spratt [EMAIL PROTECTED] wrote: It is not that I don't ever want scrolling, just that I would rather have to actively enable it on the container I want. This is a very small issue, like I would really like to have a little flat spot on an egg, so it won't roll away… Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Tuesday, September 09, 2008 1:38 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: turn horizontalScrollPolicy and verticalScrollPolicy off for all Not much dispatches a bubbling ADDED_TO_STAGE event IIRC :( However, Container extends UIComponent, so you could use UIComponent.mx_internal::dispatchEventHook. But make sure you chain (!!), and you can't complain when Alex breaks your code in FX 4 :) -Josh On Tue, Sep 9, 2008 at 3:25 PM, Alex Harui [EMAIL PROTECTED] wrote: How about (untested): systemManager.addEventListener(Event.ADDED_TO_STAGE, noscrollbarshandler, true); function noscrollbarshandler(event:Event):void { If (event.target is Container) { horizontalScrollPolicy = verticalScrollPolicy = off; } } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doug McCune Sent: Monday, September 08, 2008 10:17 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: turn horizontalScrollPolicy and verticalScrollPolicy off for all Could you just use a global CSS stylsheet that set all the scrollbar skins to an empty skin (ProgrammaticSkin) by default, and then you would have to change the style specifically for any components you wanted to actually have scrollbars? Dunno if that would really work or not... Doug On Mon, Sep 8, 2008 at 9:07 PM, Brendan Meutzner [EMAIL PROTECTED] wrote: Agree here as well... On Mon, Sep 8, 2008 at 9:47 PM, Tim Hoff [EMAIL PROTECTED] wrote: I agree, a lot of time can be wasted looking through nested containers trying to find a scrollbar culprit. wishlist? -TH --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: I do understand. Maybe I should be more pro-active, but often my apps reach a point where the best way to make sense of the scrollbar behavior is to turn them off everywhere. I, too. would prefer the scroll policies to be off by default. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Boon Chew Sent: Monday, September 08, 2008 9:24 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] turn horizontalScrollPolicy and verticalScrollPolicy off for all It's kinda a pain to have to subclass every single container used in the app just to turn the policy to off. I was hoping that for policy- based stuff we have an app-wide setting, like Application.application.scrollPolicy = no that can be overrided by individual containers. Lazy programmers like me in this case will probably resort to monkey patching the banana containers... - boon --- On Mon, 9/8/08, Gordon Smith [EMAIL PROTECTED] wrote: From: Gordon Smith [EMAIL PROTECTED] Subject: RE: [flexcoders] turn horizontalScrollPolicy and verticalScrollPolicy off for all To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Date: Monday, September 8, 2008, 5:35 PM Subclass the containers to set the policies to off and use the subclasses instead. Gordon Smith Adobe Flex SDK Team From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Boon Chew Sent: Monday, September 08, 2008 5:26 PM To: flexcoders Subject: [flexcoders] turn horizontalScrollPol icy and verticalScrollPolic y off for all Hi, Is there a quick way to turn off horizontalScrollPol icy / verticalScrollPolic y or prevent them from showing up once and for all for all containers in an app without resorting to patching? - boon -- Brendan Meutzner http://www.meutzner.com/blog/ -- Therefore, send not to know For whom the bell tolls. It tolls for thee. http://flex.joshmcdonald.info/ :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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
Re: [flexcoders] Printf style formatting of numbers to have leading and trailing 0's?
Use the NumberFormatter and set precision to 2. But I don't think that has anything built in that will give you the double 00 if the number is 0 at the beginning. Instead, you would end up with 0.00. But you could pretty easily extend the NumberFormatter class, override the format function, then call super.format() and check if the result is 0.00, of so just prepend an extra 0. Doug On Tue, Sep 9, 2008 at 12:54 PM, Jo Morano [EMAIL PROTECTED] wrote: Hi! I have a Number that I need to print out along with other strings. I don't get the leading or trailing 0's and that continues to affect the label whose text they represent. Is there a C style formatting mechanism which would make string = + number give me 12.34 when number is 12.34 and 00.00 for number = 0? Today I get 12.34 and 0 respectively.
Re: [flexcoders] Re:Looking for a Flex forum.
Tim, I haven't seen any forums written in Flex, and I'd argue (as I think many here would) that Flex is not a great technology for writing a forum application. There are some things that Flex does incredibly well, and some that it does not... and text-based content portals is one that Flex is not great for. For the same reasons I'd argue that Flex is not a good choice if you want to create a blogging platform. The SEO issues alone, not to mention the text rendering issues, would prevent me suggesting using Flex. Doug On Mon, Sep 8, 2008 at 10:52 AM, timgerr [EMAIL PROTECTED] wrote: I am sorry that I might not have stated my question better. I am looking for a forum that is coded in Flex. I have not seen any with Google searches and was wondering what (if any) people are using. I am sorry that my question might not have been formulated to your desire but that was a lousy answer. If you are unable to reply with any constructive responses, they why respond? Common, this form is for learning and asking questions. I was taught that there are not dumb questions, except for the ones that are never asked. I guess since you create Instructional Technology Media software then all questions you answer in your software help people that don't ask questions I am sorry that you took your time to read my post, I am sorry that you responded. timgerr --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Merrill, Jason [EMAIL PROTECTED] wrote: I was wondering if there was a Flex forum that people have used? I'm speechless. Jason Merrill Bank of America Enterprise Technology Global Risk LLD Instructional Technology Media Join the Bank of America Flash Platform Developer Community blocked::http://sharepoint.bankofamerica.com/sites/tlc/flash/default.as px Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog blocked::http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default. aspx subscribe blocked::http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts /SubNew.aspx?List=\%7b41BD3FC9-BB07-4763-B3AB-A6C7C99C5B8D\%7dSource=ht tp://sharepoint.bankofamerica.com/sites/ddc/rd/blog/Lists/Posts/Archive. aspx .
Re: [flexcoders] Re:Looking for a Flex forum.
I'm not trying to be a complete glass is half empty kind of guy, so if you want to build a Flex message board, go for it. But I do think there are substantial reasons that you haven't seen a successful one yet out in the wild (or has anyone seen one at all?). Is SEO still an issue when writing a Flex application? I would argue that it's not. A) Google (Yahoo coming soon if not already) now indexes content within a SWF. This includes dynamic content as well. Using dynamic deep linking and a site map that points to different content in the SWF helps a great deal with this. Except nobody has gotten this to work yet (I assume it will work eventually, but right now it's basically a pipe dream in the real world). See: http://blog.digitalbackcountry.com/?p=1617 So yeah, in the future SEO might become less of an issue with Flex sites, but for now it's as big an issue as it's ever been, and for me is still a deal breaker if the site requires indexing. B) If A isn't enough, you could always use mod_rewrite (or similar technology) to take a link structure and pass parameters down into a SWF to determine the view state and content. In addition, the server side script could print an html version of the content in the background which would allow search engines to index the content and give non-flash users access to the information as well. The only down side to this approach is you can not update the URL bar while the user browses through the application since anchor links are not passed through to the server (to my knowledge). This can be compensated for by displaying a link to this page in the application. Yeah, so this has long been the only real way to make your site search engine friendly, and it certainly works, but in the end you're building two websites, one for the search engine and a completely different one in Flex for the users. Why bother building the flex one then? esp if the application doesn't use anything that makes Flex/Flash stand out? If you have a forum that was based on sharing music or video, then maybe I could understand wanting to go with Flex (although I'd probably still argue for just embedding little widgets in HTML). But a standard forum works very well as an HTML app with a scattering of AJAX. Esp when you compare the text capabilities, stuff like HTML links, inline images within blocks of text, good support of rich formatting within text blocks. It's all stuff that's a no brainer with HTML, but either works sub-par or not at all in flash player. Anyways, sorry I couldn't answer your original question better. But I think the idea of a Flex based forum is definitely a realizable idea, and I didn't want you to give up on it because of a few dissenters. :) certainly don't let me tell you what you can and can't do. If you want to build it, go for it, just be aware of what you're getting yourself into. And report back on your progress if you decide to take the plung! Doug
Re: [flexcoders] Framework RSLs -- Any Reason Not To Use? Any Problems Related to Their Use?
I think mainly you just need to be aware of the size implications (both good and bad). By using the framework RSL you are removing the framework from your SWF, which will reduce your SWF size by quite a bit. However, you are also requiring the loading of the full framework RSL. The full RSL includes all the framework classes, not just those used in your SWF, so this RSL is actually larger than the savings that you have gotten with your smaller swf. But this framework RSL can be cached and can even be cached from other people's apps. So if someone visits your app without ever having loaded the RSL (either from you or another person's app) then their initial load time will actually be longer than if you did not use the RSL. However,if they have viewed another Flex app that used the RSL, then your load time will be faster. The other thing that I've heard is that you can't monkey patch framework classes if using the RSL, since that gets loaded after your main app, the RSL framework classes take precedence. Doug On Mon, Sep 8, 2008 at 1:35 PM, Matt Chotin [EMAIL PROTECTED] wrote: I haven't heard of any :-) On 9/8/08 1:26 PM, greg h [EMAIL PROTECTED] wrote: Hi, I am on a team that is pushing into production a public facing Flex application on the Internet. We have configured the app to use the Flash Player's caching of the Framework RSL. Before going live, I am posting here to see if anyone has experience that causes them to caution against using the Framework RSL (e.g. framework_3.0.0.477.swz)? I have seen the following post by Dmitri Girski's with his analysis on where RSLs offer the most benefit (Thanks Dmitri :-): http://tech.groups.yahoo.com/group/flexcoders/message/108149 But I have not had luck tracking down any horror stories. I certainly am heartened by this lack of horror stories. However, if by using the Framework RSL we might be introducing any risks or pitfalls, we sure would prefer to know before we go live, rather than hear about them from our customers ;-) If anyone might have advice they are willing to share, we would be most appreciative if you could be so kind as to share your experiences. Thanks, g
Re: [flexcoders] Framework RSLs -- Any Reason Not To Use? Any Problems Related to Their Use?
A related question for Matt or someone from Adobe... didn't Google announce sometime back that they are hosting common JavaScript frameworks? The idea being that people could link to those to ensure that download speed was super fast and that they could be cached more easily? Any thoughts on Adobe hosting a version of the framework RSL on a super duper balls to the walls fast network, so we never have to worry about the 500+k loading being a bottleneck on our end? Doug On Mon, Sep 8, 2008 at 2:36 PM, greg h [EMAIL PROTECTED] wrote: Hi Doug, Thanks! My apology for not including in my initial post the analysis that you have so graciously provided. In our case, we have done the analysis that you indicated, and yes there are cases where visitors downloads will be increased by our use of the Framework RSLs. -- First Time Visitor. First time visitor for whom our app is the first app using that version of the Framework RSL. -- Flash Player Earlier Than 9.0.115. All visitors using earlier versions of Flash Player than 9.0.115 will download the swf version of the RSL in all cases. The above being understood, we have decided to proceed with using the Framework RSL because repeat visitors, and hopefully even many first time visitors will enjoy smaller and therefore faster downloads. Regarding monkey patching we have not done that in this app. We certainly will be mindful of this if we should we, in the future, do any monkey patching (aka underriding core framework classes). Again, thank you for sharing. g
Re: [flexcoders] Re: turn horizontalScrollPolicy and verticalScrollPolicy off for all
Could you just use a global CSS stylsheet that set all the scrollbar skins to an empty skin (ProgrammaticSkin) by default, and then you would have to change the style specifically for any components you wanted to actually have scrollbars? Dunno if that would really work or not... Doug On Mon, Sep 8, 2008 at 9:07 PM, Brendan Meutzner [EMAIL PROTECTED] wrote: Agree here as well... On Mon, Sep 8, 2008 at 9:47 PM, Tim Hoff [EMAIL PROTECTED] wrote: I agree, a lot of time can be wasted looking through nested containers trying to find a scrollbar culprit. wishlist? -TH --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: I do understand. Maybe I should be more pro-active, but often my apps reach a point where the best way to make sense of the scrollbar behavior is to turn them off everywhere. I, too. would prefer the scroll policies to be off by default. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Boon Chew Sent: Monday, September 08, 2008 9:24 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] turn horizontalScrollPolicy and verticalScrollPolicy off for all It's kinda a pain to have to subclass every single container used in the app just to turn the policy to off. I was hoping that for policy- based stuff we have an app-wide setting, like Application.application.scrollPolicy = no that can be overrided by individual containers. Lazy programmers like me in this case will probably resort to monkey patching the banana containers... - boon --- On Mon, 9/8/08, Gordon Smith [EMAIL PROTECTED] wrote: From: Gordon Smith [EMAIL PROTECTED] Subject: RE: [flexcoders] turn horizontalScrollPolicy and verticalScrollPolicy off for all To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Date: Monday, September 8, 2008, 5:35 PM Subclass the containers to set the policies to off and use the subclasses instead. Gordon Smith Adobe Flex SDK Team From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Boon Chew Sent: Monday, September 08, 2008 5:26 PM To: flexcoders Subject: [flexcoders] turn horizontalScrollPol icy and verticalScrollPolic y off for all Hi, Is there a quick way to turn off horizontalScrollPol icy / verticalScrollPolic y or prevent them from showing up once and for all for all containers in an app without resorting to patching? - boon -- Brendan Meutzner http://www.meutzner.com/blog/
Re: [flexcoders] package structure for different programming languages
ditto, same structure but different actual locations on the drive. Usually when I have a java project and flex project that have mirrored classes (usually when using remoting), that means that I have one Flex project and one Java project, which exist as separate projects within Eclipse. I never have java source classes in my Flex projects and never have AS classes within my java projects. Doug On Sat, Sep 6, 2008 at 2:43 PM, Ralf Bokelberg [EMAIL PROTECTED]wrote: completely separated, but the packages can have the same structure/name r. On Sat, Sep 6, 2008 at 11:37 PM, ibid049 [EMAIL PROTECTED]ibid49%40gmail.com wrote: Just an organizational question. If you have a client-server app in flex, and you have your domain- specific package structure, e.g. com.yahoo.groups.tech.etc., Do you put your AS classes within the same structure as your server-side classes, whatever language they're written in, or do you keep you language-specific classes completely separate in duplicated com.yahoo.groups.tech folder structures elsewhere on the hard drive? I imagine this is a preference thing, but I wanted to know how everyone else usually does it, specifically for ease of development and setting up Flex Builder.
Re: [flexcoders] clipContent doesn't always clip content
Guy, your inner cnavas takes up 100% width, so as far as yourouter canvas knows, it doesn't need to clip the children. clipContent doesn't force clipping, it simply turns it on if needed, and the Canvas determines if it needs clipping based on whether any of the children are placed outside of the visible bounds. I usually just add a dummy UIComponent object and place it at -1,-1 in the canvas. So try this: mx:Canvas clipContent=true id=containerLayer bottom=0 left=350 top=0 right=0 horizontalScrollPolicy=off verticalScrollPolicy=off mx:Canvas id=dynamicLayer clipContent=true width=100% height=100% horizontalScrollPolicy=off verticalScrollPolicy=off mx:UIComponent x=-'1 y=-1 / /mx:Canvas /mx:Canvas On Fri, Sep 5, 2008 at 7:40 AM, Danny Gold [EMAIL PROTECTED] wrote: Does clipContent clip the Graphics object or just DisplayObject children? On Fri, Sep 5, 2008 at 8:37 AM, Guy Morton [EMAIL PROTECTED] wrote: Hi Mike I know for sure that the graphics are being drawn outside the enclosing canvas, because the child canvas is drawing x values 0 and these aren't being clipped but are visible outside the map area. Guy On 05/09/2008, at 9:51 PM, Michael Schmalle wrote: Hi Guy, Are you actually measuring the graphics that you draw (in a sub component, the child of the canvas)? Is there a possibility that canvas is not knowing if the graphics are extending passed what it THINKS is the measured width and height? Mike On Thu, Sep 4, 2008 at 7:43 PM, Guy Morton [EMAIL PROTECTED] wrote: I have a problem in that clipContent seems to intermittently not clip the content in a layer as I imagine it should. The graphics in the layer are drawn using the graphics class and the layer is inside another Canvas, eg mx:Canvas clipContent=true id=containerLayer bottom=0 left=350 top=0 right=0 horizontalScrollPolicy=off verticalScrollPolicy=off mx:Canvas id=dynamicLayer clipContent=true width=100% height=100% horizontalScrollPolicy=off verticalScrollPolicy=off / /mx:Canvas MOST of the time the content drawn in the nested canvas is clipped correctly, but sometimes it spills over the content to the left of the containing canvas. Anyone got any ideas as to why this happens and how to prevent it? TIA Guy -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] clipContent doesn't always clip content
sorry, first part of my message wasn't really applicable, since you were trying to use the inner canvas for clipping, not the outer, but the code should work OK. On Fri, Sep 5, 2008 at 8:51 AM, Doug McCune [EMAIL PROTECTED] wrote: Guy, your inner cnavas takes up 100% width, so as far as yourouter canvas knows, it doesn't need to clip the children. clipContent doesn't force clipping, it simply turns it on if needed, and the Canvas determines if it needs clipping based on whether any of the children are placed outside of the visible bounds. I usually just add a dummy UIComponent object and place it at -1,-1 in the canvas. So try this: mx:Canvas clipContent=true id=containerLayer bottom=0 left=350 top=0 right=0 horizontalScrollPolicy=off verticalScrollPolicy=off mx:Canvas id=dynamicLayer clipContent=true width=100% height=100% horizontalScrollPolicy=off verticalScrollPolicy=off mx:UIComponent x=-'1 y=-1 / /mx:Canvas /mx:Canvas On Fri, Sep 5, 2008 at 7:40 AM, Danny Gold [EMAIL PROTECTED] wrote: Does clipContent clip the Graphics object or just DisplayObject children? On Fri, Sep 5, 2008 at 8:37 AM, Guy Morton [EMAIL PROTECTED] wrote: Hi Mike I know for sure that the graphics are being drawn outside the enclosing canvas, because the child canvas is drawing x values 0 and these aren't being clipped but are visible outside the map area. Guy On 05/09/2008, at 9:51 PM, Michael Schmalle wrote: Hi Guy, Are you actually measuring the graphics that you draw (in a sub component, the child of the canvas)? Is there a possibility that canvas is not knowing if the graphics are extending passed what it THINKS is the measured width and height? Mike On Thu, Sep 4, 2008 at 7:43 PM, Guy Morton [EMAIL PROTECTED] wrote: I have a problem in that clipContent seems to intermittently not clip the content in a layer as I imagine it should. The graphics in the layer are drawn using the graphics class and the layer is inside another Canvas, eg mx:Canvas clipContent=true id=containerLayer bottom=0 left=350 top=0 right=0 horizontalScrollPolicy=off verticalScrollPolicy=off mx:Canvas id=dynamicLayer clipContent=true width=100% height=100% horizontalScrollPolicy=off verticalScrollPolicy=off / /mx:Canvas MOST of the time the content drawn in the nested canvas is clipped correctly, but sometimes it spills over the content to the left of the containing canvas. Anyone got any ideas as to why this happens and how to prevent it? TIA Guy -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] Horrible performance problems...Need some ideas on improving
There are a few places within the ADG code where the code loops over every single item renderer and needlessly (or at least excessively) calls validateNow() on each renderer. That forces the renderers to each relayout and draw themselves and does not allow the delayed layout processing that the framework is supposed to allow. See the updateDisplayOfItemRenderer() method in AdvancedDataGridBase and you'll find this function: protected function updateDisplayOfItemRenderer(r:IListItemRenderer):void { if (r is IInvalidating) { var ui:IInvalidating = IInvalidating(r); ui.invalidateDisplayList(); ui.validateNow(); } } that gets run waaay too often. Also see the drawCellItem() method of AdvancedDataGrid, which down at the bottom of the method has this call: if (item is IFlexDisplayObject) { if (item is IInvalidating) { IInvalidating(item).invalidateDisplayList(); IInvalidating(item).validateNow(); } } So basically every time your data grid is redrawing itself it takes way longer than it should. I created an extended version of ADG and overrode those two methods (had to copy/paste most of the drawCellItem method) and I removed the calls to validateNow, seemed to speed things up a lot. Doug On Thu, Sep 4, 2008 at 8:06 AM, Adrian Williams [EMAIL PROTECTED]wrote: All, I am seeing some incredible lag while using a couple of simple panels and a complex ADG. While I love the flexibility and power of Flex/AS and the ADG, I really need to overcome these performance problems or the project will sink. My ADG has approx. 100 columns with approx. 200 rows, in a grouping collection that contains approx 30 groups. I suspect the lag I am seeing has to do with the redrawing of the rows. Whenever I scroll or collapse/expand the nodes, it takes between 1/2 to 1 second for the action to complete. And this isn't even a very large dataset...we have some that have a few thousand rows. I haven't used any item rendering (yet) that would slow the speed down, though I have two columns that have style functions attached. All in all, this is about as close to display the raw data as I can get. I have spent some time with the profiler and performance monitor and it appears the the code is sound and without memory leaks. I have also gone thru to refactor poorly designed code and remove unnecessary nestings. So my initial questions with this admittedly somewhat vague problem are: 1.) Is there a way to turn off the animations and would doing so help with the speed? 2.) Has anyone else faced this same dilemma and how did you overcome the problems? Thanks, Adrian
Re: [flexcoders] Horrible performance problems...Need some ideas on improving
the class has a bunch of other stuff in it too (we needed some further display customization), but it's pretty straightforward. The updateDisplayOfItemRenderer method was overriden like so: override protected function updateDisplayOfItemRenderer(r:IListItemRenderer):void { if (r is IInvalidating) { var ui:IInvalidating = IInvalidating(r); ui.invalidateDisplayList(); //dear Flex team in India: I hate you. // ui.validateNow(); } } and then I copied/pasted the entire drawCellItem() method and commented out the call to validateNow() that occurs in the lower part of that function. Give that a whirl and let me know if it helps with performance. Doug On Thu, Sep 4, 2008 at 8:46 AM, Adrian Williams [EMAIL PROTECTED]wrote: Hi Doug, This makes sense. It's staggering that the validateNow() is being called basically on every cell In hope of avoiding recreating the wheel, would you be willing to share your extended code with me so I can give it a whirl and see if it remedies the problem? Thanks! Adrian Doug McCune wrote: There are a few places within the ADG code where the code loops over every single item renderer and needlessly (or at least excessively) calls validateNow() on each renderer. That forces the renderers to each relayout and draw themselves and does not allow the delayed layout processing that the framework is supposed to allow. See the updateDisplayOfItemRenderer() method in AdvancedDataGridBase and you'll find this function: protected function updateDisplayOfItemRenderer(r:IListItemRenderer):void { if (r is IInvalidating) { var ui:IInvalidating = IInvalidating(r); ui.invalidateDisplayList(); ui.validateNow(); } } that gets run waaay too often. Also see the drawCellItem() method of AdvancedDataGrid, which down at the bottom of the method has this call: if (item is IFlexDisplayObject) { if (item is IInvalidating) { IInvalidating(item).invalidateDisplayList(); IInvalidating(item).validateNow(); } } So basically every time your data grid is redrawing itself it takes way longer than it should. I created an extended version of ADG and overrode those two methods (had to copy/paste most of the drawCellItem method) and I removed the calls to validateNow, seemed to speed things up a lot. Doug On Thu, Sep 4, 2008 at 8:06 AM, Adrian Williams [EMAIL PROTECTED] wrote: All, I am seeing some incredible lag while using a couple of simple panels and a complex ADG. While I love the flexibility and power of Flex/AS and the ADG, I really need to overcome these performance problems or the project will sink. My ADG has approx. 100 columns with approx. 200 rows, in a grouping collection that contains approx 30 groups. I suspect the lag I am seeing has to do with the redrawing of the rows. Whenever I scroll or collapse/expand the nodes, it takes between 1/2 to 1 second for the action to complete. And this isn't even a very large dataset...we have some that have a few thousand rows. I haven't used any item rendering (yet) that would slow the speed down, though I have two columns that have style functions attached. All in all, this is about as close to display the raw data as I can get. I have spent some time with the profiler and performance monitor and it appears the the code is sound and without memory leaks. I have also gone thru to refactor poorly designed code and remove unnecessary nestings. So my initial questions with this admittedly somewhat vague problem are: 1.) Is there a way to turn off the animations and would doing so help with the speed? 2.) Has anyone else faced this same dilemma and how did you overcome the problems? Thanks, Adrian
Re: [flexcoders] Horrible performance problems...Need some ideas on improving
heh, my bad about the comments in that block of code, I copied and pasted without really reading :) To be diplomatic let's just say I have complex emotions when it comes to the work that was done on the ADG, and that I don't in fact hate anyone anywhere in the world. On Thu, Sep 4, 2008 at 8:51 AM, Doug McCune [EMAIL PROTECTED] wrote: the class has a bunch of other stuff in it too (we needed some further display customization), but it's pretty straightforward. The updateDisplayOfItemRenderer method was overriden like so: override protected function updateDisplayOfItemRenderer(r:IListItemRenderer):void { if (r is IInvalidating) { var ui:IInvalidating = IInvalidating(r); ui.invalidateDisplayList(); //dear Flex team in India: I hate you. // ui.validateNow(); } } and then I copied/pasted the entire drawCellItem() method and commented out the call to validateNow() that occurs in the lower part of that function. Give that a whirl and let me know if it helps with performance. Doug On Thu, Sep 4, 2008 at 8:46 AM, Adrian Williams [EMAIL PROTECTED] wrote: Hi Doug, This makes sense. It's staggering that the validateNow() is being called basically on every cell In hope of avoiding recreating the wheel, would you be willing to share your extended code with me so I can give it a whirl and see if it remedies the problem? Thanks! Adrian Doug McCune wrote: There are a few places within the ADG code where the code loops over every single item renderer and needlessly (or at least excessively) calls validateNow() on each renderer. That forces the renderers to each relayout and draw themselves and does not allow the delayed layout processing that the framework is supposed to allow. See the updateDisplayOfItemRenderer() method in AdvancedDataGridBase and you'll find this function: protected function updateDisplayOfItemRenderer(r:IListItemRenderer):void { if (r is IInvalidating) { var ui:IInvalidating = IInvalidating(r); ui.invalidateDisplayList(); ui.validateNow(); } } that gets run waaay too often. Also see the drawCellItem() method of AdvancedDataGrid, which down at the bottom of the method has this call: if (item is IFlexDisplayObject) { if (item is IInvalidating) { IInvalidating(item).invalidateDisplayList(); IInvalidating(item).validateNow(); } } So basically every time your data grid is redrawing itself it takes way longer than it should. I created an extended version of ADG and overrode those two methods (had to copy/paste most of the drawCellItem method) and I removed the calls to validateNow, seemed to speed things up a lot. Doug On Thu, Sep 4, 2008 at 8:06 AM, Adrian Williams [EMAIL PROTECTED] wrote: All, I am seeing some incredible lag while using a couple of simple panels and a complex ADG. While I love the flexibility and power of Flex/AS and the ADG, I really need to overcome these performance problems or the project will sink. My ADG has approx. 100 columns with approx. 200 rows, in a grouping collection that contains approx 30 groups. I suspect the lag I am seeing has to do with the redrawing of the rows. Whenever I scroll or collapse/expand the nodes, it takes between 1/2 to 1 second for the action to complete. And this isn't even a very large dataset...we have some that have a few thousand rows. I haven't used any item rendering (yet) that would slow the speed down, though I have two columns that have style functions attached. All in all, this is about as close to display the raw data as I can get. I have spent some time with the profiler and performance monitor and it appears the the code is sound and without memory leaks. I have also gone thru to refactor poorly designed code and remove unnecessary nestings. So my initial questions with this admittedly somewhat vague problem are: 1.) Is there a way to turn off the animations and would doing so help with the speed? 2.) Has anyone else faced this same dilemma and how did you overcome the problems? Thanks, Adrian
Re: [flexcoders] Need Help and Guidance desperately
His layout is really difficult. Basically he wants images to be smart enough to size any which way to fit around each other. If you take a look at the word doc he attached the second mockup shows the problem. Basically he doesn't want to restrict to rows or columns, and wants items to be able to span both, which is hard to do. I honestly don't have an answer for how to do that layout. If you can change the requirement to let you use either columns or rows then you're fine. Doug On Wed, Sep 3, 2008 at 2:49 PM, Alex Harui [EMAIL PROTECTED] wrote: OK, FlexMDI, probably won't do it for you. You want some organization of the images. Why didn't FlowBox work for you? *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *anuj sharma *Sent:* Wednesday, September 03, 2008 2:31 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Need Help and Guidance desperately Hi Alex I am not sure i understand that. Basically I am dragging images from one container which is HBOX( because i need scroller facility too) and dropping them in another container which is Tile. The user should be able to resize the dropped images as shown in the layout and the rest of the images have to adjust in terms of size as well as location to let resized image to get accommodated. I have seen some examples of FlowBox and one as shown in the following link: http://demo.quietlyscheming.com/DragTile/DragDrop.html but my problem coems becasue user should be able to resize the images in the container. As I have mentioned this is the first project of this kind for me I am not sure which way to go. Anyway coming to your question (mini-window using FlexMDI) it can be the any way as long as it is solving the purpose of my requirement. Any detail and suggestions, please let me know Thanks Anuj On Wed, Sep 3, 2008 at 2:16 PM, Alex Harui [EMAIL PROTECTED] wrote: Can everything be a mini-window using FlexMDI? *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *anuj sharma *Sent:* Wednesday, September 03, 2008 1:46 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Need Help and Guidance desperately Hi Guys So is there anyone in the list that can help me in achieving this? This problem is burning me out now and I need a good head start to achieve this. This is my first project of this kind. Earlier i developed simple prototypes using basic event programming. I need you genius guys's guidance to get me started and need that layout for my images. If there is any custom componenet available in the market then i am ready to buy that too. It is taking me little long to figure out this layout. I have reached at the last level of this project. Sorry for being pain but please help me out in generating this layout. Any guidance and any kind of help in this direction will be highyl appreciated. Thanks in advance guys Anuj On Wed, Aug 27, 2008 at 1:51 PM, anuj sharma [EMAIL PROTECTED] wrote: Dough I forgot to mention that i am not sure if i can force the components into either rows or columns because I am allowing free flow of the image within the container too which means that the user should be able to resize the image and should be able to drag and drop the image too whereever he wants within the container. i used drag manager for that. i thought should made it clear. Thanks for your time Anuj On Wed, Aug 27, 2008 at 9:34 AM, Doug McCune [EMAIL PROTECTED] wrote: Oh wow, that's actually a really flexible layout requirement that I don't think you can achieve with any of the components out there right now (ie TileList, Tile, combination of HBox and VBox, or even FlowBox). I think you may have to lose of of the desired functionality and allow the content to be binned into distinct rows or columns more tightly. The first image in your attachement is doable in the FlowBox I believe, but the second screenshot is much harder. Notice how box C extends down into a second row, and also how box E extends across multiple columns. That use of dual column and row spanning makes it difficult. If you allow the components to be forced into either rows or columns then it will be much easier. Doug On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED] wrote: Hi All Attached is the rough sketch i am about the UI i have to implement. Right now they are just empty pictures, but the user can drag them on the stage and can resize the images placed on the main screen. My requirement if user drops a new image on the screen all the other images adjust themselves to accommodate the new image. Also if user enlarge or shrink one image (like in the sketch user is trying to shrink image B), all the other images adjust themselves on the main stage . Please let em know if you have any questions. Thanks a lot for your help Anuj On Tue, Aug 26, 2008 at 4:38 PM, anuj sharma [EMAIL PROTECTED] wrote: Hi Rick
Re: [flexcoders] Flex and Scene7, Flexstore license, List etiquette
Thanks Dad :) On Tue, Sep 2, 2008 at 10:26 AM, Matt Chotin [EMAIL PROTECTED] wrote: Hey guys, I guess this is what I get for going on vacation last week huh? Clearly most of you guys saw the threads last week (and even today frankly) that I think went well over the line of what should be considered acceptable list behavior. I'd like to remind everyone that the words you post here are basically going to live on forever in search engines, mail archives, etc. Try not to write things that are going to embarrass you in the future. And while in general I don't have a problem with foul language (one need only hang out with me briefly) I think this forum is not the place for it, and ask that if you take the time to type it out, you take the time to take a deep breath and use those backspace and delete keys. OK, play nice, issue closed. Robert was saying that there's a Scene 7 webinar and it will talk about Flex and developers may want to pay attention. I think most of you should go and attend but that's because I think that Scene 7 offers interesting opportunities for various ecommerce solutions. I do not see Scene 7 competing with most of what you guys do (at least as far as I know). If however you have a system that you sell to large ecommerce sites that does high-end image manipulation including color changes and various transforms, I think you may be a competitor. Other than that, I don't believe Scene 7 competes with what most Flex developers do. Doesn't mean Adobe doesn't end up competing with customers. I always feel a total tinge of guilt when I see a really cool product out there and know that Adobe will compete in that area too. Adobe is a public company that needs to grow, that means that we will not be contracting our areas of focus, we will be expanding. We obviously have a huge stake in image software, it is reasonable to assume that we will be going into the web version of that pretty heavily (most folks would agree we'd be pretty stupid not to). If you look at where Acrobat is successful (and as much as folks hate Reader for being slow, it's really really successful) it is in business productivity. You can imagine we'll be continuing along those lines (see acrobat.com). So that's two examples, I'm sure there are others. Last question was on Flexstore license and whether you can use it as the basis for commercial software or whatever. Answer: yes. You can use Flexstore to do whatever you want. I think all the samples we post on dev center where source is available, you can treat that as being open to doing whatever you want where it says see accompanying license. Hope this helps, Matt Adobe Flex Product Manager
Re: [flexcoders] Custom Tool Tip
FYI, toolTipClass has some issues, not sure if this has been fixed in a newer SDK build, but you can read about the problem and a monkey-patch solution here: http://www.returnundefined.com/2008/07/simple-monkey-patch-to-fix-tooltipmanagertooltipclass On Tue, Sep 2, 2008 at 10:28 AM, Alex Harui [EMAIL PROTECTED] wrote: Subclass ToolTip, make the appropriate changes, then change ToolTipManager.toolTipClass or catch TOOL_TIP_CREATE event and supply the tooltip there. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *deepa_pathuri *Sent:* Monday, September 01, 2008 11:09 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Custom Tool Tip can some body help me with creating a custom tool tip.
Re: [flexcoders] Re: What is Flexcoders?
Guys, it's labor day. Can we all please just go outside and get drunk? Spend time with your loved ones and let's all stop being obsessed with a dumb mailing list argument. Go eat a hamburger, drink about 12 beers, and realize that none of this nonsense matters. Doug On Mon, Sep 1, 2008 at 3:23 PM, Robert Thompson [EMAIL PROTECTED]wrote: I think those posts have ended, at least by me. I said very clearly in one post to that I would make an effort to stay focused on [flexcoders] which is why i've been using that name when referring to something. my last post was on FDT Enterprise - that's all. and then the ball came swinging again. the issue is over for me. as for ol which i won't mention by full name you just mentioned it, the whole reason I brought that up is because i've been trying to decide for months on the best way to invest flexcoding time into place where it won't just die one day due to some big change in the industryand that's where my inquiry all began...in just that so i don't think it's off topic if i [flexcode] and want that code to be able to work with other runtimes, so that one day i don't wake up and a few years of investment in time and money are gone. i made that point, from then on it was 1 person angry with me, then another polite, then the fo remark / better to deal with something sooner rather than later. can we go back to my /end which was made so clear in the topic heading to stop this, because Josh clearly said No I won't (get off my back I asked). -r On Sep 1, 2008, at 6:09 PM, Guy Morton wrote: Of course, having said that, we do need to draw the line somewhere. eg if you were to have a situation where one list member was: * going on and on about the same topic excessively despite the annoyance that this was causing many other list members * padding replies with unrelated rants about pet topics * making ongoing recommendations of other technologies, like say, Open Laszlo * writing posts long on rhetoric but short on relevant facts I think at some point then, someone might have to tell them to pull their heads in. What do you think? Guy On 29/08/2008, at 8:55 AM, Tim Hoff wrote: Fair enough and thanks for the opinion. Yes, the previous Silverlight discussion also fits into this category. Don't get me wrong, my opinion is just one in this group and the delete key is my friend also. Just trying to keep it somewhat real. Thanks Guy, -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Guy Morton [EMAIL PROTECTED] wrote: I don't think anyone is much interested in personal rants, but there is a decent-sized grey area of topics that some people believe are off- topic and want to suppress (my recent discussion with the MS product manager for Silverlight being one example). Personally, I think considered rational discussion about Flex in the context of other technologies is something every developer should take at least a passing interest in. The vast majority of the email that lands in my flexcoders folder is of no immediate interest to me and I'm sure others must have the same experience on such a busy list for a product with such a broad range of applications. As a result, I think tolerating the odd thread that doesn't specifically relate to coding in Flex isn't that hard. I'd encourage those who are prone to trying to kill off threads they don't personally like to consider that developers are a broad church and that we should perhaps keep an open mind about what others choose to contribute, so long as it relates to Flex in some significant way. If a discussion doesn't interest you, use the delete key! Guy On 29/08/2008, at 7:35 AM, Tim Hoff wrote: Hi All, This is the text from the original FlexcodersFAQ.txt file: 1. What is Flexcoders? Flexcoders is a forum where developers can ask questions about Flex, FlexBuilder, and Flex-related technologies (like Cairngorm and FlexUnit). The community is made up of everyday Flex developers as well as Adobe employees. However, this is not an official Adobe- sponsored forum, it is moderated by the community. However the original moderators who are still actively involved are folks from iteration::two, now members of Adobe Consulting. In light of some recent threads, that have clearly been personal comentary, instead of flex-related technology questions, I thought that it might be useful at this time to reinforce the spirit of this list, and to also ask the list how others feel about personal rants posted here. Are there others that feel that the number of off- topic threads has increased to the point that it's getting out of hand and that the appropriate place for these type of posts should be personal blogs; instead of this list? I realize that this isn't a technology question in itself, but it seems that people are hoping
Re: [flexcoders] LMBFAO
As general list etiquette, could we all try to not keep changing the subject line of threads when replying? If you change the subject line mid-thread, it often messes up the threading of email applications like gmail, which makes the list much harder to read. Thanks, Doug On Fri, Aug 29, 2008 at 12:57 PM, Robert Thompson [EMAIL PROTECTED]wrote: Do you mean, LMBFAO ??? On Aug 29, 2008, at 11:34 AM, Tim Hoff wrote: LMAO
Re: [flexcoders] OpenLaszlo.org supports Flex, Silverlight, AJAX, soon Quicktime, and also DHTML and W3C
God forgive me, for I have sinned. I am responding to a thread I know I absolutely should not have replied to. Sorry for encouraging the ranting, I just couldn't not reply when this amazing email came into my inbox. Robert, I'll address each paragraph one at a time and tell you exactly why this message, as well as the ones you have been sending in the last day or so, are in fact complete spam and worthy of the comments you have received. On Fri, Aug 29, 2008 at 2:33 PM, Robert Thompson [EMAIL PROTECTED] wrote: OpenLaszlo.org supports Flex, Flash, Silverlight, AJAX, soon Quicktime Simply incorrect. OpenLaszlo has been around for years and has always targeted both the Flash runtime and AJAX. That's what it does and that's what it has always done. You write an app and you can target Flash or DHTML. There it no support for Silverlight, there is no support for Flex (what woudl that even mean?), I don't know what you are suggesting when you claim they support Quicktime but that doesn't even make sense. If you are going to make wild claims please back them up with references so we can verify. I also want to point out that this sentence and only one other short sentence later in this message (also completely factually incorrect) are the only two parts of this email that have anything at all to do with the subject of this thread. First of all to the gentlemen suggesting I'm slamming the list. I am not and I take offense at that. Don't accuse me when I am responding to someone else. I posted only 2 original posts and they were in the best interest of the [flexcoders] community, some agreed, some did not. Do not accuse me of spamming unless you are from Adobe and moderating this list. This has nothing to do with the topic you posted. If you have a gripe about someone's reply then reply to that. By creating a new thread and filling it with completely unrelated paragraphs like this you are in fact spamming the list. Second of all, I've been continuing to research this, and have a simple answer to the Runtime Wars that are very real and goign on and are a part of the acquisition of Scene7 which DIRECTLY RELATES TO FLEXCODERS. Don't question, Mr. Person who accuses me of spamming, my motives when I'm trying to get to the bottom of this. Completely unrelated to the subject you posted. Thirdly, OpenLazlo.org has also scene the shifting going on in the industry between Silverlight and Flex/Swf, Quicktime SDK, and others and has begun and open source solution. So there you have it. Do not accuse me and get aggressive without doing your own research. Again, OpenLazlo has been around for years, I assume most people on this list know about it. And even if not this post does not provide any new information whatsoever, and instead only provides misleading and factual incorrect information. I'm in this to better our investments in time and money (for those who care about it). If you continue to defame me with an accusation of Spamming you better back it up with an Original Posting by me that is off topic. I am not Spamming, and if you feel I have, show me, and If it's true I will stop it. But I intend to get to the bottom of this legally or otherwise. Fine, cheers, have fun. But this post does not have any information regarding the topic you posted, so please keep the personal monologues under wraps unless you are talking about something. You want an original posting that is off-topic? THIS ONE. EVERYONE BE AN INDIVIDUAL: Don't let anyone sucker you into thinking for you. Do your own research and look to OpenLaszlo.org which appears to be a noble effort recognizing the struggles going on in Adobe with the resignation of the CEO last Fall. Again, OpenLazlo is not new. It has nothing to do with the Adobe CEO at all. Do your own research before spamming with incorrect information please. [flexcoders] should be aware that they have multiple options and One blasted person trying to tape my mouth shut by claiming I'm spamming had better be from Adobe and not just another developer trying to cut-down free speech that IS ON TOPIC WITH THE FUTURE of our Investment in Time and Money. Do any of us want to waste 4 years only to find out it was for not? I don't think anyone is denying there are multiple options, we're just saying that you going off on long rants without any information of substance is getting annoying. If you claim I'm spamming the list by providing a URL, my URL earlier posted was so I could present the research I'm doing w/o posting to this group and offending people like you who just get in the way. No, we're claiming you're spamming the list by messages exactly like these. I like the earlier posting of the individual lady who said, let it live, or feed it. The comments thereafter were uneeded and more contrary to the policies of polite procedure of this group than trying to inform. others. I've been there, I've been screwed by a large company
Re: [flexcoders] What is Flexcoders?
Personally I like a good back and forth, even if it's non directly code or question specific. Part of what I like about this list is the playful arguing that creeps into some of these discussions. But sometimes personalities clash a little (which I don't mind at all) and sometimes people get a little overzealous. There's a fine line between having a fun sarcastic argument and egging someone on who shouldn't be egged on. I know in this most recent thread I've been responsible for egging the dude on more than I should have, which led to post after post, which I didn't quite realize would happen. But should the original post never have been posted? I don't know about that. I think a discussion about Adobe competing with developers is a decent one to have, and one that is appropriate for this list. The way the thread evolved (or in fact, the very way it started) made that discussion impossible. But that's not to say that this list shouldn't be used for those kinds of topics. This one certainly got out of hand, but so it goes sometimes. Tim, your attempt to try to end the thread as it devolved into ridiculousness didn't work, but I think we all sort of realized that we should just stop replying. I know that I've watched the past few messages on the topic stream through my inbox and have been itching to fire back ridiculous responses, but decided that it was best to just keep my mouth shut. These things work themselves out. So in the end we have some ranting threads every once in a while, but we also encourage lively discussions (many of which greatly benefit the community), and I prefer that rather than a strict business-only atmosphere. In the end I don't think there's much you can do (or should do), other than give some helpful reminders about keeping things on-topic like you've done. But if people ignore that they ignore that. And I don't have a problem just ignoring threads in my inbox, so I haven't yet found the amount of off-topic noise to be overwhelming. Doug On Thu, Aug 28, 2008 at 2:35 PM, Tim Hoff [EMAIL PROTECTED] wrote: Hi All, This is the text from the original FlexcodersFAQ.txt file: *1. What is Flexcoders?* *Flexcoders is a forum where developers can ask questions about Flex, FlexBuilder, and Flex-related technologies (like Cairngorm and FlexUnit). The community is made up of everyday Flex developers as well as Adobe employees. However, this is not an official Adobe-sponsored forum, it is moderated by the community. However the original moderators who are still actively involved are folks from iteration::two, now members of Adobe Consulting.* In light of some recent threads, that have clearly been personal comentary, instead of flex-related technology questions, I thought that it might be useful at this time to reinforce the spirit of this list, and to also ask the list how others feel about personal rants posted here. Are there others that feel that the number of off-topic threads has increased to the point that it's getting out of hand and that the appropriate place for these type of posts should be personal blogs; instead of this list? I realize that this isn't a technology question in itself, but it seems that people are hoping that by ignoring those that are abusing the list, that they will go away. This doesn't appear to be the case. Thanks in advance for your responses, -TH
Re: [flexcoders] Need Help and Guidance desperately
Oh wow, that's actually a really flexible layout requirement that I don't think you can achieve with any of the components out there right now (ie TileList, Tile, combination of HBox and VBox, or even FlowBox). I think you may have to lose of of the desired functionality and allow the content to be binned into distinct rows or columns more tightly. The first image in your attachement is doable in the FlowBox I believe, but the second screenshot is much harder. Notice how box C extends down into a second row, and also how box E extends across multiple columns. That use of dual column and row spanning makes it difficult. If you allow the components to be forced into either rows or columns then it will be much easier. Doug On Wed, Aug 27, 2008 at 9:05 AM, anuj sharma [EMAIL PROTECTED] wrote: Hi All Attached is the rough sketch i am about the UI i have to implement. Right now they are just empty pictures, but the user can drag them on the stage and can resize the images placed on the main screen. My requirement if user drops a new image on the screen all the other images adjust themselves to accommodate the new image. Also if user enlarge or shrink one image (like in the sketch user is trying to shrink image B), all the other images adjust themselves on the main stage . Please let em know if you have any questions. Thanks a lot for your help Anuj On Tue, Aug 26, 2008 at 4:38 PM, anuj sharma [EMAIL PROTECTED] wrote: Hi Rick I will try to sketch my requirement and send it to you soon. That might help to find what i am looking for. Thanks for your suggestion. Anuj On Mon, Aug 25, 2008 at 7:47 PM, Rick Winscot [EMAIL PROTECTED]wrote: The seconds link was to a flow layout that would set you in the right direction... The other option was the first link which uses static positioning. Really, it depends on what you want the user experience to be like. If you could sketch out the solution – we could throw some code around. Rick Winscot On 8/25/08 10:24 PM, anuj sharma [EMAIL PROTECTED] wrote: Hi Rick Thanks for the reply. Are there any recommendations about which layout component or container should i use or do i need to create my custom component for achieving this target. I am not sure which way to handle that layout. Please help me out Again Thanks a lot. Anuj On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL PROTECTED] wrote: Hi I am using HBOX container to load images letting user drag image from one HBOX and dropping them in another (2nd)HBOX. I need to calculate the real estate of the HBOX in which the image has been dropped (i-e 2nd HBOX). The reason is that because I need the dropped image to get placed in an empty space within the 2nd HBOX. Is there any way I can calculate which space is empty in the HBOX and let my objects (images) to be placed only in the empty spaces within the HBOX (not the sapce already occupied by the placed images).Once the HBOX is full then I need to code in a way that images starts shrinking(upto some level) to accommodate more images. Please help me out in figuring out this problem. Any type of help/documentation/links in this direction will be highly appreciated. Thanks Anuj
Re: [flexcoders] Whitepaper and Webinar -- Please read the Scene7.com posts Objectively
Well, as long as we've got public defenders like yourself who will contact the Department of Justice, I feel safe. Let's do a class action lawsuit for buzzword and photoshop express while we're at it. [sorry, sometimes I just can't help poking threads that I know I should just let die] Doug On Wed, Aug 27, 2008 at 10:14 AM, Robert Thompson [EMAIL PROTECTED]wrote: Looks like my thoughts have been confirmed, by someone. Selling development tools and having a developer community is one of the best kept secrets in the Evangelist style of Marketing. The first time a FLEX developer bids on a project and the client tells them they are using Adobe Scene7, that's when the issues begin, and once they begin, they will get worse. Prior to the acquisition of Macromedia, Adobe was a fairly even player with Photoshop, Illustrator and PDF, primarily and imaging and document firm. Now, if Scene7.com does what I think it will be doing, and as you seem to have confirmed below, it is going to take the momentum of the Flash Player, begun by FutureWave Technologies (an honorable group), Macromedia (an honorable group), and take that into the Developer Arena *Capitalizing on the all the wide-spread knowledge that Flash and more recently FLEX developers have provided for them.* Shortage of work is a relative term. *Ask any developer who has bid on eLance.com and you'll understand the dynamics of bidding against others for contracts.* If it turns out that Adobe begins to take the momentum achieved by it's predecessors, namely it's acquisitions (which is has a right to), and it's developers (which, if Scene7.com turns out to be as you describe and I believe it will), then it is an ETHICAL ISSUE that will not go away, and I'm giving fair-warning to any developer out there (and yes, I do have the experience I've said I do to the gentleman out there that questioned that). I've been through thousands of pages of an unamed companies documents to find out how they really work, and how they really look at Developers. Adobe appears to be on that same road, and the more signs I see of it, the more I will support other efforts. For those inclined to be offended easily, I'd ask not to shout against me or anyone else giving an opinion, but For your own sakes, keep an eye on ACTIONS not WORDS. You'd be surprised what larger corporations, especially ones that we all know the name of [not Adobe] that gained their momentum on the backs of the developer community, only to turn against them with hidden DLL API's, hacks against licensed technology to make it perform poorly under their platform, etc. (again this is not Adobe as I just said). However, when a Consumer Software company, which Adobe was, starts changing Acrobat to have an SDK (that's their right) and but then goes beyond that to provide a far better Plug-in, only made possible by the light weight plug-in efforts of FutureWave, and for the past few years gaining momentum on the development efforts and expensive purchases of development tools ; when that line is blurred it will ultimately turn out bad for the developer. For the gentleman who said shortage of jobs again, that's not the issue as I just explained in eLance.com / The issue is that people will Buy and will Trust Adobe more than a developer or even a small development firm when it comes to bidding online. Local efforts are different. If the below turns out to be true of FLEX vs. Scene7.com (a potential guise of a Consumer mid-level Product Manager), then the FLEX, and more especially the ActionScript component and development community as a while since Macromedia's aquisition *will have at that point been betrayed** and yes, at that point, or any sign of it (in the form of Actions, not Promises, do not trust the promises of a large Corp. unless you've tried them true), if there is that sign or signs, then yes it's time to get on with it and get out and support more honorable people like Apple and Steve Jobs.* At this point I wish Macromedia never sold to Adobe.com / This isn't looking pretty for the FLEX community. I'll certainly keep my Lexis-Nexis handy and press contacts (and in several years, if it turns bad, the FTC and DOJ). -r On Aug 27, 2008, at 11:17 AM, Battershall, Jeff wrote: At this point, Adobe is not likely to abandon Scene7 due to developer concerns. The way I see it, Adobe has been taking on consulting engagements for some time, just like IBM does, and I think having an offering of best of breed off-the-shelf solutions fits in well with that strategy. I don't think it interferes with the prosperity of Adobe solution providers or individual developers, in fact having such solutions available may make more possible to deliver on projects by not having to reinvent functionality. It is what it is and there's no shortage of work, so let's get on with it. Jeff -Original Message- *From:*
Re: [flexcoders] How do I remove the arrow for a node in the Tree
that's controlled by two different styles: disclosureClosedIcon and disclosureOpenIcon Doug On Wed, Aug 27, 2008 at 12:16 PM, randalma2120 [EMAIL PROTECTED]wrote: I created a Tree with new icons for folderOpen and folderClosed but I still have the arrow. Can someone show or point me to how to remove this. Used this is the CSS Tree { defaultLeafIcon: Embed(icons/application.png); folderOpenIcon: Embed(icons/minus.png); folderClosedIcon: Embed(icons/plus.png); } Data is simple: mx:XMLList id=treeData node label=Students node label=Report 1 / node label=Report 2/ node label=Report 3/ node label=Report 4/ node label=Listing by Program node label=Report 1 / node label=Report 2/ node label=Report 3/ /node /node /mx:XMLList
Re: [flexcoders] 3596: Duplicate variable definition -- not sure why I'm getting it here
what line is giving you the warning? which variable is the compiler saying is the duplicate? On Wed, Aug 27, 2008 at 1:18 PM, Mark [EMAIL PROTECTED] wrote: Can someone lend their eyes on this and why I'm getting that warning. Thanks Mark public function doSLFilter(item:Object):Boolean { // var i:String; var m:String; var q:String; //trace(target ALL -- + item.title + \r + item.targetAll + \r); // var isMatch:Boolean = false; // if (portType == Both portKind == All){ //trace (BOTH AND ALL); for (i in regArray) { // for (m in originArray){ // for (q in targetArray){ // if (item.serviceLine.indexOf (regArray[i].toString()) != -1 impactArray.indexOf (item.networkImpact.toString()) != -1 desktopString.indexOf (item.desktopImpact) != -1 helpdeskString.indexOf (item.helpdeskImpact) != -1 item.origin.toString().toLowerCase() == originArray[m].toString().toLowerCase()){ // if (targetArray.length == CustButton.dtCB.length){ //trace (both are equal); isMatch=true; } else if (item.targetAll.toLowerCase().indexOf(targetArray[q].toString ().toLowerCase()) != -1) { //trace(not equal); isMatch=true } //isMatch=true; } } } } // END BOTH AND ALL \\ } else if (portType != Both portKind == All) { //trace (NOT BOTH and ALL); for (i in regArray) { // for (m in originArray){ // for (q in targetArray){ // if (item.serviceLine.indexOf (regArray[i].toString()) != -1 item.portfolioType == portType impactArray.indexOf(item.networkImpact.toString()) != -1 desktopString.indexOf(item.desktopImpact) != -1 helpdeskString.indexOf(item.helpdeskImpact) != -1 item.origin.toString().toLowerCase() == originArray[m].toString ().toLowerCase()){ // if (targetArray.length == CustButton.dtCB.length){ //trace (both are equal); isMatch=true; } else if (item.targetAll.toLowerCase().indexOf(targetArray[q].toString ().toLowerCase()) != -1) { //trace(not equal); isMatch=true } //isMatch=true; } } } } // END NOT ALL \\ } else { //trace (NOT BOTH and ALL); for (i in regArray) { // for (m in originArray){ // for (q in targetArray){ // if (item.serviceLine.indexOf (regArray[i].toString()) != -1 item.portfolioName == portKind impactArray.indexOf(item.networkImpact.toString()) != -1 desktopString.indexOf(item.desktopImpact) != -1 helpdeskString.indexOf(item.helpdeskImpact) != -1 item.origin.toString().toLowerCase() == originArray[m].toString ().toLowerCase()){ // item.targetAll.toLowerCase().indexOf(targetArray[q].toString ().toLowerCase()) != -1 if (targetArray.length == CustButton.dtCB.length){ //trace (both are equal); isMatch=true; } else if (item.targetAll.toLowerCase().indexOf(targetArray[q].toString ().toLowerCase()) != -1) { //trace(not equal); isMatch=true } //isMatch=true; } } } } } // return isMatch; }
Re: [flexcoders] Re: 3596: Duplicate variable definition -- not sure why I'm getting it here
huh, yeah, that's kinda what I thought, but that's weird. sounds like maybe the warnings are wrong (ie the compiler didn't re-check the files). Try cleaning and rebuilding the project. Or try closing and re-opening FB and see if there's still there. I think you're right in expecting your change to remove the warnings, so I dunno what's up. On the plus side it doesn't really matter one way or the other. Doug On Wed, Aug 27, 2008 at 1:38 PM, Mark [EMAIL PROTECTED] wrote: Sorry, that would have been smart to put that info in there. I'm getting the warning at the else if and else on the for loops on variable i, m, and q. for (i in regArray) { // for (m in originArray){ // for (q in targetArray){ At first I had these loops with the var declaration in each loop like this: for (var i:String in regArray) { // for (var m:String in originArray){ // for (var q:String in targetArray){ I'd expect to see that warning while it was like this, but upon taking them out of the loops and declaring them up top I still get the warnings. And the warnings are exactly as I have it - 3596: Duplicate variable definition. Thanks, Mark --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Doug McCune [EMAIL PROTECTED] wrote: what line is giving you the warning? which variable is the compiler saying is the duplicate? On Wed, Aug 27, 2008 at 1:18 PM, Mark [EMAIL PROTECTED] wrote: Can someone lend their eyes on this and why I'm getting that warning. Thanks Mark public function doSLFilter(item:Object):Boolean { // var i:String; var m:String; var q:String; //trace(target ALL -- + item.title + \r + item.targetAll + \r); // var isMatch:Boolean = false; // if (portType == Both portKind == All){ //trace (BOTH AND ALL); for (i in regArray) { // for (m in originArray){ // for (q in targetArray){ // if (item.serviceLine.indexOf (regArray[i].toString()) != -1 impactArray.indexOf (item.networkImpact.toString()) != -1 desktopString.indexOf (item.desktopImpact) != -1 helpdeskString.indexOf (item.helpdeskImpact) != -1 item.origin.toString().toLowerCase () == originArray[m].toString().toLowerCase()){ // if (targetArray.length == CustButton.dtCB.length){ //trace (both are equal); isMatch=true; } else if (item.targetAll.toLowerCase().indexOf(targetArray[q].toString ().toLowerCase()) != -1) { //trace(not equal); isMatch=true } //isMatch=true; } } } } // END BOTH AND ALL \\ } else if (portType != Both portKind == All) { //trace (NOT BOTH and ALL); for (i in regArray) { // for (m in originArray){ // for (q in targetArray){ // if (item.serviceLine.indexOf (regArray[i].toString()) != -1 item.portfolioType == portType impactArray.indexOf(item.networkImpact.toString()) != -1 desktopString.indexOf(item.desktopImpact) != -1 helpdeskString.indexOf(item.helpdeskImpact) != -1 item.origin.toString().toLowerCase() == originArray[m].toString ().toLowerCase()){ // if (targetArray.length == CustButton.dtCB.length){ //trace (both are equal); isMatch=true; } else if (item.targetAll.toLowerCase().indexOf(targetArray[q].toString ().toLowerCase()) != -1) { //trace(not equal); isMatch=true } //isMatch=true; } } } } // END NOT ALL \\ } else { //trace (NOT BOTH and ALL); for (i in regArray) { // for (m in originArray){ // for (q in targetArray){ // if (item.serviceLine.indexOf (regArray[i].toString()) != -1 item.portfolioName == portKind impactArray.indexOf(item.networkImpact.toString()) != -1 desktopString.indexOf(item.desktopImpact) != -1 helpdeskString.indexOf(item.helpdeskImpact) != -1 item.origin.toString().toLowerCase() == originArray[m].toString ().toLowerCase()){ // item.targetAll.toLowerCase().indexOf(targetArray[q].toString ().toLowerCase()) != -1 if (targetArray.length == CustButton.dtCB.length){ //trace (both are equal); isMatch=true; } else if (item.targetAll.toLowerCase().indexOf(targetArray[q].toString ().toLowerCase()) != -1) { //trace(not equal); isMatch=true } //isMatch=true; } } } } } // return isMatch; }
Re: [flexcoders] Re: 3596: Duplicate variable definition -- not sure why I'm getting it here
Project-Clean then Project-Build On Wed, Aug 27, 2008 at 1:43 PM, Mark [EMAIL PROTECTED] wrote: good point, it works. How do you clean and rebuild a project? Is that in the documentation somewhere? Thanks again, Mark --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Doug McCune [EMAIL PROTECTED] wrote: huh, yeah, that's kinda what I thought, but that's weird. sounds like maybe the warnings are wrong (ie the compiler didn't re-check the files). Try cleaning and rebuilding the project. Or try closing and re-opening FB and see if there's still there. I think you're right in expecting your change to remove the warnings, so I dunno what's up. On the plus side it doesn't really matter one way or the other. Doug On Wed, Aug 27, 2008 at 1:38 PM, Mark [EMAIL PROTECTED] wrote: Sorry, that would have been smart to put that info in there. I'm getting the warning at the else if and else on the for loops on variable i, m, and q. for (i in regArray) { // for (m in originArray){ // for (q in targetArray){ At first I had these loops with the var declaration in each loop like this: for (var i:String in regArray) { // for (var m:String in originArray){ // for (var q:String in targetArray){ I'd expect to see that warning while it was like this, but upon taking them out of the loops and declaring them up top I still get the warnings. And the warnings are exactly as I have it - 3596: Duplicate variable definition. Thanks, Mark --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Doug McCune doug@ wrote: what line is giving you the warning? which variable is the compiler saying is the duplicate? On Wed, Aug 27, 2008 at 1:18 PM, Mark markp.shopping_id@ wrote: Can someone lend their eyes on this and why I'm getting that warning. Thanks Mark public function doSLFilter(item:Object):Boolean { // var i:String; var m:String; var q:String; //trace(target ALL -- + item.title + \r + item.targetAll + \r); // var isMatch:Boolean = false; // if (portType == Both portKind == All){ //trace (BOTH AND ALL); for (i in regArray) { // for (m in originArray){ // for (q in targetArray){ // if (item.serviceLine.indexOf (regArray[i].toString()) != -1 impactArray.indexOf (item.networkImpact.toString()) != -1 desktopString.indexOf (item.desktopImpact) != -1 helpdeskString.indexOf (item.helpdeskImpact) != -1 item.origin.toString ().toLowerCase () == originArray[m].toString().toLowerCase()){ // if (targetArray.length == CustButton.dtCB.length){ //trace (both are equal); isMatch=true; } else if (item.targetAll.toLowerCase().indexOf(targetArray[q].toString ().toLowerCase()) != -1) { //trace(not equal); isMatch=true } //isMatch=true; } } } } // END BOTH AND ALL \\ } else if (portType != Both portKind == All) { //trace (NOT BOTH and ALL); for (i in regArray) { // for (m in originArray){ // for (q in targetArray){ // if (item.serviceLine.indexOf (regArray[i].toString()) != -1 item.portfolioType == portType impactArray.indexOf(item.networkImpact.toString()) != -1 desktopString.indexOf(item.desktopImpact) != -1 helpdeskString.indexOf(item.helpdeskImpact) != -1 item.origin.toString().toLowerCase() == originArray [m].toString ().toLowerCase()){ // if (targetArray.length == CustButton.dtCB.length){ //trace (both are equal); isMatch=true; } else if (item.targetAll.toLowerCase().indexOf(targetArray[q].toString ().toLowerCase()) != -1) { //trace(not equal); isMatch=true } //isMatch=true; } } } } // END NOT ALL \\ } else { //trace (NOT BOTH and ALL); for (i in regArray) { // for (m in originArray){ // for (q in targetArray){ // if (item.serviceLine.indexOf (regArray[i].toString()) != -1 item.portfolioName == portKind impactArray.indexOf(item.networkImpact.toString()) != -1 desktopString.indexOf(item.desktopImpact) != -1 helpdeskString.indexOf(item.helpdeskImpact) != -1 item.origin.toString().toLowerCase() == originArray [m].toString ().toLowerCase()){ // item.targetAll.toLowerCase().indexOf(targetArray[q].toString ().toLowerCase()) != -1 if (targetArray.length == CustButton.dtCB.length){ //trace (both are equal); isMatch=true; } else if (item.targetAll.toLowerCase().indexOf(targetArray[q].toString ().toLowerCase()) != -1) { //trace(not equal); isMatch=true
Re: [flexcoders] Will Scene 7 turn Adobe into a competitor of it's ISVs like Microsoft ???
ummm, you're a flex consultant afraid of not having work because of adobe? are you looking at the same market I am? The adobe is cannibalizing it's user base argument might hold a little water when it comes to the products they're developing (pshop express, buzzword, etc). But god knows there's more Flex consulting work out there than anyone knows what to do with. Try crying wolf once any semblance of a problem emerges. And has someone really fired you because they started using scene 7? really? Doug On Tue, Aug 26, 2008 at 9:30 AM, Robert Thompson [EMAIL PROTECTED] wrote: Although I'll hold my breath until more and more info. is released into the public. I'm a little concerned that Adobe is starting to get the Take over the world vision with Scene 7.0 They appear to be heading towards a consulting type service (as well as selling to us developers) where people can create FLEX like sites and experiences that were the hope and promise of developers to capitalize on buy spending, in my case, $1,777 on the FLEX 3.0 with ILOG Elixr components. I have many projects planned in this area. But when will come the day when someone says, Oh, I just purchase Adobe Scene 7.0, we don't need to contract you any longer. If this turns out to be the case, it will ultimately result in the same Entropy demise of IBM, which was followed by Microsoft, and which I hope Adobe does not plan to fall into. Why would a developer dedicate years of his life to APIs from Adobe when, ultimately, the way things are turning out, why don't we just get down to the GPU level an 'C' Program NVIDIA CUDO to do the ultimate in 3-4 years time, rather than let someone sucker us into purchasing products, very expensive ones, only to turn and compete with us. Things are not looking pretty and it appears to me that Open Source, ala, Blender instead of Maya, CUDO and Apache SOAP instead of Coldfusion, and DHTML will perhaps some new submissions to the W3C -- perhaps that's the new message us developers need to listen to. As Henry Rollins says in his great song Liar, Please, I'm sorry, just give me anther chanceAh, ha, ha, ha, ha, oo.SUCKER, Sucker.a, I like it (the money)I FEEL GOOD. Do you feel good Adobe? Where do you want to go today? I'll follow thisif this heads where I think it is, I will put out the message. -r
Re: [flexcoders] Will Scene 7 turn Adobe into a competitor of it's ISVs like Microsoft ???
ummm, looks like I got served On Tue, Aug 26, 2008 at 3:58 PM, Robert Thompson [EMAIL PROTECTED]wrote: Oh, btw, you may want to take out the gum in your mouth before posting. It alleviates the um effect quite nicely. No need for that, it's a sarcastic lead-in. j'off (signing off) -r On Aug 26, 2008, at 12:53 PM, Doug McCune wrote: ummm, you're a flex consultant afraid of not having work because of adobe? are you looking at the same market I am? The adobe is cannibalizing it's user base argument might hold a little water when it comes to the products they're developing (pshop express, buzzword, etc). But god knows there's more Flex consulting work out there than anyone knows what to do with. Try crying wolf once any semblance of a problem emerges. And has someone really fired you because they started using scene 7? really? Doug On Tue, Aug 26, 2008 at 9:30 AM, Robert Thompson [EMAIL PROTECTED]plasmaphonic%40mac.com wrote: Although I'll hold my breath until more and more info. is released into the public. I'm a little concerned that Adobe is starting to get the Take over the world vision with Scene 7.0 They appear to be heading towards a consulting type service (as well as selling to us developers) where people can create FLEX like sites and experiences that were the hope and promise of developers to capitalize on buy spending, in my case, $1,777 on the FLEX 3.0 with ILOG Elixr components. I have many projects planned in this area. But when will come the day when someone says, Oh, I just purchase Adobe Scene 7.0, we don't need to contract you any longer. If this turns out to be the case, it will ultimately result in the same Entropy demise of IBM, which was followed by Microsoft, and which I hope Adobe does not plan to fall into. Why would a developer dedicate years of his life to APIs from Adobe when, ultimately, the way things are turning out, why don't we just get down to the GPU level an 'C' Program NVIDIA CUDO to do the ultimate in 3-4 years time, rather than let someone sucker us into purchasing products, very expensive ones, only to turn and compete with us. Things are not looking pretty and it appears to me that Open Source, ala, Blender instead of Maya, CUDO and Apache SOAP instead of Coldfusion, and DHTML will perhaps some new submissions to the W3C -- perhaps that's the new message us developers need to listen to. As Henry Rollins says in his great song Liar, Please, I'm sorry, just give me anther chanceAh, ha, ha, ha, ha, oo.SUCKER, Sucker.a, I like it (the money)I FEEL GOOD. Do you feel good Adobe? Where do you want to go today? I'll follow thisif this heads where I think it is, I will put out the message. -r
Re: [flexcoders] Need Help and Guidance desperately
I think you might be asking the wrong question. You asked how to know if the area that the user dropped an item was the empty space or the space taken up by other items in the container. But then you want all the items in the container to resize to become smaller to accomodate more items in the container if the user drops too many. Why not just let the user drop items anywhere in the container and just add them to the container? Then all you have to do is create a container that scales the children to make sure that they always fit within the bounds. If you force the children to always be the same width then this should be really easy to figure out what scaling you should apply to the children. If not then you'll have to do more complex measurement. I'd suggest starting with teh flowbox container in FlexLib (flexlib.net), and if that doesn't suit your needs then either extend that or try using the Tile container. It doesn't sound like you want to use a list control (ie TileList) because you always want all the children visible, so you never want the list to scroll, and therefore you don't benefit from itemrenderers, so using a list will just complicate things unneccesarily. Doug On Mon, Aug 25, 2008 at 9:42 PM, Josh McDonald [EMAIL PROTECTED] wrote: I agree, I'd use a couple of TileLists and a simple inline itemrenderer. Shouldn't be too difficult really. -Josh On Tue, Aug 26, 2008 at 2:31 PM, Alex Harui [EMAIL PROTECTED] wrote: TileList? -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Rick Winscot *Sent:* Monday, August 25, 2008 7:47 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Need Help and Guidance desperately The seconds link was to a flow layout that would set you in the right direction... The other option was the first link which uses static positioning. Really, it depends on what you want the user experience to be like. If you could sketch out the solution – we could throw some code around. Rick Winscot On 8/25/08 10:24 PM, anuj sharma [EMAIL PROTECTED] wrote: Hi Rick Thanks for the reply. Are there any recommendations about which layout component or container should i use or do i need to create my custom component for achieving this target. I am not sure which way to handle that layout. Please help me out Again Thanks a lot. Anuj On Mon, Aug 25, 2008 at 5:18 PM, anuj181 [EMAIL PROTECTED] wrote: Hi I am using HBOX container to load images letting user drag image from one HBOX and dropping them in another (2nd)HBOX. I need to calculate the real estate of the HBOX in which the image has been dropped (i-e 2nd HBOX). The reason is that because I need the dropped image to get placed in an empty space within the 2nd HBOX. Is there any way I can calculate which space is empty in the HBOX and let my objects (images) to be placed only in the empty spaces within the HBOX (not the sapce already occupied by the placed images).Once the HBOX is full then I need to code in a way that images starts shrinking(upto some level) to accommodate more images. Please help me out in figuring out this problem. Any type of help/documentation/links in this direction will be highly appreciated. Thanks Anuj -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Image Viewer
The only way to reduce traffic is to generate thumbnails on the server, which is more or less what Scene7 does Woah now, I didn't realize they had everyone drinking quite so much of the Adobe push the expensive stuff kool aid :) You can certainly use AIR to load images and create preview thumbs. But AIR (and just flash player in general) can be a crazy memory hog when it comes to loading images, and in AIR you're opening the possibility of loading huge multi-megabyte images. I'd suggesting making sure your code to handle resizing is capped at running one or two at a time (or better yet, figure out the resolution of the images and change the queue amount to accomodate different numbers of images based on a target max resoltuion or byte size of the source files). But in general, load the image, create a bitmapdata of the preview size you want, then draw it into a much smaller, thumbnail-size preview (which seems to be what your code does). Then do that over and over again, being sure to free the large image or bitmap that you loaded each time (which your code does not seem to do). I was doing something similar back a while ago and I noticed that AIR wouldn't properly run the garbage collector when I was dealing with very large images, but maybe that's been fixed. If not then try manually running the GC from AIR, or use the localconnection garbage collector hack (that's what worked for me). And you can also save temporary (or persisted) thumbnail versions since you're using AIR. So you could do something like leave a queue of the last 1200 images you generate thumbnails for in the local app directory. So be sure to remove the reference to your original _loader object, so that the full bitmap data can be freed. And I'd suggest using some kind of queuing system so you don't fire off 100 massive load/resize operations at the same time. And use the profiler to see if those large bitmapdata objects are being freed after you load/resize the images. If not try running the garbage collector using the bult-in AIR methods or using the localconnection hack. If you only load a one or two massive images at once and you free the memory in between processing, you should be ok. Doug
Re: [flexcoders] Preloader in a big shared library, bad idea?
Only what you use in your app will be linked into the SWF, so if the preloader is all that you use then none of the other bloat will make it into the SWF file. So your library SWC might be 5 megs, but if all you use is the tiny preloader then your swf file won't be big... well, unless you think all Flex swfs are big... :) Doug On Fri, Aug 22, 2008 at 1:57 PM, Baz [EMAIL PROTECTED] wrote: Hi, I have a Flex Library Project that is the foundation for all other flex projects in our department. It includes complex mxml components, themes, fonts, images, assets, etc. - heavy stuff. I am now working on a custom preloader that I would like all the applications to share and use. The question is, should I create separate Flex Library Project just for the preloader to keep the size at an absolute minimum, or is flex capable of loading only the preloader bits during preloading if I include it in my big fat library? Thanks, Baz
Re: [flexcoders] Preloader in a big shared library, bad idea?
aha, I see. I think you should be good to go. As far as I know, the preloader will get loader first and that will get added to the stage and run while the rest of the SWF loads. Just make sure you don't use any huge classes within your Preloader (ie don't use UIComponent or any Flex controls in the preloader). Doug On Fri, Aug 22, 2008 at 2:53 PM, Baz [EMAIL PROTECTED] wrote: Thanks Doug, Lets say that a new application links to my 5mb library and at one point or another it ends up using 3mb worth of components, including the tiny preloader. At the time of preloading, does it only load the 5kb needed to preload, even though later on it needs 3mb? Or does it load the whole 3mb, then run the preloader? If it is the latter, then I clearly need a separate preloader library because it doesn't make sense to load 3mb to then run a loader. Cheers, Baz On Fri, Aug 22, 2008 at 2:13 PM, Doug McCune [EMAIL PROTECTED] wrote: Only what you use in your app will be linked into the SWF, so if the preloader is all that you use then none of the other bloat will make it into the SWF file. So your library SWC might be 5 megs, but if all you use is the tiny preloader then your swf file won't be big... well, unless you think all Flex swfs are big... :) Doug On Fri, Aug 22, 2008 at 1:57 PM, Baz [EMAIL PROTECTED] wrote: Hi, I have a Flex Library Project that is the foundation for all other flex projects in our department. It includes complex mxml components, themes, fonts, images, assets, etc. - heavy stuff. I am now working on a custom preloader that I would like all the applications to share and use. The question is, should I create separate Flex Library Project just for the preloader to keep the size at an absolute minimum, or is flex capable of loading only the preloader bits during preloading if I include it in my big fat library? Thanks, Baz
Re: [flexcoders] Question for AIR Application?
nope, unless the local application is another air application that you know specific details about. But in general the answer is no, you can't launch other apps. On Wed, Aug 20, 2008 at 9:58 AM, markflex2007 [EMAIL PROTECTED]wrote: Hi, I want to make sure if AIR can load local application and execute it. Thanks Mark
Re: [flexcoders] Flex Trademarks: How do we play nice?
I think it came across clearly in Matt's interview, but I'll just reiterate. The Flex dudes are nice and don't like being the bad guys. I've gotten contacted by Matt before for getting into a little trouble (I posted the Flex SDK codebase into a SVN repo before it was officially an open source project). I think the lawyers only get involved after a few yo, that's not really cool type of emails. The other thing that was mentioned is that they've been fairly lax with Flex (as opposed to being hardasses with AIR). Matt mentioned that stuff like the flex show probably falls under the Adobe should do something umbrella but that they haven't pursued the Flex stuff at all. There are a ton of examples, FlexLib, Flex Box, etc etc. So I'd say don't use AIR cause someone seems to get all riled up when it comes to that trademark, but I haven't seen anyone fucked with for using the word Flex. And I'd also say don't look for any official adobe advice on this list other than telling you to read the legalese. On Sun, Aug 3, 2008 at 6:31 PM, Daniel Freiman [EMAIL PROTECTED] wrote: I'm sure you were looking for a plan English answer, but since I'm only an ex-proto-laywer myself, the best I'm going to do is this: http://www.adobe.com/misc/pdfs/TM_GuideforThirdPartiesFinalPrint.pdf - Daniel Freiman On Sun, Aug 3, 2008 at 7:13 PM, Josh McDonald [EMAIL PROTECTED] wrote: Hey guys, Just finished listening to the latest Flexshow with Matt, and realised that when I get around to uploading my new design, putting up more content and launching my blog publicly I'm likely to run afoul of Adobe's crack team of ninja lawyers. Dating a proto-lawyer is frankly all the lawyer I need in my life- so I want to know whom I need to talk to in order to get permission to use the word Flex as part of the name (it's obviously satire, and in no way looks like any *Adobe* logos or trademarks), and how to word the Flex is pwn3d by adobe text. Decided not to email off-list as I'm sure some other people will be interested in the same info! -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] How to block user interaction?
did you just say your loading screen has a loading screen? my head just exploded On Thu, Jul 31, 2008 at 4:54 PM, Daniel Gold [EMAIL PROTECTED] wrote: My preferred schmancy approach is to put up a full screen loading component that is so visually intensive that it requires it's own loading screen that is just slightly less schmancy. Isn't recursion fun? On Thu, Jul 31, 2008 at 6:41 PM, Rick Winscot [EMAIL PROTECTED]wrote: The method Daniel suggests is essentially the same that is used within components when enabling/disabling. When disable is called – the component throws up a 'blocker' that prevents interaction with the control. So... You could use the default component behavior of calling enabled=false (at a high level in the app) or do something all fancy schmancy like Daniel. I've used both... I just like poking fun at fellow Flexcoders and using the word 'schmancy.' Rick Winscot On 7/31/08 7:28 PM, Daniel Gold [EMAIL PROTECTED] wrote: Whenever I need to do this I usually put up a loading screen that covers the entire screen or the section of the screen pertaining to the loading data. This can be done a number of ways such as a full screen Popup, a modal popup thats just a Loading... label, etc. On Thu, Jul 31, 2008 at 5:40 PM, wwwpl [EMAIL PROTECTED] wrote: I want to block user interaction while I am waiting for an http service to return with data. Is there a nice easy way to do this?
Re: [flexcoders] How to block user interaction?
I'm currently working on a preloader that actually does quite a bit of work (and hence has quite a bit of code) and considered (no joke) creating a preloader that loaded my preloader. On Thu, Jul 31, 2008 at 5:34 PM, Daniel Gold [EMAIL PROTECTED] wrote: Yes I did...with hopefully more than a hint of dry humor about a recursively less intensive loading screen... On Thu, Jul 31, 2008 at 7:31 PM, Doug McCune [EMAIL PROTECTED] wrote: did you just say your loading screen has a loading screen? my head just exploded On Thu, Jul 31, 2008 at 4:54 PM, Daniel Gold [EMAIL PROTECTED]wrote: My preferred schmancy approach is to put up a full screen loading component that is so visually intensive that it requires it's own loading screen that is just slightly less schmancy. Isn't recursion fun? On Thu, Jul 31, 2008 at 6:41 PM, Rick Winscot [EMAIL PROTECTED]wrote: The method Daniel suggests is essentially the same that is used within components when enabling/disabling. When disable is called – the component throws up a 'blocker' that prevents interaction with the control. So... You could use the default component behavior of calling enabled=false (at a high level in the app) or do something all fancy schmancy like Daniel. I've used both... I just like poking fun at fellow Flexcoders and using the word 'schmancy.' Rick Winscot On 7/31/08 7:28 PM, Daniel Gold [EMAIL PROTECTED] wrote: Whenever I need to do this I usually put up a loading screen that covers the entire screen or the section of the screen pertaining to the loading data. This can be done a number of ways such as a full screen Popup, a modal popup thats just a Loading... label, etc. On Thu, Jul 31, 2008 at 5:40 PM, wwwpl [EMAIL PROTECTED] wrote: I want to block user interaction while I am waiting for an http service to return with data. Is there a nice easy way to do this?
Re: [flexcoders] Why is my swf so big?
ADG also brings in the largest classes in the Flex framework. I just did a link report on one of my projects and here are some of the results for the ADG-related classes (I stopped at classes under 1k cause who really cares). This is the output of a link report on a non-optimized swf (so the #s are probably not accurate to what you would see in a production swf). AdvancedDataGrid - 103.1 k AdvancedListBase - 93.2 k AdvancedDataGridBaseEx - 87.6 k AdvancedDataGridBase - 28.2 k AdvancedDataGridColumn - 12.8 k AdvancedDataGridHeaderRenderer - 10.5 k AdvancedDataGridSortItemRenderer - 6.4 k AdvancedDataGridDragProxy - 3.6 k AdvancedListBaseContentHolder - 2.7 k AdvancedDataGridColumnGroup - 2.5 k AdvancedDataGridEvent - 2.4 k AdvancedDataGridHeaderHorizontalSeparator - 1.5 k AdvancedDataGridHeaderInfo - 1.3 k AdvancedDataGridBaseSelectionPending - 1.3 k AdvancedDataGridListData - 1.2 k AdvancedDataGridBaseSelectionData - 1 k IAdvancedDataGridRendererProvider - 1 k Then there are the hierarchical collection classes: HierarchicalCollectionView - 17.7 k HierarchicalCollectionViewCursor - 12 k HierarchicalData - 2.7 k IHierarchicalCollectionView - 2.7 k IHierarchicalData - 1,1 k So yeah, AdvancedDataGrid is 8,433 lines of code. If you add up the top 4 classes in the list above (AdvancedDataGrid, AdvancedListBase, AdvancedDataGridEx, and AdvancedDataGridBase) you get a whopping total of 26,521 lines of code. It makes me cry. So be aware. Doug On Tue, Jul 22, 2008 at 3:54 PM, Alex Harui [EMAIL PROTECTED] wrote: If you turn on the shared RSL, it will shrink the swf significantly. Frameworks tend to be heavy, especially if the focus is on RAD. Just look at any MFC app. DG brings in the collections subsystem, ADG brings in hierarchical collections. The framework is not included in the Flash 9 runtime. It has to be downloaded by some app into that user's browser, then other apps can use it. -Alex -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *whatabrain *Sent:* Tuesday, July 22, 2008 2:09 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Why is my swf so big? Probably an old question, but I didn't find anything useful by searching the group. I'm using the trial version of Flex Builder 3 Standard. I create a new Flex project, and, without writing any code, export a release build. The swf file size is 147KB. Then I create a project that contains nothing but an empty DataGrid. The file size grows to 242KB! Throw in an AdvancedDataGrid, and it's up to 300KB. Is there anything I can do to reduce the size? Even 147KB seems huge for an empty app. And why does DataGrid pump it up so much? I heard that the Flex framework was included in the Flash 9 runtime. If that's true, adding a DataGrid should have no effect on output size.
Re: [flexcoders] Re: Flex blog topics - what should I write about?
Oh my god. Please please please do not write those announcement non-posts. That ticks me off so much and it ruins a full day or two of blog reading because I can't deal with filtering out the 90% of the posts that are Flex 4 details were released!!! ZOMGZ Gumbo! The approach I took when I started blogging was just to take unanswered questions on flexcoders and post an example solution. You've been really active on this list, so I bet you've got a good idea about what people have been asking. Go back through your inbox for flexcoders and find some of the custom component questions that haven't been really answered. That way you know there's at least someone out there who wants to read the post (even if only one guy). While I understand the previous message about wanting to see full app examples more than small code snippets, I would argue against that. Well, not against that per se, but I would say that the most important thing is to blog the stuff you find interesting. Your interest and enthusiasm is half of what makes a post good (the other half being a good topic obviously). So my only suggestion is don't let yourself get bogged down in making complete examples or broader programming tutorials if that's going to slow you down. Just blog the shit out of what you like doing. If you like debugging webservice calls then show me stuff very specific to that that's cool. If you like custom components then show me some cool custom components. If writing about the broader historical context and proper usage of that component isn't your thing, just post the component code. On the other hand, if that is your thing then do that (and still post the component code). Your job isn't to teach anyone programming, it's to show us cool shit. The only thing I'd suggest is start blogging with a focus on code samples and runnable examples. If you're showing a block of code for a custom component, I'm looking for a runnable swf embedded in the post (or at least a link to one) that shows what the code does. Doug On Wed, Jul 16, 2008 at 3:09 AM, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 14 Jul 2008, andrii_olefirenko wrote: posting to see if it's already widely known. I read many blogs and 90% of the bloggers just rediscovering a bicycle again. Also, don't just write an article that has a c+p of an announcement from Adobe in. For instance, when Flex 4 comes out, I don't want to read 200 articles all saying nothing but 'Flex 4 is out'. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Where is the right place to add children from a setter?
Set a dirty flag in your setter (like childrenDirty = true) and call invalidateProperties(), then override commitProperties() and check if your dirty flag is set, if so then add the children in there. Doug On Wed, Jul 16, 2008 at 8:52 AM, Sean Clark Hess [EMAIL PROTECTED] wrote: Hi everybody, I know how to add children to a component doing something like the following, but I can't help but think there ought to be a better way to do it. Perhaps I should be overriding one of UIComponent's methods? Anyway, the issue (see link) is that container isn't defined when the setter is called. Where is the proper place to actually add the children? http://pastie.textmate.org/234853 You would use it like this -- me:myComp me:newChildren mx:Button label='new button'/ /me:newChildren /me:myComp Thanks!
Re: [flexcoders] Is it possible to listen to *all* events without hacking the SDK?
Is this your custom component or just any component you don't control? If it's yours you could override dispatchEvent to know whenever the component dispatches any event. Or you could override addEventListener to know whenever something adds an event listener. If it's not your custom component (ie you can't override anything) then you might be out of luck (other than going through and manually adding listeners for all possible strings you think the component might dispatch). But I don't think there is any way to know all the events that a component might dispatch in its lifetime. ALthough you could probably do a search on the FLex SDK for dispatchEvent( and compile a full list of all events that all Flex SDK components will ever dispatch. I wonder how long that list is... The other thing to try (although this probably violates your without hacking clause) is this monkey patched version of FlexSprite I blogged about: http://dougmccune.com/blog/2008/02/21/monkey-patching-flexsprite-to-list-all-event-listeners-on-any-flex-component/ What that does is gives you an array of all the event listeners that have been registered on a certain component. That's not the same as a list of all events that the component might ever dispatch (since the component may very well dispatch events that nobody listens to). The other thing I would suggest is you could use the same approach to monkey patch FlexSprite and add some special code into the override for dispatchEvent and then you could be notified about anytime the component dispatches any event at all. Again, that probably goes against the not hacking condition of the question :) Doug On Wed, Jul 16, 2008 at 8:11 PM, Josh McDonald [EMAIL PROTECTED] wrote: Hey guys, Is it possible to listen to all events that bubble to / are dispatched from a certain component? Don't worry, I don't actually plan on using this in any actual code! I'm just interested in doing some extremely verbose logging to gather information for a blog post I have in mind ;-) -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Re: Is it possible to listen to *all* events without hacking the SDK?
Oh snap! I learn something new everyday. Thanks for that tidbit. I just looked up that function and it's actually a static function on UIComponent, so you only get to set that once (ie you can't have one function to catch events for one type of component and another to catch a different component's events). Interesting stuff. Doug On Wed, Jul 16, 2008 at 9:10 PM, reflexactions [EMAIL PROTECTED] wrote: Well you can at least catch all events dispatched on a particular component, and without subclassing or patching. You assign a callback function to the dispatchEventHook property. It takes two params the event and the target and is called immediately prior to the actual dispatch. --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: Thanks Doug, I figured that'd be the answer. Not against monkey patching by any means (we use a few atm to fix bugs in SOAP code), just wanted to check first to see if there was a secret way to do it that I didn't know about before I go and mess about with FlexSprite :) -Josh On Thu, Jul 17, 2008 at 1:41 PM, Doug McCune [EMAIL PROTECTED] wrote: Is this your custom component or just any component you don't control? If it's yours you could override dispatchEvent to know whenever the component dispatches any event. Or you could override addEventListener to know whenever something adds an event listener. If it's not your custom component (ie you can't override anything) then you might be out of luck (other than going through and manually adding listeners for all possible strings you think the component might dispatch). But I don't think there is any way to know all the events that a component might dispatch in its lifetime. ALthough you could probably do a search on the FLex SDK for dispatchEvent( and compile a full list of all events that all Flex SDK components will ever dispatch. I wonder how long that list is... The other thing to try (although this probably violates your without hacking clause) is this monkey patched version of FlexSprite I blogged about: http://dougmccune.com/blog/2008/02/21/monkey-patching-flexsprite- to-list-all-event-listeners-on-any-flex-component/ What that does is gives you an array of all the event listeners that have been registered on a certain component. That's not the same as a list of all events that the component might ever dispatch (since the component may very well dispatch events that nobody listens to). The other thing I would suggest is you could use the same approach to monkey patch FlexSprite and add some special code into the override for dispatchEvent and then you could be notified about anytime the component dispatches any event at all. Again, that probably goes against the not hacking condition of the question :) Doug On Wed, Jul 16, 2008 at 8:11 PM, Josh McDonald [EMAIL PROTECTED] wrote: Hey guys, Is it possible to listen to all events that bubble to / are dispatched from a certain component? Don't worry, I don't actually plan on using this in any actual code! I'm just interested in doing some extremely verbose logging to gather information for a blog post I have in mind ;-) -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Re: Best Practice Data Binding
If you define a getter and a setter you can add the [Bindable] metadata to either the getter or setter, it does the same thing either way. The only time you have to use a custom event to trigger the binding is when you have read-only properties (a getter but no setter). Doug On Fri, Jun 27, 2008 at 12:08 PM, securenetfreedom [EMAIL PROTECTED] wrote: Any thoughts? In an DataModel class what is the best way to bind data. 1) Make the Setter Bindable, or 2) Make the Getter Bindable and dispatch an event on the Setter? What are the advantages and disadvantages of each? // Binding #1 [Bindable] public function set foo(val:String):void{ _foo = val; } public function get foo():String{ return _foo; } // Binding #2 [Bindable(event=fooChanged)] public function get foo():String{ return _foo; } public function set foo(val:String):void{ _foo = val; dispatchEvent(new Event(MyDataModel.FOO_CHANGED)); }