Re: [flexcoders] - FLVPlayback FullScreen Mode
Hi, I think , *scaleMode=maintainAspectRatio* is affecting the video to get scaled. 2009/7/16 Eduardo Dias eduardod...@gmail.com Hi Everyone, I'm using the FLVPlayback in one of my projects and i'm having problems when it enter in fullscreen mode. The problem is the video player don't fill the whole screen on width, just in height. Have you guys passed through of similar situation? video:FLVPlayback id=flvPlayback source=http://www.helpexamples.com/flash/video/caption_video.flv; scaleMode=maintainAspectRatio align=center skinAutoHide=true skinScaleMaximum=1.5 autoLayout=autoLayoutHandler(event) / Any help is welcome
Re: [flexcoders] - FLVPlayback FullScreen Mode
Hi, This parameter just accept three possible values: maintainAspectRatio, noScale, exactFit. Neither of them fix the problem On Thu, Jul 16, 2009 at 4:09 PM, p...@vin Uttarwar pravinuttar...@gmail.comwrote: Hi, I think , *scaleMode=maintainAspectRatio* is affecting the video to get scaled. 2009/7/16 Eduardo Dias eduardod...@gmail.com Hi Everyone, I'm using the FLVPlayback in one of my projects and i'm having problems when it enter in fullscreen mode. The problem is the video player don't fill the whole screen on width, just in height. Have you guys passed through of similar situation? video:FLVPlayback id=flvPlayback source=http://www.helpexamples.com/flash/video/caption_video.flv scaleMode=maintainAspectRatio align=center skinAutoHide=true skinScaleMaximum=1.5 autoLayout=autoLayoutHandler(event) / Any help is welcome
Re: [flexcoders] Re: Eclipse WTP and FlexBuilder 3
Hi. Eclipse 3.4+ (even Eclipse 3.5) can work with Flex Builder 3. You just have to patch some jars in the plugins directory of Eclipse: http://www.tekool.net/blog/2008/06/28/flex-builder-3-plugin-dont-work-with-eclipse-34/ I use Eclipse 3.4.1 + WST 3.0.2 + Flex builder 3 on Linux/Windows. 2009/7/16 simonjpalmer simonjpal...@yahoo.com Thanks, that's great, just started a download. As a matter of interest do you tend to get the all-in-one or the WTP or WST packages? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Muzak p.ginnebe...@... wrote: You'll need to install a version that works with Eclipse 3.3.1 (if you have the latest FB 3 standalone) According to this page: http://archive.eclipse.org/webtools/downloads/index.php The requirements for each WTP version are mentioned at the top of each page. The version that works with Eclipse 3.3.1 is this one: R-2.0.1-20070926042742 http://archive.eclipse.org/webtools/downloads/drops/R2.0/R-2.0.1-20070926042742/ To find out what version of Eclipse you're using, in FB3, go: Help Product Details Click on the Eclipse icon at the bottom to see the version details. regards, Muzak - Original Message - From: simonjpalmer simonjpal...@... To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Sent: Wednesday, July 15, 2009 10:57 PM Subject: [flexcoders] Re: Eclipse WTP and FlexBuilder 3 I added WTP via the download manager in Flexbuilder according to http://download.eclipse.org/webtools/updates/ however when it finishes I do not get any additional perspectives and I had an Eclipse error box with Java Null Pointer Exception messages in them. The install log says everything installed fine but basically I have none of the additional tools showing up. What version of WTP did you use? I am suspecting that the version under the link above may be too recent for the FlexBuilder I have.
[flexcoders] Re: Flex logging
Hi, I setup something by the manual but practical problem occured :( 1) this is in my mm.cfg file: ErrorReportingEnable=1 TraceOutputFileEnable=1 MaxWarnings =0 TraceOutputFileName=c:/flashlog.txt Problem here is, Each log is still writing in c:/documents/user/appdata/macromedia/flashlog.txt, and not where I specified location, how to fix this? Another problem is, when I start application log start writing but overwrite old log and I don't want to do that, can I disable overwriting? 2) This file mm.cfg always must be edited, can I somehow add some XML document to my project to change log config from there, becouse when I put application on client, I cant tell him to go c:/blabla to help me solve my problem :) ? Thanks --- In flexcoders@yahoogroups.com, Julien Nicoulaud primo...@... wrote: Flex provides a real logging API, spare you some efforts :) http://livedocs.adobe.com/flex/3/html/help.html?content=logging_09.html 2009/7/14 valdhor valdhorli...@... Shared Objects? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, vladakg85 vladakg85@ wrote: Hi, I need to setup my flex application to save log information in some *.txt file, but I don't know how to setup this. Help me :(
[flexcoders] Re: Drag n Drop from one Flex application to another Flex application.
Hi Julien, Thanks for the reply. --- In flexcoders@yahoogroups.com, Julien Nicoulaud primo...@... wrote: I guess it is not possible, because between the two applications you should have access to the system drag and drop manager. By the way, you can do it in an air application. (by the way, hi everyone, i'm new :) 2009/7/13 avibhujade avibhuj...@... Hi, I have two flex applications and I want to drag n drop display objects for one application to another application. Is this possible? if yes please provide some pointers. Thanks, Avi
[flexcoders] Drag n Drop from desktop to Flex application
Hi Flex Coders, I have a file placed on the desktop. I have to drag n drop it on the flex application and recognize the file name path in the flex application. I also have to upload a file to the server by dragging it form the desktop and dropping it on the flex application. Is this possible in Flex? if yes, please guide me. Thanks in anticipation. Avi
Re: [flexcoders] Who else is here - SharedObjects?
On Friday 10 Jul 2009, Wally Kolcz wrote: research, it doesn't seem that is the way it works. Is there a way for a Flex/LCDS application to 'see' who all is on or logged in to be able to create a list of people. Similar to a traditional chat room setting? Just have your server code keep track and report it as needed ? -- Helping to heterogeneously disintermediate edge-of-your-seat supply-chains as part of the IT team of the year, '09 and '08 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 together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. 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.
Re: [flexcoders] AMF, IE, and a non-trusted certificate
On Friday 10 Jul 2009, jer_ela wrote: calls still fail, and when you come back in an new session, IE still complains about the certificate. This suggests the cert. is not being correctly installed, or something in Group Policy (etc) is nuking it. -- Helping to competently grow schemas as part of the IT team of the year, '09 and '08 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 together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. 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] Timeline actionscript in embedded MovieClips
An easy one i hope I am embedding a movie clip within a flex Image component. mx:Image source=@Embed(source='/swf/assets.swf', symbol='symbolWithTimeline')/ My symbolWithTimeline is a movie clip that has a stop(); in the actions of its first frame. However when loaded into my flex app flashplayer does not take any notice of this command and the MovieClip just loops infinitely. I realize that i can control the playhead of the MovieClip using the content property of Image however can i not code actions into my embedded MovieClips?
[flexcoders] Re: Yet Another ItemRenderer Question
This problem is generally to do with the fact that item renderers are re-used. Have you checked out the item renderer stuff on Alex Harui's blog? (http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html) If you post your item renderer code, perhaps we can point you in the right direction. --- In flexcoders@yahoogroups.com, grenma gre...@... wrote: I have a TileList with a custom ItemRenderer that misbehaves when it scrolls: one tile (the last tile rendered when viewed initially) stays fixed in place as a ghost image (it is not clickable like the other tiles) and sits over the other scrolled items. The spot the ghost tile should be in is vacant until it scrolls off the screen and then scrolls back into view. If you scroll up just one row then back down again the TileList works properly (weird, I know). The Tilelist is added as the child of a Canvas on a state change and has a custom Itemrenderer with an image, text fields and a background image. The code is very simple: mx:TileList direction = horizontal width = 166 height = 345 columnCount = 2 dataProvider = {favoritesList} itemRenderer = com.clickety.fe.gui.renderers.Thumbnail backgroundAlpha = 0.0 borderStyle = none/ Any help is appreciated and will help save my hair and sanity.
[flexcoders] Re: Having problems iterating ResultSet returned to Flex via Blaze
I don't use Java or BlazeDS but when I get data from PHP via AMF, I usually send back an array of objects. On the Flex side I do this: datagridArrColl = new ArrayCollection(ArrayUtil.toArray(event.result)); myDatagrid.dataProvider = datagridArrColl; --- In flexcoders@yahoogroups.com, tim...@... tim...@... wrote: I'm currently returning a SQL ResultSet from my Java class via Blaze to Flex and I'm trying to figure out how to bind for example a datagrid directly to the ResultSet object in Flex or iterate through it and then bind to the result. If anybody could point me in the right direction I'd greatly appreciate it! Thx, Tim.
[flexcoders] Updating a CartesianDataCanvas whenever axis' range changes
I'm working on a CartesianDataCanvas for a timeline graph component. The canvas draws various annotations, such as month boundaries and weekend regions. Because my application loads data dynamically, I need the canvas to redraw itself whenever Flex re-calculates the range of the DateTimeAxis after some new data is added to the graph. What event can I listen for to detect this change? Thanks, Eugene
[flexcoders] ComboBox cell renderer is not working in a hierarchical datagrid [1 Attachment]
Hi Friends, I am trying to create a hierarchical AdvancedDataGrid with a column which is a ComboBox renderer. I used this renderer in other table which is not a hierarchical one and it works perfect. But in the hierarchical data grid, for some reason the combobox is not working. Attached is a screen shot of the panel (the last column is the one which has the combobox renderer). I also noticed that the grouping columns also not working in the hierarchical datagrid. Please let me know if you have any suggestions. Thanks a lot in advance. Patricia Han Here's the source code, [Bindable] private var hierarchicalTablData:Object = {chassis_card:Chassis-lab, Summary:true, children: new ArrayCollection([ {chassis_card: Card1, s_capacity:700MB, target:chs1/card1,children: new ArrayCollection([ {chassis_card: 100MBvNIC, Summary:true, cardType:1GB, s_capacity:100MB}, {chassis_card: 200MBvNIC, cardType:1GB, s_capacity:200MB}])}, {chassis_card:Card2, s_capacity:400MB,target:chs1/card1,Summary:false, children: new ArrayCollection([ {chassis_card:100MBvNIC, cardType:1GB, s_capacity:100MB, attributes:Read Only}, {chassis_card:500MBvNIC, Summary:true, cardType:1GB, s_capacity:500MB}])}, {chassis_card: Card3, s_capacity:800MB,target:chs1/card1,children: new ArrayCollection([ {chassis_card: 200MB, cardType:1GB, s_capacity:200MB}, {chassis_card: Card4, s_capacity:7GB,target:chs1/card1,children: new ArrayCollection([ {chassis_card: 1GBvNIC, cardType:10GB, s_capacity:1GB}, {chassis_card: 2GBvNIC, cardType:10GB, s_capacity:2GB}])}])} ])}; mx:AdvancedDataGrid id=adg dataProvider={new HierarchicalData(hierarchicalTablData)} width=100% height=445 mx:columns mx:AdvancedDataGridColumn dataField=chassis_card headerText=Source Chassis/IO Module / mx:AdvancedDataGridColumn dataField=cardType headerText=Card Type/ mx:AdvancedDataGridColumn dataField=s_capacity headerText=Capacity / mx:AdvancedDataGridColumn dataField=target headerText=Target IO Resources editable=true editorDataField=value mx:itemEditor mx:Component mx:ComboBox editable=true mx:dataProvider mx:Stringchs1/card1/mx:String mx:Stringchs2/card2/mx:String mx:Stringchs2/card2/mx:String mx:Stringchs3/card1/mx:String mx:Stringchs3/card1/mx:String /mx:dataProvider /mx:ComboBox /mx:Component /mx:itemEditor /mx:AdvancedDataGridColumn /mx:columns /mx:AdvancedDataGrid
[flexcoders] error message
Is anyone familiar with this error message. I think I have a problem in my services-config file. Channel definition, mx.messaging.channels.RTMPChannel, cannot be found. I am using the default WEB-INF folder, and have a mapping to it as I have it at c:\InetPub\wwwroot\ I would appreciate any insight. Michael Sumner Nations Best Sports
[flexcoders] Flex, LCDS and terracotta
Hi, We use Terracotta to share the data across multiple server application instances. We use flex frontend thereby use Adobe LCDS. When we start our application server in JBoss (which includes LCDS) as a Terracotta client,when the flex frontend connects to the data services (configured through data-management-config.xml), the first time we get the following error. [RPC Fault faultString=Could not initialize DataService. faultCode=Client.Initialization.Failed faultDetail=Associations must specify one of the following relationships: one-to-one, one-to-many, many-to-one, or many-to-many] But, the next time, if we call the same service, it works. Does anyone have any idea on how to resolve this? Note: The application works fine if it is not a terracotta client. Any help is much appreciated.
[flexcoders] Re: Charts - multiple data series (column/line) bar width issue
Thank you, you made my day! :) --- In flexcoders@yahoogroups.com, EddieBerman eddieberman2...@... wrote: This is due to a Flex bug (https://bugs.adobe.com/jira/browse/FLEXDMV-1957 https://bugs.adobe.com/jira/browse/FLEXDMV-1957 ) which I'd love to see fixed. Until then, here's one solution that I found: http://flexxxed.wordpress.com/ http://flexxxed.wordpress.com/2009/05/20/using-right-chart-when-you-hav\ e-multiple-chart-series/ http://flexxxed.wordpress.com/ http://flexxxed.wordpress.com/ Good luck, Eddie B. --- In flexcoders@yahoogroups.com, Shurup shurup@ wrote: Hi I have an issue with column width in mixed chart: on one chart I have 9 line series and 1 column series and visually that one column takes 1/10 of the category width, which would be logical if other series would also be columns (then each of them would take 1/10 of widths and it would look perfect). But line series don't spread into the rest 9/10 of the space, all together they also take only 1/10 of the space (and all data points are on same X coordinate at same exact X position and not spread horizontally to take free Y space), so they only reserve horizontal space in category width, but don't use it. Here is a screenshot of what I'm talking about: http://www.shurup.info/screenshot_chart.jpg Is there any way to make a fixed width of the column chart at least to 1/2 of the category width and all line series would be in other 1/2 of the space? Thank you!!!
Re: [flexcoders] Gumbo Graphs
I have not used fx:Application before; is it not s:Application? You can use anything to the left of the colon you like, as long as you declare the XMLNS at the top. Sure but I would not ;) 1. I can compile in Flash Builder 4, using the old (2006) mxml namespace (at the application level); switch that out and try to use the new namespace - or a combination of the two, and no dice. It is not expected that you can just change the namespace and compiler and have it work, as far as I am aware. Sorry if I gave the impression that those were my expectations, as they are not. My point, not well made :), is that I believe this is not bugs on Adobe's side - or at least not just bugs on Adobe's side. 2. A bit of scouting pinpoints the issue as being where degrafa has things like Rectangles and Matrix3D, which have equivalents in Flex 4, but are different - in terms of their property names, and sometimes operations. 3. Degrafa do not claim to support Flex 4 - only 3 (and perhaps 2, I cannot remember). I suggest you ask them about their Flex 4 plans then. They probably have a beta program or something. Yes, I will do. I thought of asking the wider community first before going direct there. Cheers Tom. From: Tom Chiverton tom.chiver...@halliwells.com To: flexcoders@yahoogroups.com Sent: Tuesday, 14 July, 2009 13:52:19 Subject: Re: [flexcoders] Gumbo Graphs On Monday 13 Jul 2009, Peter Cowling wrote: I have not used fx:Application before; is it not s:Application? You can use anything to the left of the colon you like, as long as you declare the XMLNS at the top. 1. I can compile in Flash Builder 4, using the old (2006) mxml namespace (at the application level); switch that out and try to use the new namespace - or a combination of the two, and no dice. It is not expected that you can just change the namespace and compiler and have it work, as far as I am aware. 2. A bit of scouting pinpoints the issue as being where degrafa has things like Rectangles and Matrix3D, which have equivalents in Flex 4, but are different - in terms of their property names, and sometimes operations. 3. Degrafa do not claim to support Flex 4 - only 3 (and perhaps 2, I cannot remember). I suggest you ask them about their Flex 4 plans then. They probably have a beta program or something. -- Helping to heterogeneously embrace total mission-critical clusters as part of the IT team of the year, '09 and '08 * * * * 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 together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. 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] look for a actionscript function?
I have a number 0.3563567,I want to convert it to 0.36,which function can do this?I check Math class at http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Math.html but I can not get right one. Thanks for your help Mark
Re: [flexcoders] Re: Having problems iterating ResultSet returned to Flex via Blaze
thx for the response...I've actaully tried this approach with no success... Also, it seems that Blaze passes back an ObjectProxy and from what I gathered online you should be able to use the ArrayUtil.toArray against this as well, which I also tried unsuccessfully... For now, I'm passing a List back from java after iterating through the ResultSet in my java class. On Thu, Jul 16, 2009 at 9:56 AM, valdhor valdhorli...@embarqmail.comwrote: I don't use Java or BlazeDS but when I get data from PHP via AMF, I usually send back an array of objects. On the Flex side I do this: datagridArrColl = new ArrayCollection(ArrayUtil.toArray(event.result)); myDatagrid.dataProvider = datagridArrColl; --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, tim...@... tim...@... wrote: I'm currently returning a SQL ResultSet from my Java class via Blaze to Flex and I'm trying to figure out how to bind for example a datagrid directly to the ResultSet object in Flex or iterate through it and then bind to the result. If anybody could point me in the right direction I'd greatly appreciate it! Thx, Tim.
Re: [flexcoders] Timeline actionscript in embedded MovieClips
Hi Max, When a flash symbol gets embedded in flex, all the associated action code gets removed. You can define an external class for this symbol,which extends movieclip and then use that class in flex. Regards, Rohit On Thu, Jul 16, 2009 at 2:40 PM, Max Pimm m...@alwayssunny.com wrote: An easy one i hope I am embedding a movie clip within a flex Image component. mx:Image source=@Embed(source='/swf/assets.swf', symbol='symbolWithTimeline')/ My symbolWithTimeline is a movie clip that has a stop(); in the actions of its first frame. However when loaded into my flex app flashplayer does not take any notice of this command and the MovieClip just loops infinitely. I realize that i can control the playhead of the MovieClip using the content property of Image however can i not code actions into my embedded MovieClips?
[flexcoders] HELP problems embedding a font
I've got a font - Interstate-RegularCondensed -- which I've tried embedding in a Flex app. I've pointed to it, I've embedded in a swf, etc. It seems to be ok - but when I look at from a computer that doesn't have this font, it's no go. The thing is It's part of the Interstate family but it's own font within it -- ie folder structure: Interstate: InterReg InterRegCom InterRegCon Interstate Black Interstate BlackCompressed Interstate BlackCondensed Interstate BlackItalic Interstate Bold Interstate BoldCompressed Interstate BoldCondensed Interstate Light Interstate LightCompressed Interstate LightCondensed Interstate LightItalic Interstate Regular Interstate RegularCompressed Interstate RegularCondensed and the css was this: @font-face { fontFamily: Interstate-RegularCondensed; fontWeight: normal; fontStyle: normal; /*src: local(Interstate);*/ /*src: url(/styles/fonts/InterstateRegularCondensed.ttf);*/ src:url('styles/assets/overlay_items.swf'); } I get no errors but it just doesn't show up- HELP!
[flexcoders] Re: error message
What code generates the error? Can you post your services-config file? --- In flexcoders@yahoogroups.com, Michael Sumner msum...@... wrote: Is anyone familiar with this error message. I think I have a problem in my services-config file. Channel definition, mx.messaging.channels.RTMPChannel, cannot be found. I am using the default WEB-INF folder, and have a mapping to it as I have it at c:\InetPub\wwwroot\ I would appreciate any insight. Michael Sumner Nations Best Sports
[flexcoders] Re: look for a actionscript function?
Assuming you're doing this in Flex, use a formatter: http://livedocs.adobe.com/flex/3/html/help.html?content=formatters_4.html --- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote: I have a number 0.3563567,I want to convert it to 0.36,which function can do this?I check Math class at http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Math.html but I can not get right one. Thanks for your help Mark
[flexcoders] Re: Having problems iterating ResultSet returned to Flex via Blaze
So, if you put a breakpoint in your resultEvent function, what does the event.result data look like? What does Charles (http://www.charlesproxy.com) show as the data? Perhaps you could post some screen shots of both? --- In flexcoders@yahoogroups.com, Tim Finlayson tim...@... wrote: thx for the response...I've actaully tried this approach with no success... Also, it seems that Blaze passes back an ObjectProxy and from what I gathered online you should be able to use the ArrayUtil.toArray against this as well, which I also tried unsuccessfully... For now, I'm passing a List back from java after iterating through the ResultSet in my java class. On Thu, Jul 16, 2009 at 9:56 AM, valdhor valdhorli...@...wrote: I don't use Java or BlazeDS but when I get data from PHP via AMF, I usually send back an array of objects. On the Flex side I do this: datagridArrColl = new ArrayCollection(ArrayUtil.toArray(event.result)); myDatagrid.dataProvider = datagridArrColl; --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, timfin@ timfin@ wrote: I'm currently returning a SQL ResultSet from my Java class via Blaze to Flex and I'm trying to figure out how to bind for example a datagrid directly to the ResultSet object in Flex or iterate through it and then bind to the result. If anybody could point me in the right direction I'd greatly appreciate it! Thx, Tim.
RE: [flexcoders] Re: error message
The error showed up after recompiling the project. There may be an issue with that it was an old flex 2 project originally. The current project I am working on is communicating, I started from scratch with it, but I had tried to get a jumpstart by using the CF/Flex wizard and I had the same error show up. ?xml version=1.0 encoding=UTF-8? services-config services service-include file-path=remoting-config.xml / service-include file-path=proxy-config.xml / service-include file-path=messaging-config.xml / service-include file-path=data-management-config.xml / /services security login-command class=flex.messaging.security.JRunLoginCommand server=JRun/ !-- Uncomment the correct app server login-command class=flex.messaging.security.TomcatLoginCommand server=Tomcat/ login-command class=flex.messaging.security.WeblogicLoginCommand server=Weblogic/ login-command class=flex.messaging.security.WebSphereLoginCommand server=WebSphere/ -- !-- security-constraint id=basic-read-access auth-methodBasic/auth-method roles roleguests/role roleaccountants/role roleemployees/role rolemanagers/role /roles /security-constraint -- /security channels !-- CF Based Endpoints -- channel-definition id=my-cfamf class=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}{context.root}/flex2gateway/; class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition channel-definition id=cf-polling-amf class=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}{context.root}/flex2gateway/cfamfpoll ing class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledtrue/polling-enabled polling-interval-seconds8/polling-interval-seconds serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition channel-definition id=my-cfamf-secure class=mx.messaging.channels.SecureAMFChannel endpoint uri=https://{server.name}:{server.port}{context.root}/flex2gateway/cfamfsec ure class=flex.messaging.endpoints.SecureAMFEndpoint/ properties polling-enabledfalse/polling-enabled serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition !-- ColdFusion specific RTMP channel -- channel-definition id=cf-rtmp class=mx.messaging.channels.RTMPChannel endpoint uri=rtmp://{server.name}:2048 class=flex.messaging.endpoints.RTMPEndpoint/ properties idle-timeout-minutes20/idle-timeout-minutes serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition !-- Java Based Endpoints -- !-- channel-definition id=java-amf class=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}{context.root}/flex2gateway/amf; class=flex.messaging.endpoints.AMFEndpoint/ /channel-definition channel-definition id=java-secure-amf class=mx.messaging.channels.SecureAMFChannel endpoint uri=https://{server.name}:{server.port}{context.root}/flex2gateway/amfsecur e class=flex.messaging.endpoints.SecureAMFEndpoint/ /channel-definition channel-definition id=java-polling-amf class=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}{context.root}/flex2gateway/amfpollin g class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledtrue/polling-enabled polling-interval-seconds8/polling-interval-seconds /properties /channel-definition channel-definition id=java-rtmp class=mx.messaging.channels.RTMPChannel endpoint uri=rtmp://{server.name}:2036 class=flex.messaging.endpoints.RTMPEndpoint/ properties idle-timeout-minutes20/idle-timeout-minutes /properties /channel-definition -- channel-definition id=java-http class=mx.messaging.channels.HTTPChannel endpoint
[flexcoders] Hi, how to highlight some lines in a document
Hi All, i want to know that how to highlight somes lines in a document when a event(button click) is fired if u any one have idea about this... please help me out... am working on some citation map concept Thannks inAdvacne Satish సతీష్ Yahoo! recommends that you upgrade to the new and safer Internet Explorer 8. http://downloads.yahoo.com/in/internetexplorer/
Re: [flexcoders] Hi, how to highlight some lines in a document
WHat do you mean by document ? In which component do you want to highlight ? 2009/7/16 Satish Chowdary chinnu_...@yahoo.co.in Hi All, i want to know that how to highlight somes lines in a document when a event(button click) is fired if u any one have idea about this... please help me out... am working on some citation map concept Thannks inAdvacne Satish సతీష్ -- Yahoo! recommends that you upgrade to the new and safer Internet Explorer 8http://in.rd.yahoo.com/tagline_ie8_1/*http://downloads.yahoo.com/in/internetexplorer/.
[flexcoders] Printing in IE Crashes IE But Firefox Ok
I am adding a very simple component. It crashes IE, but it prints fine in Firefox. Here is the component: ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:Label text=Patrick is testing here/ /mx:VBox HERE IS THE PRINT CODE: printJob.start(); for each(var page:Page in pages) { printJob.addObject(page); } printJob.send();
[flexcoders] Re: look for a actionscript function?
I assume that what you want to do is round to to decimal places. If all you want to do is display the rounded number, you can use the NumberFormatter class. This can give you a string representation of the number rounded as you want it, which is fine for display. If you need to actually round the number and use the rounded value in subsequent calculations, you can use the following function. public function round(number:Number, decimals:int):Number { return Math.round(number * Math.pow(10, decimals)) / Math.pow(10, decimals); } --- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote: I have a number 0.3563567,I want to convert it to 0.36,which function can do this?I check Math class at http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Math.html but I can not get right one. Thanks for your help Mark
[flexcoders] Re: Hi, how to highlight some lines in a document
Check out TextRange (http://livedocs.adobe.com/flex/3/langref/mx/controls/textClasses/TextRange.html) --- In flexcoders@yahoogroups.com, Satish Chowdary chinnu_...@... wrote: Hi All, i want to know that how to highlight somes lines in a document when a event(button click) is fired if u any one have idea about this... please help me out... am working on some citation map concept Thannks inAdvacne Satish సతà±à°·à± Yahoo! recommends that you upgrade to the new and safer Internet Explorer 8. http://downloads.yahoo.com/in/internetexplorer/
[flexcoders] Re: error message
You're probably missing fds.swc in your build path. That swc ships in LCDS. --- In flexcoders@yahoogroups.com, Michael Sumner msum...@... wrote: The error showed up after recompiling the project. There may be an issue with that it was an old flex 2 project originally. The current project I am working on is communicating, I started from scratch with it, but I had tried to get a jumpstart by using the CF/Flex wizard and I had the same error show up. ?xml version=1.0 encoding=UTF-8? services-config services service-include file-path=remoting-config.xml / service-include file-path=proxy-config.xml / service-include file-path=messaging-config.xml / service-include file-path=data-management-config.xml / /services security login-command class=flex.messaging.security.JRunLoginCommand server=JRun/ !-- Uncomment the correct app server login-command class=flex.messaging.security.TomcatLoginCommand server=Tomcat/ login-command class=flex.messaging.security.WeblogicLoginCommand server=Weblogic/ login-command class=flex.messaging.security.WebSphereLoginCommand server=WebSphere/ -- !-- security-constraint id=basic-read-access auth-methodBasic/auth-method roles roleguests/role roleaccountants/role roleemployees/role rolemanagers/role /roles /security-constraint -- /security channels !-- CF Based Endpoints -- channel-definition id=my-cfamf class=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}{context.root}/flex2gateway/; class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition channel-definition id=cf-polling-amf class=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}{context.root}/flex2gateway/cfamfpoll ing class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledtrue/polling-enabled polling-interval-seconds8/polling-interval-seconds serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition channel-definition id=my-cfamf-secure class=mx.messaging.channels.SecureAMFChannel endpoint uri=https://{server.name}:{server.port}{context.root}/flex2gateway/cfamfsec ure class=flex.messaging.endpoints.SecureAMFEndpoint/ properties polling-enabledfalse/polling-enabled serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition !-- ColdFusion specific RTMP channel -- channel-definition id=cf-rtmp class=mx.messaging.channels.RTMPChannel endpoint uri=rtmp://{server.name}:2048 class=flex.messaging.endpoints.RTMPEndpoint/ properties idle-timeout-minutes20/idle-timeout-minutes serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition !-- Java Based Endpoints -- !-- channel-definition id=java-amf class=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}{context.root}/flex2gateway/amf; class=flex.messaging.endpoints.AMFEndpoint/ /channel-definition channel-definition id=java-secure-amf class=mx.messaging.channels.SecureAMFChannel endpoint uri=https://{server.name}:{server.port}{context.root}/flex2gateway/amfsecur e class=flex.messaging.endpoints.SecureAMFEndpoint/ /channel-definition channel-definition id=java-polling-amf class=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}{context.root}/flex2gateway/amfpollin g class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledtrue/polling-enabled polling-interval-seconds8/polling-interval-seconds /properties /channel-definition channel-definition id=java-rtmp class=mx.messaging.channels.RTMPChannel
[flexcoders] Re: Yet Another ItemRenderer Question
Yes, Alex's post is great. The code (omitting some Mate event listeners and click handlers for conciseness) for the ItemRenderer follws; again, nothing spectacular: ?xml version = 1.0 encoding = utf-8? mx:Canvas xmlns:mx = http://www.adobe.com/2006/mxml; xmlns:mate = http://mate.asfusion.com/; width = 78 height = 87 mx:Script ![CDATA[ import com.clickety.fe.events.NavigationEvent; import com.clickety.fe.events.SimpleClickEvent; [Bindable] public var queryStr:String = new String(); override public function set data(value:Object):void { if(value != null) { super.data = value; } } private function selectViewState():void { //click handler } ]] /mx:Script !-- Listeners and Dispatchers _ -- // a few here - not relevant mate:Dispatcher/ mate:Dispatcher/ mx:Canvas xmlns:mx = http://www.adobe.com/2006/mxml; xmlns:mate = http://mate.asfusion.com/; width = 68 height = 77 horizontalScrollPolicy = off verticalScrollPolicy = off cornerRadius = 12 borderStyle = solid borderThickness = 1 left = 5 top = 5 click = selectViewState(); backgroundImage = @Embed(source='../../../../../assets/images/tilebg.png') !---- !-- NOTE: I moved the click event listener from the image to the GradientCanvas 7-2-09 : Jeff -- !---- !-- GUI_ -- mx:Box width = 60 height = 41 verticalAlign = middle backgroundAlpha = 0.0 x = 3 y = 4 horizontalAlign = center mx:Image id = img source = {data.logoUrl} toolTip = {data.name} maxHeight = 32 maxWidth = 32 y = 9 horizontalCenter = 0/ /mx:Box mx:TextArea text = {data.name} borderStyle = none alpha = 1.0 styleName = title wordWrap = true textAlign = center backgroundAlpha = 0.0 fontSize = 9 editable = false selectable = false fontWeight = bold horizontalCenter = 0 width = 66 height = 32 y = 45/ /mx:Canvas /mx:Canvas --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: This problem is generally to do with the fact that item renderers are re-used. Have you checked out the item renderer stuff on Alex Harui's blog? (http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html) If you post your item renderer code, perhaps we can point you in the right direction. --- In flexcoders@yahoogroups.com, grenma grenma@ wrote: I have a TileList with a custom ItemRenderer that misbehaves when it scrolls: one tile (the last tile rendered when viewed initially) stays fixed in place as a ghost image (it is not clickable like the other tiles) and sits over the other scrolled items. The spot the ghost tile should be in is vacant until it scrolls off the screen and then scrolls back into view. If you scroll up just one row then back down again the TileList works properly (weird, I know). The Tilelist is added as the child of a Canvas on a state change and has a custom Itemrenderer with an image, text fields and a background image. The code is very simple: mx:TileList direction = horizontal width = 166 height = 345 columnCount = 2 dataProvider = {favoritesList} itemRenderer = com.clickety.fe.gui.renderers.Thumbnail backgroundAlpha = 0.0 borderStyle = none/ Any help is appreciated and will help save my hair and sanity.
[flexcoders] AIR architectural pointers for a Flex developer
I have built quite a few apps with Flex 2 over the last few years and have been using using a Java (JBoss) back end. I have a new requirement for an app which needs to be able to run on- and off-line and deliver an identical user experience. My limited understanding of AIR is that this is what it was intended to do, so I got FlexBuilder 3. I have done all the sort of startup stuff that you would expect, like building an app from scratch and reading a collection of tutorials on the web and downloading a few sample apps, but I haven't yet come across a good resource for giving me the start I need. (Naively) I was expecting to be able to build a regular web-based flex app and then deploy it to AIR, with maybe some additional features in the AIR version to take advantage of it running on the desktop. Alternatively I was expecting to be able to take the AIR app and deploy it to the web as an SWF. I'm obviously missing some basic element of the AIR philosophy because I can't really see how to do either of these things. I suspect I just need some really obvious thing pointed out to me. Does anyone know of a good resource to introduce the AIR architecture and philosophy to Flex programmers?
Re: [flexcoders]using sdk 4 on flex 3
I did as you said and nothing happens, and odd error that he cannot load textlayout.swc or something, I guess I will use the fb3 with the sdk3 gustavo On Jul 15, 2009, at 4:45 PM, Gustavo Duenas wrote: Thanks man, but I did something wrong ? Gustavo On Jul 15, 2009, at 8:48 AM, Tom Chiverton wrote: On Tuesday 14 Jul 2009, Gustavo Duenas wrote: Hi coders, I have installed the flex 4 sdk (placed onto the sdk folder on flex builder 3) onto my flex builder 3 let me know if I'm doing something possible or not. Normally you'd unpack the new SDK to some other directory, then add it in Builders properties. -- Helping to authoritatively embrace materials as part of the IT team of the year, '09 and '08 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 together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. 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] Re: AIR architectural pointers for a Flex developer
Beside Adobe, you could probably start here: http://www.smashingapps.com/2009/03/06/25-excellent-and-useful-adobe-air-tutorials-resources.html RG --- In flexcoders@yahoogroups.com, simonjpalmer simonjpal...@... wrote: I have built quite a few apps with Flex 2 over the last few years and have been using using a Java (JBoss) back end. I have a new requirement for an app which needs to be able to run on- and off-line and deliver an identical user experience. My limited understanding of AIR is that this is what it was intended to do, so I got FlexBuilder 3. I have done all the sort of startup stuff that you would expect, like building an app from scratch and reading a collection of tutorials on the web and downloading a few sample apps, but I haven't yet come across a good resource for giving me the start I need. (Naively) I was expecting to be able to build a regular web-based flex app and then deploy it to AIR, with maybe some additional features in the AIR version to take advantage of it running on the desktop. Alternatively I was expecting to be able to take the AIR app and deploy it to the web as an SWF. I'm obviously missing some basic element of the AIR philosophy because I can't really see how to do either of these things. I suspect I just need some really obvious thing pointed out to me. Does anyone know of a good resource to introduce the AIR architecture and philosophy to Flex programmers?
[flexcoders] Can I call a javascript function directly??
If I can talk to a swf file via actionscript, can I assume that the same funtion call is public and I can call it directly if I load the swf file via swfloader? example: I load a swf file in my html page in a div= myswf , the swf file uses ExternalInterface to interact with my javascript. I have a javascript function that calls myswf.setText('hello there'); If I create a flex program that loads the swf file, can I call the setText function directly from flex without using javascript? thanks, steve
[flexcoders] Re: AIR architectural pointers for a Flex developer
Thanks for the link. I have been through most of them - quite a few are duplicates of links on other aggregated lists - and spent a considerable amount of time on the Adobe web site prior to posting here. The trouble is that none of these examples actually cover the single thing that I don't understand adequately, namely the relationship between a traditional Flex swf app running in the browser and an AIR app with an identical user interface running on the desktop. Most of the samples I have downloaded and picked apart so far are either examples of how you can create pure desktop apps with AIR, with varying degrees of sophistication, or tutorials for JS/HTML programmers to tempt them into the AIR runtime so their apps can have access to the user's file system. What I need is an example of an app where the user starts in the web and is provided the option of going offline, at which point an AIR app is installed for them and they can continue to work in an identical environment without being connected. Following that I'd like to see a practical example of how data synchronisation is managed when they re-connect to the web. This would seem to be an obvious lifecycle and at the heart of AIR's unique proposition, but I am not really seeing how it fits together. As I said at the beginning I must be missing something simple, basic and obvious and I was hoping I could get a pointer from AIR tutorials. No luck so far... any ideas? --- In flexcoders@yahoogroups.com, grenma gre...@... wrote: Beside Adobe, you could probably start here: http://www.smashingapps.com/2009/03/06/25-excellent-and-useful-adobe-air-tutorials-resources.html RG --- In flexcoders@yahoogroups.com, simonjpalmer simonjpalmer@ wrote: I have built quite a few apps with Flex 2 over the last few years and have been using using a Java (JBoss) back end. I have a new requirement for an app which needs to be able to run on- and off-line and deliver an identical user experience. My limited understanding of AIR is that this is what it was intended to do, so I got FlexBuilder 3. I have done all the sort of startup stuff that you would expect, like building an app from scratch and reading a collection of tutorials on the web and downloading a few sample apps, but I haven't yet come across a good resource for giving me the start I need. (Naively) I was expecting to be able to build a regular web-based flex app and then deploy it to AIR, with maybe some additional features in the AIR version to take advantage of it running on the desktop. Alternatively I was expecting to be able to take the AIR app and deploy it to the web as an SWF. I'm obviously missing some basic element of the AIR philosophy because I can't really see how to do either of these things. I suspect I just need some really obvious thing pointed out to me. Does anyone know of a good resource to introduce the AIR architecture and philosophy to Flex programmers?
[flexcoders] bind one arraycollection to another
I have an arraycollection that has two columns. the second column actually stores an object that has properties on it. I want to put those values into a second datagrid. Can I do this using binding? I was able to use a loop to fill the second arraycollection, to which a datagrid is bound, by triggering the loop function from the first arraycollection's collectionChange event. However, I don't like this approach because it'll probably cause issues with selectedItem on the datagrid (removeAll then repopulate would throw it off), as well as a noticeable flicker when dealing with a large dataset. If there's another format for the second column in the first arraycollection that would work better than an object, I'm open to that too.
RE: [flexcoders] bind one arraycollection to another
You can't use an Object as a dataProvider. So you either need to loop using for-each, or use a different data type for the second column. An ArrayCollection might be best, then you could bind the second DG: dataProvider={dg1.selectedItem.acCol2} Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of postwick Sent: Thursday, July 16, 2009 5:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] bind one arraycollection to another I have an arraycollection that has two columns. the second column actually stores an object that has properties on it. I want to put those values into a second datagrid. Can I do this using binding? I was able to use a loop to fill the second arraycollection, to which a datagrid is bound, by triggering the loop function from the first arraycollection's collectionChange event. However, I don't like this approach because it'll probably cause issues with selectedItem on the datagrid (removeAll then repopulate would throw it off), as well as a noticeable flicker when dealing with a large dataset. If there's another format for the second column in the first arraycollection that would work better than an object, I'm open to that too.
[flexcoders] multiple axis question.
I'm have a chart with 3 sets of line graph data, id like to have 2 of those set to have the same y axis, and the third to have its own. The docs don't really do a good job of explaining this. Can anyone help sample code mx:Panel title=Multiple Data Series width=100% height=100% mx:LineChart id=myChart dataProvider={srv.lastResult.root.consump} showDataTips=true height=100% width=100% mx:horizontalAxis mx:CategoryAxis id=dateAxis categoryField=date/ /mx:horizontalAxis mx:verticalAxis mx:CategoryAxis id=priceAxis / /mx:verticalAxis mx:verticalAxisRenderers !--mx:AxisRenderer placement=left axis={kWAxis}/-- mx:AxisRenderer placement=left axis={priceAxis}/ /mx:verticalAxisRenderers mx:series mx:LineSeries id=consump xField=date yField=value displayName=Consumption (kWh) /mx:LineSeries mx:LineSeries id=cbl dataProvider={srv.lastResult.root.cbl} xField=cbldate yField=cblval displayName=CBL /mx:LineSeries mx:LineSeries id=price verticalAxis={priceAxis} dataProvider={srv.lastResult.root.price} xField=pricedate yField=priceval displayName=Price ($kWh) /mx:LineSeries /mx:series /mx:LineChart mx:Legend dataProvider={myChart}/ /mx:Panel
[flexcoders] Re: bind one arraycollection to another
The object is being passed to the first arraycollection through LCDS, and in the CFC I am creating a struct. I have no problem with the idea of converting it to another data type such as an XML string. The problem is I can't bind it to one ROW and column, I need to bind it to the second column of all rows - basically the first grid is the primary key in column one, and the property with all other columns and values in the object. If I have a row selected in the second grid, or it's sorted or filtered in some way, and I do a removeall and then repopulate it...what will happen? I suppose I can store the sort, filter, and selectedIndex, and then reapply them after the refill - but I want to avoid any kind of flicker that the user would see. --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: You can't use an Object as a dataProvider. So you either need to loop using for-each, or use a different data type for the second column. An ArrayCollection might be best, then you could bind the second DG: dataProvider={dg1.selectedItem.acCol2} Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of postwick Sent: Thursday, July 16, 2009 5:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] bind one arraycollection to another I have an arraycollection that has two columns. the second column actually stores an object that has properties on it. I want to put those values into a second datagrid. Can I do this using binding? I was able to use a loop to fill the second arraycollection, to which a datagrid is bound, by triggering the loop function from the first arraycollection's collectionChange event. However, I don't like this approach because it'll probably cause issues with selectedItem on the datagrid (removeAll then repopulate would throw it off), as well as a noticeable flicker when dealing with a large dataset. If there's another format for the second column in the first arraycollection that would work better than an object, I'm open to that too.
[flexcoders] Re: multiple axis question.
Use a secondVerticalAxis and secondVerticalAxisRenderer (placement=right). -TH --- In flexcoders@yahoogroups.com, shaded shad...@... wrote: I'm have a chart with 3 sets of line graph data, id like to have 2 of those set to have the same y axis, and the third to have its own. The docs don't really do a good job of explaining this. Can anyone help sample code mx:Panel title=Multiple Data Series width=100% height=100% mx:LineChart id=myChart dataProvider={srv.lastResult.root.consump} showDataTips=true height=100% width=100% mx:horizontalAxis mx:CategoryAxis id=dateAxis categoryField=date/ /mx:horizontalAxis mx:verticalAxis mx:CategoryAxis id=priceAxis / /mx:verticalAxis mx:verticalAxisRenderers !--mx:AxisRenderer placement=left axis={kWAxis}/-- mx:AxisRenderer placement=left axis={priceAxis}/ /mx:verticalAxisRenderers mx:series mx:LineSeries id=consump xField=date yField=value displayName=Consumption (kWh) /mx:LineSeries mx:LineSeries id=cbl dataProvider={srv.lastResult.root.cbl} xField=cbldate yField=cblval displayName=CBL /mx:LineSeries mx:LineSeries id=price verticalAxis={priceAxis} dataProvider={srv.lastResult.root.price} xField=pricedate yField=priceval displayName=Price ($kWh) /mx:LineSeries /mx:series /mx:LineChart mx:Legend dataProvider={myChart}/ /mx:Panel
RE: [flexcoders] Re: look for a actionscript function?
toFixed() and/or toPrecision() Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jer_ela Sent: Thursday, July 16, 2009 9:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: look for a actionscript function? I assume that what you want to do is round to to decimal places. If all you want to do is display the rounded number, you can use the NumberFormatter class. This can give you a string representation of the number rounded as you want it, which is fine for display. If you need to actually round the number and use the rounded value in subsequent calculations, you can use the following function. public function round(number:Number, decimals:int):Number { return Math.round(number * Math.pow(10, decimals)) / Math.pow(10, decimals); } --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, markflex2007 markflex2...@... wrote: I have a number 0.3563567,I want to convert it to 0.36,which function can do this?I check Math class at http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Math.html but I can not get right one. Thanks for your help Mark