RE: [flexcoders] Re: uploading files in flex using coldfusion 11
“Abandoned” is a pretty extreme word. There are a lot of people still using it and it’s still getting updated… what, 3 years after Adobe donated it to Apache? New mobile, desktop and web projects are still created in Flex every day… just not at the fury of what once was. Now… if we could only get FlexJS going (ahem, Alex). From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Sent: Wednesday, September 23, 2015 6:33 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: uploading files in flex using coldfusion 11 One of the most amazing things I’ve ever seen is the speed with which all the flash and flex developers abandoned the tools once it was clear that Apple had won the battle of the Flash player. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Sent: 23 September 2015 14:30 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: uploading files in flex using coldfusion 11 As Julian said, you may very well very well be the last flex developer left. And for that matter, the last ColdFusion developer. It could be a server environment change that is incompatible now with either Flex or ColdFusion. Technologies change and move on, sorry if that doesn’t help. Good luck. Jason Merrill Instructional Technology Architect II Bank of America Global Technology and Operations c: 703.302.9265 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Sent: Wednesday, September 23, 2015 9:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: uploading files in flex using coldfusion 11 Anyone out there with a solution to this issue? i have been using that code for so long and it worked perfectly. But now for some reason the uploaded file name doesn't appear in the textinput even if the file is actually uploaded onto the server _ This message, and any attachments, is for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at http://www.bankofamerica.com/emaildisclaimer. If you are not the intended recipient, please delete this message. This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
RE: [flexcoders] Getting a reliable MAC address/ UID for a machine
More than likely that's a UUID for a network adapter and not a machine. Considering Dell's can use different types of network adapters I would expect this to vary machine by machine instead of machine mfr by machine mfr. I doubt there's a way to get a specific UUID for each machine unless you had a way to distinguish between them and generate your own UUID. Therefore, you'll probably have to generate your own. There are simply too many combinations and not enough regulation on UUID's. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of doug31415 Sent: Friday, September 06, 2013 12:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Getting a reliable MAC address/ UID for a machine Hi Guys Im trying to get a reliable UID for a machine. I can call NetworkInfo.networkInfo.findInterfaces() and I get a bunch of stuff that looks like this: Name: {69138DF2-AB57-4755-A00C-BDCE909BBF30} DisplayName: Wireless Network Connection MTU: 1500 HardwareAddr: B8-76-3 Active: true Name: {C57BEFB1-0B32-4653-853D-2A5690760716} DisplayName: Local Area Connection MTU: 1500 HardwareAddr: 74-.. The problem is this: the 'name' property appears to vary from machine type to machine type - that is, Dells use a different string than Lenovos for example, and the 'displayName' property also varies from language to language. So the question is, how can I find some unique identifier for a machine? Do I need to generate it myself? Thanks in advance for any help you can offer image001.jpgimage002.jpg
Re: [flexcoders] ErrorString and borderColor of controls not in sink
Have you tried calling either textArea.invalidateProperties() or textArea.invalidateDisplayList()? Im pretty sure that if you do that right after you set the error string, it will reset the border color Doug On Thu, May 30, 2013 at 12:03 PM, ilikeflex ilikef...@yahoo.com wrote: ** Hi When errorString of the component is any value(ex 'Enter the value') then the borderColor of the component changes to 'red'. But when you make the errorString= it does not change the borderColor of the component back for the first time. It change when the control lose focus. How can we make the border color to original when using errorString= for the first time even the control does not loose focus. I have attached sample of the problem. Any pointers.. ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx minWidth=955 minHeight=600 fx:Script ![CDATA[ import mx.utils.StringUtil; protected function textarea1_changeHandler(event:Event):void { // TODO Auto-generated method stub if (StringUtil.trim((event.target as TextArea).text).length == 0) { (event.target as TextArea).errorString = 'Enter any value'; } else { (event.target as TextArea).errorString = ; } } ]] /fx:Script fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations s:layout s:VerticalLayout/ /s:layout mx:TextArea width=100 height=100 errorString=Enter any value change=textarea1_changeHandler(event) / s:Button label=Hello World/ /s:Application Thanks ilikeflex
Re: [flexcoders] flex frustration...
By the way, are you using Flex's network monitor? Sometimes Ive seen that cause errors like this On Fri, Mar 15, 2013 at 5:00 AM, Paul A. p...@ipauland.com wrote: ** On 15/03/2013 07:34, ZIONIST wrote: hi guys one moment my app was working fine and the next i get this error faultCode:Channel.Call.Failed faultString:'error' faultDetail:'NetConnection.Call.Failed: HTTP: Status 500' any ideas on how to solve this ridiculous flex nonsense of an error? http://www.checkupdown.com/status/E500.html
Re: [flexcoders] Re: filtering an array collection using 2 or 3 textinputs
Can you give more details on what you are trying to do? Use text inputs how? Doug On Mar 5, 2013 1:06 AM, ZIONIST stinas...@yahoo.com wrote: ** any help guys? am really stuck.
Re: [flexcoders] Re: filtering an array collection using 2 or 3 textinputs
You may want to look up applying dynamic filters to array collections,as well as clearing them and applying multiple sort fields. Can't give you better direction without s clearer idea of what exactly you are trying to do Doug On Mar 5, 2013 9:33 AM, ZIONIST stinas...@yahoo.com wrote: ** i would like to use the textinputs to filter the array collection using different parameters.
Re: [flexcoders] Re: Mobile App Entitlements
Isnt it some UID that apple uses for its submission process? Im talking a little out of my depth here, but the one time I did this (for a class), it involved compiling the app as native XCode, then opening it in XCode and going through the entitlement process. Maybe look up how they do ad hoc distribution these days? Heres a link to get you started: http://stackoverflow.com/questions/12698506/how-can-i-add-an-entitlements-file-to-an-xcode-4-5-project On Wed, Feb 13, 2013 at 10:18 AM, Jake Churchill reyna...@gmail.com wrote: ** Anyone??? Anything??? On Mon, Feb 11, 2013 at 12:54 PM, Jake Churchill reyna...@gmail.comwrote: Guys, I have a mobile application that was created last year using FlashBuilder 4.6 (AIR 3.4). It's a pretty basic app, in that it just interacts with data from a server. There is one view that interacts with CameraRoll and the CameraUI, but that's it. The initial build of the app went through Apple's approval process successfully. I have since upgraded to FlashBuilder 4.7 and set it up to use the sdk with the AIR 3.4 (default is 3.1 I think). A bug was found in the app which required a simple test to see if an ArrayCollection existed, if not I created a blank one. I re-compiled and re-submitted the new .ipa and now Apple is coming back saying an Entitlement is missing: *Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the aps-environment entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the aps-environment entitlement. * I've been searching for solutions to this or other people with the same problem but have not found anything. I'm wondering if Flashbuilder 4.7 has a default entitlement somewhere that's being compiled into the application. I'm not sure that's the case because in the binary area in itunes connect, the entitlements section is as follows: *MY APP NAME* get-task-allow: false application-identifier: MY APP PACKAGE In the mean time, I've still got FlashBuilder 4.6 so I'm going to try to compile the app there and submit. However, if Apple is saying it appears the app registers with the Apple Push Notification service, I'm at a loss because we don't use that for anything. Any help is appreciated. Thanks! -Jake
Re: [flexcoders] Dynamic DataGrid
Something like this? ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx xmlns:view=com.nexage.common.view.nexWizard.view.* xmlns:pages=com.nexage.common.view.nexWizard.sampleWizard.pages.* xmlns:components=com.nexage.common.view.nexWizard.view.components.* xmlns:sampleWizard=com.nexage.common.view.nexWizard.sampleWizard.* width=100% height=100% creationComplete=onCC() fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations fx:Style source=wizardStyles.css / fx:Script ![CDATA[ import com.nexage.common.models.Employee; import mx.collections.ArrayCollection; private function onCC():void { setEmployees() } [Bindable] private var employees:ArrayCollection = new ArrayCollection(); private var firstNamesArr:Array = ['Mohamed', 'Youssef', 'Ahmed', 'Mahmoud', 'Mustafa']; private var lastNamesArr:Array = ['George', 'John', 'Mina', 'Beshoi', 'Kirollos', 'Mark', 'Fadi', 'Habib']; private function setEmployees():void { for( var i:int = 0; ifirstNamesArr.length; i++ ) { var empl:Employee = new Employee( firstNamesArr[i], lastNamesArr[i] ); employees.addItem( empl ); } } ]] /fx:Script s:layout s:VerticalLayout / /s:layout s:Spacer height=50 / s:Button label=hide/show first names click={firstNameCol.visible = !firstNameCol.visible} / s:DataGrid width=50% horizontalCenter=0 verticalCenter=0 dataProvider={employees} s:columns s:ArrayList s:GridColumn id=firstNameCol headerText=First Name dataField=firstName / s:GridColumn id=lastNameCol headerText=Last Name dataField=lastName / /s:ArrayList /s:columns /s:DataGrid /s:Application Doug On Jan 14, 2013 6:15 PM, Oleg Konovalov oleg...@yahoo.com wrote: ** Hi, I am trying to create dynamic DataGrid, which shows columns only if it contains data returned by query (it has 10+ columns, so not easy to calculate sizes).. I read a lot of posts on the net, tried minWidth, ResizeMode, etc. Nothing really useful which works. In most cases it created very narrow columns except the last one - super wide. Please help! (using Flex4 AdvancedDataGrid) -- Thank you in advance, Oleg.
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] Image Limitations Best Way to Display Lengthy Images
I'm attempting to create an AIR app using Flash Builder 4 and I've hit a snag and I'm attempting to figure out the best way to proceed and I'm really hoping you guys can help me out. I'm trying to create an image scroller app which is simple enough. Currently, the app is loading one image dynamically using mx:Image into a Group component inside a Scroller component. However, the images I want to load are well in excess of 10,000 pixels wide (10,000 pixels being the width limit of a Group component). I have gone through and broken up the images so that each image is roughly 7,000 pixels wide (all being 550 pixels in height). I am now stuck as I'm not quite sure the best way to proceed. Is it possible to stitch the images together inside Flash Builder (place them side by side)? If so, which component would I use to best do so due to the width limitations? Thanks!
[flexcoders] Inconsistent Layout
Hey gang... I've noticed a few odd things with Flex that I need help with. When I load the application there are sometimes that Spark buttons and labels position themselves at x=0, y=0 or just y=0 to the container they're in even though they have an x and y position assigned to them. If you hit refresh in the browser you can sometimes fix this, other times, not. What causes this? Is it the transition between states? How can I make sure they don't do this?
[flexcoders] Re: Property values based on Multiple Conditions
Awesome stuff guys!! The amp; thing didn't work for me when I tried that... I thought just maybe, but nah. This was part of the source of my question, How do you do a logical AND? The function method that Richard posted is something I am going to try as I think that's exactly what I'm looking for. I would like to avoid setting up an event listener, but if that's the only way... Thanks again for the help thus far... if anybody has anything else, please let me know! --- In flexcoders@yahoogroups.com, Richard Rodseth rrods...@... wrote: Rick is correct. You can also use a local binding function like this: s:Button enabled={enableButton(showMe, hideMe)}/ where enableButton is a function in your Script block that takes two boolean parameters. Or, if you have a presentation model, it could have a computed property buttonEnabled s:Button enabled={model.buttonEnabled}/ Excerpt of presentation model: [Bindable(event=showMeChanged)] [Bindable(event=hideMeChanged)] public function get buttonEnabled():Boolean { return showMe hideMe; } public function set showMe(value:Boolean):void { if (value != this.showMe) { this.showMe = value; dispatchEvent(new Event(showMeChanged)); } } Hope this helps. On Mon, Apr 12, 2010 at 4:31 PM, Rick Genter rick.gen...@... wrote: On Apr 12, 2010, at 10:31 AM, Doug wrote: I seem to have little success with this and would like to know other ways of accomplishing what I want to do. I'm trying to enable/disable a button based on two pieces of criteria. It would seem that a logical OR or a logical AND would bridge these much like an IF statement, however, I'm struggling to make it work 100%. Consider a button: s:Button enabled={showMe || hideMe}/ This button's enabled property is based upon the binding of the variables for showMe and hideMe. If showMe or hideMe is true then the button is enabled. This works fine when using a logical OR. However, the following - using a logical AND - does not: s:Button enabled={showMe hideMe}/ How do you do a logical AND?? Also, if I wanted to set showMe and hideMe based on several lines of code how would I best do it? How would you bind a function output to a display object? I only see a way to do it based upon event: [Bind (event: some event here] private function myFunction():void{} Thanks in advance!! I haven't tried this, but I suspect that you are being bitten by XML. Try this: s:Button enabled={showMe amp;amp; hideMe}/ -- Rick Genter rick.gen...@... rick.genter%40gmail.com
[flexcoders] Property values based on Multiple Conditions
I seem to have little success with this and would like to know other ways of accomplishing what I want to do. I'm trying to enable/disable a button based on two pieces of criteria. It would seem that a logical OR or a logical AND would bridge these much like an IF statement, however, I'm struggling to make it work 100%. Consider a button: s:Button enabled={showMe || hideMe}/ This button's enabled property is based upon the binding of the variables for showMe and hideMe. If showMe or hideMe is true then the button is enabled. This works fine when using a logical OR. However, the following - using a logical AND - does not: s:Button enabled={showMe hideMe}/ How do you do a logical AND?? Also, if I wanted to set showMe and hideMe based on several lines of code how would I best do it? How would you bind a function output to a display object? I only see a way to do it based upon event: [Bind (event: some event here] private function myFunction():void{} Thanks in advance!!
[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] How to get resizecursor when resizing a custom chrome window in AIR?
Did anyone ever figure this one out? On Thu, Jan 10, 2008 at 1:52 AM, ola.muldal ola.mul...@yahoo.com wrote: I've tried a few diffrent solutions, but I am abit confused about what is going on when resizing. I have a flex panel which acts as the chrome. This is set to 100% width and height in the WindowedApplication. When using the native resizing, scaling of the panel works realtime during dragging. However, when i try to move a custom cursor with CursorManager.setCursor(CursorResize); - this will just freeze the custom cursor. Same thing happens when i just try to use MouseEvent.MOUSE_MOVE and change the x/y coords manually. I guess that when i resize the application, the mouse is not active in the application, thus the swf file doesnt receive any events from it. So is there a way to get around this, or is it possible to get the native OS cursor to appear (which appears when using standard chrome)?
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: http://www.nabble.com/FlowBox
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
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
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 ?
[flexcoders] Re: model in UIComponent
Can you post your code for the popup? --- In flexcoders@yahoogroups.com, stldvd stl...@... wrote: I've got some UI text fields and labels bound to properties in my model. I'm dispatching an event which, when listened to, causes a popup to appear: var newRulesetWindow:IFlexDisplayObject = PopUpManager.createPopUp(this, NewRuleset, true); mx.managers.PopUpManager.centerPopUp(newRulesetWindow); The popup appears fine, but there is no data loaded from the model. I've stepped through the code and this is what appears to be happening. I've got an instance of my model (instance named _model) declared in the components that need it. But for some reason, after those components' code has finished, I'm getting the following error from UIComponent.as: private function callLaterDispatcher(event:Event):void No such variable: _model So it isn't seeing it in this callLaterDispatcher. I'm not sure how to get around this -- the _model instance is declared correctly in all my components, but isn't being seen in the UIComponent. Anyone know what to do? Thanks, David
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] Re: How can I set focus to a field in a programatically created popup?
I'm not sure about tab loops as they relate to modules... You might just need to explicitly set the focus on whatever textInput, etc. that you want when the focus returns to the original view after the PopUp has closed. --- In flexcoders@yahoogroups.com, aceoohay [EMAIL PROTECTED] wrote: Doug: What my current problem is; When do anything anything that makes the popup close (PopUpManager.removePopUp) when I subsequently press the tab key focus goes to a textInput in another module. I assume that tab loops are module specific aren't they? Paul --- In flexcoders@yahoogroups.com, prljamdm doug.sarver@ wrote: What do you mean by leave my popup? Mouse out of it or click on a field outside of it? -Doug --- In flexcoders@yahoogroups.com, aceoohay pauls@ wrote: Alex: Thanks, that seems to have done it. Now on to the next problem, why when I leave my popup, and strike the tab key does it go to a field in a different module... Paul --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Before you do all of that, try delaying your focus setting function using callLater. It might just be a timing problem. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aceoohay Sent: Monday, September 15, 2008 1:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How can I set focus to a field in a programatically created popup? Kenneth: I'm not sure that I know how to do all the things I would need to do. In the current code I create a titlewindow, add all of the bits and pices such as horizontal boxes, textinputs, and datagrids, which are all dynamic and can change based on content, and then I use the popup manager to display it. I don't know how to accomplish the same thing starting out with a mxml component. Paul --- In flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com, Kenneth Sutherland kenneth.sutherland@ wrote: Why don't you try ttlwQuery.addEventListener(FlexEvent.SHOW, functionToSetFocus); I'd also recommend not creating the titleWindow inside the loadQueryCanvas, it would be better to create as separate class which is a titlewindow that you can then create and show. See http://blog.flexexamples.com/2008/08/16/creating-an- undraggable- titlewin dow-container-in-flex/ for an example if I'm not making sense J P.S I've know people to use private paste to show there code. http://privatepaste.com/ Handy especially as pasting code into an email normally makes it unreadable. HTH, Kenneth. From: flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com] On Behalf Of aceoohay Sent: 15 September 2008 15:36 To: flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Re: How can I set focus to a field in a programatically created popup? Kenneth: Thanks for the response. That is precisely how I have done it in the past as well. Unfortunately, I do not know how to create functions on-the-fly. I am creating the entire object using AS code and then displaying it in a popup. Is there a way of creating a new function in an object as you create it? If so I could create an initApp() function and call it from creationComplete. Also is there a better way of posting code so that it doesn't lose its formatting? Paul --- In flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Kenneth Sutherland kenneth.sutherland@ wrote: I haven't tried your code but I would normally do what you're doing using the show event. e.g. show=fieldToGetFocus.setFocus(); this would go inside of your popup code. From: flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of aceoohay Sent: 15 September 2008 07:38 To: flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] How can I set focus to a field in a programatically created popup? I am creating a titlewindow with some fields completely in AS3 script. I then display this object using a popup. I want to set focus to the very
[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?
[flexcoders] RadioButton Set selectedValue
I have a form Item which contains RadioButtonGroup and a Repeater which dynamically loads up RadioButtons from model data, it is inside a VBox container: mx:FormItem direction=horizontal mx:Label text=Status:/ mx:RadioButtonGroup id=statusType selectedValue={model.selectedValuation.valuationAdmin.valuation_statu s}/ mx:Repeater id=valStatus dataProvider={listModel.allValuationStatuses} mx:RadioButton id=vs group={statusType} label={valStatus.currentItem.title}/ /mx:Repeater /mx:FormItem On creationComplete() I call init() which in turn calls loadUserInfo(). Here I call selectedValStatus and pass on selected data from model: private function loadUserInfo():void{ if(model.selectedValuation.valuation_administration != null){ selectedValStatus(model.selectedValuation.valuation_administration.val uation_status); } } selectedValStatus() takes the data object passed to it, loops over the model list data and then checks to see if the model list data is equivalent to the data.title property, where i then set the selected value of the radio group: private function selectedValStatus(data:Object):void{ if(listModel.allValuationStatuses != null){ for(var i:int = 0; ilistModel.allValuationStatuses.length; i++){ var item:ArrayCollection = listModel.allValuationStatuses; if(data != null){ if(item.title == data.title){ statusType.selectedValue = data.title; } } } } } The Behavior: Data is present on creation complete. I have another radio group using the same code architecture that works perfectly, is in same form. On the form load the radio button is not selected. On a view index change and then return the button is selected properly. Thanks!
[flexcoders] Re: RadioButton Set selectedValue
Check this out Tim, I set up a test group and started building up attributes until it failed. At this point: mx:RadioButtonGroup id=statusType selectedValue={model.selectedValuation.valuation_administration.valua tion_status}/ mx:RadioButton id=tb group={statusType} label=Open value=Open / I have no repeater and it works great, confirming data is on time and attributes are correct. I even went back to my list data and retyped the values..just in case whatever. So, is it possible to have a timing issue within the repeater itself? --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Might just be a timing issue Doug. Have you tried callLater()? Otherwise, maybe set model.selectedValuation.valuationAdmin.valuation_status to the correct value, instead of setting the selectedValue directly; since it's bound. -TH --- In flexcoders@yahoogroups.com, Doug doug@ wrote: I have a form Item which contains RadioButtonGroup and a Repeater which dynamically loads up RadioButtons from model data, it is inside a VBox container: mx:FormItem direction=horizontal mx:Label text=Status:/ mx:RadioButtonGroup id=statusType selectedValue={model.selectedValuation.valuationAdmin.valuation_statu s}/ mx:Repeater id=valStatus dataProvider={listModel.allValuationStatuses} mx:RadioButton id=vs group={statusType} label={valStatus.currentItem.title}/ /mx:Repeater /mx:FormItem On creationComplete() I call init() which in turn calls loadUserInfo(). Here I call selectedValStatus and pass on selected data from model: private function loadUserInfo():void{ if(model.selectedValuation.valuation_administration != null){ selectedValStatus (model.selectedValuation.valuation_administration.val uation_status); } } selectedValStatus() takes the data object passed to it, loops over the model list data and then checks to see if the model list data is equivalent to the data.title property, where i then set the selected value of the radio group: private function selectedValStatus(data:Object):void{ if(listModel.allValuationStatuses != null){ for(var i:int = 0; ilistModel.allValuationStatuses.length; i++){ var item:ArrayCollection = listModel.allValuationStatuses; if(data != null){ if(item.title == data.title){ statusType.selectedValue = data.title; } } } } } The Behavior: Data is present on creation complete. I have another radio group using the same code architecture that works perfectly, is in same form. On the form load the radio button is not selected. On a view index change and then return the button is selected properly. Thanks!
[flexcoders] Re: RadioButton Set selectedValue
I tried callLater(selectedValStatus,[data]) as well as updateComplete and valueCommit on the repeater with no change in behavior. I get rid of the repeater and write in three static radio buttons, still binding the group to the model, and it works as it should (not what i wanted but works = happy client). Still open to ideas to solve though. mx:RadioButtonGroup id=statusType selectedValue={model.selectedValuation.valuation_administration.valua tion_status}/ mx:RadioButton id=open group={statusType} label=Open value=Open / mx:RadioButton id=closed group={statusType} label=Closed value=Closed / mx:RadioButton id=pending group={statusType} label=Pending value=Pending / --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Yes, it's possible that the repeater children are getting instantiated at the same time that your trying to set the selectedValue. Try running selectedValStatus() on the updateComplete or valueCommit event of the repeater. Or, just use callLater(selectedValStatus, data) after loadUserData(). -TH --- In flexcoders@yahoogroups.com, Doug doug@ wrote: Check this out Tim, I set up a test group and started building up attributes until it failed. At this point: mx:RadioButtonGroup id=statusType selectedValue={model.selectedValuation.valuation_administration.valua tion_status}/ mx:RadioButton id=tb group={statusType} label=Open value=Open / I have no repeater and it works great, confirming data is on time and attributes are correct. I even went back to my list data and retyped the values..just in case whatever. So, is it possible to have a timing issue within the repeater itself? --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Might just be a timing issue Doug. Have you tried callLater()? Otherwise, maybe set model.selectedValuation.valuationAdmin.valuation_status to the correct value, instead of setting the selectedValue directly; since it's bound. -TH --- In flexcoders@yahoogroups.com, Doug doug@ wrote: I have a form Item which contains RadioButtonGroup and a Repeater which dynamically loads up RadioButtons from model data, it is inside a VBox container: mx:FormItem direction=horizontal mx:Label text=Status:/ mx:RadioButtonGroup id=statusType selectedValue={model.selectedValuation.valuationAdmin.valuation_statu s}/ mx:Repeater id=valStatus dataProvider={listModel.allValuationStatuses} mx:RadioButton id=vs group={statusType} label={valStatus.currentItem.title}/ /mx:Repeater /mx:FormItem On creationComplete() I call init() which in turn calls loadUserInfo(). Here I call selectedValStatus and pass on selected data from model: private function loadUserInfo():void{ if(model.selectedValuation.valuation_administration != null){ selectedValStatus (model.selectedValuation.valuation_administration.val uation_status); } } selectedValStatus() takes the data object passed to it, loops over the model list data and then checks to see if the model list data is equivalent to the data.title property, where i then set the selected value of the radio group: private function selectedValStatus(data:Object):void{ if(listModel.allValuationStatuses != null){ for(var i:int = 0; ilistModel.allValuationStatuses.length; i++){ var item:ArrayCollection = listModel.allValuationStatuses; if(data != null){ if(item.title == data.title){ statusType.selectedValue = data.title; } } } } } The Behavior: Data is present on creation complete. I have another radio group using the same code architecture that works perfectly, is in same form. On the form load the radio button is not selected. On a view index change and then return the button is selected properly. Thanks!
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:* flexcoders
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; }