Re: [flexcoders] Possible to use labelFunction and change text color?
Better off to use a cellRenderer G. Here's some code to get you started. ?xml version=1.0 encoding=utf-8? mx:Label xmlns:mx=http://www.macromedia.com/2003/mxml; mouseOver=doMouseOver() mouseOut=doMouseOut() mx:Script ![CDATA[ private var lastStyle:Object; private var state:String; private function doMouseOver() { //d(); //d(FolderCellRenderer::doMouseOver); if(state != selected) { lastStyle = this.getStyle(color); this.setStyle(color, 0x648BCB); } this.setStyle(textDecoration, underline); } public function d(o) { mx.core.Application.application.d(o); } public function dProps(o) { mx.core.Application.application.dProps(o); } private function doMouseOut() { //d(); //d(FolderCellRenderer::doMouseOut); this.setStyle(textDecoration, none); this.setStyle(color, lastStyle); } public function setValue(str:String, item:Object, sel:String) { // selected, highlighted, normal state = sel; if (item == undefined) { visible = false; return; } visible = true; text = str; } ]] /mx:Script /mx:Label - Original Message - From: Stacy Young [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, January 20, 2006 2:43 AM Subject: [flexcoders] Possible to use labelFunction and change text color? It's the wee hours of the morning and my brain is fried. Is it possible to set the text color for the label of an individual node in a tree? Thanks! Stace -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] setPropertiesAt and Cairngorm are not playing together nicely
hi, looks like a lifecycle problem to me. try to see if the DataGrid is already created when you try the calls that fail. note that if the DG is inside a viewstack or another container with a creationPolicy, it might not get instantiated right away unless you set the policy to all best, aldo On 1/19/06, rhoska [EMAIL PROTECTED] wrote: Hello everyone, I�m having a bit of trouble getting setPropertiesAt to work as needed in the Cairngorm framework. I need to be able to alter the background colors of a datagrid as it loads. I have placed the testDG.setPropertiesAt(2, {backgroundColor:0xFF}); code in all the likely places and still have not managed to get the result I am looking for. If I associate the setPropertiesAt with a button or a cellEdit event it works like a charm. How can I use the setPropertiesAt feature as the page loads? Thanks in advance! ~Richard -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- : Aldo Bucchi : mobile (56) 8 429 8300 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] setPropertiesAt and Cairngorm are not playing together nicely
Place the code in creationComplete event-handler of DataGrid. I think, it would work. -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Aldo BucchiSent: Friday, January 20, 2006 4:08 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] setPropertiesAt and Cairngorm are not playing together nicely hi,looks like a lifecycle problem to me.try to see if the DataGrid is already created when you try the calls that fail.note that if the DG is inside a viewstack or another container with acreationPolicy, it might not get instantiated right away unless youset the policy to "all"best,aldoOn 1/19/06, rhoska [EMAIL PROTECTED] wrote: Hello everyone, I�m having a bit of trouble getting setPropertiesAt to work as needed in the Cairngorm framework. I need to be able to alter the background colors of a datagrid as it loads. I have placed the testDG.setPropertiesAt(2, {backgroundColor:0xFF}); code in all the likely places and still have not managed to get the result I am looking for. If I associate the setPropertiesAt with a button or a cellEdit event it works like a charm. How can I use the setPropertiesAt feature as the page loads? Thanks in advance! ~Richard -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links--: Aldo Bucchi :mobile (56) 8 429 8300 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Comment colors flex 2
Is there any way to set up unique colors for different types of comments which I would like to add e.g Original designers Added Clarification To Do list -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/
[flexcoders] Custom Login
I am a ColdFusion programmer trying to transition to flex. I have built a custom login window that displays, but doesn't do anything. My goal is to use the information from the login to attempt authentication to an Oracle database. If the user can't authenticate, I want to connect the user using a dummy user with read only privs. If the user can authenticate, he can see more of the page. Does anyone have a basic (step-by-step) set of code for this? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/
[flexcoders] Custom Login
I am a ColdFusion programmer trying to transition to flex. I have built a custom login window that displays, but doesn't do anything. My goal is to use the information from the login to attempt authentication to an Oracle database. If the user can't authenticate, I want to connect the user using a dummy user with read only privs. If the user can authenticate, he can see more of the page. Does anyone have a basic (step-by-step) set of code for this? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/
[flexcoders] Re: AS3/Flex2 - Effects and Cancelling them
Have you actually tried that? Because that was one of the things I tried before sending the email and it didn't seem to work for me. I thought the Move effect created an EffecInstance with my information and set it on it's way, therefore changing the Moves xTo would affect the instance. --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: Upon the user interaction, change the xTo and yTo properites before calling endEffect. - Original Message - From: Trey Long [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, January 19, 2006 3:28 PM Subject: [flexcoders] AS3/Flex2 - Effects and Cancelling them I am using the Move effect to create a really nice tween in my Flex app. I want to stop the effect during certain user input and there is an endEffect() method that will allow me to stop the event but it abruptly jumps to the destination of the Move, whatever the Move.xTo property is. Can anyone think of a way to cancel the effect without jumping to the end of the tween? I tried creating and instance and setting it to null when I wanted the effect to stop prematurely but I haven't had any luck. -James. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Custom Login
Quick reply: On your remote Object (if you are connecting to cf trough remoting) you can set credentials like this: myRemoteObject.connection.setCredentials(myUser,myPassword); myRemoteObject.callSomeMethod(someArgs); on Application.cfc you can set inside onRequestStart function cflogin cfif isdefined(cflogin) cfset myuser = cflogin.name/ cfset mypwd = cflogin.password/ !--- Your authentication process comes here --- cfloginuser / /cfif /cflogin Then you can check if the user is authenticated inside of your callSomeMethod. João Fernandes Secção de Desenvolvimento Departamento de Informática -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of geisergd Sent: sexta-feira, 20 de Janeiro de 2006 14:30 To: flexcoders@yahoogroups.com Subject: [flexcoders] Custom Login I am a ColdFusion programmer trying to transition to flex. I have built a custom login window that displays, but doesn't do anything. My goal is to use the information from the login to attempt authentication to an Oracle database. If the user can't authenticate, I want to connect the user using a dummy user with read only privs. If the user can authenticate, he can see more of the page. Does anyone have a basic (step-by-step) set of code for this? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/
[flexcoders] View Directory Tree
I am wanting to create a view into a directory on a server. Can someone point me in the right direction. I have no idea how to do this. Thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/
[flexcoders] Re: AS3/Flex2 - Effects and Cancelling them
I thought of that, but the problem is still stopping the Move instance. I don't know enough about the internal structure of the effect to stop it or I could do it from the outside. --- In flexcoders@yahoogroups.com, Johannes Nel [EMAIL PROTECTED] wrote: you could always extend that effect class and implement your own stop method On 1/19/06, Trey Long [EMAIL PROTECTED] wrote: I am using the Move effect to create a really nice tween in my Flex app. I want to stop the effect during certain user input and there is an endEffect() method that will allow me to stop the event but it abruptly jumps to the destination of the Move, whatever the Move.xTo property is. Can anyone think of a way to cancel the effect without jumping to the end of the tween? I tried creating and instance and setting it to null when I wanted the effect to stop prematurely but I haven't had any luck. -James. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- j:pn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/
[flexcoders] Re: AS3/Flex2 - Effects and Cancelling them
That will be extremely handy. --- In flexcoders@yahoogroups.com, Ashish Goyal [EMAIL PROTECTED] wrote: There will be three new methods in the next beta release which will enable you to pause, resume and reverse any effect. In your case, when you want the effect to stop playing on certain user input, you can either call pause or you can call reverse to play the effect in reverse from that point to the starting point to create a nice effect reversal. -Ashish -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Trey Long Sent: Thursday, January 19, 2006 12:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] AS3/Flex2 - Effects and Cancelling them I am using the Move effect to create a really nice tween in my Flex app. I want to stop the effect during certain user input and there is an endEffect() method that will allow me to stop the event but it abruptly jumps to the destination of the Move, whatever the Move.xTo property is. Can anyone think of a way to cancel the effect without jumping to the end of the tween? I tried creating and instance and setting it to null when I wanted the effect to stop prematurely but I haven't had any luck. -James. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/
[flexcoders] Re: Flex 1.5 how to get Menu height and width
Not sure if anyone has looked at my post, but what i'm trying to do is create a floating menu which appears near the mouse cursor (like a right-hand mouse click). I want to be able to re-position the floating Menu, if it appears too close to the edge etc. tia bod --- In flexcoders@yahoogroups.com, bhaq1972 [EMAIL PROTECTED] wrote: Hi I'm looking at the flex 1.5 livedocs example of how to create a Menu - http://livedocs.macromedia.com/flex/15/asdocs_en/index.html (at the bottom). I cant seem to get the height and width of the Menu after creating the menu. eg myMenu = Menu.createMenu(panel, myMenuData); trace(myMenu.height); //always 0 trace(myMenu.width); //always 0 How do i get the actual height and weight. TIA -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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: Flex application on PDA
I appreciate all the replies from Brendan, Jester, Bruno, DP, Renaun about the development of application for PDA. Thank you, Shahn From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Renaun Erickson Sent: Thursday, January 19, 2006 10:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex application on PDA As far as Flash Lite 2.0 it says its FlashPlayer 7, but it will not support Flex. Most likely because the components are not part of the player. I hope my information is wrong, On a similiar topic. Is there a flash player for Microsoft Mobile 5? --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: As far as #3, you could utilize Flash MX 2004 or Flash 8 and develop using ActionScript 2 with similiar components to Flex, and export for Flash 6. 3 years ago, I saw pretty decent performance for forms based apps on a Pocket PC. - Original Message - From: Bruno Martins To: flexcoders@yahoogroups.com Sent: Thursday, January 19, 2006 7:04 AM Subject: Re: [flexcoders] Flex application on PDA On 1/18/06, shahnavaz Alware [EMAIL PROTECTED] wrote: Hi, We are developing web application using Flex 1.5 for desktop. Now there is planning to make same application available on PDA's. Flex is my first encounter with Flash Programming (J2EE Developer). That's being said I have few questions for you guys doing development on PDA/Mobile devices using Flash/Flex 1) Does Flex 1.5 application can be built for PDA's? No, because Flex 1.5 if for Flash Player 7 and PDA's has only Flash Player 6 2) If it's possible is there a Hardware Requirement for PDA? Applications in flash por PDA`s must be very simple and otimized. 3) If it's NOT possible to build the application for PDA using Flex 1.5 what are my alternatives using FLASH? It`s is possible to use Flash. 4) What is the direction Flex taking as far as PDA/Mobile devices are concerned? Until now macromedia(adobe) Flex 1.5/2 apps is only PCs, because the applications in flex requeries a good hardware to run. The proposal of adobe for devices is Flash Lite 2 and soon the Flash Player 7SDK for pockets. http://www.adobe.com/aboutadobe/pressroom/pressreleases/200601/010306FlashLite.html 5) Are there any links I can follow to have a head start on this mobile development using Flash Architecture? This subject is very poor on the internet, but take a look at this: http://www.macromedia.com/software/flashplayer_pocketpc/productinfo/faq/ In some days I'll publish a cairngorm refactored for pocket pc, I need only to finish a example. I`ll send when I finish ok? Any doubts tell me and sorry for my poor english... Thank you, Shahnavaz Alware Software Engineer Office: 760-929-2300 ext 140 www.visiprise.com It is our company policy not to accept email of any data controlled by the International Traffic in Arms Regulations (ITAR). Please contact our Security Officer, Alexander Houtzeel, for instructions and authorization to transmit such data. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com -- YAHOO! GROUPS LINKS a.. Visit your group flexcoders on the web. b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- -- Bruno Gustavo Martins Mobile: (55)(11)9585-9587 [EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS a.. Visit your group flexcoders on the web. b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice
[flexcoders] MXML Components and Classes
Quick question about making custom components. I know custom components exist as classes in actionscript but I was a little lost on how you create functions for your component. Right now I have an external .AS file that is just some import statements and a collection of functions (no package or class definition). How can I link the .MXML component to a class, or write the components class code? Is it possible to have a hybrid component or must the whole thing be in actionscript if I want any programmatic functionality? -Trey -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/
[flexcoders] Scrollable chart?
Is it possible to create a chart with scrollable contents? I have a lot of data to fit along the x axis of my chart and I would like space the points out so they are readable. I would then like to be able to allow the user to scroll left and right to see all the data. Can this be done while leaving the axis alone (ie, scroll ONLY the contents of the chart)? Thanks, Doug -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/
[flexcoders] Changes between DataGrid cellrenderers and embed tag
Ive been attempting to get an image in a DataGrid in Flex2 for quite some time and having one hard time to say the least. Was there any specific changes from Flex1.5 to 2 that effected this implementation? Anyone know of any resources that use an example with this in Flex2? So far Im coming up empty-handed and Im stuck on how to continue. If necessary I can post some code. _ Jonathan Miranda Flexible Master of the Web -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Updating the data back to database
If you need to do it in Flex 1.5 you relally need to put significant amount of code in your base objects. We implemented in 1.5 just what Dave is suggesting with "PowerBuilder" approach ( which was considered astandard of Enterprise RAD - Rapid Application Development)- high-level objects that keep track of the state of each database record, with an ability to send the changes to the server. Unlike Flex 2, we implemented automaticgeneration of "updates" based on original "selects" and minimal metadata so you do not need to write your own persistence layer. Just write SQL to select the data - and Java/Flex UI is generated for you automatically - including Java DAO, updatable datagrids, forms and master/details. And we also placed nice toolkit on the top of it so users can select/apply their own layouts (persisted in database) in run-time if needed. Of course, code generators can be tuned for iBatis or Hibernate or any other - as long as there is justification for it. Other things that I have not seen in Flex 2 but are the must for real-life applications are "transaction" services, when you can submit changes to multiple objects at once. For that we had to write specialized gateway so we would preserve AMF/HTTP infrastructure for development (called RPC in Flex 2) while adding "transactional" methodology to the calls. So, it is very possible - the only bad news is that anyframework as such has learning curve, especially if the team is skilled with Web technologies, and do not have PowerBuilder one. When we bringthis to our customers it takes anywhere between 2 to 4 weeks of mentoring to get the team to RAD mode. While it is definetly more economical then writing all modification code for any application that is more then just few screens, and proved to produce much fewer "errors",decision to use it has to be made very early in the development process (or pilot if possible). Hope this helps, Anatole Tartakovsky - Original Message - From: Dave Wolf To: flexcoders@yahoogroups.com Sent: Thursday, January 19, 2006 4:47 PM Subject: [flexcoders] Re: Updating the data back to database In Flex 1.5 there is not. However Flex 2.0 will include the"Enterprise Data Services" which include exactly this functionality. This was demonstrated at MAX last fall and Adobe has presented severalweb casts on it. As you note (and much like other existingclient/server products like PowerBuilder) the data services willinclude the ability to track "changed" or "dirty" data on the client,marshal those changes to the server, and will provide for a pluggablepersistence layer which will handle writing the changes in anoptimized way to the underlying data store. This will include thingslike optimistic updates, etc. -- Dave WolfCynergy Systems, Inc.Macromedia Flex Alliance Partnerhttp://www.cynergysystems.comEmail: [EMAIL PROTECTED]Office: 866-CYNERGY--- In flexcoders@yahoogroups.com, "mydmjac" [EMAIL PROTECTED] wrote: Does Flex provide any ways of identifying data changes made by users? Obviously I am new to Flex, and I noticed that there are lots of tips, information on interface, controls, also how to retrieve data from the server. However I haven't been able to find any reference for updating process, some components like XUpdateResolver in Flash make it a lot easier to move the changes back to the server and finally to the database. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Sourcing an image using a variable in URL (Flex 2)
Try constructing the entire URL in script and assign it to the image! var imgSource:String = "http://www.mySite.com/pictures/"+photoID+".jpg" mx:Image id="myImage"source="{imgSource}"/ Sree - Original Message - From: yaagcur To: flexcoders@yahoogroups.com Sent: Saturday, January 21, 2006 12:07 AM Subject: [flexcoders] Sourcing an image using a variable in URL (Flex 2) I have a linemx:Image id="myImage" source="http://www.mySite.com/pictures/1234.jpg"/which I want to generalise using a variable photoID to something likemx:Image id="myImage"source="http://www.mySite.com/pictures/"+photoID+".jpg"/This produces a compile error as the " appears before end of URL. Itried the quot; option but just get the broken image icon as a resultAny ideas what correct dode is , please -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Scrollable chart?
Absolutely. I have a combination line/area chart that has this feature. The basic idea is to have a chart that is showing only a portion of the available dataset, and Christophe Coenraets has a great example of how to do this in his charting components explorer: http://flexapps.macromedia.com/flex15/chartexplorer/explorer.mxml. Look for Slider selection of time axis under Misc Techniques and Examples at the bottom of the tree. From there, just add an HScrollBar component that controls the start and end positions of the HSlider. Here are some excerpts from my code: In ActionScript: function rangeScroll(o: Object) : Void { slider.values = new Array(o.scrollPosition, o.scrollPosition + o.pageSize - 1); sliceResults(); } and in MXML: mx:HScrollBar id=timescroll minPos=0 maxPos={scrollbarMaxPos} width=100% scroll=rangeScroll(event.target); / You'll probably also want to set the various page size and scroll size properties of the scrollbar according to your own needs. Doug --- In flexcoders@yahoogroups.com, Doug Wagner [EMAIL PROTECTED] wrote: Is it possible to create a chart with scrollable contents? I have a lot of data to fit along the x axis of my chart and I would like space the points out so they are readable. I would then like to be able to allow the user to scroll left and right to see all the data. Can this be done while leaving the axis alone (ie, scroll ONLY the contents of the chart)? Thanks, Doug -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] MXML Components and Classes
You can create ActionScript or MXML class; they are effectively the same thing. The only real limitation I've found is I've failed to create extensible containers via MXML; meaning, extending CheckBox, Label, Loader, with MXML works great, but extending Containers like VBox, Panel, etc. gave me problems. I can't remember if it WAS supposed to have 1 child or NOT supposed to have any children... anyway, if you use ActionScript, works like a charm, but I like MXML better. If the mx:Script tag is the first tag after Application, those methods will become class methods, just like others. If you put it after uicomponents, I think it just becomes like an include instead. You can still put it after mx:Style and mx:Metadata tags which is cool.. - Original Message - From: Trey Long [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, January 20, 2006 12:12 PM Subject: [flexcoders] MXML Components and Classes Quick question about making custom components. I know custom components exist as classes in actionscript but I was a little lost on how you create functions for your component. Right now I have an external .AS file that is just some import statements and a collection of functions (no package or class definition). How can I link the .MXML component to a class, or write the components class code? Is it possible to have a hybrid component or must the whole thing be in actionscript if I want any programmatic functionality? -Trey -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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: AS3/Flex2 - Effects and Cancelling them
Have I tried it? Nope. Just throwing out ideas to try. :: goes to look at class :: Well, I just read the Resize, TweenEffect, and Tween classes, and with this level of sleep under my belt, see no reason at all why it would fail if you created the Tween via code vs. MXML. - Original Message - From: ucf_xealot [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, January 20, 2006 9:59 AM Subject: [flexcoders] Re: AS3/Flex2 - Effects and Cancelling them Have you actually tried that? Because that was one of the things I tried before sending the email and it didn't seem to work for me. I thought the Move effect created an EffecInstance with my information and set it on it's way, therefore changing the Moves xTo would affect the instance. --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: Upon the user interaction, change the xTo and yTo properites before calling endEffect. - Original Message - From: Trey Long [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, January 19, 2006 3:28 PM Subject: [flexcoders] AS3/Flex2 - Effects and Cancelling them I am using the Move effect to create a really nice tween in my Flex app. I want to stop the effect during certain user input and there is an endEffect() method that will allow me to stop the event but it abruptly jumps to the destination of the Move, whatever the Move.xTo property is. Can anyone think of a way to cancel the effect without jumping to the end of the tween? I tried creating and instance and setting it to null when I wanted the effect to stop prematurely but I haven't had any luck. -James. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/
[flexcoders] Errors in lines that do not exist (Flex 2)
I have just returned to a project which I thought was working to date but am getting the followin errors Unexpected token Line 496 Expecting rightbrace before end of program Line 1787 The file is 171 lines in toto Not sure what unexpected token is and all leftbraces appear to have corresponding rightbraces Can someone elucidate? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/
[flexcoders] Performance question - please help!
Ok, so here's the situation, i've been tasked to write an application that shows a ton of graphs (testing the performance of flex). i need to create like 60 objects that will be holding approximately 100,000 datapoints apiece and i need to create those objects dynamically... is it going to be better/ more efficeient to create the objects as a class? or does it matter? if i create the objects as simple objects within the parent document is that going to have any effect on performance? ie what i have going on is that i have to show like 60 graphs - one per Property (like envision the graphs they show on the perfmon) so each property would be like hits per second, etc and i need to show up to 200 machines in each of those graphs... each machine represents 1 series in the graph and has 60 datapoints and i need to create the objects to hold that dynamically. ie each chart would be 1 object each chart would have x number of machines in it ie a structure of arrays of structures :) anyway, do you know what's going to give the best performance...? and/or how to create new public objects dynamically?' is it just public var [blah+i] = new object()? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Sourcing an image using a variable in URL (Flex 2)
Hi - You can use databinding to plug in your photoID dynamically. mx:Script var photoID:Number = 1234; /mx:Script mx:Image id=myImage source=http://www.mySite.com/pictures/{String(photoID)}.jpg / -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: Friday, January 20, 2006 10:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Sourcing an image using a variable in URL (Flex 2) I have a line mx:Image id=myImage source=http://www.mySite.com/pictures/1234.jpg/ which I want to generalise using a variable photoID to something like mx:Image id=myImage source=http://www.mySite.com/pictures/+photoID+.jpg/ This produces a compile error as the appears before end of URL. I tried the quot; option but just get the broken image icon as a result Any ideas what correct dode is , please -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Printing options in Flex 2
Hi, Sounds like a bug. -David -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dima Ulich Sent: Friday, December 16, 2005 1:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Printing options in Flex 2 Did anyone tried to use flex printing packages? When I tried to print a report with bitmaps it didn't print them. It only print bitmaps if they are embeded into swf file. But I need to dynamically add images. Does anyone have any suggestion how to do it? I don't know may be it's alpha version bug? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM -- --~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Performance question - please help!
Hello, Flex 1.5 or 2.0? -David From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan HirschiSent: Friday, January 20, 2006 4:11 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Performance question - please help! Ok, so here's the situation, i've been tasked to writean application that shows a ton of graphs (testing theperformance of flex).i need to create like 60 objects that will be holdingapproximately 100,000 datapoints apieceand i need to create those objects dynamically... is it going to be better/ more efficeient to createthe objects as a class? or does it matter?if i create the objects as simple objects within theparent document is that going to have any effect onperformance?ie what i have going on is that i have to show like 60graphs - one per Property (like envision the graphsthey show on the perfmon)so each property would be like hits per second, etcand i need to show up to 200 machines in each ofthose graphs...each machine represents 1 series in the graph and has60 datapoints and i need to create the objects to holdthat dynamically.ie each chart would be 1 objecteach chart would have x number of machines in itie a structure of arrays of structures :)anyway, do you know what's going to give the bestperformance...?and/or how to create new public objects dynamically?'is it just public var ["blah"+i] = new object()?__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Performance question - please help!
Right now, i'm doing this in flex 1.5. Jon --- David Mendels [EMAIL PROTECTED] wrote: Hello, Flex 1.5 or 2.0? -David From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Hirschi Sent: Friday, January 20, 2006 4:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Performance question - please help! Ok, so here's the situation, i've been tasked to write an application that shows a ton of graphs (testing the performance of flex). i need to create like 60 objects that will be holding approximately 100,000 datapoints apiece and i need to create those objects dynamically... is it going to be better/ more efficeient to create the objects as a class? or does it matter? if i create the objects as simple objects within the parent document is that going to have any effect on performance? ie what i have going on is that i have to show like 60 graphs - one per Property (like envision the graphs they show on the perfmon) so each property would be like hits per second, etc and i need to show up to 200 machines in each of those graphs... each machine represents 1 series in the graph and has 60 datapoints and i need to create the objects to hold that dynamically. ie each chart would be 1 object each chart would have x number of machines in it ie a structure of arrays of structures :) anyway, do you know what's going to give the best performance...? and/or how to create new public objects dynamically?' is it just public var [blah+i] = new object()? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Software +design+and+developmentw4=Macromedia+flexw5=Software+development+best+ practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+deve lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1 66.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practice; w1=Web+site+design+developmentw2=Computer+software+developmentw3=Softw are+design+and+developmentw4=Macromedia+flexw5=Software+development+be st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS *Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. *To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] *Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/
[flexcoders] Wrapping Images and Bitmaps
Alright, the best way to describe this is with a use case. I have a Canvas on which rests an Image, let's say this image represents a map of the globe. Now, I have some nice panning code that interacts with the edges of the screen to move the x and y value kinda like your standard RTS game (ala Starcraft). Here's the interesting part, I would like to have the very left or very right edge of the map wrap around and begin again, effectively making no end to the horizontal scrolling. Gotchas: There will be a ton of crap painted on top of the map, like dots connecting different points with lines... So, the method has to support keeping those map widgets in tact. What I have thought of: I thought that if I could cache the canvas as a bitmap and access the bitmap data that I could wrap the pixels around bit by bit. Well, if any methods come to mind, please give me your input. Thanks, Trey -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Performance question - please help!
Answering from the 30,000ft view, my suggestion is to utilize Flex 1.5 Flash 8's bitmap features. Flash Player 7, which is what Flex 1.5 outputs, cannot handle the amount of data points you want with acceptable performance, either in code or displayed. While paging can be effectively employed, you'd probably lose the visual representation you are going for. Therefore, utilizing the bitmap imaging code Flash 8 exposes, you could incoporate a component into Flex that utilizes blitting of those data points to 1 bitmap. The upshot us, it can scale infinitely since it's 1 bitmap, and an acceptable, predicatable RAM usage. The downside is, you still wouldn't really be able to retain the data if it's in the 100,000 range, but if it's just 60 pointers to machines, that's cake. - Original Message - From: Jonathan Hirschi [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, January 20, 2006 4:10 PM Subject: [flexcoders] Performance question - please help! Ok, so here's the situation, i've been tasked to write an application that shows a ton of graphs (testing the performance of flex). i need to create like 60 objects that will be holding approximately 100,000 datapoints apiece and i need to create those objects dynamically... is it going to be better/ more efficeient to create the objects as a class? or does it matter? if i create the objects as simple objects within the parent document is that going to have any effect on performance? ie what i have going on is that i have to show like 60 graphs - one per Property (like envision the graphs they show on the perfmon) so each property would be like hits per second, etc and i need to show up to 200 machines in each of those graphs... each machine represents 1 series in the graph and has 60 datapoints and i need to create the objects to hold that dynamically. ie each chart would be 1 object each chart would have x number of machines in it ie a structure of arrays of structures :) anyway, do you know what's going to give the best performance...? and/or how to create new public objects dynamically?' is it just public var [blah+i] = new object()? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/
[flexcoders] Re: Flex 1.5 how to get Menu height and width
See if calling myMenu.show() first yields a height and width. You may need to wait until after you know the menu has been shown before reading those properties; try tying the trace statements to the menu's showEffect. Doug --- In flexcoders@yahoogroups.com, bhaq1972 [EMAIL PROTECTED] wrote: Not sure if anyone has looked at my post, but what i'm trying to do is create a floating menu which appears near the mouse cursor (like a right-hand mouse click). I want to be able to re-position the floating Menu, if it appears too close to the edge etc. tia bod --- In flexcoders@yahoogroups.com, bhaq1972 [EMAIL PROTECTED] wrote: Hi I'm looking at the flex 1.5 livedocs example of how to create a Menu - http://livedocs.macromedia.com/flex/15/asdocs_en/index.html (at the bottom). I cant seem to get the height and width of the Menu after creating the menu. eg myMenu = Menu.createMenu(panel, myMenuData); trace(myMenu.height); //always 0 trace(myMenu.width); //always 0 How do i get the actual height and weight. TIA -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/
[flexcoders] FYI RIA Conference Call For Papers
Hi, This isn't an Adobe event, but they are looking for speakers on Flex (and Web 2.0 and etc.). If interested there is a call for papers here: http://www.riaconference.com/ FYI, Regards, David Adobe -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Performance question - please help!
So in terms of Flex 2, would it be able to possibly handle this amount of data effectively since it uses flash 8? It sounds like you are saying that 1.5 has trouble displaying that amount of data because of ram usage problems? does that same problem exist in flex 2? Is there a max on how much memory flash player 7 is able to use effectivly? is that max much larger in flash 8.5 player? It sounds to me like it might be easier to port this thing to flex 2 than it would be to try and plug in to flash 8 bitmap features and draw my own graphs. as far as data points, well, it's 200 machines * 60 properties * 60 minutes = 720,000 data points that i need to hold in memory at any given time. I'm also being asked to update the data points at a rate of once per minute ie 200 machines * 60 properties = 12,000 updated data points per minute with an eventual goal to get those updates down to once every 10 seconds.. is that something that is doable by flex 2 even? They've got an app here written in mfc (c++) that can do it, but they'd like to have it accessible from anywhere on the web... Have there been any performance papers published on flash describing memory usage, etc? Thanks! --- JesterXL [EMAIL PROTECTED] wrote: Answering from the 30,000ft view, my suggestion is to utilize Flex 1.5 Flash 8's bitmap features. Flash Player 7, which is what Flex 1.5 outputs, cannot handle the amount of data points you want with acceptable performance, either in code or displayed. While paging can be effectively employed, you'd probably lose the visual representation you are going for. Therefore, utilizing the bitmap imaging code Flash 8 exposes, you could incoporate a component into Flex that utilizes blitting of those data points to 1 bitmap. The upshot us, it can scale infinitely since it's 1 bitmap, and an acceptable, predicatable RAM usage. The downside is, you still wouldn't really be able to retain the data if it's in the 100,000 range, but if it's just 60 pointers to machines, that's cake. - Original Message - From: Jonathan Hirschi [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, January 20, 2006 4:10 PM Subject: [flexcoders] Performance question - please help! Ok, so here's the situation, i've been tasked to write an application that shows a ton of graphs (testing the performance of flex). i need to create like 60 objects that will be holding approximately 100,000 datapoints apiece and i need to create those objects dynamically... is it going to be better/ more efficeient to create the objects as a class? or does it matter? if i create the objects as simple objects within the parent document is that going to have any effect on performance? ie what i have going on is that i have to show like 60 graphs - one per Property (like envision the graphs they show on the perfmon) so each property would be like hits per second, etc and i need to show up to 200 machines in each of those graphs... each machine represents 1 series in the graph and has 60 datapoints and i need to create the objects to hold that dynamically. ie each chart would be 1 object each chart would have x number of machines in it ie a structure of arrays of structures :) anyway, do you know what's going to give the best performance...? and/or how to create new public objects dynamically?' is it just public var [blah+i] = new object()? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Wrapping Images and Bitmaps
What I have thought of: I thought that if I could cache the canvas as a bitmap and access the bitmap data that I could wrap the pixels around bit by bit. That will be... er, less than performant. Look into using your bitmap as a fill, and changing its transformation matrix. You shouldn't need to touch the pixels to get the wrapping. -rg -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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: REPOST: [flexcoders] PrintJob cutting text on datagrid
Is there really no solution for this annoying printing problem or am I and the other guy the only ones printing datagrids on paper? If so I guess I have to start contacting Macromedia (or Adobe) officially to get some solution for this? In the app that we are building this could potentially cause a life threatening and dangerous situation for a real life person. -Mika From: Nihit Saxena [mailto:[EMAIL PROTECTED] Sent: 20. joulukuuta 2005 19:46 To: flexcoders@yahoogroups.com; [EMAIL PROTECTED] Subject: RE: REPOST: [flexcoders] PrintJob cutting text on datagrid There is a small problem in printing text it is being followed up. Can you please resend the sample, I will check if it is related to the same. Thanks, Nihit From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika Kiljunen Sent: Tuesday, December 20, 2005 5:16 PM To: flexcoders@yahoogroups.com Subject: REPOST: [flexcoders] PrintJob cutting text on datagrid Repost, since no answer Anyone? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika Kiljunen Sent: 1. joulukuuta 2005 14:40 To: flexcoders@yahoogroups.com Subject: [flexcoders] PrintJob cutting text on datagrid Hi, Can someone explain why PrintJob is cutting the bottom of letters like g, y,q etc?? See pic to explain. In the pic (a printed datagrid) the numbers should have text mg after them, but it has mg and the g has no bottom on it! Is there a way to fix this? -Mika -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] View Directory Tree
Have your middle tier build an xml representation of the filesystem tree, pass that back to Flex using HTTPService, and assign the result (resultFormat=xml) to a mx:Tree control's dataProvider property. Look at the docs to see what the tree wants by default and craft the xml accordingly. That way you won't have to worry about using labelFunction. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason Doyle Sent: Friday, January 20, 2006 10:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] View Directory Tree I am wanting to create a view into a directory on a server. Can someone point me in the right direction. I have no idea how to do this. Thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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/
[flexcoders] Re: Sourcing an image using a variable in URL (Flex 2)
Thanks that worked great --- In flexcoders@yahoogroups.com, Deepa Subramaniam [EMAIL PROTECTED] wrote: Hi - You can use databinding to plug in your photoID dynamically. mx:Script var photoID:Number = 1234; /mx:Script mx:Image id=myImage source=http://www.mySite.com/pictures/{String(photoID)}.jpg / -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcur Sent: Friday, January 20, 2006 10:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Sourcing an image using a variable in URL (Flex 2) I have a line mx:Image id=myImage source=http://www.mySite.com/pictures/1234.jpg/ which I want to generalise using a variable photoID to something like mx:Image id=myImage source=http://www.mySite.com/pictures/+photoID+.jpg/ This produces a compile error as the appears before end of URL. I tried the quot; option but just get the broken image icon as a result Any ideas what correct dode is , please -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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: REPOST: [flexcoders] PrintJob cutting text on datagrid
Tri dis: http://www.darronschall.com/weblog/archives/000193.cfm - Original Message - From: Mika Kiljunen To: 'Nihit Saxena' ; flexcoders@yahoogroups.com Sent: Friday, January 20, 2006 1:28 AM Subject: RE: REPOST: [flexcoders] PrintJob cutting text on datagrid Is there really no solution for this annoying printing problem or am I and the other guy the only ones printing datagrids on paper? If so I guess I have to start contacting Macromedia (or Adobe) officially to get some solution for this? In the app that we are building this could potentially cause a life threatening and dangerous situation for a real life person. -Mika From: Nihit Saxena [mailto:[EMAIL PROTECTED] Sent: 20. joulukuuta 2005 19:46To: flexcoders@yahoogroups.com; [EMAIL PROTECTED]Subject: RE: REPOST: [flexcoders] PrintJob cutting text on datagrid There is a small problem in printing text it is being followed up. Can you please resend the sample, I will check if it is related to the same. Thanks, Nihit From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika KiljunenSent: Tuesday, December 20, 2005 5:16 PMTo: flexcoders@yahoogroups.comSubject: REPOST: [flexcoders] PrintJob cutting text on datagrid Repost, since no answer Anyone? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika KiljunenSent: 1. joulukuuta 2005 14:40To: flexcoders@yahoogroups.comSubject: [flexcoders] PrintJob cutting text on datagrid Hi, Can someone explain why PrintJob is cutting the bottom of letters like g, y,q etc?? See pic to explain. In the pic (a printed datagrid) the numbers should have text mg after them, but it has mg and the g has no bottom on it! Is there a way to fix this? -Mika -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Performance question - please help!
Sure; Flex 2 gets all of Flash 8's bitmap features with the added benefit of a fast as nuts AVM. As far as the data, though, not sure. I've spent 3 years pushing Flash to it's limits and know where she breaks, but garbage collection tons of data, I haven't really found the ceiling yet in 8.5. What I have found is fixed in the next build, so it all sounds promising. Flash in general has problems creating millions of objects because of the overhead associated with the actual creation of Object in Flash. There is a lot of overhead, and while it's significant for the hundreds, for the thousands hundreds of thousands, those bytes start to add up. This is significantly improved in 8.5. No, I don't have details; basically, the amount of overhead is significantly reduced; it was a big problem in Flash hitting the hundreds of MovieClips limit, and now works great... well, as best an alpha can be. Besides, the way it was explained no sense... something about byte headers, and trait objects, and all kinds of other low-level insanity you have to be a genious to understand... or a Comp Sci grad I reckon. Max memory? Nope; I've had Flash take up to 2 gigs once, it was awesome! Again, haven't really pushed 8.5 yet since she isn't done. As far as porting, yeah, I agree. We've used a Flash 8 loaded SWF in 2 projects to enable file-upload, and while it works for the most part, it's not eloquent, and not being eloquent ticks developers off. Actually, 720,000 doesnt' sound to bad... what properties do these data points have? Like an ID and Name, or a long list or what? As far as GC, hell no; if Adobe published how their GC worked, and changed it, we'd all be f00ked. I think Tinic's article is the only one that has lasted: http://www.kaourantin.net/2005/09/garbage-collection-in-flash-player-8.html There was a comment on another article where he described how using 1 member variable vs. many locals was better... even though locals were optimized for local registers in Flash Player 7 making functions faster... it's all confusing. There was an in depth article that disappeared from the face of Google; I haven't seen it in 2 years, but don't know if it was worth reading or not. Anyway, let us know about the data points; what their properties are, I can run some tests when I'm done with this project. - Original Message - From: Jonathan Hirschi [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, January 20, 2006 5:46 PM Subject: Re: [flexcoders] Performance question - please help! So in terms of Flex 2, would it be able to possibly handle this amount of data effectively since it uses flash 8? It sounds like you are saying that 1.5 has trouble displaying that amount of data because of ram usage problems? does that same problem exist in flex 2? Is there a max on how much memory flash player 7 is able to use effectivly? is that max much larger in flash 8.5 player? It sounds to me like it might be easier to port this thing to flex 2 than it would be to try and plug in to flash 8 bitmap features and draw my own graphs. as far as data points, well, it's 200 machines * 60 properties * 60 minutes = 720,000 data points that i need to hold in memory at any given time. I'm also being asked to update the data points at a rate of once per minute ie 200 machines * 60 properties = 12,000 updated data points per minute with an eventual goal to get those updates down to once every 10 seconds.. is that something that is doable by flex 2 even? They've got an app here written in mfc (c++) that can do it, but they'd like to have it accessible from anywhere on the web... Have there been any performance papers published on flash describing memory usage, etc? Thanks! --- JesterXL [EMAIL PROTECTED] wrote: Answering from the 30,000ft view, my suggestion is to utilize Flex 1.5 Flash 8's bitmap features. Flash Player 7, which is what Flex 1.5 outputs, cannot handle the amount of data points you want with acceptable performance, either in code or displayed. While paging can be effectively employed, you'd probably lose the visual representation you are going for. Therefore, utilizing the bitmap imaging code Flash 8 exposes, you could incoporate a component into Flex that utilizes blitting of those data points to 1 bitmap. The upshot us, it can scale infinitely since it's 1 bitmap, and an acceptable, predicatable RAM usage. The downside is, you still wouldn't really be able to retain the data if it's in the 100,000 range, but if it's just 60 pointers to machines, that's cake. - Original Message - From: Jonathan Hirschi [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, January 20, 2006 4:10 PM Subject: [flexcoders] Performance question - please help! Ok, so here's the situation, i've been tasked to write an application that shows a ton of graphs (testing the performance of flex). i need to create like 60 objects that
RE: [flexcoders] Performance question - please help!
In AS3, you should declare a non-dynamic class for your data items rather than using untyped Objects. For example, don't use data items like { foo: 100, bar: 200 } Instead write new DataItem(100, 200) where class DataItem { function DataItem(foo:int, bar:int) { this.foo = foo; this.bar = bar; } var foo; var bar; } A non-dynamic class like DataItem takes a lot less memory and you can access foo and bar faster on it. A plain Object is basically a name/value dictionary where AS3 has to do a name lookup in a hash table. By contrast, a non-dynamic class is laid out compactly in memory so that AS3 knows that foo is at offset 4 from the beginning of the data item in memory, bar is at offset 8, etc. It can then read and write them quickly without any lookup. When you use a non-dynamic class, each int, uint, Boolean, and object or string reference will take up 4 bytes, while each Number will take up 8 bytes. Each instace also has a 16-byte header for keeping track of what class it belongs to, etc. There is also some rounding up because the memory manager allocates only chunks of certain sizes. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Friday, January 20, 2006 5:34 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Performance question - please help! Sure; Flex 2 gets all of Flash 8's bitmap features with the added benefit of a fast as nuts AVM. As far as the data, though, not sure. I've spent 3 years pushing Flash to it's limits and know where she breaks, but garbage collection tons of data, I haven't really found the ceiling yet in 8.5. What I have found is fixed in the next build, so it all sounds promising. Flash in general has problems creating millions of objects because of the overhead associated with the actual creation of Object in Flash. There is a lot of overhead, and while it's significant for the hundreds, for the thousands hundreds of thousands, those bytes start to add up. This is significantly improved in 8.5. No, I don't have details; basically, the amount of overhead is significantly reduced; it was a big problem in Flash hitting the hundreds of MovieClips limit, and now works great... well, as best an alpha can be. Besides, the way it was explained no sense... something about byte headers, and trait objects, and all kinds of other low-level insanity you have to be a genious to understand... or a Comp Sci grad I reckon. Max memory? Nope; I've had Flash take up to 2 gigs once, it was awesome! Again, haven't really pushed 8.5 yet since she isn't done. As far as porting, yeah, I agree. We've used a Flash 8 loaded SWF in 2 projects to enable file-upload, and while it works for the most part, it's not eloquent, and not being eloquent ticks developers off. Actually, 720,000 doesnt' sound to bad... what properties do these data points have? Like an ID and Name, or a long list or what? As far as GC, hell no; if Adobe published how their GC worked, and changed it, we'd all be f00ked. I think Tinic's article is the only one that has lasted: http://www.kaourantin.net/2005/09/garbage-collection-in-flash-player-8.h tml There was a comment on another article where he described how using 1 member variable vs. many locals was better... even though locals were optimized for local registers in Flash Player 7 making functions faster... it's all confusing. There was an in depth article that disappeared from the face of Google; I haven't seen it in 2 years, but don't know if it was worth reading or not. Anyway, let us know about the data points; what their properties are, I can run some tests when I'm done with this project. - Original Message - From: Jonathan Hirschi [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, January 20, 2006 5:46 PM Subject: Re: [flexcoders] Performance question - please help! So in terms of Flex 2, would it be able to possibly handle this amount of data effectively since it uses flash 8? It sounds like you are saying that 1.5 has trouble displaying that amount of data because of ram usage problems? does that same problem exist in flex 2? Is there a max on how much memory flash player 7 is able to use effectivly? is that max much larger in flash 8.5 player? It sounds to me like it might be easier to port this thing to flex 2 than it would be to try and plug in to flash 8 bitmap features and draw my own graphs. as far as data points, well, it's 200 machines * 60 properties * 60 minutes = 720,000 data points that i need to hold in memory at any given time. I'm also being asked to update the data points at a rate of once per minute ie 200 machines * 60 properties = 12,000 updated data points per minute with an eventual goal to get those updates down to once every 10 seconds.. is that something that is doable by flex 2 even? They've
Re: [flexcoders] MXML Components and Classes
So you're saying just extend a standard MXML component with an mx:script include on line #2. And it should associate the AS file with the class of the MXML component? Well, that sounds hacky :) I hope this is addressed for the Beta. -Trey JesterXL wrote: You can create ActionScript or MXML class; they are effectively the same thing. The only real limitation I've found is I've failed to create extensible containers via MXML; meaning, extending CheckBox, Label, Loader, with MXML works great, but extending Containers like VBox, Panel, etc. gave me problems. I can't remember if it WAS supposed to have 1 child or NOT supposed to have any children... anyway, if you use ActionScript, works like a charm, but I like MXML better. If the mx:Script tag is the first tag after Application, those methods will become class methods, just like others. If you put it after uicomponents, I think it just becomes like an include instead. You can still put it after mx:Style and mx:Metadata tags which is cool.. - Original Message - From: Trey Long [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, January 20, 2006 12:12 PM Subject: [flexcoders] MXML Components and Classes Quick question about making custom components. I know custom components exist as classes in actionscript but I was a little lost on how you create functions for your component. Right now I have an external .AS file that is just some import statements and a collection of functions (no package or class definition). How can I link the .MXML component to a class, or write the components class code? Is it possible to have a hybrid component or must the whole thing be in actionscript if I want any programmatic functionality? -Trey -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] MXML Components and Classes
Here is a class that extends VBox: ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml; width=400 height=400 /mx:VBox If you save that as MyVBox.mxml, you can then use it elsewhere as: jxl:MyVBox xmlns:jxl=* / Or: import MyVBox; createChild(MyVBox); If I want to give my class methods, I can do: ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml; width=400 height=400 mx:Script ![CDATA[ public function method():Void { trace(yo); } ]] /mx:Script /mx:VBox Same as: import mx.containers.VBox; class MyVBox extends VBox { public function method():Void { trace(yo); } } - Original Message - From: Trey Long [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, January 20, 2006 3:50 PM Subject: Re: [flexcoders] MXML Components and Classes So you're saying just extend a standard MXML component with an mx:script include on line #2. And it should associate the AS file with the class of the MXML component? Well, that sounds hacky :) I hope this is addressed for the Beta. -Trey JesterXL wrote: You can create ActionScript or MXML class; they are effectively the same thing. The only real limitation I've found is I've failed to create extensible containers via MXML; meaning, extending CheckBox, Label, Loader, with MXML works great, but extending Containers like VBox, Panel, etc. gave me problems. I can't remember if it WAS supposed to have 1 child or NOT supposed to have any children... anyway, if you use ActionScript, works like a charm, but I like MXML better. If the mx:Script tag is the first tag after Application, those methods will become class methods, just like others. If you put it after uicomponents, I think it just becomes like an include instead. You can still put it after mx:Style and mx:Metadata tags which is cool.. - Original Message - From: Trey Long [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, January 20, 2006 12:12 PM Subject: [flexcoders] MXML Components and Classes Quick question about making custom components. I know custom components exist as classes in actionscript but I was a little lost on how you create functions for your component. Right now I have an external .AS file that is just some import statements and a collection of functions (no package or class definition). How can I link the .MXML component to a class, or write the components class code? Is it possible to have a hybrid component or must the whole thing be in actionscript if I want any programmatic functionality? -Trey -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Performance question - please help!
Well, the way I'm planning this out is that at the moment, i need to have 60 chart objects with essentially up around 40 or so series per chart (estimated - could go as high as 60). Each series is an array of numbers. Each array has 60 values. I'm still noodling out how to best put this together... I need still need to manage time in all this for labels on the charts, but the time element is going to be synced across alll of the charts, so I've been playing around with updating the labels and horizontal values manually.. (not sure if that's the way to go yet) so for example (hope this makes sense): Chart = cpu:object series = machine1:Array machine60:Array machine1:Array 98 100 45 67 etc.. machine2:Array 56 34 98 45 etc... --- JesterXL [EMAIL PROTECTED] wrote: Sure; Flex 2 gets all of Flash 8's bitmap features with the added benefit of a fast as nuts AVM. As far as the data, though, not sure. I've spent 3 years pushing Flash to it's limits and know where she breaks, but garbage collection tons of data, I haven't really found the ceiling yet in 8.5. What I have found is fixed in the next build, so it all sounds promising. Flash in general has problems creating millions of objects because of the overhead associated with the actual creation of Object in Flash. There is a lot of overhead, and while it's significant for the hundreds, for the thousands hundreds of thousands, those bytes start to add up. This is significantly improved in 8.5. No, I don't have details; basically, the amount of overhead is significantly reduced; it was a big problem in Flash hitting the hundreds of MovieClips limit, and now works great... well, as best an alpha can be. Besides, the way it was explained no sense... something about byte headers, and trait objects, and all kinds of other low-level insanity you have to be a genious to understand... or a Comp Sci grad I reckon. Max memory? Nope; I've had Flash take up to 2 gigs once, it was awesome! Again, haven't really pushed 8.5 yet since she isn't done. As far as porting, yeah, I agree. We've used a Flash 8 loaded SWF in 2 projects to enable file-upload, and while it works for the most part, it's not eloquent, and not being eloquent ticks developers off. Actually, 720,000 doesnt' sound to bad... what properties do these data points have? Like an ID and Name, or a long list or what? As far as GC, hell no; if Adobe published how their GC worked, and changed it, we'd all be f00ked. I think Tinic's article is the only one that has lasted: http://www.kaourantin.net/2005/09/garbage-collection-in-flash-player-8.html There was a comment on another article where he described how using 1 member variable vs. many locals was better... even though locals were optimized for local registers in Flash Player 7 making functions faster... it's all confusing. There was an in depth article that disappeared from the face of Google; I haven't seen it in 2 years, but don't know if it was worth reading or not. Anyway, let us know about the data points; what their properties are, I can run some tests when I'm done with this project. - Original Message - From: Jonathan Hirschi [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, January 20, 2006 5:46 PM Subject: Re: [flexcoders] Performance question - please help! So in terms of Flex 2, would it be able to possibly handle this amount of data effectively since it uses flash 8? It sounds like you are saying that 1.5 has trouble displaying that amount of data because of ram usage problems? does that same problem exist in flex 2? Is there a max on how much memory flash player 7 is able to use effectivly? is that max much larger in flash 8.5 player? It sounds to me like it might be easier to port this thing to flex 2 than it would be to try and plug in to flash 8 bitmap features and draw my own graphs. as far as data points, well, it's 200 machines * 60 properties * 60 minutes = 720,000 data points that i need to hold in memory at any given time. I'm also being asked to update the data points at a rate of once per minute ie 200 machines * 60 properties = 12,000 updated data points per minute with an eventual goal to get those updates down to once every 10 seconds.. is that something that is doable by flex 2 even? They've got an app here written in mfc (c++) that can do it, but they'd like to have it accessible from anywhere on the web... Have there been any performance papers published on flash describing memory usage, etc? Thanks! --- JesterXL [EMAIL PROTECTED] wrote: Answering from the 30,000ft view, my suggestion is to utilize Flex 1.5 Flash 8's bitmap features. Flash Player 7, which is what Flex 1.5 outputs, cannot handle the amount of data points you want with acceptable performance, either in code or displayed. While
Re: [flexcoders] Performance question - please help!
Oh i guess i should have stated that when I request the data from my web service (coldfusion cfc), 760,000 is about the number of records (in total) that i'm expecting to get (200 requests with 2100 records in each request). I have to parse through those records to create the Charts. I'm pulling the records back with a remoteobject request. I should also further say that the 760,000 records are all for the initial request. subsequent requests will be a lot less... but still along the lines of 12000 records every minute. records are coming back in the format of: machineID, propertyid, minuteid, propertyvalue 1,1,213,98 1,2,213,78 2,1,213,94 Everything is numbers Thanks for the explanations jester. --- Jonathan Hirschi [EMAIL PROTECTED] wrote: Well, the way I'm planning this out is that at the moment, i need to have 60 chart objects with essentially up around 40 or so series per chart (estimated - could go as high as 60). Each series is an array of numbers. Each array has 60 values. I'm still noodling out how to best put this together... I need still need to manage time in all this for labels on the charts, but the time element is going to be synced across alll of the charts, so I've been playing around with updating the labels and horizontal values manually.. (not sure if that's the way to go yet) so for example (hope this makes sense): Chart = cpu:object series = machine1:Array machine60:Array machine1:Array 98 100 45 67 etc.. machine2:Array 56 34 98 45 etc... --- JesterXL [EMAIL PROTECTED] wrote: Sure; Flex 2 gets all of Flash 8's bitmap features with the added benefit of a fast as nuts AVM. As far as the data, though, not sure. I've spent 3 years pushing Flash to it's limits and know where she breaks, but garbage collection tons of data, I haven't really found the ceiling yet in 8.5. What I have found is fixed in the next build, so it all sounds promising. Flash in general has problems creating millions of objects because of the overhead associated with the actual creation of Object in Flash. There is a lot of overhead, and while it's significant for the hundreds, for the thousands hundreds of thousands, those bytes start to add up. This is significantly improved in 8.5. No, I don't have details; basically, the amount of overhead is significantly reduced; it was a big problem in Flash hitting the hundreds of MovieClips limit, and now works great... well, as best an alpha can be. Besides, the way it was explained no sense... something about byte headers, and trait objects, and all kinds of other low-level insanity you have to be a genious to understand... or a Comp Sci grad I reckon. Max memory? Nope; I've had Flash take up to 2 gigs once, it was awesome! Again, haven't really pushed 8.5 yet since she isn't done. As far as porting, yeah, I agree. We've used a Flash 8 loaded SWF in 2 projects to enable file-upload, and while it works for the most part, it's not eloquent, and not being eloquent ticks developers off. Actually, 720,000 doesnt' sound to bad... what properties do these data points have? Like an ID and Name, or a long list or what? As far as GC, hell no; if Adobe published how their GC worked, and changed it, we'd all be f00ked. I think Tinic's article is the only one that has lasted: http://www.kaourantin.net/2005/09/garbage-collection-in-flash-player-8.html There was a comment on another article where he described how using 1 member variable vs. many locals was better... even though locals were optimized for local registers in Flash Player 7 making functions faster... it's all confusing. There was an in depth article that disappeared from the face of Google; I haven't seen it in 2 years, but don't know if it was worth reading or not. Anyway, let us know about the data points; what their properties are, I can run some tests when I'm done with this project. - Original Message - From: Jonathan Hirschi [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, January 20, 2006 5:46 PM Subject: Re: [flexcoders] Performance question - please help! So in terms of Flex 2, would it be able to possibly handle this amount of data effectively since it uses flash 8? It sounds like you are saying that 1.5 has trouble displaying that amount of data because of ram usage problems? does that same problem exist in flex 2? Is there a max on how much memory flash player 7 is able to use effectivly? is that max much larger in flash 8.5 player? It sounds to me like it might be easier to port this thing to flex 2 than it would be to try and plug in to flash 8 bitmap features and draw my own graphs. as far as data points, well, it's 200 machines * 60
RE: [flexcoders] Performance question - please help!
Gordon, thanks for the response. i guess what I was wondering was if it'd be better to write up a class for data storage or just to use a regular object... ie myDataStore:Object and then: myDataStore[mychart+1] = new Object(); then a lot more stuff and objects added... ie.. storing a ton of data... or is it better to obfuscate this into a class ie.. myDataStore = new DataStore(mychart+1); Does it make a difference to the performance of the application? so for example, when using the class do you avoid any potential access locks? or are there no access lock problems with either one of these? The problem i'm facing is that I need to be able to move a large amount of data into the system where i could be trying to access the same variables at the same time... which brings up an at what point along the line does variable locking take place? so for example, if i have an extended variable structure with sub objects and arrays, if two threads try to update the same value, where does the locking occur? so for example: myChartObj.myarray[3].property if two threads try to update property, does it lock you out of myarray until the update goes through or does it lock you out of myChartobj? or does it only lock property? Thanks! --- Gordon Smith [EMAIL PROTECTED] wrote: In AS3, you should declare a non-dynamic class for your data items rather than using untyped Objects. For example, don't use data items like { foo: 100, bar: 200 } Instead write new DataItem(100, 200) where class DataItem { function DataItem(foo:int, bar:int) { this.foo = foo; this.bar = bar; } var foo; var bar; } A non-dynamic class like DataItem takes a lot less memory and you can access foo and bar faster on it. A plain Object is basically a name/value dictionary where AS3 has to do a name lookup in a hash table. By contrast, a non-dynamic class is laid out compactly in memory so that AS3 knows that foo is at offset 4 from the beginning of the data item in memory, bar is at offset 8, etc. It can then read and write them quickly without any lookup. When you use a non-dynamic class, each int, uint, Boolean, and object or string reference will take up 4 bytes, while each Number will take up 8 bytes. Each instace also has a 16-byte header for keeping track of what class it belongs to, etc. There is also some rounding up because the memory manager allocates only chunks of certain sizes. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Friday, January 20, 2006 5:34 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Performance question - please help! Sure; Flex 2 gets all of Flash 8's bitmap features with the added benefit of a fast as nuts AVM. As far as the data, though, not sure. I've spent 3 years pushing Flash to it's limits and know where she breaks, but garbage collection tons of data, I haven't really found the ceiling yet in 8.5. What I have found is fixed in the next build, so it all sounds promising. Flash in general has problems creating millions of objects because of the overhead associated with the actual creation of Object in Flash. There is a lot of overhead, and while it's significant for the hundreds, for the thousands hundreds of thousands, those bytes start to add up. This is significantly improved in 8.5. No, I don't have details; basically, the amount of overhead is significantly reduced; it was a big problem in Flash hitting the hundreds of MovieClips limit, and now works great... well, as best an alpha can be. Besides, the way it was explained no sense... something about byte headers, and trait objects, and all kinds of other low-level insanity you have to be a genious to understand... or a Comp Sci grad I reckon. Max memory? Nope; I've had Flash take up to 2 gigs once, it was awesome! Again, haven't really pushed 8.5 yet since she isn't done. As far as porting, yeah, I agree. We've used a Flash 8 loaded SWF in 2 projects to enable file-upload, and while it works for the most part, it's not eloquent, and not being eloquent ticks developers off. Actually, 720,000 doesnt' sound to bad... what properties do these data points have? Like an ID and Name, or a long list or what? As far as GC, hell no; if Adobe published how their GC worked, and changed it, we'd all be f00ked. I think Tinic's article is the only one that has lasted: http://www.kaourantin.net/2005/09/garbage-collection-in-flash-player-8.h tml There was a comment on another article where he described how using 1 member variable vs. many locals was better... even though locals were optimized for local registers in Flash Player 7 making functions faster... it's all confusing. There was