Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property
Alex Harui schreef: Some code somewhere is trying to set a SecurityDomain parameter in a LoaderContext. There are parameters like trustContent on SWFLoader that can trigger that code. Unfortunately you can only run such code when deployed to HTTP:// and not from FILE:://. You might need to put in some conditional code to deal with it *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ward Loockx *Sent:* Monday, November 17, 2008 9:07 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property valdhor schreef: Try adding your bin-debug directory to your Global Security Settings Manager (http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Ward Loockx [EMAIL PROTECTED] wrote: Hello, When I'm trying to load images from a remote server I get the following error message.. *Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property* I've been googling and nothing that works for me. When I put the swf on the remote server it loads the images perfect! I've tried everything (Crossdomain,addSecuritydomain on application, ...). Someone that managed to solve this ? Looks like a lot of people have this problem... Thanks! Ward I added the SWF, but that didn't worked out :( Hello, Thanks for the reply. If I get it right, there is a workaround but requires additional code? Can you specify a bit please ? Thanks, Ward
Re: [flexcoders] Re: Cairngorm for AS3 projects?
On 18/11/2008, at 1:10 PM, dev.apostiglioni wrote: With regards to Cairngorm it removes all the problems you have with tight coupling etc. Hi Dev and everyone, Our company has developed tens of commercial projects with Cairngorm over the last four or so years including several with hundreds of classes in the client, in Flex and Flash. I have to admit that I simply don't understand many of the criticisms levelled at Cairngorm on this list. It is a very small amount of code (only a few hundred lines without comments and spaces) to be responsible for so much misery ;-). If people can give me some specific examples of tight coupling or other problems they are having with Cairngorm I would be happy to spend some time over the next few weeks (while my workload is lighter) suggesting ways to address them. Regards, Robin ROBIN HILLIARD Chief Executive Officer [EMAIL PROTECTED] RocketBoots Pty Ltd Level 11 189 Kent Street Sydney NSW 2001 Australia Phone +61 2 9323 2507 Facsimile +61 2 9323 2501 Mobile +61 418 414 341 www.rocketboots.com.au
Re: [flexcoders] How to: Select range in Datagrid to set range in Chart?
Take a look here: http://blog.kevinhoyt.org/2008/10/23/um-lots-of-flash-flex-and-zend-php-samples/in the charts project. Courtesy of Kevin Hoyt - he implemented a component that has a LineChart and a DataGrid in a ViewStack (both linked to the same dataProvider), and a HSlider to control zoom of the chart/grid. When you drag the HSlider to define the range, both update to the selected range. On Thu, Nov 13, 2008 at 7:57 PM, Blair Cox [EMAIL PROTECTED] wrote: What would be really nice is to simply select the range directly from the initial chart, since when first loading the dataprovider, the entire range is loaded. Every time I try to implement filtering before retrieving the data, I get a null reference error. *private function processFilter*(item:Object):Boolean { return item.Date_Collected = dfconv.format(linechart1.selectedChartItems.xValue. *caretItem*).toString() item.Date_Collected = dfconv.format(linechart1.selectedChartItems.*anchorItem*).toString(); If I could simply define the first and last item selected in a chart multiple selection, it would do what I need. Any suggestions? -- *Blair * -- *From: *cox.blair [EMAIL PROTECTED] *Reply-To: *flexcoders@yahoogroups.com *Date: *Thu, 13 Nov 2008 17:15:39 - *To: *flexcoders@yahoogroups.com *Subject: *[flexcoders] How to: Select range in Datagrid to set range in Chart? Okay, I'll do my best to explain what I'm trying to do and see if anyone can point me in the direction of a good url and sample - What I would like to do is select a range of data within a Datagrid, so lets say 10 items out of the list 20. Than whatever is selected in the Datagrid, appears in chart. It is merely a graphical way of filtering a date range of data. Currently in my example, I select the beginning and ending dates. So all I would require to modify this is to be able to pass along the the first and last entry selected and define which column will be used. Any ideas? Cheers.
[flexcoders] X-axis values in flex chart
Hey I have a Flex LineChart with a lot of x values (around 300) - which makes them not readable within the chart's container height/width. Is there a way to make the chart display, say, every fifth value? I am using: mx:horizontalAxis mx:CategoryAxis dataProvider={row} categoryField=x labelFunction=formatHorizontalAxis / /mx:horizontalAxis The formatHorizontalAxis function formats unix-time into MM/DD/ using DateFormatter, and I suppose I could also implement it to return every 5th value, but I was wondering if there is a better way to do this. Thanks, Sefi
Re: [flexcoders] Re: How do they do that (Flex video) ?
On Monday 17 Nov 2008, comfederation wrote: have been more constructive by pointing me towards creation of FLV files which are uploadable onto YouTube. I did. Surely Adobe would not allow us to find ourselves in a situation that would require third party conversion utilities just to convert between Adobe SWF and FLV formats. If there are good free tools to do it, why should Adobe bother compeating unless it can make a killer advantage. Surely they would do that, if for no other reason than to keep us off the slippery slope of even contemplating exploring what MS and Silverlight might be capable of and from calculating just how long it might take, either way, before MS ends up eating everyone's lunch. ;) If people want to go in the direction of spending more money, as opposed to less money, they should feel free to do so. We'll see them back again in a few years :-) -- Tom Chiverton Helping to biannually e-enable 24/7 viral visionary portals This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Fw: BRANDED MAKE-UP MAC FOR SALES!!!!
On Tuesday 18 Nov 2008, puteri pelangi wrote: --- Pada Isn, 17/11/08, pu3pelangiperfumes [EMAIL PROTECTED] menulis: I've placed the user back on the 'needs moderation list'. -- Tom Chiverton, moderator This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: HTTP request error
On Friday 14 Nov 2008, markgoldin_2000 wrote: Nobody has run into this problem? I have googled this error, I didn't see the actual error message in your message. did not find anything that helped. Please help. I would guess a DNS problem though. -- Tom Chiverton Helping to dramatically iterate industry-wide metrics This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] X-axis values in flex chart
Hey. I ended up calculating the number of tick labels to skip and used the labelFunction to return the value every calculated value. This works great - I have a label every 10th value, and all values are displayed in the chart as they should. Only problem is that the label font size is still very small (actually, it's exactly the same size as when all labels are displayed). I even tried to define horizontalAxisRenderers and in it a custom renderer with a specified fontSize but tis didn't work either... Does anyone have any ideas on how this can be accomplished? What I need is to display every Xth label, with a readable font size... Thanks, Sefi On Tue, Nov 18, 2008 at 10:36 AM, sefi.ninio [EMAIL PROTECTED] wrote: Hey I have a Flex LineChart with a lot of x values (around 300) - which makes them not readable within the chart's container height/width. Is there a way to make the chart display, say, every fifth value? I am using: mx:horizontalAxis mx:CategoryAxis dataProvider={row} categoryField=x labelFunction=formatHorizontalAxis / /mx:horizontalAxis The formatHorizontalAxis function formats unix-time into MM/DD/ using DateFormatter, and I suppose I could also implement it to return every 5th value, but I was wondering if there is a better way to do this. Thanks, Sefi
Re: [flexcoders] Creating a Chart With 50,000 Data Points
either sample the data set and draw for example 1 point for every 5 or 10 or x , or use some sliders and display only parts of the data set On Tue, Nov 18, 2008 at 5:04 AM, Mark Easton [EMAIL PROTECTED] wrote: Hi, It appears that Flex Charts cannot handle generating charts with large DataSets. We tried with 50,000 data points and it thrashed away without producing a result after 6 minutes. It was able to plot 2,000 points in about 25 seconds. What is the recommended approach for creating charts from large data sets. The best I can think of is to write some code that will reduce the data set in size yet still provide enough data to represent the graph accurately. Thoughts? Ta. Mark -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
Re: [flexcoders] Re: How do they do that (Flex video)
flex and video are different things... Flex can play video easily, the same applies to Silverlight. Silverlight is not video , it can play video... Trying to convert an swf to flv is similar to converting an exe to flv ok? On Mon, Nov 17, 2008 at 8:36 PM, comfederation [EMAIL PROTECTED]wrote: Folks, One of the reasons why I mention Flex is that there is a need for a simple end user tool with which they assemble such slideshows/presentations. Instead of smart a** answers, Tom could have been more constructive by pointing me towards creation of FLV files which are uploadable onto YouTube. Surely Adobe would not allow us to find ourselves in a situation that would require third party conversion utilities just to convert between Adobe SWF and FLV formats. Surely Adobe would give us an ability to generate FLV files from wherever we are able to produce SWF files. Surely they would do that, if for no other reason than to keep us off the slippery slope of even contemplating exploring what MS and Silverlight might be capable of and from calculating just how long it might take, either way, before MS ends up eating everyone's lunch. ;) Regards and thanks. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: If I were to do what you want, I would use a combination of ImageMagick (http://www.imagemagick.org) and FFMPEG (http://ffmpeg.mplayerhq.hu/) server side. ImageMagick can take a set of images and create a slideshow. FFMPEG can then be used to add audio. A quick tutorial is available at http://www.linux.com/articles/60722 Of course, I use PHP - There is a PHP wrapper for ImageMagick (http://us.php.net/manual/en/book.imagick.php) and one for FFMPEG (http://ffmpeg-php.sourceforge.net/). You would need to find wrappers for your own server side language. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, comfederation comfederation@ wrote: Hi Folks, I am able to create a slideshow which uses either external or internally embeded images and music. This is the easy part. Now I need to create a stand alone movie. That is, I need to capture the slideshow that the user sees and then I need to encode it in some format (mp2/4 ?) so that it can be uploaded to YouTube. This is the hard part. So, how is this done within Premiere Express (the ReMixer that is on Photobucket, MTV and used to be on YouTube) ? To start with, I am looking for a good explanation of what is involved. This is the fun learning part. ;) Thanks a take care. -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
Re: [flexcoders] Re: HTML IN FLEX
:-) On Mon, Nov 17, 2008 at 7:56 PM, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, abhishekchess1 [EMAIL PROTECTED] wrote: hello frnd, i have a simple query , i'm storing text in string var like var coreData:String = 'img border=0 alt= style=width: 77px; height: 43px; src=chart.png /' + 'span style=font-weight: bold;Hi how are you/spanspan style=font-weight: bold;' + ' Welcome herebr /br /img border=0 alt= style=width: 76px; height: 43px; src=chart.png / ' + 'abhishek herebr //spanbr /span style=font-weight: bold;br /br //span'; var s:String; s =htmlhead/headbody; s +=coreData; s +=/body/html; myhtml.htmlText = s; it woring correctlly in AIr application like : mx:VBox width=100% height=100% mx:HTML width=100% height=100% id=myhtml/ /mx:VBox but when i used same in flex u can see it not working same like in air. Flex code: mx:VBox width=100% height=100% mx:TextArea id=myhtml textAlign=center width=100% height=100%/ /mx:VBox u can run and check code in flex and air, ui'' find difference. In AIr its showing right but not in flex. r u have any idea how to make work above example ? i come to know tht thr is problem with image displaying in textarea in flex ,is any other way anyone know? ths fntkality s onli afaliball n aIR -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
[flexcoders] resizing uploade image
hi guys i have a flex upload component and i would like the image to be resized when its uploaded but nothing happens. here is my upload.cfm file the flex component calls. upload.cfm !--- Flex Multi-File Upload Server Side File Handler This file is where the upload action from the Flex Multi-File Upload UI points. This is the handler the server side half of the upload process. --- !--- set the full path to the images folder --- cfset mediapath = expandpath('/realestate portal/images/agent_pics') !--- set the desired image height cfset thumbsize = 320 !--- set the desired image width --- cfset imagesize = 192 cftry !--- Because flash uploads all files with a binary mime type (application/ocet-stream) we cannot set cffile to accept specfic mime types. The workaround is to check the file type after it arrives on the server and if it is non desireable delete it. --- cffile action=upload filefield=filedata !--- destination=#ExpandPath('\')#realestate portal\images\agent_pics\ --- destination=#MediaPath# nameconflict=makeunique accept=application/octet-stream/ !--- Begin checking the file extension of uploaded files --- cfset acceptedFileExtensions = jpg,jpeg,gif,png,pdf,flv,txt,doc,rtf/ cfset filecheck = listFindNoCase(acceptedFileExtensions,File.ServerFileExt)/ !--- read the image cfimage name=uploadedImage source=#MediaPath#/#file.serverFile# !--- figure out which way to scale the image --- cfif uploadedImage.width gt uploadedImage.height cfset thmb_percentage = (thumbsize / uploadedImage.width) cfset percentage = (imagesize / uploadedImage.width) cfelse cfset thmb_percentage = (thumbsize / uploadedImage.height) cfset percentage = (imagesize / uploadedImage.height) /cfif !--- calculate the new thumbnail and image height/width --- cfset thumbWidth = round(uploadedImage.width * thmb_percentage) cfset thumbHeight = round(uploadedImage.height * thmb_percentage) cfset newWidth = round(uploadedImage.width * percentage) cfset newHeight = round(uploadedImage.height * percentage) !--- see if we need to resize the image, maybe it is already smaller than our desired size --- cfif uploadedImage.width gt imagesize cfimage action=resize height=#newHeight# width=#newWidth# source=#uploadedImage# destination=#MediaPath#/#file.serverFile# overwrite=true/ /cfif !--- create a thumbnail for the image --- cfimage action=resize height=#thumbHeight# width=#thumbWidth# source=#uploadedImage# destination=#MediaPath#/thumbs/#file.serverFile# overwrite=true/ !--- If the variable filecheck equals false delete the uploaded file immediatley as it does not match the desired file types --- cfif filecheck eq false cffile action=delete file=#MediaPath#/#file.serverFile#/ /cfif !--- Should any error occur output a pdf with all the details. It is difficult to debug an error from this file because no debug information is diplayed on page as its called from within the Flash UI. If your files are not uploading check to see if an errordebug.pdf has been generated. --- cfcatch type=any cfdocument format=PDF overwrite=yes filename=errordebug.pdf cfdump var=#cfcatch#/ /cfdocument /cfcatch /cftry please advise
[flexcoders] MouseEvent.MOUSE_WHEEL fires twice in Firefox
The mouse_wheel event triggers always twice in Firefox. IE7 fires correctly only one event. Find below a simple test case. Can anybody confirm this behavior and maybe a workaround? Thanks, Marc ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; addedToStage=addedToStageHandler(event) mx:Script ![CDATA[ private function addedToStageHandler(event:Event): void { stage.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler) } private var lastTimeWheel:Number = 0 private function mouseWheelHandler(mouseEvent:MouseEvent): void { var now:Number = new Date().getTime() trace(delta: + mouseEvent.delta + \tmillis: + (now-lastTimeWheel).toString()) lastTimeWheel = now } ]] /mx:Script /mx:Application Compiled with Flex 3.2 including HTML-wrapper. It also happens with static swfobject wrapper.
[flexcoders] Re: TextFormat being reset?
Anyone?? :) --- In flexcoders@yahoogroups.com, tchredeemed [EMAIL PROTECTED] wrote: I have created my own CanvasStack (to replace the viewstack) because viewstacks and models do not mix. ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=initApp() height=100% horizontalScrollPolicy=off verticalScrollPolicy=off mx:Metadata [Event(name=changeSelectedIndex,type=flash.events.Event)] /mx:Metadata mx:Script ![CDATA[ import com.gladhandle.AppGlobals; import com.gladhandle.handles.greeting_card.gcassets.Editor; [Bindable] private var _selectedIndex:int; public var dataProvider:Array; private function initApp():void { _selectedIndex = 0; addChild( dataProvider[_selectedIndex] ); } public function set selectedIndex( selectedIndex:int ):void { if( selectedIndex 0 || selectedIndex dataProvider.length ) { throw new Error( selectedIndex out of range ); return; } _selectedIndex = selectedIndex; dispatchEvent( new Event( changeSelectedIndex, false ) ); this.removeAllChildren(); this.addChild( dataProvider[_selectedIndex] ); } [Bindable] public function get selectedIndex():int { return _selectedIndex; } ]] /mx:Script /mx:Canvas --- This dataprovider is populated with custom components as well. When I change the selected index, it removes all the children (but they still exist in the dataprovider, so 'session' data should be saved), but when I navigate back to an index I have already visited, everything is still there, EXCEPT for the format of the text, it for some reason, is reset back to the original text, even though I have setTextFormat() and set the defaultTextFormat on the TextField. Any ideas?
RE: [flexcoders] Re: TextFormat being reset?
What TextField? Regards, -Keith http://keithreinfeld.home.comcast.net http://keithreinfeld.home.comcast.net/ _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tchredeemed Sent: Tuesday, November 18, 2008 8:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: TextFormat being reset? Anyone?? :) --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, tchredeemed [EMAIL PROTECTED] wrote: I have created my own CanvasStack (to replace the viewstack) because viewstacks and models do not mix. ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml com/2006/mxml creationComplete=initApp() height=100% horizontalScrollPolicy=off verticalScrollPolicy=off mx:Metadata [Event(name=changeSelectedIndex,type=flash.events.Event)] /mx:Metadata mx:Script ![CDATA[ import com.gladhandle.AppGlobals; import com.gladhandle.handles.greeting_card.gcassets.Editor; [Bindable] private var _selectedIndex:int; public var dataProvider:Array; private function initApp():void { _selectedIndex = 0; addChild( dataProvider[_selectedIndex] ); } public function set selectedIndex( selectedIndex:int ):void { if( selectedIndex 0 || selectedIndex dataProvider.length ) { throw new Error( selectedIndex out of range ); return; } _selectedIndex = selectedIndex; dispatchEvent( new Event( changeSelectedIndex, false ) ); this.removeAllChildren(); this.addChild( dataProvider[_selectedIndex] ); } [Bindable] public function get selectedIndex():int { return _selectedIndex; } ]] /mx:Script /mx:Canvas --- This dataprovider is populated with custom components as well. When I change the selected index, it removes all the children (but they still exist in the dataprovider, so 'session' data should be saved), but when I navigate back to an index I have already visited, everything is still there, EXCEPT for the format of the text, it for some reason, is reset back to the original text, even though I have setTextFormat() and set the defaultTextFormat on the TextField. Any ideas?
[flexcoders] Re: TextFormat being reset?
I created a new Text class that extended Text. I then change the textField.defaultTextFormat and call textField.setTextFormat(). It works when I set it on creationComplete, but then when I remove and add the editor again (which cntains the new Text), it takes all the textFormat styles off. --- In flexcoders@yahoogroups.com, Keith Reinfeld [EMAIL PROTECTED] wrote: What TextField? Regards, -Keith http://keithreinfeld.home.comcast.net http://keithreinfeld.home.comcast.net/ _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tchredeemed Sent: Tuesday, November 18, 2008 8:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: TextFormat being reset? Anyone?? :) --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, tchredeemed apthorp@ wrote: I have created my own CanvasStack (to replace the viewstack) because viewstacks and models do not mix. ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml com/2006/mxml creationComplete=initApp() height=100% horizontalScrollPolicy=off verticalScrollPolicy=off mx:Metadata [Event(name=changeSelectedIndex,type=flash.events.Event)] /mx:Metadata mx:Script ![CDATA[ import com.gladhandle.AppGlobals; import com.gladhandle.handles.greeting_card.gcassets.Editor; [Bindable] private var _selectedIndex:int; public var dataProvider:Array; private function initApp():void { _selectedIndex = 0; addChild( dataProvider[_selectedIndex] ); } public function set selectedIndex( selectedIndex:int ):void { if( selectedIndex 0 || selectedIndex dataProvider.length ) { throw new Error( selectedIndex out of range ); return; } _selectedIndex = selectedIndex; dispatchEvent( new Event( changeSelectedIndex, false ) ); this.removeAllChildren(); this.addChild( dataProvider[_selectedIndex] ); } [Bindable] public function get selectedIndex():int { return _selectedIndex; } ]] /mx:Script /mx:Canvas --- This dataprovider is populated with custom components as well. When I change the selected index, it removes all the children (but they still exist in the dataprovider, so 'session' data should be saved), but when I navigate back to an index I have already visited, everything is still there, EXCEPT for the format of the text, it for some reason, is reset back to the original text, even though I have setTextFormat() and set the defaultTextFormat on the TextField. Any ideas?
[flexcoders] Flex interview questions
Hi.. Can u plz tell me where can i find flex Interview Question?
Re: [flexcoders] Creating a Chart With 50,000 Data Points
Mark Easton wrote: It appears that Flex Charts cannot handle generating charts with large DataSets. We tried with 50,000 data points and it thrashed away without producing a result after 6 minutes. It was able to plot 2,000 points in about 25 seconds. What is the recommended approach for creating charts from large data sets. The best I can think of is to write some code that will reduce the data set in size yet still provide enough data to represent the graph accurately. Thoughts? LoD. Large scale datasets can work the same way computer graphics do. Users don't normally need to see every data point when a summary will do. Provide the user with the minimal amount of information necessary to understand what the data is saying and let them use the interface to drill down into specific areas. This works really well if you pre-calculate and cache the results on the backend (and predictive caching on the front doesn't hurt either). -Ricky
[flexcoders] Can you spare 5 minutes to reproduce this 12 line bug?
I had a bug marked cannot reproduce, even though it's reproducible with a 12 line application for me. It might help if a few others here will give it a shot: http://bugs.adobe.com/jira/browse/FLEXDMV-1908 ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mouseMove=trace(getQualifiedClassName(getFocus())) mx:Script ![CDATA[ import flash.utils.getQualifiedClassName; ]] /mx:Script mx:TextInput/ mx:ColumnChart/ /mx:Application Steps to reproduce: 1. Click on the app (not on one of the components) and move the mouse around. You will see null output in the console. 2. Click on the chart and move the mouse around. You will see mx.charts::ColumnChart output. 3. Click on the chart again and move the mouse around. You will see null output. 4. Click on the text field and move the mouse around. You will see mx.core::UITextField output. 5. Repeat from step 2. ... Sudhir Manjunathhttp://bugs.adobe.com/jira/secure/ViewProfile.jspa?name=sudhirm- [11/18/08 09:36 AM ] Cannot be reproduced. Tried in 2.0.1, 3.0.1 and 3.0.2.(build-214193). -- Jason
RE: [flexcoders] Flex interview questions
Search the archives of this list, there was a long thread on it earlier this year, as I recall. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of saritha Sent: 18 November 2008 11:43 To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex interview questions Hi.. Can u plz tell me where can i find flex Interview Question? __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
[flexcoders] modules or something else? + Mate
I have never used modules so I am not sure if what I am trying to do will work for them or not or maybe there is an easier way to resolve this issue. I have an app that has several documents. Each document is made of a canvas with an accordian in it. In this accordian I have two vboxes (thus to slides). The first vbox, which is shown on automatically, is a bar graph. The second vbox is a very heavy large custom component that is cpu intensive to create. Here is what I am currently doing, which freezes up my browser. In vbox1 I call this creationComplete=vbox2.createComponentsFromDescriptors() which means I am creating the children of vbox2 when vbox1's creationComplete event is dispatched. I do it like this so that when the user clicks vbox2 view it, its ready to view and they don't have to wait on it to load. The other way I was doing it was waiting for vbox2 to open and then creating the vbox2's children, which still causes the browser to lock up until it complete, but then they are also looking at a blank background. I tried to use an animation so they would have something to look at, but the animation stops because the browser is locked up do to CPU cycles be eaten up by my heavy components creation being so CPU intensive. I am not sure if moving to a module would solve this issue as I have never used them? Do they load like a flex appliation (progress bar)? And if I go with modules can through events like a regular component so my main app can listen for the events? I am using Mate so if that matters?
[flexcoders] HTTPService with mixed parameters
Dear all, I need to call an HTTPService with POST method but I need to transfer some GET parameters too. The tricky part ist, that the GET parameters are transmitted as arrays. Can anyone help me in order to build the correct HTTPService? Currently I am using this code but this one sends everything as POST params to the service: mx:HTTPService method=GET id=jsonRequest2 resultFormat=text showBusyCursor=true result=handleResult(event) url=http://my.url/service; mx:request methodgetMessage/method params{params}/params !-- Should be GET -- preferedMainTextPartTypes{mainTypes}/preferedMainTextPartTypes !-- Should be GET -- /mx:request /mx:HTTPService The params are built in this way: [Bindable] private var params:Object = {folder:INBOX.Drafts, getHeaderFields:1, mainTextPartProcessing:html, uid:1592}; [Bindable] private var mainTypes:Object = {0:html, 1:plain}; Any help highly appreciated! Thanks in advance Reto
Re: [flexcoders] Can you spare 5 minutes to reproduce this 12 line bug?
Hate to break it to you, but I can't repro either Flash Player 10,0,12,36 (debug) Firefox 3.0.4 Ubuntu 8.10 -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Pan Troglodytes [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders flexcoders@yahoogroups.com Subject: [flexcoders] Can you spare 5 minutes to reproduce this 12 line bug? Date: Tue, 18 Nov 2008 09:45:42 -0600 I had a bug marked cannot reproduce, even though it's reproducible with a 12 line application for me. It might help if a few others here will give it a shot: http://bugs.adobe.com/jira/browse/FLEXDMV-1908 ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mouseMove=trace(getQualifiedClassName(getFocus())) mx:Script ![CDATA[ import flash.utils.getQualifiedClassName; ]] /mx:Script mx:TextInput/ mx:ColumnChart/ /mx:Application Steps to reproduce: 1. Click on the app (not on one of the components) and move the mouse around. You will see null output in the console. 2. Click on the chart and move the mouse around. You will see mx.charts::ColumnChart output. 3. Click on the chart again and move the mouse around. You will see null output. 4. Click on the text field and move the mouse around. You will see mx.core::UITextField output. 5. Repeat from step 2. ... Sudhir Manjunath - [11/18/08 09:36 AM ] Cannot be reproduced. Tried in 2.0.1, 3.0.1 and 3.0.2. (build-214193). -- Jason
RE: [flexcoders] modules or something else? + Mate
If the cpu is bogged down by the creating of children, I don't think modules will help. Modules defer loading of the code for a view or component, but at some point you still have to instantiate it and create its children. I'd figure out what the bottleneck really is and work around it. If there's 1000's of children, but you can't see all of them or don't need all of them, create some, and create others in batches via callLater. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexaustin Sent: Tuesday, November 18, 2008 7:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] modules or something else? + Mate I have never used modules so I am not sure if what I am trying to do will work for them or not or maybe there is an easier way to resolve this issue. I have an app that has several documents. Each document is made of a canvas with an accordian in it. In this accordian I have two vboxes (thus to slides). The first vbox, which is shown on automatically, is a bar graph. The second vbox is a very heavy large custom component that is cpu intensive to create. Here is what I am currently doing, which freezes up my browser. In vbox1 I call this creationComplete=vbox2.createComponentsFromDescriptors() which means I am creating the children of vbox2 when vbox1's creationComplete event is dispatched. I do it like this so that when the user clicks vbox2 view it, its ready to view and they don't have to wait on it to load. The other way I was doing it was waiting for vbox2 to open and then creating the vbox2's children, which still causes the browser to lock up until it complete, but then they are also looking at a blank background. I tried to use an animation so they would have something to look at, but the animation stops because the browser is locked up do to CPU cycles be eaten up by my heavy components creation being so CPU intensive. I am not sure if moving to a module would solve this issue as I have never used them? Do they load like a flex appliation (progress bar)? And if I go with modules can through events like a regular component so my main app can listen for the events? I am using Mate so if that matters?
[flexcoders] JavaFX and Flex how do we compare?
Hi I just read the following news where I found that SUN is also coming up with their RIA technology and it says that it will take on AJAX and Silverlight. It will also have desktop runtime like AIR, I guess!!! SUN was also in MAX, San Francisco and there they also talked about it. Now I want to know how do we compare JavaFX and Flex? http://tech.yahoo.com/news/infoworld/20081118/tc_infoworld/117780 http://www.infoworld.com/article/07/05/07/javafx-javaone_1.html
RE: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property
First you have to identify which code is causing the violation. Post the entire violation. It should contain more information about which component is doing the violation. Once you figure that out, then you can try to workaround it, but testing from the server instead of the local filesystem is recommended as someday you will deploy the app to a server and you'll have different security rules in such a configuration. A workaround if a SWFLoader has trustContent=true SWFLoader id=ldr trustContent=true / Is SWFLOader id=ldr preinitialize=if (Security.sandboxType=='remote') ldr.trustContent=true else ldr.trustContent=false / From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ward Loockx Sent: Tuesday, November 18, 2008 12:06 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property Alex Harui schreef: Some code somewhere is trying to set a SecurityDomain parameter in a LoaderContext. There are parameters like trustContent on SWFLoader that can trigger that code. Unfortunately you can only run such code when deployed to HTTP:// and not from FILE:://. You might need to put in some conditional code to deal with it *From:* flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] *On Behalf Of *Ward Loockx *Sent:* Monday, November 17, 2008 9:07 AM *To:* flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] Re: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property valdhor schreef: Try adding your bin-debug directory to your Global Security Settings Manager (http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html) --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Ward Loockx [EMAIL PROTECTED] wrote: Hello, When I'm trying to load images from a remote server I get the following error message.. *Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property* I've been googling and nothing that works for me. When I put the swf on the remote server it loads the images perfect! I've tried everything (Crossdomain,addSecuritydomain on application, ...). Someone that managed to solve this ? Looks like a lot of people have this problem... Thanks! Ward I added the SWF, but that didn't worked out :( Hello, Thanks for the reply. If I get it right, there is a workaround but requires additional code? Can you specify a bit please ? Thanks, Ward
RE: [flexcoders] How to click off a panel
You should be able to get a scroll event from the container and move the popup accordingly. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sony antony Sent: Monday, November 17, 2008 9:40 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to click off a panel Hi Alex, Thanks for reply and I hope this time I could explain it well.. :) the dialogue window pops up at a particular position in the page, and when I scroll down the page(when I come to the bottom of the page) the popup also comes along. But what I want is the popup should go up with the main page.. For example this pop up generates at a text input and I need the pop up to stick to that text input i.e where it was generated originally. Instead now it gets detached from the text input and moves down with the page when scroll down Sony --- On Tue, 18/11/08, Alex Harui [EMAIL PROTECTED]mailto:aharui%40adobe.com wrote: From: Alex Harui [EMAIL PROTECTED]mailto:aharui%40adobe.com Subject: RE: [flexcoders] How to click off a panel To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Date: Tuesday, 18 November, 2008, 12:09 AM I don’t think I understand what is scrolling. From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of sony antony Sent: Sunday, November 16, 2008 10:46 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] How to click off a panel Hi.. I want to make a panel invisible when on mouse click outside. I have tried using Popup manager and mousedownOutside event. But would like to know whether there is any other way to do the same. The problem was When use the popup the window scrolls down with the page, but i need the window to stick to it parent component. Thanks and Regards, Sony Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/ Be the first one to try the new Messenger 9 Beta! Go to http://in.messenger.yahoo.com/win/
RE: [flexcoders] SWFLoader - displaying parent application
Classes from a child SWF that are also in the main app are not used. The main app's version are instead, so if both SWFs have the same name you could have a problem like that. See my blog presentations on Modules for an explanation of applicationDomains. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Le1 Sent: Monday, November 17, 2008 11:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SWFLoader - displaying parent application Hi, I'm trying to load a SWF application that I created using Flex 3 (with FlashDevelop) into a parent application. I tested using a SWF I downloaded from the internet and it loads correctly. When I try to load the swf that I created, it loads (I get all the events, similar to the one working) but instead of displaying the child swf, it displays another instance of the parent application where the child should be! The app I'm testing with is the example in the Flex 3 documentation. It just contain a simple Label to confirm that the app was loaded. Your help will be greatly appreciated, as I'm dumb struck that one work, and the other not.. Thanks in advance! Le1 -- View this message in context: http://www.nabble.com/SWFLoader---displaying-parent-application-tp20546423p20546423.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] Custom ItemRenderer and DataGrid/DataTips - Renderer's Responsibility?
Implement IDropInLIstItemRenderer. The labelData will have a columnIndex where you can get the dataTipFunction and run it (see DataGridItemRenderer.as). Once you have the text, you can display it somehow, maybe by setting a tooltip somewhere From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mmatczynski Sent: Monday, November 17, 2008 11:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Custom ItemRenderer and DataGrid/DataTips - Renderer's Responsibility? I have a DataGrid with a custom ItemRenderer written as an ActionScript class (that extends HBox). I want the DataGrid to display datatips for this column, but no datatips appear! I've found a few bugs filed about this, but apparently this works as designed: https://bugs.adobe.com/jira/browse/SDK-9822 Not a bug. It is the renderer's responsibility to deal with dataTipFunction. This is for performance reasons. So the question is... How does a custom ItemRenderer deal with the dataTipFunction to create / display the datatip? I know the ItemRenderer is responsible, so can someone give me an example of how to fulfill this responsibility? :) Thanks! Mike
[flexcoders] Re: X-axis values in flex chart
Did you try using labelRenderer property in AxisRenderer. Here is a sample from livedocs http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formatting_11.html -Sunil --- In flexcoders@yahoogroups.com, Sefi Ninio [EMAIL PROTECTED] wrote: Hey. I ended up calculating the number of tick labels to skip and used the labelFunction to return the value every calculated value. This works great - I have a label every 10th value, and all values are displayed in the chart as they should. Only problem is that the label font size is still very small (actually, it's exactly the same size as when all labels are displayed). I even tried to define horizontalAxisRenderers and in it a custom renderer with a specified fontSize but tis didn't work either... Does anyone have any ideas on how this can be accomplished? What I need is to display every Xth label, with a readable font size... Thanks, Sefi On Tue, Nov 18, 2008 at 10:36 AM, sefi.ninio [EMAIL PROTECTED] wrote: Hey I have a Flex LineChart with a lot of x values (around 300) - which makes them not readable within the chart's container height/width. Is there a way to make the chart display, say, every fifth value? I am using: mx:horizontalAxis mx:CategoryAxis dataProvider={row} categoryField=x labelFunction=formatHorizontalAxis / /mx:horizontalAxis The formatHorizontalAxis function formats unix-time into MM/DD/ using DateFormatter, and I suppose I could also implement it to return every 5th value, but I was wondering if there is a better way to do this. Thanks, Sefi
Re: [flexcoders] Flex interview questions
On Tuesday 18 Nov 2008, Jim Hayes wrote: Search the archives of this list, there was a long thread on it earlier this year, as I recall. Or just pick most threads on the list :-) -- Tom Chiverton Helping to proactively leverage sticky eligible best-of-breed network meta-services This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Can you spare 5 minutes to reproduce this 12 line bug?
Not to worry. Clearly the bug reporter couldn't reproduce it, so I'm not shocked that someone else can't. All I need is for some people who CAN reproduce it to prove that my computer doesn't somehow magically work differently than everyone else's. But you do make me think of something - maybe it's dependent on Flash Player 9 and the tester only used 10. Will have to try testing that. On Tue, Nov 18, 2008 at 10:05 AM, Maciek Sakrejda [EMAIL PROTECTED]wrote: Hate to break it to you, but I can't repro either Flash Player 10,0,12,36 (debug) Firefox 3.0.4 Ubuntu 8.10 -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Pan Troglodytes [EMAIL PROTECTED] chimpathetic%40gmail.com Reply-To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com To: flexcoders flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Can you spare 5 minutes to reproduce this 12 line bug? Date: Tue, 18 Nov 2008 09:45:42 -0600 I had a bug marked cannot reproduce, even though it's reproducible with a 12 line application for me. It might help if a few others here will give it a shot: http://bugs.adobe.com/jira/browse/FLEXDMV-1908 ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mouseMove=trace(getQualifiedClassName(getFocus())) mx:Script ![CDATA[ import flash.utils.getQualifiedClassName; ]] /mx:Script mx:TextInput/ mx:ColumnChart/ /mx:Application Steps to reproduce: 1. Click on the app (not on one of the components) and move the mouse around. You will see null output in the console. 2. Click on the chart and move the mouse around. You will see mx.charts::ColumnChart output. 3. Click on the chart again and move the mouse around. You will see null output. 4. Click on the text field and move the mouse around. You will see mx.core::UITextField output. 5. Repeat from step 2. ... Sudhir Manjunath - [11/18/08 09:36 AM ] Cannot be reproduced. Tried in 2.0.1, 3.0.1 and 3.0.2. (build-214193). -- Jason -- Jason
Re: [flexcoders] Can you spare 5 minutes to reproduce this 12 line bug?
Right, that could certainly be it. Also, for what it's worth, I'm on Flex SDK 3.0.0. -Original Message- From: Pan Troglodytes [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Can you spare 5 minutes to reproduce this 12 line bug? Date: Tue, 18 Nov 2008 11:39:10 -0600 Not to worry. Clearly the bug reporter couldn't reproduce it, so I'm not shocked that someone else can't. All I need is for some people who CAN reproduce it to prove that my computer doesn't somehow magically work differently than everyone else's. But you do make me think of something - maybe it's dependent on Flash Player 9 and the tester only used 10. Will have to try testing that. On Tue, Nov 18, 2008 at 10:05 AM, Maciek Sakrejda [EMAIL PROTECTED] wrote: Hate to break it to you, but I can't repro either Flash Player 10,0,12,36 (debug) Firefox 3.0.4 Ubuntu 8.10 -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Pan Troglodytes [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders flexcoders@yahoogroups.com Subject: [flexcoders] Can you spare 5 minutes to reproduce this 12 line bug? Date: Tue, 18 Nov 2008 09:45:42 -0600 I had a bug marked cannot reproduce, even though it's reproducible with a 12 line application for me. It might help if a few others here will give it a shot: http://bugs.adobe.com/jira/browse/FLEXDMV-1908 ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mouseMove=trace(getQualifiedClassName(getFocus())) mx:Script ![CDATA[ import flash.utils.getQualifiedClassName; ]] /mx:Script mx:TextInput/ mx:ColumnChart/ /mx:Application Steps to reproduce: 1. Click on the app (not on one of the components) and move the mouse around. You will see null output in the console. 2. Click on the chart and move the mouse around. You will see mx.charts::ColumnChart output. 3. Click on the chart again and move the mouse around. You will see null output. 4. Click on the text field and move the mouse around. You will see mx.core::UITextField output. 5. Repeat from step 2. ... Sudhir Manjunath - [11/18/08 09:36 AM ] Cannot be reproduced. Tried in 2.0.1, 3.0.1 and 3.0.2. (build-214193). -- Jason -- Jason
[flexcoders] Flex 2 charting license with Flex 3 sdk
We purchased the Flex 2 charting license. Now, we have upgraded to the Flex 3 SDK. We haven't (yet) purchased Flex Builder 3 as we/I don't use Flex Builder very much. I do command line/ant builds and editing with my text editor du jour. However, since upgrading to the Flex 3 sdk, we are now getting the data visualization... watermark. Is there something I can do with my flex 2 license.properties to get this to work? In Flex 2, there was some command-line stuff with charting-source.jar that I needed to do. Or, do I need to purchase/upgrade to Flex Builder 3 (Pro)? If the latter is the case, I think I read that I can just put the license in the flex-config.xml file. Is this true? Thanks, Jim
[flexcoders] LCDS: DataService.fill() not filling
Does anyone know what would prevent a DataService.fill() call to not populate it's managed collection? I have an ArrayCollection that is the dataProvider for a DataGrid. I see that data is coming back from the fill() call, but it doesn't appear to be passing that data to the ArrayCollection. If I inspect that variable after the fill() completes, it's empty. I double checked that the ArrayCollection that I'm passing to the fill() method is indeed the one that is used as the dataProvider. Any thoughts would be appreciated. ~Geoff
Re: [flexcoders] Can you spare 5 minutes to reproduce this 12 line bug?
Actually, it looks like I *can* repro, even building from source. I'm not sure what is different between this time and the previous time doing it. Steps are even simpler: 1. Click on chart, move mouse around (app traces out mx.charts::ColumnChart) 2. Click on chart, move mouse again (app traces out null) I've added a comment to the ticket. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Pan Troglodytes [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Can you spare 5 minutes to reproduce this 12 line bug? Date: Tue, 18 Nov 2008 11:59:11 -0600 Well, I tried it on another machine (also running XP), with FP9 and the error count be reproduced. Upgraded to 10 on that machine, error could also be reproduced. So clearly it's not that. Could be the version of the player for Windows, maybe. I'm attaching the HTML/SWF to see if it reproduces if you use the SWF I generated. As such, I changed the code so that it has a text box (so you don't need to look at the console output). If you click on the chart twice in a row, you should see null in the bottom text box. Here's the new source: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mouseMove=focusLbl.text = getQualifiedClassName(getFocus()) click=focusLbl.text = getQualifiedClassName(getFocus()) mx:Script ![CDATA[ import flash.utils.getQualifiedClassName; ]] /mx:Script mx:TextInput/ mx:ColumnChart/ mx:Label id=focusLbl/ /mx:Application On Tue, Nov 18, 2008 at 11:51 AM, Maciek Sakrejda [EMAIL PROTECTED] wrote: Right, that could certainly be it. Also, for what it's worth, I'm on Flex SDK 3.0.0. -Original Message- From: Pan Troglodytes [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Can you spare 5 minutes to reproduce this 12 line bug? Date: Tue, 18 Nov 2008 11:39:10 -0600 Not to worry. Clearly the bug reporter couldn't reproduce it, so I'm not shocked that someone else can't. All I need is for some people who CAN reproduce it to prove that my computer doesn't somehow magically work differently than everyone else's. But you do make me think of something - maybe it's dependent on Flash Player 9 and the tester only used 10. Will have to try testing that. On Tue, Nov 18, 2008 at 10:05 AM, Maciek Sakrejda [EMAIL PROTECTED] wrote: Hate to break it to you, but I can't repro either Flash Player 10,0,12,36 (debug) Firefox 3.0.4 Ubuntu 8.10 -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Pan Troglodytes [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders flexcoders@yahoogroups.com Subject: [flexcoders] Can you spare 5 minutes to reproduce this 12 line bug? Date: Tue, 18 Nov 2008 09:45:42 -0600 I had a bug marked cannot reproduce, even though it's reproducible with a 12 line application for me. It might help if a few others here will give it a shot: http://bugs.adobe.com/jira/browse/FLEXDMV-1908 ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mouseMove=trace(getQualifiedClassName(getFocus())) mx:Script ![CDATA[ import flash.utils.getQualifiedClassName; ]] /mx:Script mx:TextInput/ mx:ColumnChart/ /mx:Application Steps to reproduce: 1. Click on the app (not on one of the components) and move the mouse around. You will see null output in the console. 2. Click on the chart and move the mouse around. You will see mx.charts::ColumnChart output. 3. Click on the chart again and move the mouse around. You will see null output. 4. Click on the text field and move the mouse around. You will see mx.core::UITextField output. 5. Repeat from step 2. ... Sudhir Manjunath - [11/18/08 09:36 AM ] Cannot be reproduced. Tried in 2.0.1, 3.0.1 and 3.0.2. (build-214193). -- Jason -- Jason -- Jason
Re: [flexcoders] Can you spare 5 minutes to reproduce this 12 line bug?
Good to hear it's not just me. And on such a different system, as well. I updated the bug with my code for the simpler test version. Does anyone know if they read bugs that say resolved but have been updated? Should I clone the bug as a new one? On Tue, Nov 18, 2008 at 12:16 PM, Maciek Sakrejda [EMAIL PROTECTED]wrote: Actually, it looks like I *can* repro, even building from source. I'm not sure what is different between this time and the previous time doing it. Steps are even simpler: 1. Click on chart, move mouse around (app traces out mx.charts::ColumnChart) 2. Click on chart, move mouse again (app traces out null) I've added a comment to the ticket. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Pan Troglodytes [EMAIL PROTECTED] chimpathetic%40gmail.com Reply-To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Can you spare 5 minutes to reproduce this 12 line bug? Date: Tue, 18 Nov 2008 11:59:11 -0600 Well, I tried it on another machine (also running XP), with FP9 and the error count be reproduced. Upgraded to 10 on that machine, error could also be reproduced. So clearly it's not that. Could be the version of the player for Windows, maybe. I'm attaching the HTML/SWF to see if it reproduces if you use the SWF I generated. As such, I changed the code so that it has a text box (so you don't need to look at the console output). If you click on the chart twice in a row, you should see null in the bottom text box. Here's the new source: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mouseMove=focusLbl.text = getQualifiedClassName(getFocus()) click=focusLbl.text = getQualifiedClassName(getFocus()) mx:Script ![CDATA[ import flash.utils.getQualifiedClassName; ]] /mx:Script mx:TextInput/ mx:ColumnChart/ mx:Label id=focusLbl/ /mx:Application On Tue, Nov 18, 2008 at 11:51 AM, Maciek Sakrejda [EMAIL PROTECTED] msakrejda%40truviso.com wrote: Right, that could certainly be it. Also, for what it's worth, I'm on Flex SDK 3.0.0. -Original Message- From: Pan Troglodytes [EMAIL PROTECTED] chimpathetic%40gmail.com Reply-To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Can you spare 5 minutes to reproduce this 12 line bug? Date: Tue, 18 Nov 2008 11:39:10 -0600 Not to worry. Clearly the bug reporter couldn't reproduce it, so I'm not shocked that someone else can't. All I need is for some people who CAN reproduce it to prove that my computer doesn't somehow magically work differently than everyone else's. But you do make me think of something - maybe it's dependent on Flash Player 9 and the tester only used 10. Will have to try testing that. On Tue, Nov 18, 2008 at 10:05 AM, Maciek Sakrejda [EMAIL PROTECTED] msakrejda%40truviso.com wrote: Hate to break it to you, but I can't repro either Flash Player 10,0,12,36 (debug) Firefox 3.0.4 Ubuntu 8.10 -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Pan Troglodytes [EMAIL PROTECTED] chimpathetic%40gmail.com Reply-To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com To: flexcoders flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Can you spare 5 minutes to reproduce this 12 line bug? Date: Tue, 18 Nov 2008 09:45:42 -0600 I had a bug marked cannot reproduce, even though it's reproducible with a 12 line application for me. It might help if a few others here will give it a shot: http://bugs.adobe.com/jira/browse/FLEXDMV-1908 ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mouseMove=trace(getQualifiedClassName(getFocus())) mx:Script ![CDATA[ import flash.utils.getQualifiedClassName; ]] /mx:Script mx:TextInput/ mx:ColumnChart/ /mx:Application Steps to reproduce: 1. Click on the app (not on one of the components) and move the mouse around. You will see null output in the console. 2. Click on the chart and move the mouse around. You will see mx.charts::ColumnChart output. 3. Click on the chart again and move the mouse around. You will see null output. 4. Click on the text field and move the mouse around. You will see mx.core::UITextField output. 5. Repeat from step 2. ... Sudhir Manjunath - [11/18/08 09:36 AM ] Cannot be reproduced. Tried in 2.0.1, 3.0.1 and 3.0.2. (build-214193). -- Jason -- Jason -- Jason -- Jason
Re: [flexcoders] Re: X-axis values in flex chart
Hi Sunil. Thanks for the time you took to answer. Unfortunately, this doesn't work either. I just tried it... On Tue, Nov 18, 2008 at 7:19 PM, Sunil Bannur [EMAIL PROTECTED] wrote: Did you try using labelRenderer property in AxisRenderer. Here is a sample from livedocs http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formatting_11.html -Sunil --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Sefi Ninio [EMAIL PROTECTED] wrote: Hey. I ended up calculating the number of tick labels to skip and used the labelFunction to return the value every calculated value. This works great - I have a label every 10th value, and all values are displayed in the chart as they should. Only problem is that the label font size is still very small (actually, it's exactly the same size as when all labels are displayed). I even tried to define horizontalAxisRenderers and in it a custom renderer with a specified fontSize but tis didn't work either... Does anyone have any ideas on how this can be accomplished? What I need is to display every Xth label, with a readable font size... Thanks, Sefi On Tue, Nov 18, 2008 at 10:36 AM, sefi.ninio [EMAIL PROTECTED] wrote: Hey I have a Flex LineChart with a lot of x values (around 300) - which makes them not readable within the chart's container height/width. Is there a way to make the chart display, say, every fifth value? I am using: mx:horizontalAxis mx:CategoryAxis dataProvider={row} categoryField=x labelFunction=formatHorizontalAxis / /mx:horizontalAxis The formatHorizontalAxis function formats unix-time into MM/DD/ using DateFormatter, and I suppose I could also implement it to return every 5th value, but I was wondering if there is a better way to do this. Thanks, Sefi
[flexcoders] How can I add a Progress bar to show the render to JPG progress?
Hi everyone, I have a button which renders my component to JPG. How can I attach a progress bar to show the progress of the rendering? mx:Button label=render click=renderasJPEG ()/ public function renderasJPEG( ):void { convertToImage( component001, new JPEGEncoder( 100)); } private function convertToImage( object:IUICompon ent, encoder:IImageEncod er):void { var base64string: String = ImageSnapshot. encodeImageAsBas e64( ImageSnapshot. captureImage( object, 72, encoder)); var variables:URLVariab les = new URLVariables( ); variables.encoded = base64string; variables.type = jpeg; var request:URLRequest = new URLRequest( script_saveasima ge.php); request.method = POST; request.data = variables; navigateToURL( request, _blank); } Thanks.
[flexcoders] Re: Actionscript SSH Library..heard of any?
I think Alchemy (http://labs.adobe.com/technologies/alchemy/) might just be able to take me down the path I need. Plus it might force me to learn C/C++. Not sure if I am excited about that or not though. --- In flexcoders@yahoogroups.com, Nate Beck [EMAIL PROTECTED] wrote: Even though this is absolutely a preview / research project at the moment. Adobe Alchemy (http://labs.adobe.com/technologies/alchemy/): Welcome the preview release of codename Alchemy. Alchemy is a research project that allows users to compile C and C++ code that is targeted to run on the open source ActionScript Virtual Machine (AVM2). The purpose of this preview is to assess the level of community interest in reusing existing C and C++ libraries in Web applications that run on Adobe(R) Flash(R) Player and Adobe AIR(R). Alchemy will allow you to take a c++ SSH library, such as http://www.netsieben.com/products/sshlib/. I haven't tested this, it's just a concept. But it seems like it might work. It might be able to give you the SSH interaction you're looking for within Flash. On Mon, Nov 17, 2008 at 11:36 AM, r.fender [EMAIL PROTECTED] wrote: Currently, it is browser based, running through SSL, using AMFPHP to execute shell_exec() commands to run low-level Unix scripts to configure the devices. Are you saying the existing browser-based version executes commands locally (i.e. the browser and web server (with AMFPHP both live on the device) ? If I understand your question correctly, the web server (Apache) and AMFPHP are running on the device itself. The browser is just what the user has on their local machine (Firefox, Safari, IE, etc). So if I was the user, I would open a browser and navigate to the IP address of the device. The device would then just serve up the application. To use a real device as an example let's just say the device is a DVD player and you have the ability to log into it via it's IP address on your network and do some low-level configurations on it. Make sense? I confuse myself on this sometimes :)
[flexcoders] IllegalOperationError with fileReference.download() and Internet Explorer
I'm getting a illegalOperationError when calling download() on a fileReference instance in IE. However, I'm not getting it in FireFox, Opera or Safari. Can anyone shed some light on this? Thanks
[flexcoders] Re: Custom ItemRenderer and DataGrid/DataTips - Renderer's Responsibility?
Thanks for the reply! you can display it somehow, maybe by setting a tooltip somewhere - Getting the text isn't the problem, getting it to display is! :) I want the tooltip to display whenever someone mouses over the cell in the custom ItemRenderer's column (just like it works when I don't specify a custom ItemRenderer). Any idea how to accomplish this? Thanks! Mike --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Implement IDropInLIstItemRenderer. The labelData will have a columnIndex where you can get the dataTipFunction and run it (see DataGridItemRenderer.as). Once you have the text, you can display it somehow, maybe by setting a tooltip somewhere From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mmatczynski Sent: Monday, November 17, 2008 11:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Custom ItemRenderer and DataGrid/DataTips - Renderer's Responsibility? I have a DataGrid with a custom ItemRenderer written as an ActionScript class (that extends HBox). I want the DataGrid to display datatips for this column, but no datatips appear! I've found a few bugs filed about this, but apparently this works as designed: https://bugs.adobe.com/jira/browse/SDK-9822 Not a bug. It is the renderer's responsibility to deal with dataTipFunction. This is for performance reasons. So the question is... How does a custom ItemRenderer deal with the dataTipFunction to create / display the datatip? I know the ItemRenderer is responsible, so can someone give me an example of how to fulfill this responsibility? :) Thanks! Mike
[flexcoders] Vertical FormItem label
Hey Fellows, Do anybody knows how to get the label of a formItem over the container? I mean something like this: Name: [___] Age: [___] Sorry for the bad english and thanks!
[flexcoders] Centering app preloader
I have usePreloader=true in my app tag (Flex 3) but the movie is resized in the HTML to a height of 80px which is causing the preloader to appear off-stage. Is there any way to center the preloader? Do I have to maybe set the size of the stage in FB so it knows where to place it? Thanks.
[flexcoders] Re: resizing uploade image
Forget the Flex app for the moment and just post to the CF page with a regular HTML form and see if it works. Adrian Building a database of ColdFusion errors at cferror.org
[flexcoders] Re: Creating a Chart With 50,000 Data Points
50,000? LOL. ;-) On a more serious note, I have to agree with Fotis and Ricky that 50K data points is too many, both from a (Flash 9 VM at least) performance perspective and probably also from an Information Visualization perspective (unless, maybe, your users have 300 dpi monitors). There are several standard interaction design and information visualization techniques which may be useful to you . . . 1) Aggregation (as already suggested, take 'N' data points, average them, and then only display the average value). 2) Filtering (by sliders on an axis, by date/time, by structured or open-ended queries, ...) 3) Progressive rendering (sample the entire data set at intervals of 'N', render those points, then go back and get the data which is mid-point between the original points, add the new points to the curve, repeat until desired resolution obtained--or on user demand) 4) Non-linear zooming (like idea 1), but allow user to zoom in on a section of the curve, when they do, add the additional data points to the curve for the zoomed-in region) On a more pragmatic note, you certainly _can_ plot more than 2,000 points. For example, I've personally used Flex to create charts with over 14,000 points in them, so I know that at least that number is definitely *possible*. However, the overall rendering time was (as I recall) over 3 minutes long. More troubling was the fact that the entire Flex UI become very sluggish once a chart that large was displayed. I've seen good chart rendering speed ( ~= 2S ) and no UI sluggishness, up to about 1500 points. I've also been able to render up to 6,000 points, but it took about 10S for the rendering and the UI started to become sluggish. From your posting, it sounds like you're not seeing those rendering speeds. I'd recommend that you experiment with how you are using the charting objects/API. My experience was that I was able to see some very noticeable speed-ups simply be optimizing how I called the charting API (especially w.r.t. how I loaded the series data). In particular, if your charts are interactive, try to cache anything you can that doesn't necessarily change during an interaction (i.e., axis objects). Last thought: the new Flash 10 VM (Astro) has support for larger bitmaps and also can now do hardware-based rendering, apparently. I haven't tried either of those features myself, but using the v10 VM _might_ be another way to get a performance boost, etc. Good luck! Jim --- In flexcoders@yahoogroups.com, Mark Easton [EMAIL PROTECTED] wrote: Hi, It appears that Flex Charts cannot handle generating charts with large DataSets. We tried with 50,000 data points and it thrashed away without producing a result after 6 minutes. It was able to plot 2,000 points in about 25 seconds. What is the recommended approach for creating charts from large data sets. The best I can think of is to write some code that will reduce the data set in size yet still provide enough data to represent the graph accurately. Thoughts? Ta. Mark
Re: [flexcoders] Re: Creating a Chart With 50,000 Data Points
What kind of charts are you displaying? I've had amazing success with scrapping the charting framework all together and simply drawing the chart programmatically. Yes, it's a bit more work, and yes it's only feasible if you don't really need a lot of the charting features that come in the framework. However, the performance difference is huge. The project I applied this on was for financial stock data, and using a custom drawn chart I mention above, along with the concept someone else mentioned by only showing the n-th datapoint interval depending on the overall range being displayed worked quite well. You're able to keep a consistent number of plot points (I've found 500-750 performs best) no matter what the overall range of data you're displaying. I say 500-750 performs best as I also had a horizontal axis slider which allowed for constantly updating data in the chart. Brendan On Tue, Nov 18, 2008 at 1:27 PM, jim.abbott45 [EMAIL PROTECTED]wrote: 50,000? LOL. ;-) On a more serious note, I have to agree with Fotis and Ricky that 50K data points is too many, both from a (Flash 9 VM at least) performance perspective and probably also from an Information Visualization perspective (unless, maybe, your users have 300 dpi monitors). There are several standard interaction design and information visualization techniques which may be useful to you . . . 1) Aggregation (as already suggested, take 'N' data points, average them, and then only display the average value). 2) Filtering (by sliders on an axis, by date/time, by structured or open-ended queries, ...) 3) Progressive rendering (sample the entire data set at intervals of 'N', render those points, then go back and get the data which is mid-point between the original points, add the new points to the curve, repeat until desired resolution obtained--or on user demand) 4) Non-linear zooming (like idea 1), but allow user to zoom in on a section of the curve, when they do, add the additional data points to the curve for the zoomed-in region) On a more pragmatic note, you certainly _can_ plot more than 2,000 points. For example, I've personally used Flex to create charts with over 14,000 points in them, so I know that at least that number is definitely *possible*. However, the overall rendering time was (as I recall) over 3 minutes long. More troubling was the fact that the entire Flex UI become very sluggish once a chart that large was displayed. I've seen good chart rendering speed ( ~= 2S ) and no UI sluggishness, up to about 1500 points. I've also been able to render up to 6,000 points, but it took about 10S for the rendering and the UI started to become sluggish. From your posting, it sounds like you're not seeing those rendering speeds. I'd recommend that you experiment with how you are using the charting objects/API. My experience was that I was able to see some very noticeable speed-ups simply be optimizing how I called the charting API (especially w.r.t. how I loaded the series data). In particular, if your charts are interactive, try to cache anything you can that doesn't necessarily change during an interaction (i.e., axis objects). Last thought: the new Flash 10 VM (Astro) has support for larger bitmaps and also can now do hardware-based rendering, apparently. I haven't tried either of those features myself, but using the v10 VM _might_ be another way to get a performance boost, etc. Good luck! Jim --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Mark Easton [EMAIL PROTECTED] wrote: Hi, It appears that Flex Charts cannot handle generating charts with large DataSets. We tried with 50,000 data points and it thrashed away without producing a result after 6 minutes. It was able to plot 2,000 points in about 25 seconds. What is the recommended approach for creating charts from large data sets. The best I can think of is to write some code that will reduce the data set in size yet still provide enough data to represent the graph accurately. Thoughts? Ta. Mark -- Brendan Meutzner http://www.meutzner.com/blog/
[flexcoders] Re: Flex interview questions
--- In flexcoders@yahoogroups.com, saritha [EMAIL PROTECTED] wrote: Hi.. Can u plz tell me where can i find flex Interview Question? i thnk ur gna fnd t dfcult 2 gt ny typ f jb w/o bsk ltrcy sklz.
[flexcoders] Re: HTTPService with mixed parameters
When I try your code and check it with Charles (http://www.charlesproxy.com) the method is GET and the URL is http://my.url/service?params=%5Bobject%20Object%5Dmethod=getMessagepre\ feredMainTextPartTypes=%5Bobject%20Object%5D I have no idea how you would get the data in this situation as Flex sends [object Object] as the parameters. If I were you I would add a function to serialize the data before it is sent: private function sendTheData():void { var theURL:String = http://my.url/service?;; for(var key:Object in params) { theURL += key.toString() + = + params[key].toString() + ; } jsonRequest2.url = theURL; jsonRequest2.send(); } As an aside, if you need to send both GET and POST parameters, set the service to POST and add the GET parameters to the url property of the HTTPService. To send objects I would recommend using RemoteObjects. --- In flexcoders@yahoogroups.com, Reto M. Kiefer [EMAIL PROTECTED] wrote: Dear all, I need to call an HTTPService with POST method but I need to transfer some GET parameters too. The tricky part ist, that the GET parameters are transmitted as arrays. Can anyone help me in order to build the correct HTTPService? Currently I am using this code but this one sends everything as POST params to the service: mx:HTTPService method=GET id=jsonRequest2 resultFormat=text showBusyCursor=true result=handleResult(event) url=http://my.url/service; mx:request methodgetMessage/method params{params}/params !-- Should be GET -- preferedMainTextPartTypes{mainTypes}/preferedMainTextPartTypes !-- Should be GET -- /mx:request /mx:HTTPService The params are built in this way: [Bindable] private var params:Object = {folder:INBOX.Drafts, getHeaderFields:1, mainTextPartProcessing:html, uid:1592}; [Bindable] private var mainTypes:Object = {0:html, 1:plain}; Any help highly appreciated! Thanks in advance Reto
RE: [flexcoders] Re: Creating a Chart With 50,000 Data Points
Hi Jim, Yes, LOL ... and it gets worse when we try to plot a graph for one year (about 500,000 observatons). We are plotting values received from sensors (eg temperature, vibration, humidity, gps location, gps velocity, wind speed, current, voltage, light). We take readings each minute. I have produced a dashboard which uses the following techniques: 1. Each sensor graph is in its own window ... so can be looking at 10 graphs at the same time for instance. 2. I average data to reduce the dataset size 3. I employ drill down 4. I have included a slider to look at reduced time frames The client rejected this solution. I did some tests in flex and found results similar to you Jim. When I tried to plot 40,000 points I gave up waiting for it after 6 minutes. 10,000 points took about 20 secs the first time (including reading from the local sqlite data store). The client and I have now agreed that: 1. If we have a large number of observations from a sensor and plot all of those on a graph over a period of time, then whatever optimisation we use to improve performance should produce an identical looking graph to the first. (I think that identical is probably to strong a word here) 2. We will add a confif paramter for each sensor such that the sensor readings can be changed to occur at multiples of 1 minute. For example, every 10 minutes. So, I will still end up with data sets to large for flex, and given that I want to display many graphs at once and will also be looking at representing many sensors on the one graph this contributes to the issue. So, I do need to sample the dataset somehow to make it work. But have to try to meet the goal expressed in point 1 above. I think a combination of your points 3 and 4 might be a good approached combined with some algorithm to ensure that my top level curve does not miss an max's and min's and as close as possible approximates a full detail curve. A few challenges there! Thanks again, Mark _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jim.abbott45 Sent: Wednesday, November 19, 2008 8:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Creating a Chart With 50,000 Data Points 50,000? LOL. ;-) On a more serious note, I have to agree with Fotis and Ricky that 50K data points is too many, both from a (Flash 9 VM at least) performance perspective and probably also from an Information Visualization perspective (unless, maybe, your users have 300 dpi monitors). There are several standard interaction design and information visualization techniques which may be useful to you . . . 1) Aggregation (as already suggested, take 'N' data points, average them, and then only display the average value). 2) Filtering (by sliders on an axis, by date/time, by structured or open-ended queries, ...) 3) Progressive rendering (sample the entire data set at intervals of 'N', render those points, then go back and get the data which is mid-point between the original points, add the new points to the curve, repeat until desired resolution obtained--or on user demand) 4) Non-linear zooming (like idea 1), but allow user to zoom in on a section of the curve, when they do, add the additional data points to the curve for the zoomed-in region) On a more pragmatic note, you certainly _can_ plot more than 2,000 points. For example, I've personally used Flex to create charts with over 14,000 points in them, so I know that at least that number is definitely *possible*. However, the overall rendering time was (as I recall) over 3 minutes long. More troubling was the fact that the entire Flex UI become very sluggish once a chart that large was displayed. I've seen good chart rendering speed ( ~= 2S ) and no UI sluggishness, up to about 1500 points. I've also been able to render up to 6,000 points, but it took about 10S for the rendering and the UI started to become sluggish. From your posting, it sounds like you're not seeing those rendering speeds. I'd recommend that you experiment with how you are using the charting objects/API. My experience was that I was able to see some very noticeable speed-ups simply be optimizing how I called the charting API (especially w.r.t. how I loaded the series data). In particular, if your charts are interactive, try to cache anything you can that doesn't necessarily change during an interaction (i.e., axis objects). Last thought: the new Flash 10 VM (Astro) has support for larger bitmaps and also can now do hardware-based rendering, apparently. I haven't tried either of those features myself, but using the v10 VM _might_ be another way to get a performance boost, etc. Good luck! Jim --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, Mark Easton [EMAIL PROTECTED] wrote: Hi, It appears that Flex Charts cannot handle generating charts with large DataSets. We tried with 50,000 data points and it thrashed away without producing a result after 6 minutes. It was able to plot
RE: [flexcoders] Re: Creating a Chart With 50,000 Data Points
Thanks Brendan, We are charting observations from a range of sensors and contact inputs. The contact inputs are a special case as they can only have 1 or 0 values. But the sensors include temperature, current, voltage, light, humidity, vibration, motion, gps velocity, gps location, wind speed, wind direction etc. The client does like the the charting features so he wants all of the flex charting cool stuff as well as the ability to see these charts. But that does not mean that I cant look at a combination of approaches. Its a good idea to look at coding a custom chart, and one I will look at closely. Yes I was thinking along the lines of having 2000 plot points. So in the case of a 3 month graph I would start with 120,000 points and need to reduce that to 2000. Cheers, Mark _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner Sent: Wednesday, November 19, 2008 8:51 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Creating a Chart With 50,000 Data Points What kind of charts are you displaying? I've had amazing success with scrapping the charting framework all together and simply drawing the chart programmatically. Yes, it's a bit more work, and yes it's only feasible if you don't really need a lot of the charting features that come in the framework. However, the performance difference is huge. The project I applied this on was for financial stock data, and using a custom drawn chart I mention above, along with the concept someone else mentioned by only showing the n-th datapoint interval depending on the overall range being displayed worked quite well. You're able to keep a consistent number of plot points (I've found 500-750 performs best) no matter what the overall range of data you're displaying. I say 500-750 performs best as I also had a horizontal axis slider which allowed for constantly updating data in the chart. Brendan On Tue, Nov 18, 2008 at 1:27 PM, jim.abbott45 jim.abbott45@ mailto:[EMAIL PROTECTED] yahoo.com wrote: 50,000? LOL. ;-) On a more serious note, I have to agree with Fotis and Ricky that 50K data points is too many, both from a (Flash 9 VM at least) performance perspective and probably also from an Information Visualization perspective (unless, maybe, your users have 300 dpi monitors). There are several standard interaction design and information visualization techniques which may be useful to you . . . 1) Aggregation (as already suggested, take 'N' data points, average them, and then only display the average value). 2) Filtering (by sliders on an axis, by date/time, by structured or open-ended queries, ...) 3) Progressive rendering (sample the entire data set at intervals of 'N', render those points, then go back and get the data which is mid-point between the original points, add the new points to the curve, repeat until desired resolution obtained--or on user demand) 4) Non-linear zooming (like idea 1), but allow user to zoom in on a section of the curve, when they do, add the additional data points to the curve for the zoomed-in region) On a more pragmatic note, you certainly _can_ plot more than 2,000 points. For example, I've personally used Flex to create charts with over 14,000 points in them, so I know that at least that number is definitely *possible*. However, the overall rendering time was (as I recall) over 3 minutes long. More troubling was the fact that the entire Flex UI become very sluggish once a chart that large was displayed. I've seen good chart rendering speed ( ~= 2S ) and no UI sluggishness, up to about 1500 points. I've also been able to render up to 6,000 points, but it took about 10S for the rendering and the UI started to become sluggish. From your posting, it sounds like you're not seeing those rendering speeds. I'd recommend that you experiment with how you are using the charting objects/API. My experience was that I was able to see some very noticeable speed-ups simply be optimizing how I called the charting API (especially w.r.t. how I loaded the series data). In particular, if your charts are interactive, try to cache anything you can that doesn't necessarily change during an interaction (i.e., axis objects). Last thought: the new Flash 10 VM (Astro) has support for larger bitmaps and also can now do hardware-based rendering, apparently. I haven't tried either of those features myself, but using the v10 VM _might_ be another way to get a performance boost, etc. Good luck! Jim --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, Mark Easton [EMAIL PROTECTED] wrote: Hi, It appears that Flex Charts cannot handle generating charts with large DataSets. We tried with 50,000 data points and it thrashed away without producing a result after 6 minutes. It was able to plot 2,000 points in about 25 seconds. What is the recommended approach for creating charts from large data sets. The best I can think of is to write some code that
[flexcoders] Re: modules or something else? + Mate
I was hoping the module would load like a Flex application where it loads slowly and doesn't freeze up the browser (click the url and edit). I am using some of flexvizgraphlib so it going to be a challenge to try and speed their code up. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: If the cpu is bogged down by the creating of children, I don't think modules will help. Modules defer loading of the code for a view or component, but at some point you still have to instantiate it and create its children. I'd figure out what the bottleneck really is and work around it. If there's 1000's of children, but you can't see all of them or don't need all of them, create some, and create others in batches via callLater. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexaustin Sent: Tuesday, November 18, 2008 7:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] modules or something else? + Mate I have never used modules so I am not sure if what I am trying to do will work for them or not or maybe there is an easier way to resolve this issue. I have an app that has several documents. Each document is made of a canvas with an accordian in it. In this accordian I have two vboxes (thus to slides). The first vbox, which is shown on automatically, is a bar graph. The second vbox is a very heavy large custom component that is cpu intensive to create. Here is what I am currently doing, which freezes up my browser. In vbox1 I call this creationComplete=vbox2.createComponentsFromDescriptors() which means I am creating the children of vbox2 when vbox1's creationComplete event is dispatched. I do it like this so that when the user clicks vbox2 view it, its ready to view and they don't have to wait on it to load. The other way I was doing it was waiting for vbox2 to open and then creating the vbox2's children, which still causes the browser to lock up until it complete, but then they are also looking at a blank background. I tried to use an animation so they would have something to look at, but the animation stops because the browser is locked up do to CPU cycles be eaten up by my heavy components creation being so CPU intensive. I am not sure if moving to a module would solve this issue as I have never used them? Do they load like a flex appliation (progress bar)? And if I go with modules can through events like a regular component so my main app can listen for the events? I am using Mate so if that matters?
[flexcoders] Re: Vertical FormItem label
A combination of label and TextInput? mx:Label text=Name: fontWeight=bold paddingBottom=-5/ mx:TextInput paddingTop=-3/ mx:Label text=Age: fontWeight=bold paddingBottom=-5/ mx:TextInput paddingTop=-3/ --- In flexcoders@yahoogroups.com, Gustavo Schirmer [EMAIL PROTECTED] wrote: Hey Fellows, Do anybody knows how to get the label of a formItem over the container? I mean something like this: Name: [___] Age: [___] Sorry for the bad english and thanks!
RE: [flexcoders] Re: TextFormat being reset?
I think the Text component is setting the text format of its TextField to correspond to the CSS styles set on the Text component. The inheriting CSS styles must be recomputed every time a component is reparented. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tchredeemed Sent: Tuesday, November 18, 2008 6:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: TextFormat being reset? I created a new Text class that extended Text. I then change the textField.defaultTextFormat and call textField.setTextFormat(). It works when I set it on creationComplete, but then when I remove and add the editor again (which cntains the new Text), it takes all the textFormat styles off. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Keith Reinfeld [EMAIL PROTECTED] wrote: What TextField? Regards, -Keith http://keithreinfeld.home.comcast.net http://keithreinfeld.home.comcast.net/ _ From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of tchredeemed Sent: Tuesday, November 18, 2008 8:17 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: TextFormat being reset? Anyone?? :) --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, tchredeemed apthorp@ wrote: I have created my own CanvasStack (to replace the viewstack) because viewstacks and models do not mix. ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml com/2006/mxml creationComplete=initApp() height=100% horizontalScrollPolicy=off verticalScrollPolicy=off mx:Metadata [Event(name=changeSelectedIndex,type=flash.events.Event)] /mx:Metadata mx:Script ![CDATA[ import com.gladhandle.AppGlobals; import com.gladhandle.handles.greeting_card.gcassets.Editor; [Bindable] private var _selectedIndex:int; public var dataProvider:Array; private function initApp():void { _selectedIndex = 0; addChild( dataProvider[_selectedIndex] ); } public function set selectedIndex( selectedIndex:int ):void { if( selectedIndex 0 || selectedIndex dataProvider.length ) { throw new Error( selectedIndex out of range ); return; } _selectedIndex = selectedIndex; dispatchEvent( new Event( changeSelectedIndex, false ) ); this.removeAllChildren(); this.addChild( dataProvider[_selectedIndex] ); } [Bindable] public function get selectedIndex():int { return _selectedIndex; } ]] /mx:Script /mx:Canvas --- This dataprovider is populated with custom components as well. When I change the selected index, it removes all the children (but they still exist in the dataprovider, so 'session' data should be saved), but when I navigate back to an index I have already visited, everything is still there, EXCEPT for the format of the text, it for some reason, is reset back to the original text, even though I have setTextFormat() and set the defaultTextFormat on the TextField. Any ideas?
RE: [flexcoders] Re: HTML IN FLEX
AIR includes a very complete HTML+JavaScript engine (WebKit), but this engine is much too large to include as part of the ordinary Flash Player. Flex 3 components such as mx:TextArea which have an htmlText property are based on the Player's flash.text.TextField class, which supports a small and nonstandard subset of HTML. See the htmlText property of TextField in the Language Reference for a list of what tags and attributes are support in htmlText markup. Adobe is developing a new Text Layout Framework (TLF) which works with the new Flash Text Engine (FTE) APIs in Player 10. (It will be used in Flex 4.) TLF will not support all of HTML, but it will be more capable than TextField's htmlText. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Monday, November 17, 2008 9:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: HTML IN FLEX --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, abhishekchess1 [EMAIL PROTECTED] wrote: hello frnd, i have a simple query , i'm storing text in string var like var coreData:String = 'img border=0 alt= style=width: 77px; height: 43px; src=chart.png /' + 'span style=font-weight: bold;Hi how are you/spanspan style=font-weight: bold;' + ' Welcome herebr /br /img border=0 alt= style=width: 76px; height: 43px; src=chart.png / ' + 'abhishek herebr //spanbr /span style=font-weight: bold;br /br //span'; var s:String; s =htmlhead/headbody; s +=coreData; s +=/body/html; myhtml.htmlText = s; it woring correctlly in AIr application like : mx:VBox width=100% height=100% mx:HTML width=100% height=100% id=myhtml/ /mx:VBox but when i used same in flex u can see it not working same like in air. Flex code: mx:VBox width=100% height=100% mx:TextArea id=myhtml textAlign=center width=100% height=100%/ /mx:VBox u can run and check code in flex and air, ui'' find difference. In AIr its showing right but not in flex. r u have any idea how to make work above example ? i come to know tht thr is problem with image displaying in textarea in flex ,is any other way anyone know? ths fntkality s onli afaliball n aIR
RE: [flexcoders] Re: Calling functions with optional parameters
This produces the compilation warning 1102: null used where a int value was expected. I'm surprised that it doesn't produce a compilation error, and I'll ask the AS3 folks about that. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Friday, November 14, 2008 5:38 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Calling functions with optional parameters If you pass a null value to an optional parameter, the function uses the default values defined in the declaration. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script![CDATA[ import mx.controls.Alert; import mx.core.Application; public var app:* = null; /** */ private function doTest():void { funcTest(null,null,bar); }// private function funcTest(param1:int=0, param2:int=1,param3:String='foo'):void { Alert.show(param1= + param1 + param2= + param2 + param3= + param3) }//funcTest ]]/mx:Script mx:Button label=test click=doTest() / /mx:Application Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Friday, November 14, 2008 5:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Calling functions with optional parameters --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: What if you explicitly passed null? theFunction(null,null,'bar'); The defaults aren't always null, and MPO is that the developer shouldn't need to know what the appropriate default is to make the default behavior. I feel like I'm really sure that I've seen places in the framework code where functions are called this way, but I'm not sure how to search in there to get verification. It would be really, really nice if the docs were detailed enough that I could get a good sense of whether I'm barking up the wrong tree (of course the docs are wrong or misleading a good percentage of the time, so detail is no guarantee) ;-). Thanks; Amy
RE: [flexcoders] Re: Calling functions with optional parameters
If you pass a null value to an optional parameter, the function uses the default values defined in the declaration. I don't think so. The output I get is param1=0 param2=0 param3=bar If it was using the default values, param2 would be 1, not 0. I think it is simply coercing null to 0. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Tuesday, November 18, 2008 1:15 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Calling functions with optional parameters This produces the compilation warning 1102: null used where a int value was expected. I'm surprised that it doesn't produce a compilation error, and I'll ask the AS3 folks about that. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Friday, November 14, 2008 5:38 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Calling functions with optional parameters If you pass a null value to an optional parameter, the function uses the default values defined in the declaration. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script![CDATA[ import mx.controls.Alert; import mx.core.Application; public var app:* = null; /** */ private function doTest():void { funcTest(null,null,bar); }// private function funcTest(param1:int=0, param2:int=1,param3:String='foo'):void { Alert.show(param1= + param1 + param2= + param2 + param3= + param3) }//funcTest ]]/mx:Script mx:Button label=test click=doTest() / /mx:Application Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Friday, November 14, 2008 5:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Calling functions with optional parameters --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: What if you explicitly passed null? theFunction(null,null,'bar'); The defaults aren't always null, and MPO is that the developer shouldn't need to know what the appropriate default is to make the default behavior. I feel like I'm really sure that I've seen places in the framework code where functions are called this way, but I'm not sure how to search in there to get verification. It would be really, really nice if the docs were detailed enough that I could get a good sense of whether I'm barking up the wrong tree (of course the docs are wrong or misleading a good percentage of the time, so detail is no guarantee) ;-). Thanks; Amy
[flexcoders] May I save BitmapAsset instance to database?
Hi, I create a BitmapAsset instance from image class and I want to save it to database and other people can see the image when he read out BitmapAsset instance from database. Do you think if it is possible? and how to save and read from database? Thanks Mark
RE: [flexcoders] Re: Calling functions with optional parameters
Huh, my turn for the Doh! Funny how often we see what we expect, rather than what is there. So, Amy, we have not solved your problem, and hopefully not caused you much inconvenience. I could have sworn I did this somehow. Maybe undefined? I'll have to try that. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Tuesday, November 18, 2008 4:25 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Calling functions with optional parameters If you pass a null value to an optional parameter, the function uses the default values defined in the declaration. I don't think so. The output I get is param1=0 param2=0 param3=bar If it was using the default values, param2 would be 1, not 0. I think it is simply coercing null to 0. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Tuesday, November 18, 2008 1:15 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Calling functions with optional parameters This produces the compilation warning 1102: null used where a int value was expected. I'm surprised that it doesn't produce a compilation error, and I'll ask the AS3 folks about that. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Friday, November 14, 2008 5:38 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Calling functions with optional parameters If you pass a null value to an optional parameter, the function uses the default values defined in the declaration. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute mx:Script![CDATA[ import mx.controls.Alert; import mx.core.Application; public var app:* = null; /** */ private function doTest():void { funcTest(null,null,bar); }// private function funcTest(param1:int=0, param2:int=1,param3:String='foo'):void { Alert.show(param1= + param1 + param2= + param2 + param3= + param3) }//funcTest ]]/mx:Script mx:Button label=test click=doTest() / /mx:Application Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Friday, November 14, 2008 5:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Calling functions with optional parameters --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: What if you explicitly passed null? theFunction(null,null,'bar'); The defaults aren't always null, and MPO is that the developer shouldn't need to know what the appropriate default is to make the default behavior. I feel like I'm really sure that I've seen places in the framework code where functions are called this way, but I'm not sure how to search in there to get verification. It would be really, really nice if the docs were detailed enough that I could get a good sense of whether I'm barking up the wrong tree (of course the docs are wrong or misleading a good percentage of the time, so detail is no guarantee) ;-). Thanks; Amy
[flexcoders] Re: Flex 2 charting license with Flex 3 sdk
--- In flexcoders@yahoogroups.com, schneiderjim [EMAIL PROTECTED] wrote: We purchased the Flex 2 charting license. Now, we have upgraded to the Flex 3 SDK. We haven't (yet) purchased Flex Builder 3 as we/I don't use Flex Builder very much. I do command line/ant builds and editing with my text editor du jour. However, since upgrading to the Flex 3 sdk, we are now getting the data visualization... watermark. Is there something I can do with my flex 2 license.properties to get this to work? In Flex 2, there was some command-line stuff with charting-source.jar that I needed to do. Or, do I need to purchase/upgrade to Flex Builder 3 (Pro)? If the latter is the case, I think I read that I can just put the license in the flex-config.xml file. Is this true? This may help http://blogs.adobe.com/flexdoc/2008/04/extracting_data_visualization.htm l
[flexcoders] Filtering data using HTTP
Hi Guys I am getting data in list box. I am using HTTP Service for getting all the entries and I filtered my list with the entries having the node named as 'pool'. My question is how would i get all the entries in the list except the entries with the pool in the list. Basically i have all the data and the list having the data with id as 'pool', All i need is all the entries from my data without id 'pool'. Below is my code for getting entries for the pool name. Please let me know if anyone has any idea. Thanks Anuj /*Code*/ mx:HTTPService id=devicesXML method=GET resultFormat=e4x url=http://10.50.5.47:8182/config/devices; result=devicesXMLHandler(event) showBusyCursor=true private function devicesXMLHandler(event:ResultEvent):void { devicesList = event.result.device; devicesCollection = new XMLListCollection(devicesList); //Checks every device for each (var devicesInPool:* in devicesList) { var deviceName:String = [EMAIL PROTECTED]; devicesInList.push(deviceName); var devicesText:XMLList = devicesInPool.child(attributes).child(attribute); //Checks every attribute tag for each device for each (var attributesInPool:* in devicesText) { //Checks if the attribute name is pool if([EMAIL PROTECTED] == 'pool') { //Sets a variable to equal the name of the pool var poolnameText:String = attributesInPool.toString(); //Checks if the pool name matches devices in the current pool if(poolnameText == poolsCollection.attributes().toString()) { cameraPoolList.push(deviceName); } } } }
Re: [flexcoders] Re: Creating a Chart With 50,000 Data Points
I'd look into some intermediary code to reduce your dataset, written in something with threads (my first choice would be Java, but that's me). It sounds like you're working on some interesting stuff Mark :) -Josh On Wed, Nov 19, 2008 at 6:15 AM, Mark Easton [EMAIL PROTECTED] wrote: Thanks Brendan, We are charting observations from a range of sensors and contact inputs. The contact inputs are a special case as they can only have 1 or 0 values. But the sensors include temperature, current, voltage, light, humidity, vibration, motion, gps velocity, gps location, wind speed, wind direction etc. The client does like the the charting features so he wants all of the flex charting cool stuff as well as the ability to see these charts. But that does not mean that I cant look at a combination of approaches. Its a good idea to look at coding a custom chart, and one I will look at closely. Yes I was thinking along the lines of having 2000 plot points. So in the case of a 3 month graph I would start with 120,000 points and need to reduce that to 2000. Cheers, Mark -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Brendan Meutzner *Sent:* Wednesday, November 19, 2008 8:51 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Creating a Chart With 50,000 Data Points What kind of charts are you displaying? I've had amazing success with scrapping the charting framework all together and simply drawing the chart programmatically. Yes, it's a bit more work, and yes it's only feasible if you don't really need a lot of the charting features that come in the framework. However, the performance difference is huge. The project I applied this on was for financial stock data, and using a custom drawn chart I mention above, along with the concept someone else mentioned by only showing the n-th datapoint interval depending on the overall range being displayed worked quite well. You're able to keep a consistent number of plot points (I've found 500-750 performs best) no matter what the overall range of data you're displaying. I say 500-750 performs best as I also had a horizontal axis slider which allowed for constantly updating data in the chart. Brendan On Tue, Nov 18, 2008 at 1:27 PM, jim.abbott45 [EMAIL PROTECTED]wrote: 50,000? LOL. ;-) On a more serious note, I have to agree with Fotis and Ricky that 50K data points is too many, both from a (Flash 9 VM at least) performance perspective and probably also from an Information Visualization perspective (unless, maybe, your users have 300 dpi monitors). There are several standard interaction design and information visualization techniques which may be useful to you . . . 1) Aggregation (as already suggested, take 'N' data points, average them, and then only display the average value). 2) Filtering (by sliders on an axis, by date/time, by structured or open-ended queries, ...) 3) Progressive rendering (sample the entire data set at intervals of 'N', render those points, then go back and get the data which is mid-point between the original points, add the new points to the curve, repeat until desired resolution obtained--or on user demand) 4) Non-linear zooming (like idea 1), but allow user to zoom in on a section of the curve, when they do, add the additional data points to the curve for the zoomed-in region) On a more pragmatic note, you certainly _can_ plot more than 2,000 points. For example, I've personally used Flex to create charts with over 14,000 points in them, so I know that at least that number is definitely *possible*. However, the overall rendering time was (as I recall) over 3 minutes long. More troubling was the fact that the entire Flex UI become very sluggish once a chart that large was displayed. I've seen good chart rendering speed ( ~= 2S ) and no UI sluggishness, up to about 1500 points. I've also been able to render up to 6,000 points, but it took about 10S for the rendering and the UI started to become sluggish. From your posting, it sounds like you're not seeing those rendering speeds. I'd recommend that you experiment with how you are using the charting objects/API. My experience was that I was able to see some very noticeable speed-ups simply be optimizing how I called the charting API (especially w.r.t. how I loaded the series data). In particular, if your charts are interactive, try to cache anything you can that doesn't necessarily change during an interaction (i.e., axis objects). Last thought: the new Flash 10 VM (Astro) has support for larger bitmaps and also can now do hardware-based rendering, apparently. I haven't tried either of those features myself, but using the v10 VM _might_ be another way to get a performance boost, etc. Good luck! Jim --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Mark Easton [EMAIL PROTECTED] wrote: Hi, It appears
Re: [flexcoders] How to click off a panel
*slaps head* On Wed, Nov 19, 2008 at 2:31 AM, Alex Harui [EMAIL PROTECTED] wrote: You should be able to get a scroll event from the container and move the popup accordingly. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *sony antony *Sent:* Monday, November 17, 2008 9:40 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] How to click off a panel Hi Alex, Thanks for reply and I hope this time I could explain it well.. :) the dialogue window pops up at a particular position in the page, and when I scroll down the page(when I come to the bottom of the page) the popup also comes along. But what I want is the popup should go up with the main page.. For example this pop up generates at a text input and I need the pop up to stick to that text input i.e where it was generated originally. Instead now it gets detached from the text input and moves down with the page when scroll down Sony --- On Tue, 18/11/08, Alex Harui [EMAIL PROTECTED] aharui%40adobe.com wrote: From: Alex Harui [EMAIL PROTECTED] aharui%40adobe.com Subject: RE: [flexcoders] How to click off a panel To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Date: Tuesday, 18 November, 2008, 12:09 AM I don't think I understand what is scrolling. From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of sony antony Sent: Sunday, November 16, 2008 10:46 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] How to click off a panel Hi.. I want to make a panel invisible when on mouse click outside. I have tried using Popup manager and mousedownOutside event. But would like to know whether there is any other way to do the same. The problem was When use the popup the window scrolls down with the page, but i need the window to stick to it parent component. Thanks and Regards, Sony Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/ Be the first one to try the new Messenger 9 Beta! Go to http://in.messenger.yahoo.com/win/ -- 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/ :: http://twitter.com/sophistifunk
[flexcoders] Re: May I save BitmapAsset instance to database?
Your question is a bit vague, but I'll try and be of some help. You can use the ImageSnapshot class to get the ByteArray the backs your image. Then you can store those bytes in a database and pull them up later. If you're building an AIR application and saving the image to a local database you'll want to read up on the SQL utilities available to you here: http://livedocs.adobe.com/flex/3/langref/localDatabaseSQLSupport.html If you're building a browser app you can pass the ByteArray to a webservices or a remote object that will store the image in a database. http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_4.html If you can be more specific about your problem, we can provide more help. --- In flexcoders@yahoogroups.com, markflex2007 [EMAIL PROTECTED] wrote: Hi, I create a BitmapAsset instance from image class and I want to save it to database and other people can see the image when he read out BitmapAsset instance from database. Do you think if it is possible? and how to save and read from database? Thanks Mark
Re: [flexcoders] Re: Creating a Chart With 50,000 Data Points
You can always try a Java Applet. But this suggestion might be off topic! On Wed, Nov 19, 2008 at 12:04 AM, Mark Easton [EMAIL PROTECTED]wrote: I'd be using C++. :) I already have a C++ application running on our gateway which deals with grabbing data from the stations. It then passes that to a parser utility I wrote so that would be a good place to reduce the dataset ready for a progressive display on a flex chart. Yep - a very interesting application! -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Josh McDonald *Sent:* Wednesday, November 19, 2008 11:34 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Creating a Chart With 50,000 Data Points I'd look into some intermediary code to reduce your dataset, written in something with threads (my first choice would be Java, but that's me). It sounds like you're working on some interesting stuff Mark :) -Josh On Wed, Nov 19, 2008 at 6:15 AM, Mark Easton [EMAIL PROTECTED]wrote: Thanks Brendan, We are charting observations from a range of sensors and contact inputs. The contact inputs are a special case as they can only have 1 or 0 values. But the sensors include temperature, current, voltage, light, humidity, vibration, motion, gps velocity, gps location, wind speed, wind direction etc. The client does like the the charting features so he wants all of the flex charting cool stuff as well as the ability to see these charts. But that does not mean that I cant look at a combination of approaches. Its a good idea to look at coding a custom chart, and one I will look at closely. Yes I was thinking along the lines of having 2000 plot points. So in the case of a 3 month graph I would start with 120,000 points and need to reduce that to 2000. Cheers, Mark -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Brendan Meutzner *Sent:* Wednesday, November 19, 2008 8:51 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Creating a Chart With 50,000 Data Points What kind of charts are you displaying? I've had amazing success with scrapping the charting framework all together and simply drawing the chart programmatically. Yes, it's a bit more work, and yes it's only feasible if you don't really need a lot of the charting features that come in the framework. However, the performance difference is huge. The project I applied this on was for financial stock data, and using a custom drawn chart I mention above, along with the concept someone else mentioned by only showing the n-th datapoint interval depending on the overall range being displayed worked quite well. You're able to keep a consistent number of plot points (I've found 500-750 performs best) no matter what the overall range of data you're displaying. I say 500-750 performs best as I also had a horizontal axis slider which allowed for constantly updating data in the chart. Brendan On Tue, Nov 18, 2008 at 1:27 PM, jim.abbott45 [EMAIL PROTECTED]wrote: 50,000? LOL. ;-) On a more serious note, I have to agree with Fotis and Ricky that 50K data points is too many, both from a (Flash 9 VM at least) performance perspective and probably also from an Information Visualization perspective (unless, maybe, your users have 300 dpi monitors). There are several standard interaction design and information visualization techniques which may be useful to you . . . 1) Aggregation (as already suggested, take 'N' data points, average them, and then only display the average value). 2) Filtering (by sliders on an axis, by date/time, by structured or open-ended queries, ...) 3) Progressive rendering (sample the entire data set at intervals of 'N', render those points, then go back and get the data which is mid-point between the original points, add the new points to the curve, repeat until desired resolution obtained--or on user demand) 4) Non-linear zooming (like idea 1), but allow user to zoom in on a section of the curve, when they do, add the additional data points to the curve for the zoomed-in region) On a more pragmatic note, you certainly _can_ plot more than 2,000 points. For example, I've personally used Flex to create charts with over 14,000 points in them, so I know that at least that number is definitely *possible*. However, the overall rendering time was (as I recall) over 3 minutes long. More troubling was the fact that the entire Flex UI become very sluggish once a chart that large was displayed. I've seen good chart rendering speed ( ~= 2S ) and no UI sluggishness, up to about 1500 points. I've also been able to render up to 6,000 points, but it took about 10S for the rendering and the UI started to become sluggish. From your posting, it sounds like you're not seeing those rendering speeds. I'd recommend that you experiment with how you are using the
RE: [flexcoders] Re: Creating a Chart With 50,000 Data Points
A little bit rusty on Java right now - did some J2ME last year but not much since. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Romain de Wolff Sent: Wednesday, November 19, 2008 12:06 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Creating a Chart With 50,000 Data Points You can always try a Java Applet. But this suggestion might be off topic! On Wed, Nov 19, 2008 at 12:04 AM, Mark Easton [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] co.nz wrote: I'd be using C++. :) I already have a C++ application running on our gateway which deals with grabbing data from the stations. It then passes that to a parser utility I wrote so that would be a good place to reduce the dataset ready for a progressive display on a flex chart. Yep - a very interesting application! _ From: [EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com [mailto:[EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com] On Behalf Of Josh McDonald Sent: Wednesday, November 19, 2008 11:34 AM To: [EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com Subject: Re: [flexcoders] Re: Creating a Chart With 50,000 Data Points I'd look into some intermediary code to reduce your dataset, written in something with threads (my first choice would be Java, but that's me). It sounds like you're working on some interesting stuff Mark :) -Josh On Wed, Nov 19, 2008 at 6:15 AM, Mark Easton [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] co.nz wrote: Thanks Brendan, We are charting observations from a range of sensors and contact inputs. The contact inputs are a special case as they can only have 1 or 0 values. But the sensors include temperature, current, voltage, light, humidity, vibration, motion, gps velocity, gps location, wind speed, wind direction etc. The client does like the the charting features so he wants all of the flex charting cool stuff as well as the ability to see these charts. But that does not mean that I cant look at a combination of approaches. Its a good idea to look at coding a custom chart, and one I will look at closely. Yes I was thinking along the lines of having 2000 plot points. So in the case of a 3 month graph I would start with 120,000 points and need to reduce that to 2000. Cheers, Mark _ From: [EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com [mailto:[EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com] On Behalf Of Brendan Meutzner Sent: Wednesday, November 19, 2008 8:51 AM To: [EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com Subject: Re: [flexcoders] Re: Creating a Chart With 50,000 Data Points What kind of charts are you displaying? I've had amazing success with scrapping the charting framework all together and simply drawing the chart programmatically. Yes, it's a bit more work, and yes it's only feasible if you don't really need a lot of the charting features that come in the framework. However, the performance difference is huge. The project I applied this on was for financial stock data, and using a custom drawn chart I mention above, along with the concept someone else mentioned by only showing the n-th datapoint interval depending on the overall range being displayed worked quite well. You're able to keep a consistent number of plot points (I've found 500-750 performs best) no matter what the overall range of data you're displaying. I say 500-750 performs best as I also had a horizontal axis slider which allowed for constantly updating data in the chart. Brendan On Tue, Nov 18, 2008 at 1:27 PM, jim.abbott45 jim.abbott45@ mailto:[EMAIL PROTECTED] yahoo.com wrote: 50,000? LOL. ;-) On a more serious note, I have to agree with Fotis and Ricky that 50K data points is too many, both from a (Flash 9 VM at least) performance perspective and probably also from an Information Visualization perspective (unless, maybe, your users have 300 dpi monitors). There are several standard interaction design and information visualization techniques which may be useful to you . . . 1) Aggregation (as already suggested, take 'N' data points, average them, and then only display the average value). 2) Filtering (by sliders on an axis, by date/time, by structured or open-ended queries, ...) 3) Progressive rendering (sample the entire data set at intervals of 'N', render those points, then go back and get the data which is mid-point between the original points, add the new points to the curve, repeat until desired resolution obtained--or on user demand) 4) Non-linear zooming (like idea 1), but allow user to zoom in on a section of the curve, when they do, add the additional data points to the curve for the zoomed-in region) On a more pragmatic note, you certainly _can_ plot more than 2,000 points. For example, I've personally used Flex to create charts with over 14,000 points in them, so I know that at least that number is definitely *possible*. However, the overall
RE: [flexcoders] Filtering data using HTTP
var xmlResult:XML = XML(event.result); devicesList = xmlResult.device.(attribute(id) != pool); trace(devicesList.toXMLString()); devicesCollection = new XMLListCollection(devicesList); Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anuj181 Sent: Tuesday, November 18, 2008 5:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Filtering data using HTTP Hi Guys I am getting data in list box. I am using HTTP Service for getting all the entries and I filtered my list with the entries having the node named as 'pool'. My question is how would i get all the entries in the list except the entries with the pool in the list. Basically i have all the data and the list having the data with id as 'pool', All i need is all the entries from my data without id 'pool'. Below is my code for getting entries for the pool name. Please let me know if anyone has any idea. Thanks Anuj /*Code*/ mx:HTTPService id=devicesXML method=GET resultFormat=e4x url=http://10.50.5.47:8182/config/devices http://10.50.5.47:8182/config/devices result=devicesXMLHandler(event) showBusyCursor=true private function devicesXMLHandler(event:ResultEvent):void { devicesList = event.result.device; devicesCollection = new XMLListCollection(devicesList); //Checks every device for each (var devicesInPool:* in devicesList) { var deviceName:String = [EMAIL PROTECTED]; devicesInList.push(deviceName); var devicesText:XMLList = devicesInPool.child(attributes).child(attribute); //Checks every attribute tag for each device for each (var attributesInPool:* in devicesText) { //Checks if the attribute name is pool if([EMAIL PROTECTED] == 'pool') { //Sets a variable to equal the name of the pool var poolnameText:String = attributesInPool.toString(); //Checks if the pool name matches devices in the current pool if(poolnameText == poolsCollection.attributes().toString()) { cameraPoolList.push(deviceName); } } } }
RE: [flexcoders] Re: Creating a Chart With 50,000 Data Points
I'd be using C++. :) I already have a C++ application running on our gateway which deals with grabbing data from the stations. It then passes that to a parser utility I wrote so that would be a good place to reduce the dataset ready for a progressive display on a flex chart. Yep - a very interesting application! _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Wednesday, November 19, 2008 11:34 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Creating a Chart With 50,000 Data Points I'd look into some intermediary code to reduce your dataset, written in something with threads (my first choice would be Java, but that's me). It sounds like you're working on some interesting stuff Mark :) -Josh On Wed, Nov 19, 2008 at 6:15 AM, Mark Easton [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] co.nz wrote: Thanks Brendan, We are charting observations from a range of sensors and contact inputs. The contact inputs are a special case as they can only have 1 or 0 values. But the sensors include temperature, current, voltage, light, humidity, vibration, motion, gps velocity, gps location, wind speed, wind direction etc. The client does like the the charting features so he wants all of the flex charting cool stuff as well as the ability to see these charts. But that does not mean that I cant look at a combination of approaches. Its a good idea to look at coding a custom chart, and one I will look at closely. Yes I was thinking along the lines of having 2000 plot points. So in the case of a 3 month graph I would start with 120,000 points and need to reduce that to 2000. Cheers, Mark _ From: [EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com [mailto:[EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com] On Behalf Of Brendan Meutzner Sent: Wednesday, November 19, 2008 8:51 AM To: [EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com Subject: Re: [flexcoders] Re: Creating a Chart With 50,000 Data Points What kind of charts are you displaying? I've had amazing success with scrapping the charting framework all together and simply drawing the chart programmatically. Yes, it's a bit more work, and yes it's only feasible if you don't really need a lot of the charting features that come in the framework. However, the performance difference is huge. The project I applied this on was for financial stock data, and using a custom drawn chart I mention above, along with the concept someone else mentioned by only showing the n-th datapoint interval depending on the overall range being displayed worked quite well. You're able to keep a consistent number of plot points (I've found 500-750 performs best) no matter what the overall range of data you're displaying. I say 500-750 performs best as I also had a horizontal axis slider which allowed for constantly updating data in the chart. Brendan On Tue, Nov 18, 2008 at 1:27 PM, jim.abbott45 jim.abbott45@ mailto:[EMAIL PROTECTED] yahoo.com wrote: 50,000? LOL. ;-) On a more serious note, I have to agree with Fotis and Ricky that 50K data points is too many, both from a (Flash 9 VM at least) performance perspective and probably also from an Information Visualization perspective (unless, maybe, your users have 300 dpi monitors). There are several standard interaction design and information visualization techniques which may be useful to you . . . 1) Aggregation (as already suggested, take 'N' data points, average them, and then only display the average value). 2) Filtering (by sliders on an axis, by date/time, by structured or open-ended queries, ...) 3) Progressive rendering (sample the entire data set at intervals of 'N', render those points, then go back and get the data which is mid-point between the original points, add the new points to the curve, repeat until desired resolution obtained--or on user demand) 4) Non-linear zooming (like idea 1), but allow user to zoom in on a section of the curve, when they do, add the additional data points to the curve for the zoomed-in region) On a more pragmatic note, you certainly _can_ plot more than 2,000 points. For example, I've personally used Flex to create charts with over 14,000 points in them, so I know that at least that number is definitely *possible*. However, the overall rendering time was (as I recall) over 3 minutes long. More troubling was the fact that the entire Flex UI become very sluggish once a chart that large was displayed. I've seen good chart rendering speed ( ~= 2S ) and no UI sluggishness, up to about 1500 points. I've also been able to render up to 6,000 points, but it took about 10S for the rendering and the UI started to become sluggish. From your posting, it sounds like you're not seeing those rendering speeds. I'd recommend that you experiment with how you are using the charting objects/API. My experience was that I was able to see some very noticeable speed-ups simply be
[flexcoders] Strange ADG error on deleting entire nodes at once...
All, I could really use some help in identifying where even to begin looking to figure out what's causing this problem. I have a ADG that is displaying a GroupingCollection. I have an application control bar that has a trash image. A user can drag a node from the ADG and drop it in the trash to delete the node and all it's children. When you initially get into the application and drag the first node of the tree to the trash, the delete fires correctly and without error. When you try to drag the (now) first node of the tree into the trash, I get the following error: TypeError: Error #1010: A term is undefined and has no properties. at mx.controls::AdvancedDataGridBaseEx/displayToAbsoluteColumnIndex()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:7166] at mx.controls::AdvancedDataGridBaseEx/commitEditedItemPosition()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4426] at mx.controls::AdvancedDataGridBaseEx/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:1807] at mx.controls::AdvancedDataGrid/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:5924] at mx.controls.listClasses::AdvancedListBase/validateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\listClasses\AdvancedListBase.as:3071] at mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:675] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403] This only errors when manipulating the second time you try to delete the first node. You can delete any of the other nodes, repeatedly, without error. I suspect there is some kind of out of index problem happening but the dump gives me no ideas on where to look. Anyone?! Thanks, Adrian
[flexcoders] Re: Flex 2 charting license with Flex 3 sdk
Maybe it should help, but I'm not sure. I don't really care about extracting the source code. Should I? Does this imply that I still need a Flex Builder 3 Pro license in order to use charting in my Flex 3 SDK app? Is my Flex 2 charting license rendered useless/invalid once I upgrade to the Flex 3 SDK? --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, schneiderjim jschneider@ wrote: We purchased the Flex 2 charting license. Now, we have upgraded to the Flex 3 SDK. We haven't (yet) purchased Flex Builder 3 as we/I don't use Flex Builder very much. I do command line/ant builds and editing with my text editor du jour. However, since upgrading to the Flex 3 sdk, we are now getting the data visualization... watermark. Is there something I can do with my flex 2 license.properties to get this to work? In Flex 2, there was some command-line stuff with charting-source.jar that I needed to do. Or, do I need to purchase/upgrade to Flex Builder 3 (Pro)? If the latter is the case, I think I read that I can just put the license in the flex-config.xml file. Is this true? This may help http://blogs.adobe.com/flexdoc/2008/04/extracting_data_visualization.htm l
Re: [flexcoders] Re: Creating a Chart With 50,000 Data Points
J2ME... My condolences ;-) On Wed, Nov 19, 2008 at 9:08 AM, Mark Easton [EMAIL PROTECTED] wrote: A little bit rusty on Java right now - did some J2ME last year but not much since. -- 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/ :: http://twitter.com/sophistifunk
Re: [flexcoders] Re: Flex 2 charting license with Flex 3 sdk
Flex 3 SDK will not respect the Flex 2 charting license. You will need to match up the Flex 3 SDK and FB Pro provided charts. Matt On 11/18/08 2:52 PM, schneiderjim [EMAIL PROTECTED] wrote: Maybe it should help, but I'm not sure. I don't really care about extracting the source code. Should I? Does this imply that I still need a Flex Builder 3 Pro license in order to use charting in my Flex 3 SDK app? Is my Flex 2 charting license rendered useless/invalid once I upgrade to the Flex 3 SDK? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , schneiderjim jschneider@ wrote: We purchased the Flex 2 charting license. Now, we have upgraded to the Flex 3 SDK. We haven't (yet) purchased Flex Builder 3 as we/I don't use Flex Builder very much. I do command line/ant builds and editing with my text editor du jour. However, since upgrading to the Flex 3 sdk, we are now getting the data visualization... watermark. Is there something I can do with my flex 2 license.properties to get this to work? In Flex 2, there was some command-line stuff with charting-source.jar that I needed to do. Or, do I need to purchase/upgrade to Flex Builder 3 (Pro)? If the latter is the case, I think I read that I can just put the license in the flex-config.xml file. Is this true? This may help http://blogs.adobe.com/flexdoc/2008/04/extracting_data_visualization.htm l
[flexcoders] FB 3.0.2 plug-in
Is there an Eclipse plug-in version of 3.0.2 ? Or do I install 3.0.1 and run the updater from within Eclipse? I'm doing a new Eclipse install starting with Ganymede and thought I'd upgrade FB at the same time.
[flexcoders] Re: Strange ADG error on deleting entire nodes at once...
What does your delete method look like? Try adding some IF statements to check for null or undefined values before you run the delete. If it's null or undefined, do a return. --- In flexcoders@yahoogroups.com, Adrian Williams [EMAIL PROTECTED] wrote: All, I could really use some help in identifying where even to begin looking to figure out what's causing this problem. I have a ADG that is displaying a GroupingCollection. I have an application control bar that has a trash image. A user can drag a node from the ADG and drop it in the trash to delete the node and all it's children. When you initially get into the application and drag the first node of the tree to the trash, the delete fires correctly and without error. When you try to drag the (now) first node of the tree into the trash, I get the following error: TypeError: Error #1010: A term is undefined and has no properties. at mx.controls::AdvancedDataGridBaseEx/displayToAbsoluteColumnIndex()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:7166] at mx.controls::AdvancedDataGridBaseEx/commitEditedItemPosition()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4426] at mx.controls::AdvancedDataGridBaseEx/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:1807] at mx.controls::AdvancedDataGrid/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:5924] at mx.controls.listClasses::AdvancedListBase/validateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\listClasses\AdvancedListBase.as:3071] at mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:675] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403] This only errors when manipulating the second time you try to delete the first node. You can delete any of the other nodes, repeatedly, without error. I suspect there is some kind of out of index problem happening but the dump gives me no ideas on where to look. Anyone?! Thanks, Adrian
[flexcoders] Is it this difficult to purchase Flex in south east asia?
Hi.. I'm sorry if this question goes a little bit out of topic. I live in Indonesia and would like to purchase Flex 3, so I contacted a local reseller/distributor (this distributor does listed in the Adobe's website). FYI, there's no Adobe representative here in Indonesia, Singapore is the nearest. Short story, I paid full for my purchase in 22 Sept, and they promised at least 2 (two) weeks of delivery time. But until now (so it's been almost 2 months), they were still unsure when they can deliver Flex. My last contact with them was last week (10 Nov) and they asked me to wait about 3 or 4 weeks more. I don't quite understand what's their problem and what cause the delay (they only said need more time to deliver) Can you imagine, 3 months to get a software that is suppose to be already released? I wanted a full refund and think of buying online, but they said my order were already processed through Adobe Singapore. Can anyone help me? should I wait again? -- / i w a n
[flexcoders] creating a class - question extending
Hi, I'm trying to create a class that extends the image class, I need to associate a username with the image, Here is what I have: package { import mx.controls.Image; public class imageWithData extends Image { private var _username:String; public function imageWithData() { super(); // _username = ??? } public function set username(value:String):void { _username = value; } public function get username():String { return _username; } } } I am unclear as to what goes after the 'super()' do I need a _username = something? thanks,
[flexcoders] Does Smart Serach like 'You tube' does possible in Flex ?
Hi Guys If you go to You tube and when you start typing stuff then you get suggestions for the related text you types. I have requirement something like this. I pulled the data in my list box and we have to make it search able like if user starts typing in the text box say 'Adobe..', the list containing the original data starts getting filtered with the entries starting with name 'Adobe' . if the user does not enter anything in the text box, he/she will receive the original list with the complete data. My question to you genius guys is that is it possible in Flex 3.0/AS 3.0 or should i go through some other language. I read somewhere that it can be done using AJAX but I like to achieve this functionality using Flex. Please let me know if this is doable , any help/links will also be appreciated. Thanks Anuj
[flexcoders] Help with Flex SDK Tutorial - What am I doing wrong?
Hi all - I hope I don't sound like too much of an idiot here... I am trying to run the Flex SDK tutorial at: http://livedocs.adobe.com/flex/3/html/help.html?content=SDKHelloWorld_1.html 1. I create HelloWorld.mxml and HelloWorld-app.xml (directly cutting and pasting from the tutorial page) 2. I successfully compile using amxmlc HelloWorld.mxml 3. I try to run adl HelloWorld-app.xml and I get error while loading initial content What am I doing wrong? Thanks in advance. Dave
[flexcoders] AIR Cairngorm Application Command Architecture
I have question about setting up an air application architecture using cairngorm commands. So the application has very complex calculations that have be done in steps and I am not sure the best way to lay them out in cairngorm. A general example is as follows: there are 5 different calculations which can be done. Each of these calculations involves multiple steps. Each step may have to lookup information in the local database. Some of the steps are reused from calculation to calculation. So I was thinking of each calculation being a command and then the steps would be helper classes that use delegates to get the information from local database. Any thoughts would be great. Thanks in advance.
RE: [flexcoders] JavaFX and Flex how do we compare?
I would be curious to find out how others view the platforms, especially from the standpoint of external application developers, but having been on the inside of both of these projects, here are some points of comparison. I'm attempting to be objective here and just point out some of the areas to consider. But since I used to work at Sun on Java/JavaFX and now work on the Flex team at Adobe you should filter appropriately. - Maturity: One of the reasons that you haven't heard much about JavaFX to date is that it's actually not yet released. Supposedly this will happen in the very near future, so maybe we'll all hear more about it at that time. - Language: Although many of the underlying capabilities of JavaFX rely on the Java SE platform, JavaFX itself is based on a new scripting language (not Java, not JavaScript, not ActionScript, but a new scripting language entirely). One notable differences between the languages of JavaFX and Flex is that Flex uses MXML for its declarative aspects, and ActionScript for the programmatic aspects. The JavaFX language combines both of these elements, having aspects of declarative and programmatic in the same code. - GUI capabilities: Both platforms offer GUI components, graphics, animation, and databinding capabilities, thought the platforms differ widely in syntax and capabilities of these different features. - Tooling: Most of the tooling so far announced for JavaFX are more on the code developer side; editing plugins for NetBeans, plus export plugins for Illustrator and Photoshop (they produce PNG files from the layers in the project). On the Flex side, there's the FlexBuilder IDE and the in-development tools such as Flash Catalyst for designer/developer workflows and FXG roundtrip import/export from/to the CS tools including Catalys for the graphics tags in the Gumbo release of the SDK. - Runtime availability: The availability of the JavaFX runtime is basically that of the Java platform (if a user's machine does not have the proper release of Java (I believe it will require the latest updated 10 release), they will need to download/install it). The availability of Flex is basically that of the Flash platform of the appropriate version (e.g., Gumbo will run on FlashPlayer 10). Chet. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hworke Sent: Tuesday, November 18, 2008 8:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] JavaFX and Flex how do we compare? Hi I just read the following news where I found that SUN is also coming up with their RIA technology and it says that it will take on AJAX and Silverlight. It will also have desktop runtime like AIR, I guess!!! SUN was also in MAX, San Francisco and there they also talked about it. Now I want to know how do we compare JavaFX and Flex? http://tech.yahoo.com/news/infoworld/20081118/tc_infoworld/117780 http://www.infoworld.com/article/07/05/07/javafx-javaone_1.html
[flexcoders] Re: Does Smart Serach like 'You tube' does possible in Flex ?
--- In flexcoders@yahoogroups.com, anuj181 [EMAIL PROTECTED] wrote: Hi Guys If you go to You tube and when you start typing stuff then you get suggestions for the related text you types. I have requirement something like this. I pulled the data in my list box and we have to make it search able like if user starts typing in the text box say 'Adobe..', the list containing the original data starts getting filtered with the entries starting with name 'Adobe' . if the user does not enter anything in the text box, he/she will receive the original list with the complete data. My question to you genius guys is that is it possible in Flex 3.0/AS 3.0 or should i go through some other language. I read somewhere that it can be done using AJAX but I like to achieve this functionality using Flex. Please let me know if this is doable , any help/links will also be appreciated. Thanks Anuj Not sure if this is exactly what you are looking for but the autocomplete manager component in the yahoo library is pretty good at this behavior. http://developer.yahoo.com/flash/astra-flash/ Charlie
[flexcoders] Re: Custom ItemRenderer and DataGrid/DataTips - Renderer's Responsibility?
--- In flexcoders@yahoogroups.com, mmatczynski [EMAIL PROTECTED] wrote: Thanks for the reply! you can display it somehow, maybe by setting a tooltip somewhere - Getting the text isn't the problem, getting it to display is! :) I want the tooltip to display whenever someone mouses over the cell in the custom ItemRenderer's column (just like it works when I don't specify a custom ItemRenderer). Any idea how to accomplish this? Thanks! Mike Many classes have a ToolTip property you can set. For instance, UIComponent. You can even use the ClassFactory approach to specify a ToolTip function to use to make your itemRenderer more reusable. HTH; Amy
Re: [flexcoders] JavaFX and Flex how do we compare?
Thanks for that info Chet, you're definitely in a unique position to offer insight. Would I be right in saying that compared with FX Script (ie, without writing Java2D / Swing code), AS3, Degrafa/FXG and MXML provide a lot more power in terms of custom component and skin creation? This is the way it seems, but that could be completely the fault of Sun bungling their PR as usual ;-) I'm also interested in the differences and similarities between JFX's bindings and those supported in Flex if you can find the time to elaborate on the subject. Cheers, -Josh On Wed, Nov 19, 2008 at 7:15 AM, Chet Haase [EMAIL PROTECTED] wrote: I would be curious to find out how others view the platforms, especially from the standpoint of external application developers, but having been on the inside of both of these projects, here are some points of comparison. I'm attempting to be objective here and just point out some of the areas to consider. But since I used to work at Sun on Java/JavaFX and now work on the Flex team at Adobe you should filter appropriately. - Maturity: One of the reasons that you haven't heard much about JavaFX to date is that it's actually not yet released. Supposedly this will happen in the very near future, so maybe we'll all hear more about it at that time. - Language: Although many of the underlying capabilities of JavaFX rely on the Java SE platform, JavaFX itself is based on a new scripting language (not Java, not JavaScript, not ActionScript, but a new scripting language entirely). One notable differences between the languages of JavaFX and Flex is that Flex uses MXML for its declarative aspects, and ActionScript for the programmatic aspects. The JavaFX language combines both of these elements, having aspects of declarative and programmatic in the same code. - GUI capabilities: Both platforms offer GUI components, graphics, animation, and databinding capabilities, thought the platforms differ widely in syntax and capabilities of these different features. - Tooling: Most of the tooling so far announced for JavaFX are more on the code developer side; editing plugins for NetBeans, plus export plugins for Illustrator and Photoshop (they produce PNG files from the layers in the project). On the Flex side, there's the FlexBuilder IDE and the in-development tools such as Flash Catalyst for designer/developer workflows and FXG roundtrip import/export from/to the CS tools including Catalys for the graphics tags in the Gumbo release of the SDK. - Runtime availability: The availability of the JavaFX runtime is basically that of the Java platform (if a user's machine does not have the proper release of Java (I believe it will require the latest updated 10 release), they will need to download/install it). The availability of Flex is basically that of the Flash platform of the appropriate version (e.g., Gumbo will run on FlashPlayer 10). Chet. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *hworke *Sent:* Tuesday, November 18, 2008 8:19 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] JavaFX and Flex how do we compare? Hi I just read the following news where I found that SUN is also coming up with their RIA technology and it says that it will take on AJAX and Silverlight. It will also have desktop runtime like AIR, I guess!!! SUN was also in MAX, San Francisco and there they also talked about it. Now I want to know how do we compare JavaFX and Flex? http://tech.yahoo.com/news/infoworld/20081118/tc_infoworld/117780 http://www.infoworld.com/article/07/05/07/javafx-javaone_1.html -- 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/ :: http://twitter.com/sophistifunk
Re: [flexcoders] Re: Does Smart Serach like 'You tube' does possible in Flex ?
Hi Charlie Thanks for the link, it is good to know about that but unfortunately my company would not allow me to talk to yahoo services. If i can get hold of the complete code of how this service is generating this search, that would be great help to me. Also to make things little more clear, I need that the list will be updated as user starts type, so basically there is already list having entries and when user starts typing, the list should getting filtered. Hope I am clear, please let me know if you have more guidance in that direction. Thanks Anuj On Tue, Nov 18, 2008 at 5:21 PM, zwigby [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, anuj181 [EMAIL PROTECTED] wrote: Hi Guys If you go to You tube and when you start typing stuff then you get suggestions for the related text you types. I have requirement something like this. I pulled the data in my list box and we have to make it search able like if user starts typing in the text box say 'Adobe..', the list containing the original data starts getting filtered with the entries starting with name 'Adobe' . if the user does not enter anything in the text box, he/she will receive the original list with the complete data. My question to you genius guys is that is it possible in Flex 3.0/AS 3.0 or should i go through some other language. I read somewhere that it can be done using AJAX but I like to achieve this functionality using Flex. Please let me know if this is doable , any help/links will also be appreciated. Thanks Anuj Not sure if this is exactly what you are looking for but the autocomplete manager component in the yahoo library is pretty good at this behavior. http://developer.yahoo.com/flash/astra-flash/ Charlie
Re: [flexcoders] Re: Does Smart Serach like 'You tube' does possible in Flex ?
Also forgot to mention, there can be chance that my app will be used when the user cannot have access to internet (but can have access to intranet). Thanks Anuj On Tue, Nov 18, 2008 at 5:41 PM, anuj sharma [EMAIL PROTECTED] wrote: Hi Charlie Thanks for the link, it is good to know about that but unfortunately my company would not allow me to talk to yahoo services. If i can get hold of the complete code of how this service is generating this search, that would be great help to me. Also to make things little more clear, I need that the list will be updated as user starts type, so basically there is already list having entries and when user starts typing, the list should getting filtered. Hope I am clear, please let me know if you have more guidance in that direction. Thanks Anuj On Tue, Nov 18, 2008 at 5:21 PM, zwigby [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, anuj181 [EMAIL PROTECTED] wrote: Hi Guys If you go to You tube and when you start typing stuff then you get suggestions for the related text you types. I have requirement something like this. I pulled the data in my list box and we have to make it search able like if user starts typing in the text box say 'Adobe..', the list containing the original data starts getting filtered with the entries starting with name 'Adobe' . if the user does not enter anything in the text box, he/she will receive the original list with the complete data. My question to you genius guys is that is it possible in Flex 3.0/AS 3.0 or should i go through some other language. I read somewhere that it can be done using AJAX but I like to achieve this functionality using Flex. Please let me know if this is doable , any help/links will also be appreciated. Thanks Anuj Not sure if this is exactly what you are looking for but the autocomplete manager component in the yahoo library is pretty good at this behavior. http://developer.yahoo.com/flash/astra-flash/ Charlie
[flexcoders] Re: Does Smart Serach like 'You tube' does possible in Flex ?
--- In flexcoders@yahoogroups.com, zwigby [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, anuj181 anuj181@ wrote: Hi Guys If you go to You tube and when you start typing stuff then you get suggestions for the related text you types. I have requirement something like this. I pulled the data in my list box and we have to make it search able like if user starts typing in the text box say 'Adobe..', the list containing the original data starts getting filtered with the entries starting with name 'Adobe' . if the user does not enter anything in the text box, he/she will receive the original list with the complete data. My question to you genius guys is that is it possible in Flex 3.0/AS 3.0 or should i go through some other language. I read somewhere that it can be done using AJAX but I like to achieve this functionality using Flex. Please let me know if this is doable , any help/links will also be appreciated. Thanks Anuj Not sure if this is exactly what you are looking for but the autocomplete manager component in the yahoo library is pretty good at this behavior. http://developer.yahoo.com/flash/astra-flash/ Charlie Actually you probably want the flex components http://developer.yahoo.com/flash/astra-flex/. My apologies. Charlie
Re: [flexcoders] Re: Does Smart Serach like 'You tube' does possible in Flex ?
No Worries Charlie, That's really helpful. I imported SWC in my library and it is doing what it is supposed to do. I hope there are no licensing issue with using SWC files within my project andif i have all my data in the Dataprovider do you think this should be good to go for the search. And i am assuming after minor tweaks it can talk to external XML File and work within LAN. Please let me know. Many Many Thanks for your help. Anuj On Tue, Nov 18, 2008 at 5:39 PM, zwigby [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, zwigby [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, anuj181 anuj181@ wrote: Hi Guys If you go to You tube and when you start typing stuff then you get suggestions for the related text you types. I have requirement something like this. I pulled the data in my list box and we have to make it search able like if user starts typing in the text box say 'Adobe..', the list containing the original data starts getting filtered with the entries starting with name 'Adobe' . if the user does not enter anything in the text box, he/she will receive the original list with the complete data. My question to you genius guys is that is it possible in Flex 3.0/AS 3.0 or should i go through some other language. I read somewhere that it can be done using AJAX but I like to achieve this functionality using Flex. Please let me know if this is doable , any help/links will also be appreciated. Thanks Anuj Not sure if this is exactly what you are looking for but the autocomplete manager component in the yahoo library is pretty good at this behavior. http://developer.yahoo.com/flash/astra-flash/ Charlie Actually you probably want the flex components http://developer.yahoo.com/flash/astra-flex/. My apologies. Charlie
[flexcoders] Re: Does Smart Serach like 'You tube' does possible in Flex ?
--- In flexcoders@yahoogroups.com, anuj sharma [EMAIL PROTECTED] wrote: Hi Charlie Thanks for the link, it is good to know about that but unfortunately my company would not allow me to talk to yahoo services. If i can get hold of the complete code of how this service is generating this search, that would be great help to me. Also to make things little more clear, I need that the list will be updated as user starts type, so basically there is already list having entries and when user starts typing, the list should getting filtered. Hope I am clear, please let me know if you have more guidance in that direction. Thanks Anuj On Tue, Nov 18, 2008 at 5:21 PM, zwigby [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, anuj181 anuj181@ wrote: Hi Guys If you go to You tube and when you start typing stuff then you get suggestions for the related text you types. I have requirement something like this. I pulled the data in my list box and we have to make it search able like if user starts typing in the text box say 'Adobe..', the list containing the original data starts getting filtered with the entries starting with name 'Adobe' . if the user does not enter anything in the text box, he/she will receive the original list with the complete data. My question to you genius guys is that is it possible in Flex 3.0/AS 3.0 or should i go through some other language. I read somewhere that it can be done using AJAX but I like to achieve this functionality using Flex. Please let me know if this is doable , any help/links will also be appreciated. Thanks Anuj Not sure if this is exactly what you are looking for but the autocomplete manager component in the yahoo library is pretty good at this behavior. http://developer.yahoo.com/flash/astra-flash/ Charlie It is not a service but a component to use to create this autocomplete behavior. You simply use the yahoo component library swc in your Flex application. The manager will use whatever data you want it to. check out these examples for a better idea of how it works. http://developer.yahoo.com/flash/astra- flex/autocompletemanager/examples.html Charlie
Re: [flexcoders] Re: Does Smart Serach like 'You tube' does possible in Flex ?
It's covered by the BSD license, which is pretty generous... On 19/11/2008, at 1:03 PM, anuj sharma wrote: No Worries Charlie, That's really helpful. I imported SWC in my library and it is doing what it is supposed to do. I hope there are no licensing issue with using SWC files within my project andif i have all my data in the Dataprovider do you think this should be good to go for the search. And i am assuming after minor tweaks it can talk to external XML File and work within LAN. Please let me know. Many Many Thanks for your help. Anuj On Tue, Nov 18, 2008 at 5:39 PM, zwigby [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, zwigby [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, anuj181 anuj181@ wrote: Hi Guys If you go to You tube and when you start typing stuff then you get suggestions for the related text you types. I have requirement something like this. I pulled the data in my list box and we have to make it search able like if user starts typing in the text box say 'Adobe..', the list containing the original data starts getting filtered with the entries starting with name 'Adobe' . if the user does not enter anything in the text box, he/she will receive the original list with the complete data. My question to you genius guys is that is it possible in Flex 3.0/AS 3.0 or should i go through some other language. I read somewhere that it can be done using AJAX but I like to achieve this functionality using Flex. Please let me know if this is doable , any help/links will also be appreciated. Thanks Anuj Not sure if this is exactly what you are looking for but the autocomplete manager component in the yahoo library is pretty good at this behavior. http://developer.yahoo.com/flash/astra-flash/ Charlie Actually you probably want the flex components http://developer.yahoo.com/flash/astra-flex/ . My apologies. Charlie
[flexcoders] Re: creating a class - question extending
Image, like all UIComponents, has a zero argument constructor. Unless your imageWithData knows what its username is going to be without any outside info, it wouldn't make sense to do much of anything with the username in the constructor. If you're going to be instantiating your images in Actionscript you can just assign the username after the object is created. --- In flexcoders@yahoogroups.com, luvfotography [EMAIL PROTECTED] wrote: Hi, I'm trying to create a class that extends the image class, I need to associate a username with the image, Here is what I have: package { import mx.controls.Image; public class imageWithData extends Image { private var _username:String; public function imageWithData() { super(); // _username = ??? } public function set username(value:String):void { _username = value; } public function get username():String { return _username; } } } I am unclear as to what goes after the 'super()' do I need a _username = something? thanks,
RE: [flexcoders] Re: Custom ItemRenderer and DataGrid/DataTips - Renderer's Responsibility?
You should just be able to set the tooltip property. Again, see the code in DataGridItemRenderer.as or ListItemRenderer.as From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mmatczynski Sent: Tuesday, November 18, 2008 9:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Custom ItemRenderer and DataGrid/DataTips - Renderer's Responsibility? Thanks for the reply! you can display it somehow, maybe by setting a tooltip somewhere - Getting the text isn't the problem, getting it to display is! :) I want the tooltip to display whenever someone mouses over the cell in the custom ItemRenderer's column (just like it works when I don't specify a custom ItemRenderer). Any idea how to accomplish this? Thanks! Mike --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Implement IDropInLIstItemRenderer. The labelData will have a columnIndex where you can get the dataTipFunction and run it (see DataGridItemRenderer.as). Once you have the text, you can display it somehow, maybe by setting a tooltip somewhere From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of mmatczynski Sent: Monday, November 17, 2008 11:53 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Custom ItemRenderer and DataGrid/DataTips - Renderer's Responsibility? I have a DataGrid with a custom ItemRenderer written as an ActionScript class (that extends HBox). I want the DataGrid to display datatips for this column, but no datatips appear! I've found a few bugs filed about this, but apparently this works as designed: https://bugs.adobe.com/jira/browse/SDK-9822 Not a bug. It is the renderer's responsibility to deal with dataTipFunction. This is for performance reasons. So the question is... How does a custom ItemRenderer deal with the dataTipFunction to create / display the datatip? I know the ItemRenderer is responsible, so can someone give me an example of how to fulfill this responsibility? :) Thanks! Mike
RE: [flexcoders] Help with Flex SDK Tutorial - What am I doing wrong?
If you have FlexBuilder, create an AIR app and look at the -app.xml for the version. I'll bet the tutorial got stale and has an old version. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave April Sent: Tuesday, November 18, 2008 3:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Help with Flex SDK Tutorial - What am I doing wrong? Hi all - I hope I don't sound like too much of an idiot here... I am trying to run the Flex SDK tutorial at: http://livedocs.adobe.com/flex/3/html/help.html?content=SDKHelloWorld_1.html 1. I create HelloWorld.mxml and HelloWorld-app.xml (directly cutting and pasting from the tutorial page) 2. I successfully compile using amxmlc HelloWorld.mxml 3. I try to run adl HelloWorld-app.xml and I get error while loading initial content What am I doing wrong? Thanks in advance. Dave
[flexcoders] Re: How do they do that (Flex video)
No it's not OK ;) When a company has different file formats then it's really sad and unfortunate to have to rely on third party tools for conversion between those formats - if for no other reason then integration and overall better experience. My laymen understanding is that FLV is a streamable video format and like you said SWF is like an exe. Well actually it's more like Java byte code in that it is a stream of byte code that is only understandable by the Flash Player. If you look back through some of the responses or maybe they are on my other post, you will see that at least one person on this forum has suggested using SnagIt or some other screen capturing tools. No, indeed it is not OK if folks who are evidently at least dabbling with Flex and there they are suggesting third party screen capture tools. Not only is it not OK but it is quite sad that Adobe, who is smack deep in this space, has left even one developer thinking of resorting to such band aids. I for one am disgusted by it and only because they know the best how to play a SWF file and how to capture the video stream that comes out of it. Enough said on my part. P.S. However, your reply is not only OK but it's also much appreciated as well. --- In flexcoders@yahoogroups.com, Fotis Chatzinikos [EMAIL PROTECTED] wrote: flex and video are different things... Flex can play video easily, the same applies to Silverlight. Silverlight is not video , it can play video... Trying to convert an swf to flv is similar to converting an exe to flv ok?
[flexcoders] Error #1034: Type Coercion failed: cannot convert to Date w/ Datagrid
Hello all, I am trying to add a datefield to a datagrid using a itemEditor. I have seen that people are having this problem but I canot find a solution (That I understand). Has anyone ever had this problem and what did you do to solve it. Here is my code: mx:DataGrid id=CertDG width=528 height=60% editable=true mx:columns mx:DataGridColumn headerText=Name dataField=cert_name/ mx:DataGridColumn headerText=Issuer dataField=issuer/ mx:DataGridColumn headerText=Achieved dataField=date_achieved editorDataField=text mx:itemEditor mx:Component mx:DateField formatString=DD-MM-YY yearNavigationEnabled=truetoolTip=Format:DD-MM-YY/ /mx:Component /mx:itemEditor /mx:DataGridColumn /mx:columns /mx:DataGrid Thanks for the read, timgerr
[flexcoders] Re: How do they do that (Flex video) ?
have been more constructive by pointing me towards creation of FLV files which are uploadable onto YouTube. I did. I must have missed it in the rest of your non sense ;) Surely Adobe would not allow us to find ourselves in a situation that would require third party conversion utilities just to convert between Adobe SWF and FLV formats. If there are good free tools to do it, why should Adobe bother compeating unless it can make a killer advantage. Is integration and a resulting much, much better experience not enough of a reason? As a matter of fact, good part of what Adobe does so well is already done in pieces elsewhere. The reason why Adobe does it well is in great part due to nothing more than better integration and a resulting better experience. If Adobe wrote such a SWF to FLV converter then they could offer it to YouTube and other sites so that they could accept uploading of SWF files, on which they would then do PERFECT conversion into FLV or some other format. There is another thing Tom that you totally fail to recognize and that is the quite poor quality of most of the videos that are currently up on YouTube. A lot of quality is lost in the process of using various settings of frames per second and Kb or Mb per second, that may or may not match what YouTube uses and then one's video ends up going through yet another conversion, resulting in yet another decrease in quality. Giving YouTube a perfectly beautiful looking SWF presentation and letting them convert it to FLV with whatever settings suit them the best, would most likely result in the best possible video quality. When all is said and done Tom, be assured that most of the folks out there (most of them not being technical) can not tell nor figure out why ADOBE FLASH MOVIES look so bad on YouTube. Most of them know how to right click on one that they are watching and BINGO, we know what they see will UNFORTUNATELY in most cases cause them to erroneously think that FLASH IS CRAP FOR VIDEO. Surely they would do that, if for no other reason than to keep us off the slippery slope of even contemplating exploring what MS and Silverlight might be capable of and from calculating just how long it might take, either way, before MS ends up eating everyone's lunch. ;) If people want to go in the direction of spending more money, as opposed to less money, they should feel free to do so. We'll see them back again in a few years :-) Sorry Tom but since (with a statement like that) you seem to know very little about how Microsoft operates, I will explain it to you. Time is the only thing that is on Adobe's side. Eventually, Microsoft will end up eating everyone's lunch, at least on the desktop. It causes me a lot of pain to say just that but it is true. While they have a lot of catching up to do, within a couple of years they WILL catch up to Adobe - technically speaking. With another 2-3 years, they will catch up in the field as well - in terms of deployments. Tom, like it or not, there will not be anything that will be more beatiful then an end-to-end .NET code (C#, VB, take your pick) that stretches from the clients/devices and all the way through the servers and into the database itself (stored procedures). Unfortunately, they WILL end up eating everyone's lunch because of the beauty and a much, much better developer experience due to such an end-to-end integration. Just the type of lousy integration, a small piece of which I suggested earlier. P.S. You just happened to be the closest official one on my path of frustration. Please take my comments constructively and not at all personally, even though that might end up being hard to do, at least from a first reading. And thanks for replying.
RE: [flexcoders] Error #1034: Type Coercion failed: cannot convert to Date w/ Datagrid
editorDataField=selectedDate From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of timgerr Sent: Tuesday, November 18, 2008 9:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Error #1034: Type Coercion failed: cannot convert to Date w/ Datagrid Hello all, I am trying to add a datefield to a datagrid using a itemEditor. I have seen that people are having this problem but I canot find a solution (That I understand). Has anyone ever had this problem and what did you do to solve it. Here is my code: mx:DataGrid id=CertDG width=528 height=60% editable=true mx:columns mx:DataGridColumn headerText=Name dataField=cert_name/ mx:DataGridColumn headerText=Issuer dataField=issuer/ mx:DataGridColumn headerText=Achieved dataField=date_achieved editorDataField=text mx:itemEditor mx:Component mx:DateField formatString=DD-MM-YY yearNavigationEnabled=true toolTip=Format:DD-MM-YY/ /mx:Component /mx:itemEditor /mx:DataGridColumn /mx:columns /mx:DataGrid Thanks for the read, timgerr
[flexcoders] dataGrid effciency
hi everyone, i used dataGrid to display a list of real time data. when i finished it, i found it is slow. the DataGrid has 13 DataGridColumns, every column almost nest a ItemRenderer. i had to do this to meet the requirements of pattern. the data update every second, and i need to change the components’ style in some columns following the data. as i know these two aspects will cost large calculation. who konws how to optimize it or other ways to achieve. thanks
[flexcoders] Re: dataGrid effciency
Hi, The biggest performance culprits with a DataGrid, or any of the ListBase components, is the itemRenderers and the size of the dataProvider. You can optimize the itemRenderers by using UIComponent; see Alex's blog. And depending on how many items are in the dataProvider, you could see performance issues there as well. If you are performing any calculations you might look at ways to tighten up the code. With a one second refresh, you might be asking too much of the UI. -TH --- In flexcoders@yahoogroups.com, Fu Di [EMAIL PROTECTED] wrote: hi everyone, i used dataGrid to display a list of real time data. when i finished it, i found it is slow. the DataGrid has 13 DataGridColumns, every column almost nest a ItemRenderer. i had to do this to meet the requirements of pattern. the data update every second, and i need to change the components¢ style in some columns following the data. as i know these two aspects will cost large calculation. who konws how to optimize it or other ways to achieve. thanks
[flexcoders] example on how to use flex builder 2 with cf8 lcds for data push and management
hi guys could someone please guide me on how to use cf8 lcds in flex builder 2 to update a datagrid with data coming from a databse.
[flexcoders] cfeclipse plugin for flex builder
hi guys am having problems when i install the latest version of cfeclipse in flex builder i get an error . this is the error i get When I try to open a cfm/cfc file Unable to create this part due to an internal error. Reason for the failure: The editor class could not be instantiated. This usually indicates that the editor's class name was mistyped in plugin.xml.