[flexcoders] does Flex 5 upgrade? or downgrade in practice? REFdn7076142784
Dear all At http://www.adobe.com/devnet/flex/articles/flex4sdk_whatsnew.html , at the beginning they telling us: Spark provides a much more expressive mechanism for developers and designers to work together on the appearance of their Flex applications. In other topic they saying that designer and developer could work for the same project, separately. It sounds good, but which way in practice Adobe suggests? Does anybody knows? Because, all of us (more or less) have developed ways for developer and designed to work together for the same project. Does Adobe suggest something smartest and does it worth? Does it really worth? In our business we must estimate if a new product they sell us, if a new suggested technology really worth. We have no time (see money) to invest to something that finally doesn't worth. Imagine to invest to learn something (you or your people) and after one year Adobe will abandon it, in case where they see that it is not merchandisable anymore or generally is failed! The history of software development is full with this kind of stories. I think. that Flex is becoming too complex for this kind of software that generates. Even more where Flex doesn't support multithreading (what are you doing Adobe with too heavy infrastructures in our swf???). Too complex like .net has become, where a simple applications requires a lot of power CPU, at least on its first execution, where a new developer is completely lost in too many libraries where they doing the same things, with different bugs. Share your thoughts. .. Take care. dennis ...we are what we are doing... P Think! before you print.
RE: [flexcoders] does Flex 5 upgrade? or downgrade in practice? REFdn7076142784
Hi Alexander Your question is correct :) In general, complex is the unknown. As we are talking about multithreaded, is such a shame so power engine like this of flash to do not support multithreading. dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alexander Farber Sent: Thursday, August 19, 2010 3:11 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] does Flex 5 upgrade? or downgrade in practice? REFdn7076142784 So you think Flex is complex, but then you want it to become multithreaded?
RE: [flexcoders] Re: does Flex 5 upgrade? or downgrade in practice? REFdn7076142784
I definitely agree with you, if Flex stops something else will appear and we will have it to learn. I think that Adobe makes the things more confused, as we were doing the same things much easiest with our developed infrastructure. As your said, we are waiting from SDK better performance to our application (like multithreading :) ), better database connections. and many other things where yet is poor, instead of create the new spark. Ok, I don't blame because I haven't learn this feature; it is my first time in the history of Flex where I complain for something. I hope to be wrong and continue to trust Adobe. By the way, according this message Spark provides a much more expressive mechanism for developers and designers to work together on the appearance of their Flex applications. In other topic they saying that designer and developer could work for the same project, separately. Could someone explain me (it this is possible), what the designer can do only and what the developer? Some example(s). Thank you in advance dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of t0ml33 Sent: Thursday, August 19, 2010 3:56 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: does Flex 5 upgrade? or downgrade in practice? REFdn7076142784 Same as with anything else. We want Adobe to continually make things better - that means that we have to pay some cost to learn the new tech, port our existing apps, patch around any new issues, remove hacks and workarounds that are no longer necessary, etc. Would you like them to stop releasing new versions? Just develop the Flex 3 feature set forever? If Adobe did not move the platform forward, somebody else would come up with some new platform that does something Flex doesn't - and then our bosses would be asking us to rewrite for that new platform. Only you can decide whether the upgrade is worth it on your individual projects. My criteria for making that decision are pretty much as follows: Is your software reaching end of life? Probably don't upgrade. New project? Definitely upgrade. Project has a lot of new development left to do? Probably upgrade. Finally, Flex has its limitations and it's your job as a developer to understand those limitations and guide your project management accordingly. If you have a boss that is pushing you to do something which you know will not perform well, you have to convince her/him that it's a bad idea. Also, if you have not structured your project with performance in mind, you will see poor startup performance - but that's not Flex's fault. That said, I too would like to see some progress in the overall performance of the Flex SDK. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , dennis den...@... wrote: Dear all At http://www.adobe.com/devnet/flex/articles/flex4sdk_whatsnew.html , at the beginning they telling us: Spark provides a much more expressive mechanism for developers and designers to work together on the appearance of their Flex applications. In other topic they saying that designer and developer could work for the same project, separately. It sounds good, but which way in practice Adobe suggests? Does anybody knows? Because, all of us (more or less) have developed ways for developer and designed to work together for the same project. Does Adobe suggest something smartest and does it worth? Does it really worth? In our business we must estimate if a new product they sell us, if a new suggested technology really worth. We have no time (see money) to invest to something that finally doesn't worth. Imagine to invest to learn something (you or your people) and after one year Adobe will abandon it, in case where they see that it is not merchandisable anymore or generally is failed! The history of software development is full with this kind of stories. I think. that Flex is becoming too complex for this kind of software that generates. Even more where Flex doesn't support multithreading (what are you doing Adobe with too heavy infrastructures in our swf???). Too complex like .net has become, where a simple applications requires a lot of power CPU, at least on its first execution, where a new developer is completely lost in too many libraries where they doing the same things, with different bugs. Share your thoughts. .. Take care. dennis ...we are what we are doing... P Think! before you print.
[flexcoders] misleading errors about Vector3D, Matrix3D, PerspectiveProjection REFdn1026535538
In Flex 3.0.2 SDK I get the follow misleading errors: 1046: Type was not found or was not a compile-time constant: Vector3D. 1046: Type was not found or was not a compile-time constant: Matrix3D. 1046: Type was not found or was not a compile-time constant: PerspectiveProjection. This happened after I installed and the Flex Builder 4 on the same windows system. Of course I don't use any of these classes (Vector3D, Matrix3D, PerspectiveProjection). Also there is no these definition in any file of the my projects. This error occurred in my all projects (it is a real disaster). At internet I found this error is because some kind of incompatibility with something the Flex 4 installed. Flash player? Air? I don't know. At Adobe's forums I found nothing. So here we are. I have the latest update of Flex 3. I tried to replace the ActiveX Flash Player from 10 to 9 without result. I removed the Air player, nothing again. Please.. Help. desperately. Take care dennis ...we are what we are doing... P Think! before you print.
RE: [flexcoders] loading transparent swf through swf REFdn3005773759
Hello ppl, I am coming back with an old request, trying to find out a solution. How to load a swf from another swf (I mean, from another Flex AS code, not from html code), in order to be transparent? Funny is that I have found how to load a swf as transparent on html objects and I cannot find how to load swf as transparent on other swf. With word transparent, I mean, the color of the stage of the loaded swf must be transparent. Now, when I load the swf, it is appeared with this default dark blue color of Flex 3 environment. How may I remove it and leave the loaded swl's stage transparent? (the alpha property, by the way, it is working). Kinf regards Dennis
RE: [flexcoders] sending email from actionscript / flex REFdn6005077818
This is a solution, but I would like to send email as the user fills a “flex” form. I think that the only solution is to talk with php. dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Roman Protsiuk Sent: Monday, March 08, 2010 7:54 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] sending email from actionscript / flex REFdn6005077818 navigateToURL(mailto:f...@bar.com;); R On Mon, Mar 8, 2010 at 4:44 PM, dennis den...@anel.cc wrote: Hi, does any body knows how can we send emails from flex projects? (in order to implement a “send email” form) dennis ...we are what we are doing... P Think! before you print. __ NOD32 4924 (20100308) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com
[flexcoders] sending email from actionscript / flex REFdn6005077818
Hi, does any body knows how can we send emails from flex projects? (in order to implement a send email form) dennis ...we are what we are doing... P Think! before you print.
[flexcoders] the textArea as button REFdn3055683630
Hello to all. I use the textArea component as button. Great jog indeed! How may I change the mouse cursor to handpoint? With canvas, the follow code works: CnvBtn.buttonMode=false; CnvBtn.useHandCursor=false; The relatively for textArea has no effect. dennis ...we are what we are doing... P Think! before you print.
[flexcoders] loading transparent swf through swf REFdn3005773759
How to load a swf from another swf (I mean, from another AS code, not from html code), in order to be transparent? What properties should I have in loaded swf and how should I load it in order to be transparent? With word transparent, I mean, the color of the stage of the loaded swf must be transparent. Also, with this way of load, it is possible to play with alpha property? dennis ...we are what we are doing... P Think! before you print.
RE: [flexcoders] Re: how to stretch an image? REFdn3045277632
Thank you very much guys. dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Flex Sent: Monday, February 15, 2010 4:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: how to stretch an image? REFdn3045277632 Just use backgroundSize=100% in the application mxml...see below mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute backgroundImage=leather.jpg backgroundSize=100% Web manager FlexDownloads.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , dennis den...@... wrote: Hello guys. I want to use an image as background of my application and I want to be stretched on case or resize. I don't care if it becomes distorted. I just want the image to cover always application's background. Testing the scale property of the Image, I managed only to scale the image on resize event, but if the dimensions of the stage are not analog with the dimensions of the Image, the background of the application appeared at the bottom or at the right. Does anybody know any property settings or a technique to stretch the image? Best regards Dennis __ NOD32 4867 (20100215) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com
[flexcoders] how to stretch an image? REFdn3045277632
Hello guys. I want to use an image as background of my application and I want to be stretched on case or resize. I don't care if it becomes distorted. I just want the image to cover always application's background. Testing the scale property of the Image, I managed only to scale the image on resize event, but if the dimensions of the stage are not analog with the dimensions of the Image, the background of the application appeared at the bottom or at the right. Does anybody know any property settings or a technique to stretch the image? Best regards Dennis
[flexcoders] Re: LCDS Offline Synchronization
Thanks Jeff for the prompt response, coincidentally a few hours after writing this post, I managed to solve my problem by doing pretty much what you said. Making an explict call to connect after the datastore and dataservices are initialized correctly updated the commitRequired flag. I had thought that setting autoConnect to true would do the resync but I guess an explicit connect is required. Thanks again. Dennis --- In flexcoders@yahoogroups.com, Jeffrey Vroom j...@... wrote: It sounds to me like you are just not getting that particular DataService connected before you do the fill. There is a DataService.connect method if I recall correctly that might help. I don't think you get commitRequired=true when the app is in a disconnected state. The fill will auto-connect before it runs so that would explain why it is initializing the data store. The reconnect policy setting is set by default from the server configuration. I think there is an api on the client which also sets it though, probably on the DataStore property of the DataService.. note that there is also a refresh operation on the DataService client which essentially does the same thing only manually. It sounds to me like when you are calling fill, it reconnects which then refreshes that fill as per the reconnect policy, then you do the fill again so it happens twice. If you just call connect, you can avoid that extra fill call altogether. Jeff On Tue, Feb 9, 2010 at 10:07 AM, Dennis dennis@... wrote: I want to determine if the following offline synchronization behaviour is by design or a result of some improper LCDS config or client code. Scenario: After committing a change to the offline cache, I see the commitRequire flag on the DataStore is set as true and I save the offline cache. Next, I close the app, start up my server and restart the app expect the offline data to by synchronized. On application restart one thing I noticed is that on initialization of the DataService and DataStore, the commitRequire is false even though the offline DataStore was previously required a commit. If I do a fill for data that was modified in offline mode, my success callback registered to the AsyncToken from the fill call is called twice. It seems one result of the fill is coming from the offline data cache and the other is from the server side data. After the fill call, the commitRequire flag of the DataStore is now set to be true and that is were I do a commit. Q. Is this expected? Does LCDS compare the fill results between the offline cache and the server data to determine if commitRequire is true? Should I blindly call commit once I leave offline mode and delete the offline cache? If I delete the offline cache from the filesystem, the callback from the fill is only called once. Ideally I want the callback from the fill to only be called once and to contain the synchronized results of the fill. Q. In looking at the LCDS dev guide is see the follow passage in Chapter 18: Advanced data handling: If there is a connection available after the local cache is loaded, the current reconnectPolicy property value is consulted to determine how a request for the current data will be made. If the reconnectPolicy property is set to IDENTITY, no request for remote data is made because it is assumed that the data is up-to-date. If the reconnectPolicy property is set to INSTANCE, a request for the remote data is made and the result of that fill is used to overwrite the current in-memory version. Where is the reconnectPolicy defined and do I need to change this? I apologize for the length of the post, I've tried to be as concise as possible.
[flexcoders] LCDS Deleting offline data cache
If a user deletes the offline cache of an Air app then starts up the app in offline mode what is the expected behaviour results from a fill request? On my local setup, the callbacks bound to the token from my fill request are not called and the app waits indefinitely. I expect an empty fill result list similar to what would happen when you make a offline request that was never cached. I could write some custom code to return empty lists when the sqllite db file does not exist, but i'm thinking there is a nicer and built in way of doing this. Any suggestions? Dennis
[flexcoders] LCDS Offline Synchronization
I want to determine if the following offline synchronization behaviour is by design or a result of some improper LCDS config or client code. Scenario: After committing a change to the offline cache, I see the commitRequire flag on the DataStore is set as true and I save the offline cache. Next, I close the app, start up my server and restart the app expect the offline data to by synchronized. On application restart one thing I noticed is that on initialization of the DataService and DataStore, the commitRequire is false even though the offline DataStore was previously required a commit. If I do a fill for data that was modified in offline mode, my success callback registered to the AsyncToken from the fill call is called twice. It seems one result of the fill is coming from the offline data cache and the other is from the server side data. After the fill call, the commitRequire flag of the DataStore is now set to be true and that is were I do a commit. Q. Is this expected? Does LCDS compare the fill results between the offline cache and the server data to determine if commitRequire is true? Should I blindly call commit once I leave offline mode and delete the offline cache? If I delete the offline cache from the filesystem, the callback from the fill is only called once. Ideally I want the callback from the fill to only be called once and to contain the synchronized results of the fill. Q. In looking at the LCDS dev guide is see the follow passage in Chapter 18: Advanced data handling: If there is a connection available after the local cache is loaded, the current reconnectPolicy property value is consulted to determine how a request for the current data will be made. If the reconnectPolicy property is set to IDENTITY, no request for remote data is made because it is assumed that the data is up-to-date. If the reconnectPolicy property is set to INSTANCE, a request for the remote data is made and the result of that fill is used to overwrite the current in-memory version. Where is the reconnectPolicy defined and do I need to change this? I apologize for the length of the post, I've tried to be as concise as possible.
RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069
Hey. what are you doing here. you cheat! J I know how to make Constraints / Anchors with onResize Event; I just wondering if there is a chance to work with the already implemented (by Adobe) Constraints mechanisms. But probably there is no something like this. at least on the level we are talking (UIComponent and so on). Ok, I got it, I will implemented my own Constraints / Anchors mechanisms. Thank you for your time Tracy. In computers, it is not enough to know what you can do, more precious is to know what you cannot do. dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Friday, January 01, 2010 8:03 PM To: flexcoders@yahoogroups.com Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 Below is my test code. Oddly, the second panel is disabled and I do not know why, but it does reposition correctly: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=initApp() resize=onResize(event) mx:Script![CDATA[ import mx.managers.PopUpManager; import mx.containers.Panel; private var _popup:Panel; /** Runs on creationComplete */ private function initApp():void { _popup = Panel(PopUpManager.createPopUp(this, Panel, true)); //instantiate and show the popup _popup.width = 350;//set some properties _popup.height = 80; _popup.title = Resize App to test(uses onResize an manual position); _popup.x = this.width - 360; var pnl:Panel = new Panel(); pnl.width = 350;//set some properties pnl.height = 80; pnl.title = Resize App to test(uses constraints); pnl.setStyle(bottom, 10); pnl.setStyle(right, 10); this.addChild(pnl); }//initApp /** Runs on application resize event */ private function onResize(oEvent:Event):void { if (_popup) {//test for existence of popup _popup.x = this.width - 360; //re-position the popup } }//onResize ]]/mx:Script /mx:Application Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of dennis Sent: Tuesday, December 29, 2009 9:00 AM To: flexcoders@yahoogroups.com Subject: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 Hi again. I wrote the follow (as you did the same). var aPanel:Panel = new Panel(); aPanel.width=100;aPanel.height=50; aPanel.setStyle(bottom,30); aPanel.setStyle(right,30); addChild(aPanel); but the panel is not anchored. What it is wrong here? Please send me your code where the constraints are working. Also I found that current stage doesn't know the event RESIZE or it doesn't resized J, I don't know this detail. With other words, the follow Listener's registration is not triggered. addEventListener(flash.events.Event.RESIZE,listenerCurrentStageOnResize); On the other hand. the Application is Resized and the follow Listener's registration has effect. Application(Application.application).addEventListener(flash.events.Event.RES IZE,ListenerAppOnResize); dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Monday, December 28, 2009 3:12 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 I just added a panel component to that example (via AS) and constrained it with a bottom and right styles, and it positions correctly. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Sunday, December 27, 2009 7:44 PM To: flexcoders@yahoogroups.com Subject: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 Constraints should work in a application parent container. Are you certain that the application is resizing correctly? Set up a onResize listener for debugging purposes and make sure it is getting fired on browser resize. If it is, and constraints are still not woking, then you can use that listener to reposition you component. Here is an example that positions a popup component on application resize, it should help if you need to go the manual route. Tracy Spratt, Lariat Services, development services
RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069
Hi again. I wrote the follow (as you did the same). var aPanel:Panel = new Panel(); aPanel.width=100;aPanel.height=50; aPanel.setStyle(bottom,30); aPanel.setStyle(right,30); addChild(aPanel); but the panel is not anchored. What it is wrong here? Please send me your code where the constraints are working. Also I found that current stage doesn't know the event RESIZE or it doesn't resized J, I don't know this detail. With other words, the follow Listener's registration is not triggered. addEventListener(flash.events.Event.RESIZE,listenerCurrentStageOnResize); On the other hand. the Application is Resized and the follow Listener's registration has effect. Application(Application.application).addEventListener(flash.events.Event.RES IZE,ListenerAppOnResize); dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Monday, December 28, 2009 3:12 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 I just added a panel component to that example (via AS) and constrained it with a bottom and right styles, and it positions correctly. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Sunday, December 27, 2009 7:44 PM To: flexcoders@yahoogroups.com Subject: [SPAM] RE: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 Constraints should work in a application parent container. Are you certain that the application is resizing correctly? Set up a onResize listener for debugging purposes and make sure it is getting fired on browser resize. If it is, and constraints are still not woking, then you can use that listener to reposition you component. Here is an example that positions a popup component on application resize, it should help if you need to go the manual route. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of dennis Sent: Sunday, December 27, 2009 2:57 PM To: flexcoders@yahoogroups.com Subject: [SPAM] RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 Hi The layout it is absolute. the Application(Application.application).layout.toString() returns absolute. I think the better way is to anchor my component manually L Share your thoughts. dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Wednesday, December 23, 2009 5:49 PM To: flexcoders@yahoogroups.com Subject: RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 You are clear that constraint based layout requires a Canvas or application or panel with absolute layout? Either extend one of those for your component, or size and position your child component manually. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of dennis Sent: Monday, December 21, 2009 2:10 PM To: flexcoders@yahoogroups.com Subject: [SPAM] RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 Hello to all Can anybody else help on this topic??? Any other suggestion how to anchor an UIComponent object? dennis From: dennis [mailto:den...@anel.cc] Sent: Saturday, December 19, 2009 12:12 AM To: 'flexcoders@yahoogroups.com' Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 Hi Tracy. I hope you are ok. I do the follow: var d:PanelGradient=new PanelGradient(0,0,stg.width/2,stg.height/2,30,30,stg.width/2*1.5,stg.width/2 *1.5); d.setStyle(right,10); d.setStyle(bottom,10); addChild(d); In the above code, setting the right and bottom, I expect, in case of resizing the browser, the PanelGrandient must be kept anchored in the right bottom corner. What I do wrong? p.s. The PanelGradient extends the UIComponent and in real is a container of a Shape with a matrix. dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Saturday, November 28, 2009 12:24 AM To: flexcoders@yahoogroups.com Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 The constraints
RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069
Hi The layout it is absolute. the Application(Application.application).layout.toString() returns absolute. I think the better way is to anchor my component manually L Share your thoughts. dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Wednesday, December 23, 2009 5:49 PM To: flexcoders@yahoogroups.com Subject: RE: [SPAM] RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 You are clear that constraint based layout requires a Canvas or application or panel with absolute layout? Either extend one of those for your component, or size and position your child component manually. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of dennis Sent: Monday, December 21, 2009 2:10 PM To: flexcoders@yahoogroups.com Subject: [SPAM] RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 Hello to all Can anybody else help on this topic??? Any other suggestion how to anchor an UIComponent object? dennis From: dennis [mailto:den...@anel.cc] Sent: Saturday, December 19, 2009 12:12 AM To: 'flexcoders@yahoogroups.com' Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 Hi Tracy. I hope you are ok. I do the follow: var d:PanelGradient=new PanelGradient(0,0,stg.width/2,stg.height/2,30,30,stg.width/2*1.5,stg.width/2 *1.5); d.setStyle(right,10); d.setStyle(bottom,10); addChild(d); In the above code, setting the right and bottom, I expect, in case of resizing the browser, the PanelGrandient must be kept anchored in the right bottom corner. What I do wrong? p.s. The PanelGradient extends the UIComponent and in real is a container of a Shape with a matrix. dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Saturday, November 28, 2009 12:24 AM To: flexcoders@yahoogroups.com Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 The constraints are styles, not properties. So to use constraints in AS, you need to define them in a style sheet, and/or use setStyle(). Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of dennis Sent: Thursday, November 26, 2009 9:48 AM To: flexcoders@yahoogroups.com Subject: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 Thank you for your reply. I work only with AS, I mean with no MXML. I tried to use the Canvas container but using the mx.containers.Canvas, there is no right property (even top, bottom, left). What do I miss? dennis From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jamesfin Sent: Wednesday, November 18, 2009 7:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 You can always do this where the right / top is constraining the item. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init() mx:Script ![CDATA[ import mx.core.UIComponent; private function init():void{ var spTest:Sprite = new Sprite(); spTest.graphics.beginFill(0xFF); spTest.graphics.drawRect(0, 0, 100, 100); spTest.graphics.endFill(); logo.rawChildren.addChild(spTest); } ]] /mx:Script mx:Canvas width=100 height=100 right=20 top=20 id=logo/ /mx:Application --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , dennis den...@... wrote: Hello people.. I have an extended Sprite object and I put in on the Stage (via addChild). How may I anchor it on runtime on the Stage? How may I constraint it in Columns and Rows? Suppose that I want a Sprite(Panel) object, to be always 20 pixels from right edge of the Stage, even if the Stage resized. Thank in advance. Dennis __ NOD32 4618 (20091118) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com __ NOD32 4643 (20091127) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com __ NOD32 4712 (20091223) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com
RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069
Hello to all Can anybody else help on this topic??? Any other suggestion how to anchor an UIComponent object? dennis From: dennis [mailto:den...@anel.cc] Sent: Saturday, December 19, 2009 12:12 AM To: 'flexcoders@yahoogroups.com' Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 Hi Tracy. I hope you are ok. I do the follow: var d:PanelGradient=new PanelGradient(0,0,stg.width/2,stg.height/2,30,30,stg.width/2*1.5,stg.width/2 *1.5); d.setStyle(right,10); d.setStyle(bottom,10); addChild(d); In the above code, setting the right and bottom, I expect, in case of resizing the browser, the PanelGrandient must be kept anchored in the right bottom corner. What I do wrong? p.s. The PanelGradient extends the UIComponent and in real is a container of a Shape with a matrix. dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Saturday, November 28, 2009 12:24 AM To: flexcoders@yahoogroups.com Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 The constraints are styles, not properties. So to use constraints in AS, you need to define them in a style sheet, and/or use setStyle(). Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of dennis Sent: Thursday, November 26, 2009 9:48 AM To: flexcoders@yahoogroups.com Subject: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 Thank you for your reply. I work only with AS, I mean with no MXML. I tried to use the Canvas container but using the mx.containers.Canvas, there is no right property (even top, bottom, left). What do I miss? dennis From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jamesfin Sent: Wednesday, November 18, 2009 7:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 You can always do this where the right / top is constraining the item. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init() mx:Script ![CDATA[ import mx.core.UIComponent; private function init():void{ var spTest:Sprite = new Sprite(); spTest.graphics.beginFill(0xFF); spTest.graphics.drawRect(0, 0, 100, 100); spTest.graphics.endFill(); logo.rawChildren.addChild(spTest); } ]] /mx:Script mx:Canvas width=100 height=100 right=20 top=20 id=logo/ /mx:Application --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , dennis den...@... wrote: Hello people.. I have an extended Sprite object and I put in on the Stage (via addChild). How may I anchor it on runtime on the Stage? How may I constraint it in Columns and Rows? Suppose that I want a Sprite(Panel) object, to be always 20 pixels from right edge of the Stage, even if the Stage resized. Thank in advance. Dennis __ NOD32 4618 (20091118) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com __ NOD32 4643 (20091127) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com
RE: [flexcoders] Re: 2 strange issues for begginer in action script ref REFdn4045341518
Thank you J! I delayed because I am too busy =) dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of flexaustin Sent: Monday, October 12, 2009 8:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: 2 strange issues for begginer in action script ref REFdn4045341518 You need to import the Button so import mx.controls.Button But I think your main issue is that you can't create a Sprite component and put mx components inside of it. You need to use UIComponent as your base instead of Sprite. I believe you can go lower down the inheritance chain to FlexSprite (don't quote me on the name I don't have my Flex posters in front of me). But even if you use FlexSprite you have to implement a lot of Classes and write a lot of functions (override possibly) to make FlexSprite work so its just best to go with UIComponent. J
RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069
Hi Tracy. I hope you are ok. I do the follow: var d:PanelGradient=new PanelGradient(0,0,stg.width/2,stg.height/2,30,30,stg.width/2*1.5,stg.width/2 *1.5); d.setStyle(right,10); d.setStyle(bottom,10); addChild(d); In the above code, setting the right and bottom, I expect, in case of resizing the browser, the PanelGrandient must be kept anchored in the right bottom corner. What I do wrong? p.s. The PanelGradient extends the UIComponent and in real is a container of a Shape with a matrix. dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Saturday, November 28, 2009 12:24 AM To: flexcoders@yahoogroups.com Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 The constraints are styles, not properties. So to use constraints in AS, you need to define them in a style sheet, and/or use setStyle(). Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of dennis Sent: Thursday, November 26, 2009 9:48 AM To: flexcoders@yahoogroups.com Subject: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 Thank you for your reply. I work only with AS, I mean with no MXML. I tried to use the Canvas container but using the mx.containers.Canvas, there is no right property (even top, bottom, left). What do I miss? dennis From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jamesfin Sent: Wednesday, November 18, 2009 7:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 You can always do this where the right / top is constraining the item. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init() mx:Script ![CDATA[ import mx.core.UIComponent; private function init():void{ var spTest:Sprite = new Sprite(); spTest.graphics.beginFill(0xFF); spTest.graphics.drawRect(0, 0, 100, 100); spTest.graphics.endFill(); logo.rawChildren.addChild(spTest); } ]] /mx:Script mx:Canvas width=100 height=100 right=20 top=20 id=logo/ /mx:Application --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , dennis den...@... wrote: Hello people.. I have an extended Sprite object and I put in on the Stage (via addChild). How may I anchor it on runtime on the Stage? How may I constraint it in Columns and Rows? Suppose that I want a Sprite(Panel) object, to be always 20 pixels from right edge of the Stage, even if the Stage resized. Thank in advance. Dennis __ NOD32 4618 (20091118) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com __ NOD32 4643 (20091127) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com
RE: [flexcoders] Re: the most popular way to be connected with sql server REFdn0085136210
Hello pal. How do you handle mysql from Flex? Dennis From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Wednesday, December 02, 2009 4:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: the most popular way to be connected with sql server REFdn0085136210 I know that I don't. I use my own local web services. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , dennis den...@... wrote: Nobody knows about AWS!? dennis
RE: [flexcoders] Re: the most popular way to be connected with sql server REFdn0085136210
Nobody knows about AWS!? dennis From: dennis [mailto:den...@anel.cc] Sent: Monday, November 30, 2009 11:57 PM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] Re: the most popular way to be connected with sql server REFdn0085136210 Guys have a look at the AWS. the Amazon Web Services where they look just great. at least from introduction pages. They serve their extreme servers and their capabilities, not for free, but for few money. Read this. http://aws.amazon.com/what-is-aws/ and specially this. http://aws.amazon.com/rds/ Share your thoughts. It is the begging of the cloud computing. Does anybody has experience on AWS? dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Wednesday, November 25, 2009 3:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: the most popular way to be connected with sql server REFdn0085136210 There is a community edition of WebORB for PHP that is free. Also, Adobe has ties with Zend and you can use Zend_AMF (Part of the Zend Framework) for free. I think free is cheap enough for everyone ;-} Also, if you want to connect directly to a MySQL database you can look into a component like ASSQL (http://code.google.com/p/assql/)
RE: [flexcoders] Re: the most popular way to be connected with sql server REFdn0085136210
Guys have a look at the AWS. the Amazon Web Services where they look just great. at least from introduction pages. They serve their extreme servers and their capabilities, not for free, but for few money. Read this. http://aws.amazon.com/what-is-aws/ and specially this. http://aws.amazon.com/rds/ Share your thoughts. It is the begging of the cloud computing. Does anybody has experience on AWS? dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Wednesday, November 25, 2009 3:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: the most popular way to be connected with sql server REFdn0085136210 There is a community edition of WebORB for PHP that is free. Also, Adobe has ties with Zend and you can use Zend_AMF (Part of the Zend Framework) for free. I think free is cheap enough for everyone ;-} Also, if you want to connect directly to a MySQL database you can look into a component like ASSQL (http://code.google.com/p/assql/)
RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069
Thank you for your reply. I work only with AS, I mean with no MXML. I tried to use the Canvas container but using the mx.containers.Canvas, there is no right property (even top, bottom, left). What do I miss? dennis From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jamesfin Sent: Wednesday, November 18, 2009 7:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069 You can always do this where the right / top is constraining the item. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init() mx:Script ![CDATA[ import mx.core.UIComponent; private function init():void{ var spTest:Sprite = new Sprite(); spTest.graphics.beginFill(0xFF); spTest.graphics.drawRect(0, 0, 100, 100); spTest.graphics.endFill(); logo.rawChildren.addChild(spTest); } ]] /mx:Script mx:Canvas width=100 height=100 right=20 top=20 id=logo/ /mx:Application --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , dennis den...@... wrote: Hello people.. I have an extended Sprite object and I put in on the Stage (via addChild). How may I anchor it on runtime on the Stage? How may I constraint it in Columns and Rows? Suppose that I want a Sprite(Panel) object, to be always 20 pixels from right edge of the Stage, even if the Stage resized. Thank in advance. Dennis __ NOD32 4618 (20091118) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com
RE: [flexcoders] Re: the most popular way to be connected with sql server REFdn0085136210
Yes it looks great. But developing in in php (only php), there is no need to purchase a kind of server like this; where, it is not so cheap. I think that Adobe should have developed libraries regarding sql server, as php have done. It seems strange where too strong engine (I mean the adobe flash in general) has no the ability to be connected with sql servers. Of course I think that Weborb-for-php is one of the best architect approach, but its is not for low budget projects. Guys. share your thoughts. dennis
[flexcoders] the most popular way to be connected with sql server REFdn0085136210
Hello ppl. Which is the most popular way a Flex application to join an internet sql server (mysql or oracle)? Please give me some guidelines and places to read about. thanx dennis
[flexcoders] constraintColumns/constraintRows on extended Sprite object REFdn6025643069
Hello people.. I have an extended Sprite object and I put in on the Stage (via addChild). How may I anchor it on runtime on the Stage? How may I constraint it in Columns and Rows? Suppose that I want a Sprite(Panel) object, to be always 20 pixels from right edge of the Stage, even if the Stage resized. Thank in advance. Dennis
RE: [flexcoders] Re: how may I store values to function's arguments? REFdn7045338143
Thanks Amy. it works!!! dennis ...we are what we are doing... P Think! before you print. Try: private function getXY(x:int, y:int):Object { return {x:10, y:20); } private function test():void { var obj:Object = getXY(0, 0); trace('x: ' + obj.x + ' y: ' + obj.y); ] HTH; Amy __ NOD32 4563 (20091101) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com
RE: [flexcoders] Re: real time messanging... REFdn2025035484
thanx dennis ...we are what we are doing... P Think! before you print. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Mete Atamel Sent: Tuesday, November 03, 2009 6:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: real time messanging... REFdn2025035484 You can use messaging service in BlazeDS: http://opensource.adobe.com/wiki/display/blazeds/BlazeDS/ -Mete --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , dennis den...@... wrote: Suppose a flex. like a chat application, where the messages from other clients it is required to be transferred immediately. The solution is to develop a server side app where will be the hub and the message handler of client's messages. The communication will be based on tcp ip sockets. This server side application, in which development environment will be developed? JPEE? Please give some guidelines to search and read respectively. Best regards dennis __ NOD32 4571 (20091104) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com
[flexcoders] real time messanging... REFdn2025035484
Suppose a flex. like a chat application, where the messages from other clients it is required to be transferred immediately. The solution is to develop a server side app where will be the hub and the message handler of client's messages. The communication will be based on tcp ip sockets. This server side application, in which development environment will be developed? JPEE? Please give some guidelines to search and read respectively. Best regards dennis
[flexcoders] where must be the storage place for files will be used from flex applications? REFdn6015532475
Suppose a flex application that shows photographs and information of some products. Where these data will be stored and how will be retrieved? A known solution is to store this kind of information to an ftp server, so the flash app will download or upload the data from an ftp server. Is there a better solution? Even more, suppose we have a very small kind of information. for instance the user's preferred environment color. And we want to store somewhere this information, but not in user's computer. which is the most popular way to store this information? Best regards dennis
RE: [flexcoders] Re: addChild doesn't effect for some reason REFdn2065133102
For god's sake. it works =) ! The button hasn't (at all) width and height! What is the difference between the addChild(buttonFromMainClass); and Application(Application.application).addChild(buttonFromMainClass); In the adding process??? Does any body knows? Thanks Amy anyway!!! dennis
[flexcoders] how may I store values to function's arguments? REFdn7045338143
Some times, the one result of a function is not enough, cay we use the arguments to get back values from them? internal function getXY(x:int,y:int):void{ x=10;y=20; } internal function test():void{ var x:int; var y:int; getXY(x,y); trace(x: +x.toString()+ y: +y.toString()); // here I get x: 0 y: 0, I want to get x: 10 y: 20 } For instance, in c the getXY should be like this: internal function getXY(int* x, int* y):void{ x=10;y=20; } dennis
[flexcoders] addChild doesn't effect for some reason REFdn2065133102
In small test application I have the follow object. stack The Main.mxml loads the EntryClass.as - class EntryClass (that doesn't extends anything) - public static function Main(). This EntryClass.Main() function is doing the follow: var mxmlApp:Application = Application(Application.application); var mainAppClass:MainAppClass=new MainAppClass(); mxmlApp.addChild(mainAppClass); So the mainAppClass is loaded. Now the MainAppClass extends the UIComponent and in its constructor does this: var buttonFromMainClass:Button=new Button(); buttonFromMainClass.x=20;buttonFromMainClass.y=20;buttonFromMainClass.label= hello world; to add it to stage I call addChild(buttonFromMainClass); and here is the problem! The button is not appeared on the stage, but using this code: Application(Application.application).addChild(buttonFromMainClass); the button is added to the stage and it is visible. Why the button is not added to the stage with the simple addChild? Where am I wrong? Something that might be help, in EntryClass.Main() if I create a button and add it with the mxmlApp.addChild the button is added and appeared on the stage normally, so there is no problem with the use of mxmlApp.addChild. Best regards dennis
RE: [flexcoders] 2 strange issues for begginer in action script ref
Thank you for your help, developing flex projects all of then components are available. dennis From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gordon Smith Sent: Tuesday, October 20, 2009 2:09 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] 2 strange issues for begginer in action script ref Issue 1: It looks like you want to create a Flex button. If so, you want mx.controls.Button, not mx.core.ButtonAsset. But you can't take a Flex Button and have it work inside a plain old Sprite, which is what a pure ActionScript-based app is. Flex is an application framework, and Flex controls expect to be inside of Flex containers. So you have to start by creating, in MXML, an mx:Application or an s:Application. Once you have that, you can do everything else in AS rather than MXML if you really don't like MXML. But it's a lot easier to just write mx:Button. Issue 2: Again, it looks like your problem is that you're expecting Flex controls to work inside of pure ActionScript apps. Gordon Smith Adobe Flex SDK Team
RE: [flexcoders] defining more than one class in a simple .as filem ref
Thank you for you reply. I am coming from .net and Delphi environments. There was pretty easy to have many classes in a single file. For instance, support I have a small class (lets call it Item) with one or two methods that will be used from only one class (lets call it Cart) where will load the Item class several times in an array (the Items array). Now, implementing the Item class I have to create another .as (ok this is not problem) but in practice this class is visible over the package's domain, something not so good. How can I avoid this class to be visible from other object users? Take care Dennis
[flexcoders] defining more than one class in a simple .as file (ref)
I want to create more than one class in a single .as file, but finally this is not allowed! I read at http://livedocs.adobe.com/flex/3/html/help.html?content=basic_as_2.html the follow rule: In a single ActionScript file, you can define only one class in the package. To define more than one class in a file, define the additional classes outside of the package body. Implementing by this way, the additional classes doesn't belong to the package (specified in the .as), but belong in the default package something that I do not want it. Of course, the other way Is to implement the class in another .as of the same package but this will have as result so many .as files (doing nothing in particular). So, I just want to clear, there is no way to have more than one class of the same package in the same .as file??? dennis ...we are what we are doing... P Think! before you print.
[flexcoders] 2 strange issues for begginer in action script ref
Hello. I am new to action script and I am (pretty) confused. so any help is valuable!!! --- issue 1 - I have the follow code. and I get blank page. nothing is appeared on the stage at all!!! For god's sake, what is wrong? package { import flash.display.Sprite; import mx.core.ButtonAsset; public class ASProject2 extends Sprite { public function ASProject2() { var mb: ButtonAsset = new ButtonAsset(); mb.x=100; mb.y=100; mb.width=200; addChild(mb); } } } --- issue 2 - Which button is the more simple button to use? I found the spark components button is the component that Flash Builder uses if you write in mxml language. So I add the folder to my project's libraries paths, in precise I added as SWC folder the follow folder: c:\Program Files\Adobe\Flash Builder Beta\sdks\4.0.0\frameworks\projects\flex4\src\spark\components\ Here is the (very simple) code (with compiler's errors): package { import flash.display.Sprite; import spark.components.Button; // - compile time error: 1172: Definition spark.components:Button could not be found. public class ASProjectInFB4 extends Sprite { public function ASProjectInFB4() { var ab : Button = new Button(); // - compile time error: 1046: Type was not found or was not a compile-time constant: Button. ab.x=10; ab.y=10; ab.width=200; ab.height=100; ab.enabled=true; addChild(ab); } } } The problem (as you see) are the two compiler errors. Now. if get the cursor on Button text in my code and I press the F3 the Flash Builder transfers me to the declaration of Button class in the proper Button.as file! So I suppose that my definition in my preceding code is correct. If I remove the the SWC folder from the libraries of my project, the F3 buttons doesn't transfer me anywhere, so the SWC folder definition is working too. What is wrong? Best regards Dennis
[flexcoders] Re: Adobe has open-sourced the Text Layout Framework (TLF)
hmm. weird. I'm sure I read it yesterday, but I been reading a lot of articles about the TLF as well so it must have be in one of those.. I have searching around but can't find it anymore. anyway. Your response probably also answered my question that tables are not yet supported.. Is there any news on when it is planned ? Dennis --- In flexcoders@yahoogroups.com, Gordon Smith gosm...@... wrote: I searched the businesswire article for the word table and didn't find it. Where do you see this? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dennis van Nooij Sent: Tuesday, July 21, 2009 5:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Adobe has open-sourced the Text Layout Framework (TLF) that's great. The first article states that tables are also supported, but if I remember correct that used to be reserved for a later version? thanks, Dennis --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Gordon Smith gosmith@ wrote: http://eon.businesswire.com/portal/site/eon/permalink/?ndmViewId=news_viewnewsId=20090720006233newsLang=en http://opensource.adobe.com/wiki/display/tlf/Text+Layout+Framework Gordon Smith Adobe Flex SDK Team
[flexcoders] Re: Adobe has open-sourced the Text Layout Framework (TLF)
that's great. The first article states that tables are also supported, but if I remember correct that used to be reserved for a later version? thanks, Dennis --- In flexcoders@yahoogroups.com, Gordon Smith gosm...@... wrote: http://eon.businesswire.com/portal/site/eon/permalink/?ndmViewId=news_viewnewsId=20090720006233newsLang=en http://opensource.adobe.com/wiki/display/tlf/Text+Layout+Framework Gordon Smith Adobe Flex SDK Team
Re: [flexcoders] Re: check for daylight savings time
Thanks, that's exactly what I needed. The isDST function didn't seem to work for me (always returned false), but comparing my date's against the dst start and dst end worked. I'm using a range of dates from March 5th (not DST) to now (DST). On Mon, Apr 13, 2009 at 6:54 PM, lampei lam...@gmail.com wrote: My FlexDateUtils library has a class in it to check for DST http://code.google.com/p/flexdateutils/ --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dennis Falling dfall...@... wrote: I'm trying to print the time zone for a date, and need to know the daylight savings time. Is there a way to get this in flex? Thanks.
[flexcoders] can't copy/paste
On some TextInputs/TextArea's, I'm completely unable to use keyboard copy/paste shortcuts, but the mouse contextual menu works. This happens on mac and pc. The code's too complicated to submit, so does anyone know of things that prevent copy/paste from working? Thanks.
[flexcoders] check for daylight savings time
I'm trying to print the time zone for a date, and need to know the daylight savings time. Is there a way to get this in flex? Thanks.
[flexcoders] Profiling Flex applications for Flash player 10
is anyone able to profile a Flex application that is targetted for Flash player 10 ? Our Air application run, debugs and profiles fine but the web version throws an RTE on startup: ReferenceError: Error #1065: Variable ContextMenuClipboardItems is not defined. to locate the problem I created a sample project which runs fine at first but when adding a library project it falls back to the same error as above ? I'm using SDK version 3.3 thanks, Dennis
[flexcoders] Re: Profiling Flex applications for Flash player 10
I followed the instructions from here: http://opensource.adobe.com/wiki/display/flexsdk/Targeting+Flash+Player+10 so I changed flex-config.xml. If I understand it correctly that should make all my project compile for Flash Player 10. Which appeared to be working as FileReference.save() now showed up in the autocomplete (=Flash Player 1- feature). Anyway, I added the -target-player=10.0.0 to the additional commandline parameters for both projects (first tried library project alone). Now I do not get the RTE but the application freezes while showing the loading bar (RTE in the background ??) --- In flexcoders@yahoogroups.com, Paresh M More pareshm...@... wrote: In flex properties, Flex compiler, set Flash player 10.0.0 i would work Regards, Paresh M. More Software Engineer Nashik/Pune, Maharashtra, India. Email - pareshm...@... On Tue, Mar 24, 2009 at 5:19 PM, Dennis van Nooij den...@...wrote: is anyone able to profile a Flex application that is targetted for Flash player 10 ? Our Air application run, debugs and profiles fine but the web version throws an RTE on startup: ReferenceError: Error #1065: Variable ContextMenuClipboardItems is not defined. to locate the problem I created a sample project which runs fine at first but when adding a library project it falls back to the same error as above ? I'm using SDK version 3.3 thanks, Dennis
[flexcoders] non-editable datagrid cells
Is there a way to prevent a specific cell from triggering its renderer? I need other cells in that column to be editable, but not it.
Re: [flexcoders] Re: Prevent ItemRenderer click from selecting row?
Wow, I don't know how many times I've typed ,0 and ignored priority. Thanks! On Thu, Feb 5, 2009 at 12:14 PM, Alex Harui aha...@adobe.com wrote: Sure, because it set up its listener first. You can set your listener at a higher priority. I'd still start with my list selection example on my blog. You should be able to tweak it to just not allow selection if the event.target is a button. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Dennis Falling *Sent:* Wednesday, February 04, 2009 10:20 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Prevent ItemRenderer click from selecting row? That's what I was trying- stopping propagation and preventing default. Apparently the datagrid gets the event first. On Wed, Feb 4, 2009 at 10:26 PM, arieljake arielj...@yahoo.com wrote: Can you have the items catch the click event of the button and prevent propagation? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dennis Falling dfall...@... wrote: I'm using a DataGrid. But the problem is that I want the selection behavior to behave normally, except for when the buttons are clicked. Thanks On Wed, Feb 4, 2009 at 10:09 AM, Fotis Chatzinikos fotis.chatzini...@... wrote: if you are using a list or tile list there is a property selectable which you can make false. On Wed, Feb 4, 2009 at 6:05 PM, Dennis Falling dfall...@... wrote: Is there one involving item renderers? I believe I scoured your site pretty thoroughly, but the only time I see selection behavior being overriden is inside an extended list or DataGrid. Is it possible to pull this off with only an item renderer? Thanks On Wed, Feb 4, 2009 at 1:16 AM, Alex Harui aha...@... wrote: There a example on preventing list selection on my blog *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] *On Behalf Of *Dennis Falling *Sent:* Tuesday, February 03, 2009 5:30 PM *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] Re: Prevent ItemRenderer click from selecting row? That would work for invalidating my selection, but I simply want the selection to never occur. That way if something was previously selected, it isn't altered. On Tue, Feb 3, 2009 at 5:08 PM, fourctv four...@... wrote: have you tried datagrid.selectedItems=null? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Dennis Falling dfalling@ wrote: I have an ItemRenderer with buttons in it. In the click listener functions for these buttons, I call event.stopImmediatePropagation (and preventDefault, though that doesn't seem relevant), but the row is still selected. How can I prevent it from receiving the click and highlighting itself? Thanks. -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@...,
Re: [flexcoders] Re: Prevent ItemRenderer click from selecting row?
Is there one involving item renderers? I believe I scoured your site pretty thoroughly, but the only time I see selection behavior being overriden is inside an extended list or DataGrid. Is it possible to pull this off with only an item renderer? Thanks On Wed, Feb 4, 2009 at 1:16 AM, Alex Harui aha...@adobe.com wrote: There a example on preventing list selection on my blog *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Dennis Falling *Sent:* Tuesday, February 03, 2009 5:30 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Prevent ItemRenderer click from selecting row? That would work for invalidating my selection, but I simply want the selection to never occur. That way if something was previously selected, it isn't altered. On Tue, Feb 3, 2009 at 5:08 PM, fourctv four...@yahoo.com wrote: have you tried datagrid.selectedItems=null? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dennis Falling dfall...@... wrote: I have an ItemRenderer with buttons in it. In the click listener functions for these buttons, I call event.stopImmediatePropagation (and preventDefault, though that doesn't seem relevant), but the row is still selected. How can I prevent it from receiving the click and highlighting itself? Thanks.
Re: [flexcoders] Re: Prevent ItemRenderer click from selecting row?
I'm using a DataGrid. But the problem is that I want the selection behavior to behave normally, except for when the buttons are clicked. Thanks On Wed, Feb 4, 2009 at 10:09 AM, Fotis Chatzinikos fotis.chatzini...@gmail.com wrote: if you are using a list or tile list there is a property selectable which you can make false. On Wed, Feb 4, 2009 at 6:05 PM, Dennis Falling dfall...@gmail.com wrote: Is there one involving item renderers? I believe I scoured your site pretty thoroughly, but the only time I see selection behavior being overriden is inside an extended list or DataGrid. Is it possible to pull this off with only an item renderer? Thanks On Wed, Feb 4, 2009 at 1:16 AM, Alex Harui aha...@adobe.com wrote: There a example on preventing list selection on my blog *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Dennis Falling *Sent:* Tuesday, February 03, 2009 5:30 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Prevent ItemRenderer click from selecting row? That would work for invalidating my selection, but I simply want the selection to never occur. That way if something was previously selected, it isn't altered. On Tue, Feb 3, 2009 at 5:08 PM, fourctv four...@yahoo.com wrote: have you tried datagrid.selectedItems=null? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dennis Falling dfall...@... wrote: I have an ItemRenderer with buttons in it. In the click listener functions for these buttons, I call event.stopImmediatePropagation (and preventDefault, though that doesn't seem relevant), but the row is still selected. How can I prevent it from receiving the click and highlighting itself? Thanks. -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
Re: [flexcoders] Re: Prevent ItemRenderer click from selecting row?
That's what I was trying- stopping propagation and preventing default. Apparently the datagrid gets the event first. On Wed, Feb 4, 2009 at 10:26 PM, arieljake arielj...@yahoo.com wrote: Can you have the items catch the click event of the button and prevent propagation? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dennis Falling dfall...@... wrote: I'm using a DataGrid. But the problem is that I want the selection behavior to behave normally, except for when the buttons are clicked. Thanks On Wed, Feb 4, 2009 at 10:09 AM, Fotis Chatzinikos fotis.chatzini...@... wrote: if you are using a list or tile list there is a property selectable which you can make false. On Wed, Feb 4, 2009 at 6:05 PM, Dennis Falling dfall...@... wrote: Is there one involving item renderers? I believe I scoured your site pretty thoroughly, but the only time I see selection behavior being overriden is inside an extended list or DataGrid. Is it possible to pull this off with only an item renderer? Thanks On Wed, Feb 4, 2009 at 1:16 AM, Alex Harui aha...@... wrote: There a example on preventing list selection on my blog *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] *On Behalf Of *Dennis Falling *Sent:* Tuesday, February 03, 2009 5:30 PM *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] Re: Prevent ItemRenderer click from selecting row? That would work for invalidating my selection, but I simply want the selection to never occur. That way if something was previously selected, it isn't altered. On Tue, Feb 3, 2009 at 5:08 PM, fourctv four...@... wrote: have you tried datagrid.selectedItems=null? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Dennis Falling dfalling@ wrote: I have an ItemRenderer with buttons in it. In the click listener functions for these buttons, I call event.stopImmediatePropagation (and preventDefault, though that doesn't seem relevant), but the row is still selected. How can I prevent it from receiving the click and highlighting itself? Thanks. -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@...,
[flexcoders] Prevent ItemRenderer click from selecting row?
I have an ItemRenderer with buttons in it. In the click listener functions for these buttons, I call event.stopImmediatePropagation (and preventDefault, though that doesn't seem relevant), but the row is still selected. How can I prevent it from receiving the click and highlighting itself? Thanks.
Re: [flexcoders] Re: Prevent ItemRenderer click from selecting row?
That would work for invalidating my selection, but I simply want the selection to never occur. That way if something was previously selected, it isn't altered. On Tue, Feb 3, 2009 at 5:08 PM, fourctv four...@yahoo.com wrote: have you tried datagrid.selectedItems=null? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dennis Falling dfall...@... wrote: I have an ItemRenderer with buttons in it. In the click listener functions for these buttons, I call event.stopImmediatePropagation (and preventDefault, though that doesn't seem relevant), but the row is still selected. How can I prevent it from receiving the click and highlighting itself? Thanks.
[flexcoders] Re: Air/Flex/Html roundtrip?
not sure which part of the solution you're after but: - from AIR you can create hooks in your html page, using something like myHtml.htmlLoader.window.customJSHandler = this.onCustomJSHandler - customJSHandler can be called from within your htmlpage by a href=javascript:customJSHandler/ cheers, Dennis --- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote: If this were an ideal world I'd be able to specify a function in my flex/AIR app as an html link in an html page rendered by the application. Any ideas about how I might achieve this? Paul
Re: [flexcoders] Re: DataGrid selection w/ filtered contents
Thanks...I wish I had a good example of when that didn't work for me... I had times when the data would be filtered down such that the item previously selected was still selected, but its index had changed. If I tried to tell the grid to select the new index, it ignored my command because the same item was selected. I had to toggle no selection/selection to get it to behave properly. The selectedIndex behavior really seems like a bug to me... http://flexninja.com/examples/DGFilterTest/DGFilterTest.html. If you type '3' for example, only 3 and 13 will be left, but the grid will claim the selectedIndex is 3 (because that's 3's previous index.) On Thu, Jan 15, 2009 at 6:03 PM, Tim Hoff timh...@aol.com wrote: One way is to bind a variable to the selectedIndex of the DataGrid: [Bindable] private var selectedIndex:int = -1; mx:DataGrid selectedIndex={ selectedIndex }/ Then when you filter the collection: myCollection.filterFunction = myFilterFunction; myCollection.refresh(); selectedIndex = (myCollection.length 0 ? 0 : -1); -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, dfalling dfall...@... wrote: Is there a way of getting accurate selectedIndex from an datagrid that's bound to a filtered data provider? I'm running into the same problem from several different angles... I ask a datagrid what its selectedIndex is and it claims it's 10. I tell it to select index 0 instead, at which point it dispatches the change event and is still set to 0. I'm simply trying to make sure that when the collection is filtered, the grid selects the first item in the list to allow for easy keyboard navigation. Cheers.
[flexcoders] Flash print: how
we're having some issues with printing here. Using FlexReport I've managed to throw out a decent print, but on some printers it is apparently very slow. Does anyone know about how this is actually printed from Flash / AIR in terms of LPR / raw / Postscript levels ? cheers, Dennis van Nooij
[flexcoders] Re: Observing collections
try this: package com.adobe.ac { import mx.events.CollectionEvent; import mx.collections.ArrayCollection; import flash.events.Event; import mx.core.Application; import mx.core.UIComponent; /** * * monitors Collections and react on reassining of the variable * and changes in the collection which are bindable * */ public class ObserveCollection extends Observer { private var _handler : Function; private var _source : Object; override public function get handler() : Function { return _handler; } public function set handler( value : Function ) : void { _handler = value; if( value != null ) { isHandlerInitialized = true; if( isHandlerInitialized isSourceInitialized ) { callHandler(); } } } override public function get source() : Object { return _source; } public function set source( value : Object ) : void { if (_source != null){ _source.removeEventListener(CollectionEvent.COLLECTION_CHANGE,collectionChangeHandler); } _source = value; _source.addEventListener(CollectionEvent.COLLECTION_CHANGE,collectionChangeHandler); isSourceInitialized = true; if( isHandlerInitialized isSourceInitialized ) { callHandler(); } } protected override function callHandler() : void { try { handler.call( null, source ); } catch( e : Error ) { delay( e ); } } protected override function delay( e : Error ) : void { UIComponent( Application.application ).callLater( throwException, [ e ] ); } private function throwException( e : Error ) : void { throw e; } private function collectionChangeHandler (event:Event) : void { callHandler(); } } } cheers, Dennis --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Never used Observe, but if it implements IMXMLObject or you subclass and do so, then you can use it in MXML From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Wednesday, August 13, 2008 4:16 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Observing collections For some reason I have an aversion to adding event listeners in ActionScript, favouring binding expressions and the Observe tag from Adobe Consulting. Not sure how rational this is, but there you have it. Binding is just so damn elegant. However, collections are a problem. It seems that so often you want to update something if either the collection itself or its contents changes, and you don't really care about the details of the change. I suppose if you're a DataGrid watching its dataprovider you do care and can minimize updates, but in many of the use cases I've encountered, that's not the case - my observer is going to do something with the whole collection (or maybe I've just been lazy about exploiting possible optimizations). Is there anything like the Observe tag that can be instantiated in MXML and can trigger a function call on a COLLECTION_CHANGE event?
[flexcoders] disable type-ahead look-ups in AdvancedDataGrid..
currently the AdvancedDataGrid use type-ahead look-ups on the first column, so if you enter any character it will search for that an item that matches it and focus that item. Problem is that I have defined a list of shortcut keys (like CTR+I) to do actions on those items on the list, so every time I press one of the shortcuts the focus jumps toanother item.. Is there an way to kill this type-ahead look-ups? thanks, Dennis
Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states
Right, I dug around for a while in the framework and CSS looking for the actual skin. In LinkButtonSkin.as, it specifies the upskin and overskin, but because this is all inside a single file and it uses the appropriate skin, it seems that I can't tell it to use the upskin for the overskin case overSkin: { drawRoundRect( 0, 0, w, h, cornerRadius, rollOverColor, 1); break; } If I ever run into any issues with my .png I can just copy the skin file and replace rollOverColor, 1 with 0, 0 for every state and I'll get the same effect. Thanks On Fri, Jul 11, 2008 at 10:55 AM, Alex Harui [EMAIL PROTECTED] wrote: I think you can set up upSkin or overSkin, instead of just skin, but your PNGs are ok too. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dennis Falling *Sent:* Thursday, July 10, 2008 10:14 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states Do you mean the CSS from the framework? Because the only applicable css I've seen is: LinkButton { /*disabledIcon: null; */ disabledSkin: ClassReference(null); /*downIcon: null; */ downSkin: ClassReference(null); /*overIcon: null; */ overSkin: ClassReference(null); paddingLeft: 7; paddingRight: 7; /*selectedDisabledIcon: null; */ selectedDisabledSkin: ClassReference(null); /*selectedDownIcon: null; */ selectedDownSkin: ClassReference(null); /*selectedOverIcon: null; */ selectedOverSkin: ClassReference(null); /*selectedUpIcon: null; */ selectedUpSkin: ClassReference(null); skin: ClassReference(mx.skins.halo.LinkButtonSkin); /*upIcon: null; */ upSkin: ClassReference(null); } Setting my over skin to ClassReference(null) makes it appear (I think) like a normal button, while using ClassReference(mx.skins.halo.LinkButtonSkin) will make it behave like a typical LinkButton does when moused over. Again though, it currently looks great and behaves the way I want it to. Is there a reason for me to not do it just with an alpha image? Thanks On Thu, Jul 10, 2008 at 7:09 PM, Alex Harui [EMAIL PROTECTED] wrote: Copy the LinkButton CSS and assign whatever was in upSkin to overSkin -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dennis Falling *Sent:* Thursday, July 10, 2008 4:13 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states So no way that's purely CSS? Is there a reason for me to not use my current hack (invisible PNG skins)? Visually and functionally it's what I want. On Jul 10, 2008, at 5:30 PM, Alex Harui [EMAIL PROTECTED] wrote: Maybe setStyle(overSkin, getStyle(upSkin)) -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dennis Falling *Sent:* Thursday, July 10, 2008 12:52 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states I don't know of a way to give a link button a transparent mouse over background. On Jul 7, 2008, at 2:11 PM, nathanpdaniel [EMAIL PROTECTED] wrote: I'm not sure but what's the difference between a link button and what you're trying to accomplish? It seems to me what you're looking for would be easily accomplished with a little CSS the LinkButton component rather than reskinning the Button component. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Interesting. It should work because the icon and text is not a child of the skin. Maybe I don't understand what he wants or what you tried. From: [EMAIL PROTECTED] flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com ups.com flexcoders%40yahoogroups.com [mailto:[EMAIL PROTECTED] flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com ups.com flexcoders%40yahoogroups.com] On Behalf Of Tim Hoff Sent: Monday, July 07, 2008 10:02 AM To: [EMAIL PROTECTED] flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com ups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Trick button into rendering mouseover/mouseout states Doesn't work if you want to keep the button icons visible. Wouldn't this also affect embedded fonts? -TH --- In [EMAIL PROTECTED] flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com ups.com flexcoders%40yahoogroups.com flexcodersmailto:flexcodersflexcoders % 40yahoogroups.com , Alex Harui aharui@ wrote: Skin the way you normally do, but set the alpha=0 From: [EMAIL PROTECTED] flexcoders
Re: [flexcoders] So I guess I don't understand states
Yeah, I didn't understand states. Changing from one state to another always unplays the properties and styles set in the previous state. Not a fan of that at all but that explains all my confusion. On Tue, Jul 8, 2008 at 5:07 PM, dfalling [EMAIL PROTECTED] wrote: I thought I had states down pat until the last few days. **States:** normal state: - change viewstack to show data renderers no data state: - change viewstack to show no data error view fetching data state: - empty **Transitions:** to fetching data state: - display fetching data view from fetching data state: - hide fetching data view My problem is that whenever I went into the fetchingData state, it would properly perform the transitions for that state (showing the fetching data view), but would also incorrectly perform whatever code was inside the no data state. It also performed the code in the fetching data state. I created a function to watch the state changes and the no data state was never being entered, but its properties were definitely being applied. I now have it working by doing everything in transitions, but does anyone know why this problem would happen? I tried to write a small sample app to demo this problem, but of course it worked fine. Thanks
Re: [flexcoders] So I guess I don't understand states
Not sure what you mean...I didn't research it beyond figuring out my problem... I had a viewstack with normal and no data views and wanted it to stay the same (either in no data or normal) when going to the updating/downloading state. Was frustrated when my normal state was inexplicably showing the no data view when it went to the updating state. I finally figured out it was undoing the current state (normal) and reverting back to the previous values, which incidentally were applied by the no data state. Once I moved all the code to transitions which are not undone, it worked fine. My current understanding is that anything you wish to be undone after you move to another state should be done in states. Any effect or permanent change should be done in transitions. On Fri, Jul 11, 2008 at 8:11 PM, Alex Harui [EMAIL PROTECTED] wrote: I don't use states much, but aren't there derived states so it will only unplay to a certain point? -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dennis Falling *Sent:* Friday, July 11, 2008 1:46 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] So I guess I don't understand states Yeah, I didn't understand states. Changing from one state to another always unplays the properties and styles set in the previous state. Not a fan of that at all but that explains all my confusion. On Tue, Jul 8, 2008 at 5:07 PM, dfalling [EMAIL PROTECTED] wrote: I thought I had states down pat until the last few days. **States:** normal state: - change viewstack to show data renderers no data state: - change viewstack to show no data error view fetching data state: - empty **Transitions:** to fetching data state: - display fetching data view from fetching data state: - hide fetching data view My problem is that whenever I went into the fetchingData state, it would properly perform the transitions for that state (showing the fetching data view), but would also incorrectly perform whatever code was inside the no data state. It also performed the code in the fetching data state. I created a function to watch the state changes and the no data state was never being entered, but its properties were definitely being applied. I now have it working by doing everything in transitions, but does anyone know why this problem would happen? I tried to write a small sample app to demo this problem, but of course it worked fine. Thanks
Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states
I don't know of a way to give a link button a transparent mouse over background. On Jul 7, 2008, at 2:11 PM, nathanpdaniel [EMAIL PROTECTED] wrote: I'm not sure but what's the difference between a link button and what you're trying to accomplish? It seems to me what you're looking for would be easily accomplished with a little CSS the LinkButton component rather than reskinning the Button component. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Interesting. It should work because the icon and text is not a child of the skin. Maybe I don't understand what he wants or what you tried. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff Sent: Monday, July 07, 2008 10:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Trick button into rendering mouseover/mouseout states Doesn't work if you want to keep the button icons visible. Wouldn't this also affect embedded fonts? -TH --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Alex Harui aharui@ wrote: Skin the way you normally do, but set the alpha=0 From: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of Dennis Falling Sent: Sunday, July 06, 2008 12:43 PM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: Re: [flexcoders] Trick button into rendering mouseover/mouseout states Over an alpha background though just setting their colors won't do it. I've done skins, but when I want a skin with basically nothing visible, would that be any different from what I've made? On Sat, Jul 5, 2008 at 7:25 PM, Alan ultraky@ mailto:ultraky@ wrote: Could you just set the btn color and border to the same color as your background? Also, have you tried the Photoshop btn skin scripts. Makes it real easy to change the btnin fact, id use that... There's a demo on adobe.com to use it, but its so easy you dont really even need it. https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex% 5Fskins https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex% 5Fskins https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex% 5Fskins Alan On Jul 5, 2008, at 8:19 PM, Dennis Falling wrote: What's the best way to create a border-less button? I'm trying to pull it off with flexlib's enhanced button skin but it appears to be ignoring the font-family I set. Basically I just want a button that has text and an icon and these will change color on mouseover. No border/backgrounds should ever be visible. http://dl.getdropbox.com/u/15760/replay.png http://dl.getdropbox.com/u/15760/replay.png http://dl.getdropbox.com/u/15760/replay.png http://dl.getdropbox.com/u/15760/replay.png
Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states
So no way that's purely CSS? Is there a reason for me to not use my current hack (invisible PNG skins)? Visually and functionally it's what I want. On Jul 10, 2008, at 5:30 PM, Alex Harui [EMAIL PROTECTED] wrote: Maybe setStyle(“overSkin”, getStyle(“upSkin”)) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Falling Sent: Thursday, July 10, 2008 12:52 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Trick button into rendering mouseover/ mouseout states I don't know of a way to give a link button a transparent mouse over background. On Jul 7, 2008, at 2:11 PM, nathanpdaniel [EMAIL PROTECTED] wrote: I'm not sure but what's the difference between a link button and what you're trying to accomplish? It seems to me what you're looking for would be easily accomplished with a little CSS the LinkButton component rather than reskinning the Button component. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Interesting. It should work because the icon and text is not a child of the skin. Maybe I don't understand what he wants or what you tried. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff Sent: Monday, July 07, 2008 10:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Trick button into rendering mouseover/mouseout states Doesn't work if you want to keep the button icons visible. Wouldn't this also affect embedded fonts? -TH --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Alex Harui aharui@ wrote: Skin the way you normally do, but set the alpha=0 From: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of Dennis Falling Sent: Sunday, July 06, 2008 12:43 PM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: Re: [flexcoders] Trick button into rendering mouseover/mouseout states Over an alpha background though just setting their colors won't do it. I've done skins, but when I want a skin with basically nothing visible, would that be any different from what I've made? On Sat, Jul 5, 2008 at 7:25 PM, Alan ultraky@ mailto:ultraky@ wrote: Could you just set the btn color and border to the same color as your background? Also, have you tried the Photoshop btn skin scripts. Makes it real easy to change the btnin fact, id use that... There's a demo on adobe.com to use it, but its so easy you dont really even need it. https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex% 5Fskins https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex% 5Fskins https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex% 5Fskins https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex% 5Fskins Alan On Jul 5, 2008, at 8:19 PM, Dennis Falling wrote: What's the best way to create a border-less button? I'm trying to pull it off with flexlib's enhanced button skin but it appears to be ignoring the font-family I set. Basically I just want a button that has text and an icon and these will change color on mouseover. No border/backgrounds should ever be visible. http://dl.getdropbox.com/u/15760/replay.png http://dl.getdropbox.com/u/15760/replay.png http://dl.getdropbox.com/u/15760/replay.png http://dl.getdropbox.com/u/15760/replay.png
Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states
Do you mean the CSS from the framework? Because the only applicable css I've seen is: LinkButton { /*disabledIcon: null; */ disabledSkin: ClassReference(null); /*downIcon: null; */ downSkin: ClassReference(null); /*overIcon: null; */ overSkin: ClassReference(null); paddingLeft: 7; paddingRight: 7; /*selectedDisabledIcon: null; */ selectedDisabledSkin: ClassReference(null); /*selectedDownIcon: null; */ selectedDownSkin: ClassReference(null); /*selectedOverIcon: null; */ selectedOverSkin: ClassReference(null); /*selectedUpIcon: null; */ selectedUpSkin: ClassReference(null); skin: ClassReference(mx.skins.halo.LinkButtonSkin); /*upIcon: null; */ upSkin: ClassReference(null); } Setting my over skin to ClassReference(null) makes it appear (I think) like a normal button, while using ClassReference(mx.skins.halo.LinkButtonSkin) will make it behave like a typical LinkButton does when moused over. Again though, it currently looks great and behaves the way I want it to. Is there a reason for me to not do it just with an alpha image? Thanks On Thu, Jul 10, 2008 at 7:09 PM, Alex Harui [EMAIL PROTECTED] wrote: Copy the LinkButton CSS and assign whatever was in upSkin to overSkin -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dennis Falling *Sent:* Thursday, July 10, 2008 4:13 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states So no way that's purely CSS? Is there a reason for me to not use my current hack (invisible PNG skins)? Visually and functionally it's what I want. On Jul 10, 2008, at 5:30 PM, Alex Harui [EMAIL PROTECTED] wrote: Maybe setStyle(overSkin, getStyle(upSkin)) -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dennis Falling *Sent:* Thursday, July 10, 2008 12:52 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states I don't know of a way to give a link button a transparent mouse over background. On Jul 7, 2008, at 2:11 PM, nathanpdaniel [EMAIL PROTECTED] wrote: I'm not sure but what's the difference between a link button and what you're trying to accomplish? It seems to me what you're looking for would be easily accomplished with a little CSS the LinkButton component rather than reskinning the Button component. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Interesting. It should work because the icon and text is not a child of the skin. Maybe I don't understand what he wants or what you tried. From: [EMAIL PROTECTED] flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com ups.com flexcoders%40yahoogroups.com [mailto:[EMAIL PROTECTED] flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com ups.com flexcoders%40yahoogroups.com] On Behalf Of Tim Hoff Sent: Monday, July 07, 2008 10:02 AM To: [EMAIL PROTECTED] flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com ups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Trick button into rendering mouseover/mouseout states Doesn't work if you want to keep the button icons visible. Wouldn't this also affect embedded fonts? -TH --- In [EMAIL PROTECTED] flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com ups.com flexcoders%40yahoogroups.com flexcodersmailto:flexcodersflexcoders % 40yahoogroups.com , Alex Harui aharui@ wrote: Skin the way you normally do, but set the alpha=0 From: [EMAIL PROTECTED] flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com ups.com flexcoders%40yahoogroups.com flexcodersmailto:flexcodersflexcoders % 40yahoogroups.com [mailto:[EMAIL PROTECTED] flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com ups.com flexcoders%40yahoogroups.com flexcodersmailto:flexcodersflexcoders % 40yahoogroups.com ] On Behalf Of Dennis Falling Sent: Sunday, July 06, 2008 12:43 PM To: [EMAIL PROTECTED] flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com ups.com flexcoders%40yahoogroups.com flexcodersmailto:flexcodersflexcoders % 40yahoogroups.com Subject: Re: [flexcoders] Trick button into rendering mouseover/mouseout states Over an alpha background though just setting their colors won't do it. I've done skins, but when I want a skin with basically nothing visible, would that be any different from what I've made? On Sat, Jul 5, 2008 at 7:25 PM, Alan ultraky@ ultrakymailto:ultraky ultraky@ wrote: Could you just set the btn color and border to the same color as your background? Also, have you tried the Photoshop btn skin scripts. Makes
Re: [flexcoders] Trick button into rendering mouseover/mouseout states
Over an alpha background though just setting their colors won't do it. I've done skins, but when I want a skin with basically nothing visible, would that be any different from what I've made? On Sat, Jul 5, 2008 at 7:25 PM, Alan [EMAIL PROTECTED] wrote: Could you just set the btn color and border to the same color as your background? Also, have you tried the Photoshop btn skin scripts. Makes it real easy to change the btnin fact, id use that... There's a demo on adobe.com to use it, but its so easy you dont really even need it. https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins Alan On Jul 5, 2008, at 8:19 PM, Dennis Falling wrote: What's the best way to create a border-less button? I'm trying to pull it off with flexlib's enhanced button skin but it appears to be ignoring the font-family I set. Basically I just want a button that has text and an icon and these will change color on mouseover. No border/backgrounds should ever be visible. http://dl.getdropbox.com/u/15760/replay.png
[flexcoders] Trick button into rendering mouseover/mouseout states
What's the best way to create a border-less button? I'm trying to pull it off with flexlib's enhanced button skin but it appears to be ignoring the font-family I set. Basically I just want a button that has text and an icon and these will change color on mouseover. No border/backgrounds should ever be visible. http://dl.getdropbox.com/u/15760/replay.png
[flexcoders] Re: Trick button into rendering mouseover/mouseout states
I hacked this up by creating a small png that's entirely alpha. Much cleaner than all the CSS required to make an enhanced button skin look plain. It looks great, but are there are any better ways to do this? Thanks On Sat, Jul 5, 2008 at 7:19 PM, Dennis Falling [EMAIL PROTECTED] wrote: What's the best way to create a border-less button? I'm trying to pull it off with flexlib's enhanced button skin but it appears to be ignoring the font-family I set. Basically I just want a button that has text and an icon and these will change color on mouseover. No border/backgrounds should ever be visible. http://dl.getdropbox.com/u/15760/replay.png
Re: [flexcoders] Datagrid Password Column?
With backgroundAlpha=1, the box always has the white background, whether it's selected or not: http://dl.getdropbox.com/u/15760/alpha1.PNG With backgroundAlpha=0, the box never has a white background, even when it is selected: http://dl.getdropbox.com/u/15760/alpha0.PNG Both of these ways are inconsistent with the typical appearance of a DataGridColumn. That's all I'm going for- for it to look white when it should (when it's in edit mode) and not white when it shouldn't (when it's not being edited.) I was completely overlooking the fact that you can have a renderer and an editor. I got it looking right by doing this: mx:DataGridColumn dataField=username headerText=Username/ mx:DataGridColumn dataField=password headerText=Password editorDataField=text mx:itemEditor mx:Component mx:TextInput displayAsPassword=true borderStyle=none backgroundAlpha=1/ /mx:Component /mx:itemEditor mx:itemRenderer mx:Component mx:TextInput displayAsPassword=true borderStyle=none backgroundAlpha=0/ /mx:Component /mx:itemRenderer /mx:DataGridColumn The look I was going for: http://dl.getdropbox.com/u/15760/correct.PNG Thanks for the help! On Wed, Jun 11, 2008 at 1:31 AM, wrote: A TextInput just contains a TextField and draws border and background around it. DGIR extends TextField. If you're ok with popup editors, I'd extends both DGIR as the renderer and TextInput as the editor. If you really need TextInput as the renderer, try setting backgroundColor=. I'm not sure I understand what was wrong about backgroundAlpha=0 -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dennis Falling *Sent:* Tuesday, June 10, 2008 10:04 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Datagrid Password Column? I'm trying to make an editable password column in a datagrid that displays asterisks instead of the characters of the string that it's displaying. Simply using a TextInput with displayAsPassword does exactly this, but when the row is selected (whether the password field is selected or not), the password field has a solid white background. This looks inconsistent compared to other editable column fields, so I'm hoping someone has a trick to fix this. As Tracy suggested, I can make it's background alpha 0, but then it doesn't look right when it's selected. This may seem petty, but it looks wrong. I can always create an item renderer that emulates the TextInput's displayAsPassword property, but I'm so close now, and was hoping there's a trick I'm missing to get this working. On Tue, Jun 10, 2008 at 11:56 PM, Alex Harui [EMAIL PROTECTED] wrote: Maybe I don't understand what you want. Do you want rendererIsEditor or do you want an editor to popup over the cell? My first instinct would be to have an editor popup over the cell so rendererIsEditor=false, and I subclass DGIR as the column renderer, and supply a custom TextInput as the editor with displayAsPassword=false. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dennis Falling *Sent:* Tuesday, June 10, 2008 9:44 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Datagrid Password Column? I tried doing the same thing I'm doing now, except moving the TextInput into an external item renderer and listening for begin/end edit events to toggle the alpha, but that seemed really clunky. So you're saying that is probably the best way? On Tue, Jun 10, 2008 at 11:34 PM, Alex Harui [EMAIL PROTECTED] wrote: You should be able to use DataGridItemRenderer and set its displayAsPassword=true in a subclass or in a custom classFactory -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Tracy Spratt *Sent:* Tuesday, June 10, 2008 6:06 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Datagrid Password Column? Maybe set backgroundAlpha=0? Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dennis Falling *Sent:* Tuesday, June 10, 2008 7:28 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Datagrid Password Column? I have an editable DataGrid that displays usernames and masked passwords (). To hide the password, I'm just using an inline item renderer: mx:DataGridColumn dataField=password headerText=Password editorDataField=text rendererIsEditor=true mx:itemRenderer mx:Component mx:TextInput displayAsPassword=true borderStyle=none/ /mx:Component /mx:itemRenderer /mx:DataGridColumn This works exactly how I want it to, with very little code...except it doesn't look too hot when that row is selected: the TextInput always has a solid white background whether it's selected
[flexcoders] Datagrid Password Column?
I have an editable DataGrid that displays usernames and masked passwords (). To hide the password, I'm just using an inline item renderer: mx:DataGridColumn dataField=password headerText=Password editorDataField=text rendererIsEditor=true mx:itemRenderer mx:Component mx:TextInput displayAsPassword=true borderStyle=none/ /mx:Component /mx:itemRenderer /mx:DataGridColumn This works exactly how I want it to, with very little code...except it doesn't look too hot when that row is selected: the TextInput always has a solid white background whether it's selected or not. Is there an easy way to tell it to make it not show a background except when selected (appear like the default item editor)? I've listened to the various edit events but can't figure out a clean way of doing this. Thanks!
Re: [flexcoders] Datagrid Password Column?
If I do that then it's never white. Again, I'm going for consistency with the normal appearance of editable datagrid columns. On Tue, Jun 10, 2008 at 8:06 PM, Tracy Spratt [EMAIL PROTECTED] wrote: Maybe set backgroundAlpha=0? Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dennis Falling *Sent:* Tuesday, June 10, 2008 7:28 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Datagrid Password Column? I have an editable DataGrid that displays usernames and masked passwords (). To hide the password, I'm just using an inline item renderer: mx:DataGridColumn dataField=password headerText=Password editorDataField=text rendererIsEditor=true mx:itemRenderer mx:Component mx:TextInput displayAsPassword=true borderStyle=none/ /mx:Component /mx:itemRenderer /mx:DataGridColumn This works exactly how I want it to, with very little code...except it doesn't look too hot when that row is selected: the TextInput always has a solid white background whether it's selected or not. Is there an easy way to tell it to make it not show a background except when selected (appear like the default item editor)? I've listened to the various edit events but can't figure out a clean way of doing this. Thanks!
Re: [flexcoders] Datagrid Password Column?
I tried doing the same thing I'm doing now, except moving the TextInput into an external item renderer and listening for begin/end edit events to toggle the alpha, but that seemed really clunky. So you're saying that is probably the best way? On Tue, Jun 10, 2008 at 11:34 PM, Alex Harui [EMAIL PROTECTED] wrote: You should be able to use DataGridItemRenderer and set its displayAsPassword=true in a subclass or in a custom classFactory -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Tracy Spratt *Sent:* Tuesday, June 10, 2008 6:06 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Datagrid Password Column? Maybe set backgroundAlpha=0? Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dennis Falling *Sent:* Tuesday, June 10, 2008 7:28 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Datagrid Password Column? I have an editable DataGrid that displays usernames and masked passwords (). To hide the password, I'm just using an inline item renderer: mx:DataGridColumn dataField=password headerText=Password editorDataField=text rendererIsEditor=true mx:itemRenderer mx:Component mx:TextInput displayAsPassword=true borderStyle=none/ /mx:Component /mx:itemRenderer /mx:DataGridColumn This works exactly how I want it to, with very little code...except it doesn't look too hot when that row is selected: the TextInput always has a solid white background whether it's selected or not. Is there an easy way to tell it to make it not show a background except when selected (appear like the default item editor)? I've listened to the various edit events but can't figure out a clean way of doing this. Thanks!
Re: [flexcoders] Datagrid Password Column?
I'm trying to make an editable password column in a datagrid that displays asterisks instead of the characters of the string that it's displaying. Simply using a TextInput with displayAsPassword does exactly this, but when the row is selected (whether the password field is selected or not), the password field has a solid white background. This looks inconsistent compared to other editable column fields, so I'm hoping someone has a trick to fix this. As Tracy suggested, I can make it's background alpha 0, but then it doesn't look right when it's selected. This may seem petty, but it looks wrong. I can always create an item renderer that emulates the TextInput's displayAsPassword property, but I'm so close now, and was hoping there's a trick I'm missing to get this working. On Tue, Jun 10, 2008 at 11:56 PM, Alex Harui [EMAIL PROTECTED] wrote: Maybe I don't understand what you want. Do you want rendererIsEditor or do you want an editor to popup over the cell? My first instinct would be to have an editor popup over the cell so rendererIsEditor=false, and I subclass DGIR as the column renderer, and supply a custom TextInput as the editor with displayAsPassword=false. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dennis Falling *Sent:* Tuesday, June 10, 2008 9:44 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Datagrid Password Column? I tried doing the same thing I'm doing now, except moving the TextInput into an external item renderer and listening for begin/end edit events to toggle the alpha, but that seemed really clunky. So you're saying that is probably the best way? On Tue, Jun 10, 2008 at 11:34 PM, Alex Harui [EMAIL PROTECTED] wrote: You should be able to use DataGridItemRenderer and set its displayAsPassword=true in a subclass or in a custom classFactory -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Tracy Spratt *Sent:* Tuesday, June 10, 2008 6:06 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Datagrid Password Column? Maybe set backgroundAlpha=0? Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dennis Falling *Sent:* Tuesday, June 10, 2008 7:28 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Datagrid Password Column? I have an editable DataGrid that displays usernames and masked passwords (). To hide the password, I'm just using an inline item renderer: mx:DataGridColumn dataField=password headerText=Password editorDataField=text rendererIsEditor=true mx:itemRenderer mx:Component mx:TextInput displayAsPassword=true borderStyle=none/ /mx:Component /mx:itemRenderer /mx:DataGridColumn This works exactly how I want it to, with very little code...except it doesn't look too hot when that row is selected: the TextInput always has a solid white background whether it's selected or not. Is there an easy way to tell it to make it not show a background except when selected (appear like the default item editor)? I've listened to the various edit events but can't figure out a clean way of doing this. Thanks!
[flexcoders] Reflect column sorting in AdvancedDataGrid
I'm using an AdvancedDatagrid where my sorting is done on the server (total result set is bigger than the list shown at client). So when I click a header, sort info is added to the request and result comes back sorted correctly. My question is: How can I provide feedback on how the results are sorted? Arrows on the columns are gone, probably because dataprovider was refreshed. Is there a way to manually enable those arrows again ?
Re: [flexcoders] Re: #2038: File I/O Error only in firefox
I finally got around to implementing the fix and am having issues on the server... It basically is thinking that the ;jsessionid... is part of the command name being called: UnsupportedCommandException: cmd 'uploadfile;jsessionid=4913B7A92119CA91D683D8F884829475' is not supported. Anyone know a fix for this, or a forum that would be more appropriate to ask, as this is more of a Tomcat/jboss question? Thanks. On Thu, Jun 5, 2008 at 5:27 PM, Dennis Falling [EMAIL PROTECTED] wrote: Thanks for the reply... That information was exactly what I needed. I'm actually really surprised that I hadn't run across any of it- I've spent several hours googling trying to find a solution. Thanks a lot! -dennis On Thu, Jun 5, 2008 at 12:12 PM, Jon Bradley [EMAIL PROTECTED] wrote: I'm guessing it's because the session is not retained when performing a file upload to the server - a new session id is created for each FileReference upload attempt. This is a known issue with various workarounds. Modify your server code to ignore any session or login details to be sure this is the problem you are seeing. If it works when you remove any requirement for authentication or any check of the session info, then you're one step closer to fixing the issue. You will then need to: 1. Store the session number in Flex and send it back. On the server you validate against the sent session (a new one will still be created), then send back the new session details. or... 2. Ignore a requirement on the session when doing the actual upload. Find another way of verifying the user is logged in. http://bugs.adobe.com/jira/browse/SDK-12851 http://bugs.adobe.com/jira/browse/FP-78 http://thanksmister.com/?p=59 http://www.mail-archive.com/flexcoders@yahoogroups.com/msg58372.html good luck, jon On Jun 5, 2008, at 12:58 PM, Dennis Falling wrote: I have this problem for standard uploads too, not just SSL... Again, it works fine in IE, so I know that the address and file are valid. Any ideas? On Wed, Jun 4, 2008 at 1:48 PM, Dennis Falling [EMAIL PROTECTED] wrote: I searched the web and the group and found a thread going about this without a resolution (started with msg. 88102). Does anyone know a way around this? I need to allow the user to upload files over SSL, which works fine from IE but explodes in Firefox. Code: var url:String = Services.getCommandServiceURL(FileDelegate.UPLOAD_FILE_COMMAND); var request:URLRequest = new URLRequest(url); request.method = URLRequestMethod.POST; _file.upload(request,fileData,false); When run in Firefox, I get a flash exception: Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error. Watching it in Wireshark I see the initial post, then a number of subsequent lines Continuation or non-HTTP traffic. Thanks!
[flexcoders] Re: #2038: File I/O Error only in firefox
I have this problem for standard uploads too, not just SSL... Again, it works fine in IE, so I know that the address and file are valid. Any ideas? On Wed, Jun 4, 2008 at 1:48 PM, Dennis Falling [EMAIL PROTECTED] wrote: I searched the web and the group and found a thread going about this without a resolution (started with msg. 88102). Does anyone know a way around this? I need to allow the user to upload files over SSL, which works fine from IE but explodes in Firefox. Code: var url:String = Services.getCommandServiceURL(FileDelegate.UPLOAD_FILE_COMMAND); var request:URLRequest = new URLRequest(url); request.method = URLRequestMethod.POST; _file.upload(request,fileData,false); When run in Firefox, I get a flash exception: Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error. Watching it in Wireshark I see the initial post, then a number of subsequent lines Continuation or non-HTTP traffic. Thanks!
Re: [flexcoders] Re: #2038: File I/O Error only in firefox
Thanks for the reply... That information was exactly what I needed. I'm actually really surprised that I hadn't run across any of it- I've spent several hours googling trying to find a solution. Thanks a lot! -dennis On Thu, Jun 5, 2008 at 12:12 PM, Jon Bradley [EMAIL PROTECTED] wrote: I'm guessing it's because the session is not retained when performing a file upload to the server - a new session id is created for each FileReference upload attempt. This is a known issue with various workarounds. Modify your server code to ignore any session or login details to be sure this is the problem you are seeing. If it works when you remove any requirement for authentication or any check of the session info, then you're one step closer to fixing the issue. You will then need to: 1. Store the session number in Flex and send it back. On the server you validate against the sent session (a new one will still be created), then send back the new session details. or... 2. Ignore a requirement on the session when doing the actual upload. Find another way of verifying the user is logged in. http://bugs.adobe.com/jira/browse/SDK-12851 http://bugs.adobe.com/jira/browse/FP-78 http://thanksmister.com/?p=59 http://www.mail-archive.com/flexcoders@yahoogroups.com/msg58372.html good luck, jon On Jun 5, 2008, at 12:58 PM, Dennis Falling wrote: I have this problem for standard uploads too, not just SSL... Again, it works fine in IE, so I know that the address and file are valid. Any ideas? On Wed, Jun 4, 2008 at 1:48 PM, Dennis Falling [EMAIL PROTECTED] wrote: I searched the web and the group and found a thread going about this without a resolution (started with msg. 88102). Does anyone know a way around this? I need to allow the user to upload files over SSL, which works fine from IE but explodes in Firefox. Code: var url:String = Services.getCommandServiceURL(FileDelegate.UPLOAD_FILE_COMMAND); var request:URLRequest = new URLRequest(url); request.method = URLRequestMethod.POST; _file.upload(request,fileData,false); When run in Firefox, I get a flash exception: Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error. Watching it in Wireshark I see the initial post, then a number of subsequent lines Continuation or non-HTTP traffic. Thanks!
[flexcoders] #2038: File I/O Error only in firefox
I searched the web and the group and found a thread going about this without a resolution (started with msg. 88102). Does anyone know a way around this? I need to allow the user to upload files over SSL, which works fine from IE but explodes in Firefox. Code: var url:String = Services.getCommandServiceURL(FileDelegate.UPLOAD_FILE_COMMAND); var request:URLRequest = new URLRequest(url); request.method = URLRequestMethod.POST; _file.upload(request,fileData,false); When run in Firefox, I get a flash exception: Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error. Watching it in Wireshark I see the initial post, then a number of subsequent lines Continuation or non-HTTP traffic. Thanks!
Re: [flexcoders] #2038: File I/O Error only in firefox
It isn't either of those problems. The file is fine, and the path is correct. Internet Explorer successfully uploads the file with no problems. I do have a handler for the error, but need to fix the problem causing the error. On Wed, Jun 4, 2008 at 3:36 PM, Joseph Balderson [EMAIL PROTECTED] wrote: Either your file is corrupted, or the path to the file cannot be found, and you've not created an IOError event handler to catch the event. __ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Dennis Falling wrote: I searched the web and the group and found a thread going about this without a resolution (started with msg. 88102). Does anyone know a way around this? I need to allow the user to upload files over SSL, which works fine from IE but explodes in Firefox. Code: var url:String = Services.getCommandServiceURL(FileDelegate.UPLOAD_FILE_COMMAND); var request:URLRequest = new URLRequest(url); request.method = URLRequestMethod.POST; _file.upload(request,fileData,false); When run in Firefox, I get a flash exception: Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error. Watching it in Wireshark I see the initial post, then a number of subsequent lines Continuation or non-HTTP traffic. Thanks!
Re: [flexcoders] parsing complex xml
Yeah, I should have mentioned that the server sending this file to me is wrapping it in con, making that the root and configuration the only element. On Tue, May 27, 2008 at 6:34 PM, Josh McDonald [EMAIL PROTECTED] wrote: Off the top of my head, If the root of your XML doc is configuration, you want xmlObject.category as a list of category elements, not xmlObject.configuration.category -J On Wed, May 28, 2008 at 8:09 AM, dfalling [EMAIL PROTECTED] wrote: I'm trying to parse a complex xml file (a log4j config file) and am running into a number of problems: * Flex seems to remove all the comments from the file. Is there any way to prevent this? I don't need access to them in Flex, but do want them to be untouched. * I have no idea how to iterate over the items or to set xml as a list's data provider. The tag containing everything I need to access is log4j:configuration, and when I try to access xml.log4j::configuration flex complains about not having the property log4j. If anyone knows of good xml tutorials that would help me to grasp this better I'd really appreciate it. Most of the ones I've found are basically the hello world of xml parsing...the few dealing with namespaces do little to explain what they're doing. log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; debug=false category name=org.apache priority value=INFO/ /category !-- Limit the org.jboss.serial (jboss-serialization) to INFO as its DEBUG is verbose -- category name=org.jboss.serial priority value=INFO/ /category !-- Limit the org.jgroups category to WARN as its INFO is verbose -- category name=org.jgroups priority value=WARN/ /category !-- Limit the jacorb category to WARN as its INFO is verbose -- category name=jacorb priority value=WARN/ /category . . . /log4j:configuration Thanks a lot! -dennis -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] parsing complex xml
I was trying both routes- dataprovider and and iterating. dataProvider: function dataReceived(data:XML):void { list.dataProvider = data.configuration.category; } With the above, nothing showed up in the list. The xml sample I provided in my original email was all wrapped by a con tag by the server. Iterating over it I tried: function dataReceived(data:XML):void { for (var category:XML in data.configuration.category) { trace(category.toXMLString(); } } The flex page that needs to render this will allow the user to configure each item, so I need a way to read and write to those items while still leaving the comments in tact. Thanks! On Tue, May 27, 2008 at 5:39 PM, Tracy Spratt [EMAIL PROTECTED] wrote: I don't know if I have ever noticed this removal of comments, I'd need to verify. To iterate over nodes, use an e4x expression to return an XMLList, then use a for loop. Or For Each, or For In. The docs have some more detail and examples. A list can also use XMLList as a dataProvider if you do not plan to programmaticlly update the dataprovider. If you do, simply wrap the XMLList in an XMLListCollection. It looks like you will need to declare the default namespace, or use the namespace::node in all e4x expressions. You've not shown any expressions, so I can't say what you're doing wrong. Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *dfalling *Sent:* Tuesday, May 27, 2008 6:10 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] parsing complex xml I'm trying to parse a complex xml file (a log4j config file) and am running into a number of problems: * Flex seems to remove all the comments from the file. Is there any way to prevent this? I don't need access to them in Flex, but do want them to be untouched. * I have no idea how to iterate over the items or to set xml as a list's data provider. The tag containing everything I need to access is log4j:configuration, and when I try to access xml.log4j::configuration flex complains about not having the property log4j. If anyone knows of good xml tutorials that would help me to grasp this better I'd really appreciate it. Most of the ones I've found are basically the hello world of xml parsing...the few dealing with namespaces do little to explain what they're doing. log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; debug=false category name=org.apache priority value=INFO/ /category !-- Limit the org.jboss.serial (jboss-serialization) to INFO as its DEBUG is verbose -- category name=org.jboss.serial priority value=INFO/ /category !-- Limit the org.jgroups category to WARN as its INFO is verbose -- category name=org.jgroups priority value=WARN/ /category !-- Limit the jacorb category to WARN as its INFO is verbose -- category name=jacorb priority value=WARN/ /category . . . /log4j:configuration Thanks a lot! -dennis
[flexcoders] CSS inheritance?
I'm trying to find a cleaner way of doing css. Right now I have a common border style used frequently throughout my app, and a couple common container styles (background, padding, width, etc.). I'd like a way to have the different container styles reference the border style, instead of duplicating those values. Does anyone know if there's a good way to do this in flex's limited css? Right now I'm just trying to find the least common denominators and split those out to separate classes. Thanks!
[flexcoders] flex2 change sdk?
How do you select which SDK to use in flex builder 2? In 3 you can specify a default for all projects and set one for each project.
[flexcoders] Catch exceptions outside of try block?
I'm sure I'm going at this wrong, but don't know what to do... I'm setting the data of a custom component with an image element. When the component finishes starting up the image grabs its source from the data provider and a function catches the IOError event and throws its text as an exception so the application can know about the failure. The problem I'm having is with the delay between the set data and creation complete of the component. By the time the image tries to access the source (and fails), my application is past that try/catch block and can't handle it. What's the right way to do this? Better yet, is there a way in flex to try to access various different kinds of files to see if the address is valid? Thanks! -dennis
Re: [flexcoders] Re: Can't figure out how to parse RSS
Nice...that's exactly what I needed. Thanks a lot! On Thu, Apr 24, 2008 at 11:47 PM, ben.clinkinbeard [EMAIL PROTECTED] wrote: http://code.google.com/p/as3syndicationlib/ HTH, Ben --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, dfalling [EMAIL PROTECTED] wrote: I'm trying to write a small app that will parse an inputted RSS feed. On some feeds (reddit.com) it works fine, but on others (slashdot.org) the xml seems to be cut off... the description and title for the feed are there, but none of the items. What is causing this? I've wandered tried to adapt code from dozens of different examples and still can't understand exactly what I need. Here's the minimal code that I'm using now, without all the hacks and attempts I've tried: import mx.collections.XMLListCollection; import mx.utils.ArrayUtil; import mx.rpc.http.HTTPService; import mx.rpc.events.ResultEvent; import mx.collections.ArrayCollection; import mx.events.FlexEvent; [Bindable] private var _dataProvider:XMLListCollection = new XMLListCollection(); private var _httpService:HTTPService; private function urlSubmitted():void { var feedUrl:String = urlText.text; _httpService = new HTTPService(); _httpService.url = feedUrl; _httpService.resultFormat = e4x; _httpService.addEventListener(ResultEvent.RESULT,dataReceived,false,0,tr\ ue); _httpService.send(); } private function dataReceived(event:ResultEvent):void { _dataProvider.source = event.result.channel.item as XMLList; noDataView.visible = false; dataGrid.visible = true; }
[flexcoders] VideoDisplay: why does play restart buffering after load?
I'm trying to avoid using VideoDisplay's default buffering and loading/playing videos manually. For some reason, calling load and then play sometimes makes the player start buffering again from the very beginning. I assume this is caused by one of the booleans sourceChanged or closeCalled not being reset by the load, but since they are private, I can't access them. Does anyone know a way around this? I think I'm on my fourth attempt at changing buffering because I keep hitting brick walls with the player... Any advice would really be appreciated. Thanks!
[flexcoders] VideoDisplay lies about bytesLoaded
I'm using a changewatcher to observe the bytesLoaded attribute of a videoDisplay and update the UI accordingly. This works well most of the time, but once during each of the longer videos, bytesLoaded will jump, then continue loading. bytesLoaded / bytesTotal: 3186688/4971903 4971903/4971903 -- wrong 1900544/4971903 4247552/4971903 4971903/4971903 Does anyone know what could be causing this? Is there a better way to do this than using a changewatcher? Thanks.
[flexcoders] VideoDisplay intelligent buffering?
Are there any tricks to make the VideoDisplay's buffering work a little better? The default behavior of simply waiting a number of seconds isn't ideal because if it's a short video, this may be too long, and if it's a long video, this may be too short. If anyone has come up with a good way of handling this, I'd love some advice. Thanks!
Re: [flexcoders] Multiple sets of visual children have been specified for this component
That was it. I changed it to add it programmatically if it is valid, rather than always adding it only to turn around and delete it. Thanks! On Thu, Apr 10, 2008 at 11:06 PM, Alex Harui [EMAIL PROTECTED] wrote: That stack implies that the initialized flag never got set or got reset. Is it possible that it got reset? Could you be removing those tabs before they are fully initialized? -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dennis Falling *Sent:* Thursday, April 10, 2008 3:22 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Multiple sets of visual children have been specified for this component Error: Multiple sets of visual children have been specified for this component (base component definition and derived component definition). at mx.core::Container/ http://www.adobe.com/2006/flex/mx/internal::setDocumentDescriptor()[C:\Programhttp://www.adobe.com/2006/flex/mx/internal::setDocumentDescriptor%28%29%5bC:/ProgramFiles\Adobe\Flex Builder 2 Plug-in\Flex SDK 2\frameworks\source\mx\core\Container.as:3460] at com.view.devices::DeviceDetailVQMInterfacesTab/initialize()[C:\chicago\Release1\web\flex\ChicagoGui\com\view\devices\DeviceDetailVQMInterfacesTab.mxml:0] at mx.core::UIComponent/ http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\Programhttp://www.adobe.com/2006/flex/mx/internal::childAdded%28%29%5bC:/ProgramFiles\Adobe\Flex Builder 2 Plug-in\Flex SDK 2\frameworks\source\mx\core\UIComponent.as:4838] at mx.core::Container/ http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\Programhttp://www.adobe.com/2006/flex/mx/internal::childAdded%28%29%5bC:/ProgramFiles\Adobe\Flex Builder 2 Plug-in\Flex SDK 2\frameworks\source\mx\core\Container.as:3346] at mx.core::Container/addChildAt()[C:\Program Files\Adobe\Flex Builder 2 Plug-in\Flex SDK 2\frameworks\source\mx\core\Container.as:2281] at com.view.devices::DeviceDetailPanel/toggleVqm()[C:\chicago\Release1\web\flex\ChicagoGui\com\view\devices\DeviceDetailPanel.mxml:84] at Function/http://adobe.com/AS3/2006/builtin::apply()http://adobe.com/AS3/2006/builtin::apply%28%29 at mx.core::UIComponent/callLaterDispatcher2()[C:\Program Files\Adobe\Flex Builder 2 Plug-in\Flex SDK 2\frameworks\source\mx\core\UIComponent.as:7975] at mx.core::UIComponent/callLaterDispatcher()[C:\Program Files\Adobe\Flex Builder 2 Plug-in\Flex SDK 2\frameworks\source\mx\core\UIComponent.as:7918] On Wed, Apr 9, 2008 at 4:16 PM, Alex Harui [EMAIL PROTECTED] wrote: Please post the entire stack trace. You should be able to do it. Also, I think SuperTabNavigator can hide tabs. Google for it. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dennis Falling *Sent:* Wednesday, April 09, 2008 12:20 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Multiple sets of visual children have been specified for this component I'm trying to programmatically hide/show a tab in an interface. I found that there isn't a way to toggle visibility/include in layout, so decided to remove it when it's not applicable and add it back when it is. When I try to add it back, though, I get the error *Multiple sets of visual children have been specified for this component *and the add fails. I'm trying to add it back to the same element I removed it from, so what am I doing wrong? Is there a better way to do this, this feels like a hack. Thanks!
Re: [flexcoders] Can embedded fonts have tracking and word spacing?
Thank you, that's exactly what I wanted. On Thu, Apr 3, 2008 at 4:55 PM, Daniel Freiman [EMAIL PROTECTED] wrote: The TextFormat, TextRange, and StyleSheet classes enumerate all your options. Each class has the same capabilities as the others so just pick the one you're most comfortable with. As for what the Flash Player has available, it has letterspacing (I think this is the same as tracking) and it supports kerning for embeded fonts. The closest thing the player has to wordspacing is an alignment value of justify (or full) but that's obviously not the same thing. http://livedocs.adobe.com/flex/3/langref/flash/text/TextFormat.html http://livedocs.adobe.com/flex/3/langref/mx/controls/textClasses/TextRange.html http://livedocs.adobe.com/flex/3/langref/flash/text/StyleSheet.html You can also play the advanced styles shown in the UITextField class. Anti-aliasing, sharpness, etc can be set although I'm not sure how much good they do. - Daniel Freiman On Thu, Apr 3, 2008 at 5:26 PM, Dennis Falling [EMAIL PROTECTED] wrote: I'm trying to make fonts more readable by adding character spacing to them. Is this possible? It's an embedded font, but I haven't been able to find a list of what parameters are valid when embedding a font. Thanks!
Re: [flexcoders] Any way to make legend scroll vertically?
In case anyone else hits this... To make a legend scroll, just give it an unbounded width/height and wrap it in a canvas that has a bounded width and height. This will trigger the canvas to create scrollbars when necessary. On Wed, Mar 26, 2008 at 1:31 PM, dfalling [EMAIL PROTECTED] wrote: I have a legend with a ridiculous number of items that was ridiculously high until I set it its height to 100%. Now it is broken up into columns (I was surprised) that take up the entire area available to it and the chart. Is there a way to make a legend scroll just like a list? I know it's not idea, but this is an edge case that will rarely be hit, so I have no qualms with this as a solution. ps.. apparently yahoo really wants me to watch I Am Legend, I had to weed through dozens of links to it while searching the group.
[flexcoders] Can embedded fonts have tracking and word spacing?
I'm trying to make fonts more readable by adding character spacing to them. Is this possible? It's an embedded font, but I haven't been able to find a list of what parameters are valid when embedding a font. Thanks!
Re: [flexcoders] Re: flashvars hate me
Ok, I checked that page again (saw it during my current hunt) and think I'm doing everything in it. I'm sure there's something stupid that I'm missing, but this is my typical flex problem: something really basic takes me hours to do because I can't figure out the exact syntax. On Wed, Apr 2, 2008 at 12:21 AM, Alexander Tsoukias [EMAIL PROTECTED] wrote: I've had similar issues but this post had helped me a lot: http://thanksmister.com/?p=27 thanks Alexander --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, dfalling [EMAIL PROTECTED] wrote: I can't get flashvars to work... It seems pretty basic, but no mater what I do they don't seem to show up in flex. AS: woo = Application.application.parameters.url; HTML: param name=FlashVars value=url=woo / embed ... flashvars=url=woo /embed What am I missing? Thanks!
Re: [flexcoders] flashvars hate me
No, I'm doing it with the template html file. I've double-checked the html source in my browser after running and they're all there. I've added the url=woo code in four places: the AC_FL function, the embed src=...swf?url=woo, the param flashvars value=url=woo..., and the FlashVars=url=woo. I'm sure it's probably not supposed to be in that many places, but I kept seeing different instructions and none of them have worked as of yet. I'm using Flex 3. On Wed, Apr 2, 2008 at 12:35 PM, Tracy Spratt [EMAIL PROTECTED] wrote: It looks like you are doing this manually. I always start with a wrapper generated by FlexBuilder, and edit the AC_FL_RunContent function as Rick suggests. I have never had any problems. Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *dfalling *Sent:* Wednesday, April 02, 2008 1:10 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] flashvars hate me I can't get flashvars to work... It seems pretty basic, but no mater what I do they don't seem to show up in flex. AS: woo = Application.application.parameters.url; HTML: param name=FlashVars value=url=woo / embed ... flashvars=url=woo /embed What am I missing? Thanks!
Re: [flexcoders] How do I set width to 100% in actionscript?
Someone's probably beaten me to this but, use percentWidth instead. On Tue, Mar 25, 2008 at 1:43 PM, luvfotography [EMAIL PROTECTED] wrote: How do I set the width to 100% using actionscript?? It only allows a number - not a string!?! var newcanvas:Canvas = new Canvas(); newcanvas.width = 100%; 1067: Implicit coercion of a value of type String to an unrelated type Number.
Re: [flexcoders] Re: independent vertical scrolling in hbox elements
But then the sidebar has knowledge of its container's height. If the container is resized, the sidebar will not resize. I simply made the outer container 150px to force scrolling and point out the problem. On Fri, Mar 14, 2008 at 2:01 AM, arieljake [EMAIL PROTECTED] wrote: It works if I add height=150 to the sidebar. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, dfalling [EMAIL PROTECTED] wrote: This seems like a really simple question, but I can't figure it out... I have a two-column view and want the columns to scroll independently of each other (if one needs to scroll, then it will show scrollbars.) I've tried dozens of combinations of height and can't get it to work. Either neither columns scroll, or both scroll together. Here's a basic example I'm trying. The sidebar below is too tall, and causing the entire interface to scroll. mx:HBox height=150 width=100% backgroundColor=#efefef mx:VBox id=sidebar width=200 mx:VBox backgroundColor=#33 height=250 width=100%/ /mx:VBox mx:VBox id=main mx:Text fontWeight=bold fontSize=16 text=main/ /mx:VBox /mx:HBox
[flexcoders] load video bytes in VideoDisplay
Hi all, my video files are grabbed from a bytestream which also contains other data and I was wondering how I could throw those video bytes into a VideoDisplay component. For images I use loader.loadBytes and image.source = loader.content and I was hoping to use a similiar construction for my videos but could't find anything.. any ideas ?
[flexcoders] Upload file in chunks
Hi all, I'm a bit stuck here in finding a solution for uploading files to our server. Problem is that is has to be sent in DIME format (binary data with some xml in it). What I was wondering is that for this solution it looks like I have to read the file first, wrap it in a bytearray and then convert it to a DIME record. Meaning that the complete file has to be in memory before sending it. So for a 50MB file (Indesign for instance) that would mean Flex needs at least 50 MB of memory extra... so.. Ideally I'm looking for a URLStream solution, but then the upload version, where I read a file in chunks and send those chunks to the server. Any chance of building this on URLLoader or do I need to step down to Socket for this ? Dennis
[flexcoders] Re: Deep binding with Cairngorm question
I've created an add-on to Alex Uhlman observe tag (http://weblogs.macromedia.com/auhlmann/archives/2006/09/using_binding_s.cfm) that not only monitors the settings of a collection but also tracks changes in it. package com.adobe.ac { import mx.events.CollectionEvent; import flash.events.Event; public class ObserveCollection extends Observe { private var _source : Object; override public function get source() : Object { return _source; } public override function set source( value : Object ) : void { if (_source != null) _source.removeEventListener(CollectionEvent.COLLECTION_CHANGE,collectionChangeHandler); _source = value; _source.addEventListener(CollectionEvent.COLLECTION_CHANGE,collectionChangeHandler); isSourceInitialized = true; if( isHandlerInitialized isSourceInitialized ) { callHandler(); } } private function collectionChangeHandler (event:Event) : void { callHandler(); } } } Different approach, same result. :) Dennis --- In flexcoders@yahoogroups.com, dbronk [EMAIL PROTECTED] wrote: I have a VO: [Bindable] public class Product { public var productName : String; // several more attributes here } I place a large number of Products in my Cairngorm Singleton SellModelLocator in var productList : ArrayCollection; The entire SellModelLocator is declared Bindable. In one of my mxml views I have the following: mx:Binding source=SellModelLocator.getInstance().productList destination=refreshFilters / I need this binding to execute refreshFilters whenever I add/remove a Product to productList as well as when I change an attribute in one of the Products contained in productList. How do I do this? The follow will fire the refreshFilters: - SellModelLocator.getInstance().productList = new ArrayCollection(); - SellModelLocator.getInstance().productList = someOtherArrayCollection; The following will NOT fire the refreshFilters: - SellModelLocator.getInstance().productList.addItem( new Product() ); - Product(SellModelLocator.getInstance().productList.getItemAt(0)).status = ACTIVE; Any help on how to do a deep bind would be appreciated. Thanks, Dale
[flexcoders] Re: Yahoo maps api for flex 2
http://developer.yahoo.com/maps/flash/flexGettingStarted.html Dennis --- In flexcoders@yahoogroups.com, John Robinson [EMAIL PROTECTED] wrote: As far as I know they haven't. They're AS2 map stuff has a version that works in Flex, but it uses the old AVM1, and either a js or lc bridge between that and your AS3 flex stuff. John On Oct 30, 2007, at 10:20 AM, Nate Pearson wrote: I thought that Yahoo made a new api for flex 2...maybe I dreamed it up because I can't find it on the net! Can anyone link me? Thanks, Nate -- 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 John Robinson - Flash/Flex Developer at large Blog: http://jrobinsonmedia.wordpress.com
[flexcoders] Re: Yahoo maps api for flex 2
nevermind. Looks like its the old AVM1 version indeed. Dennis --- In flexcoders@yahoogroups.com, Dennis van Nooij [EMAIL PROTECTED] wrote: http://developer.yahoo.com/maps/flash/flexGettingStarted.html Dennis --- In flexcoders@yahoogroups.com, John Robinson jrobinso@ wrote: As far as I know they haven't. They're AS2 map stuff has a version that works in Flex, but it uses the old AVM1, and either a js or lc bridge between that and your AS3 flex stuff. John On Oct 30, 2007, at 10:20 AM, Nate Pearson wrote: I thought that Yahoo made a new api for flex 2...maybe I dreamed it up because I can't find it on the net! Can anyone link me? Thanks, Nate -- 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 John Robinson - Flash/Flex Developer at large Blog: http://jrobinsonmedia.wordpress.com
[flexcoders] ModuleManager.getAssociatedFactory returning wrong result ?
Hi, I'm trying to split up my application into modules but ran into this weird behaviour. According to the docs getAssociatedFactory should return See if the referenced object is associated with (or, in the managed ApplicationDomain of) a known IFlexModuleFactory implementation The thing is when I startup my app without modules it returns null (as it should) but when I load a module it returns the same factory for objects in the module as well as in the shell .. ? Here's the code: Shell: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=loadModule() mx:Script ![CDATA[ import mx.modules.ModuleLoader; import mx.modules.ModuleManager; private function loadModule () : void { var factory = ModuleManager.getAssociatedFactory(shellButton); trace(factory + factory); if (factory != null) trace(factory name + factory.name); var module_ldr:ModuleLoader = new ModuleLoader(); module_ldr.url = ButtonModule.swf; module_ldr.loadModule(); this.addChild(module_ldr); } private function traceFactory () : void { var factory = ModuleManager.getAssociatedFactory(shellButton); trace(factory + factory); if (factory != null) trace(factory name + factory.name); } ]] /mx:Script mx:Button id=shellButton x=166 y=41 label=Shell Button click=traceFactory()/ /mx:Application Module: ?xml version=1.0 encoding=utf-8? mx:Module xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=400 height=300 mx:Script ![CDATA[ import mx.core.IFlexModuleFactory; import mx.modules.ModuleManager; private function traceFactory () : void { var factory = ModuleManager.getAssociatedFactory(button); trace(factory + factory); if (factory != null) trace(factory name + factory.name); } ]] /mx:Script mx:Button id=button x=166 y=141 label=Module Button click=traceFactory()/ /mx:Module With this output: [SWF] Users:dennisvannooij:Documents:workspace:ModuleTest:bin:ModuleTest.swf - 522,921 bytes after decompression factory null [SWF] Users:dennisvannooij:Documents:workspace:ModuleTest:bin:ButtonModule.swf - 518,830 bytes after decompression factory [object _ButtonModule_mx_core_FlexModuleFactory] factory name instance16 factory [object _ButtonModule_mx_core_FlexModuleFactory] factory name instance16 Last two traces are from clicking first the shell button, then the module button.. am I missing something here ? Dennis