[flexcoders] Automatically scroll down to component
Hi everyone, I am working on a dashboard in which in the base state some data (several indices with their data split by time) will be visible in a datagrid and the user can switch the state to the one in which for every index, there will be charts one below the other. I want to implement an itemClick event such that on clicking on any index in the datagrid, the state switched to the charts state and the chart corresponding to the clicked index is shown on the screen. That is, in case I clicked on the 10th index (such that the 10th chart would have been hidden in the charts view and user would have to scroll to it) in the datagrid, automatically, the state would switch and the page would have automatically scrolled down to show the 10th chart. I tried setFocus() method of UIComponent class but it did not help. (Note that the charts are the same custom component each having a different dataProvider). Please let me know how I can implement this. Thanks. Gaurav -- View this message in context: http://www.nabble.com/Automatically-scroll-down-to-component-tp23312982p23312982.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Start Column Chart Y-axis from non-zero value
Hi everyone, I was making a stacked column chart (in which a user can see the data between a 'Start Date' and an 'End Date' using a date field) in which the bottom part would show a cumulative data till that day while the top part would show the data for that day. No matter what the start date is, there will always be some cumulative data even for the first day, which is the start date (as the service for which the data is being displayed has been there for years). Since that number is very huge compared to 1 day's data, is there any way I can set the y-axis to start at a non-zero number (which would be cumulative data till the start date)? A test sample that I was working on, using basic column chart without stacking is pasted below. I would like to start the y-axis from 5 as val will always be greater than 5 (hypothetical situation) ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] public static var imageTypeQuarterly:ArrayCollection = new ArrayCollection( [ { XVal: Q1, val: 52346}, { XVal: Q2, val: 63476}, { XVal: Q3, val: 68980} ]); ]] /mx:Script mx:ColumnChart x=169 y=42 id=columnchart1 dataProvider={imageTypeQuarterly} mx:series mx:ColumnSeries displayName=Series 1 yField=val / /mx:series /mx:ColumnChart mx:Legend dataProvider={columnchart1}/ /mx:Application Thanks in advance for all the help. Gaurav -- View this message in context: http://www.nabble.com/Start-Column-Chart-Y-axis-from-non-zero-value-tp22727634p22727634.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] open new browser in maximized state
Hi everyone, Can anyone let me know if it is possible using Flex / AS to open a new browser (using navigateToURL(arg1,_blank)) with the new browser in maximized state? On my system, it always opens at a smaller size and does not create a good user experience. Thanks. Gaurav -- View this message in context: http://www.nabble.com/open-new-browser-in-maximized-state-tp22044344p22044344.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] Flex and asSQL - Crossdomain issue?
Hi everyone, My problem got solved. Thanks a lot for pointing me in the right direction. For all newbies lime me, I think I should document how this thing worked. The link that contains all the details for Flash Player 10 is: http://code.google.com/p/assql/wiki/SecurityInformation http://code.google.com/p/assql/wiki/SecurityInformation I just modified the java Servlet according to my needs, one of them being making it auto-load. For this I edited / mapped it in web.xml such that it auto-loads every time we start tomcat. Also I placed the flashpolicy.xml file at my tomcat root and changed the Java code accordingly. And that's it. No Sandbox exceptions after that. Regards, Gaurav Tracy Spratt wrote: The crossdomain file goes in the root of the server serving the *data*. So if you go to a browser and type in: http://gauravt-xp:3306 http://gauravt-xp:3306/ /crossdomain.xml, you should see your crossdomain file in the browser. If you are using WebService protocol, there are other settings that might be needed, particularly if you use headings. These entries may be needed in the crossdomain file: allow-http-request-headers-from domain=* headers=* / site-control permitted-cross-domain-policies=master-only/ Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of GeeTee Sent: Tuesday, January 27, 2009 2:22 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex and asSQL - Crossdomain issue? The cross domain works differently with player 9 and player 10. I am using Flash Player 10 plugin. The error dialog that shows up says Error #2044: Unhandled ioError:. text=Error #2048: Security sandbox violation: http://gauravt-xp:8080/MonitoringCompleteResults/OLS_Monitoring_Complete Results.swf http://gauravt-xp:8080/MonitoringCompleteResults/OLS_Monitoring_Complet eResults.swf cannot load data from gauravt-xp:3306. you could try http://gauravt-xp:8080/crossdomain.xml http://gauravt-xp:8080/crossdomain.xml but I'm not sure it will work. Well I am able to access the crossdomain.xml file in this way. It correctly shows up. In your cross domain add the 'all ports', if you are just 'testing' you can leave it wide open : cross-domain-policy allow-access-from domain=* to-ports=*/ /cross-domain-policy Even this did not help. I place this in the cross domain file in webapps/root folder of tomcat. Thanks to both of you for the quick response. Gaurav ilikeflex wrote: Make sure which player you are using? The cross domain works differently with player 9 and player 10. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Grant Davies gr...@... wrote: I would suspect the same, add a crossdomain in the root of your site (or you can use a policy element to put it somewhere else but more fiddly) In your cross domain add the 'all ports', if you are just 'testing' you can leave it wide open : cross-domain-policy allow-access-from domain=* to-ports=*/ /cross-domain-policy It should be accessible via http://gauravt-xp/crossdomain.xml http://gauravt-xp/crossdomain.xml you could try http://gauravt-xp:8080/crossdomain.xml http://gauravt-xp:8080/crossdomain.xml but I'm not sure it will work. I'm pretty sure flash requests the crossdomain file on port 80 (maybe override-able by a policy file), but my sites all run on port 80 so not messed with it in a while. A good way to see whats going on is using the Charles httpd debugging proxy to monitor the traffic and see if it request a cross domain xml file, if it does and your applications fails right after that then you can be sure it's a silent failure due to the policy file. Cheers Grant ... b l u e t u b e i n t e r a c t i v e. .: Development solutions for creatives :. .: grant davies .: 404.428.6839 (c) .: 404.921.9550 (F) gr...@... http://www.bluetubeinteractive.com http://www.bluetubeinteractive.com From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of GeeTee Sent: Tuesday, January 27, 2009 1:55 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Flex and asSQL - Crossdomain issue? Hi everyone, Yesterday I developed my first flex 3 app and placed the Release build in the webapps folder of tomcat (5.5.26). The application is quite simple and just needs to populate the datagrid with the data in MySQL (which is on the same machine on port 3306). I have used asSQL to communicate. When run from flex builder, I get the app to work perfectly. But on accessing
[flexcoders] Flex and asSQL - Crossdomain issue?
Hi everyone, Yesterday I developed my first flex 3 app and placed the Release build in the webapps folder of tomcat (5.5.26). The application is quite simple and just needs to populate the datagrid with the data in MySQL (which is on the same machine on port 3306). I have used asSQL to communicate. When run from flex builder, I get the app to work perfectly. But on accessing the URL http://gauravt-xp:8080/MyAppsName/MyHTML.html;, I get a blank datagrid. My suspicion is that this is related to crossdomain.xml file. Am I right with this? If yes where should I place it? I searched on the forum and could not find a definitive answer. The crossdomain file that I have created looks like: ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=gauravt-xp to-ports=8080,3306 / /cross-domain-policy I tried placing it in the webapps and webapps/ROOT folder of tomcat but data was not populated. Thanks in advance for the help. Gaurav -- View this message in context: http://www.nabble.com/Flex-and-asSQL---Crossdomain-issue--tp21691913p21691913.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Flex and asSQL - Crossdomain issue?
The cross domain works differently with player 9 and player 10. I am using Flash Player 10 plugin. The error dialog that shows up says Error #2044: Unhandled ioError:. text=Error #2048: Security sandbox violation: http://gauravt-xp:8080/MonitoringCompleteResults/OLS_Monitoring_CompleteResults.swf cannot load data from gauravt-xp:3306. you could try http://gauravt-xp:8080/crossdomain.xml but I'm not sure it will work. Well I am able to access the crossdomain.xml file in this way. It correctly shows up. In your cross domain add the 'all ports', if you are just 'testing' you can leave it wide open : cross-domain-policy allow-access-from domain=* to-ports=*/ /cross-domain-policy Even this did not help. I place this in the cross domain file in webapps/root folder of tomcat. Thanks to both of you for the quick response. Gaurav ilikeflex wrote: Make sure which player you are using? The cross domain works differently with player 9 and player 10. --- In flexcoders@yahoogroups.com, Grant Davies gr...@... wrote: I would suspect the same, add a crossdomain in the root of your site (or you can use a policy element to put it somewhere else but more fiddly) In your cross domain add the 'all ports', if you are just 'testing' you can leave it wide open : cross-domain-policy allow-access-from domain=* to-ports=*/ /cross-domain-policy It should be accessible via http://gauravt-xp/crossdomain.xml you could try http://gauravt-xp:8080/crossdomain.xml but I'm not sure it will work. I'm pretty sure flash requests the crossdomain file on port 80 (maybe override-able by a policy file), but my sites all run on port 80 so not messed with it in a while. A good way to see whats going on is using the Charles httpd debugging proxy to monitor the traffic and see if it request a cross domain xml file, if it does and your applications fails right after that then you can be sure it's a silent failure due to the policy file. Cheers Grant ... b l u e t u b e i n t e r a c t i v e. .: Development solutions for creatives :. .: grant davies .: 404.428.6839 (c) .: 404.921.9550 (F) gr...@... http://www.bluetubeinteractive.com From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of GeeTee Sent: Tuesday, January 27, 2009 1:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex and asSQL - Crossdomain issue? Hi everyone, Yesterday I developed my first flex 3 app and placed the Release build in the webapps folder of tomcat (5.5.26). The application is quite simple and just needs to populate the datagrid with the data in MySQL (which is on the same machine on port 3306). I have used asSQL to communicate. When run from flex builder, I get the app to work perfectly. But on accessing the URL http://gauravt-xp:8080/MyAppsName/MyHTML.html;, I get a blank datagrid. My suspicion is that this is related to crossdomain.xml file. Am I right with this? If yes where should I place it? I searched on the forum and could not find a definitive answer. The crossdomain file that I have created looks like: ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=gauravt-xp to-ports=8080,3306 / /cross-domain-policy I tried placing it in the webapps and webapps/ROOT folder of tomcat but data was not populated. Thanks in advance for the help. Gaurav -- View this message in context: http://www.nabble.com/Flex-and-asSQL---Crossdomain-issue-- tp21691913p216 91913.html Sent from the FlexCoders mailing list archive at Nabble.com. No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.10.13/1912 - Release Date: 1/27/2009 7:26 AM -- View this message in context: http://www.nabble.com/Flex-and-asSQL---Crossdomain-issue--tp21691913p21692447.html Sent from the FlexCoders mailing list archive at Nabble.com.