[flexcoders] How to get the radius of a pie chart?
I have created a custom series that extends PieSeries and I need to get the radius of the chart so I can do some custom renderering at the series rather than slice level but I cant see any property I can access to tell me what the real radius of the chart is supposed to be, everything seems to have been declared private. Any idea on how I can figure it out? tks
[flexcoders] Re: lefpadding on TileList
I guess that would pad all the images. I would like to have padding around only the outer edges of the tilelist... Wouter --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Try customizing your renderer to add the padding there. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wouterv2000 Sent: Wednesday, January 16, 2008 6:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] lefpadding on TileList Hi, I would like to know whether there is some way to use left padding on a TileList. I have a tilelist with a bunch of images in it and an elastice move efect. When this efect occurs the images disappeard momentarily under the right edge of the TileList. I already tried setting the leftPadding, changing width etc, but that didn't help.. Regards, Wouter
Re: [flexcoders] Advanced Datagrid with Grouping
On Wednesday 16 Jan 2008, jovialrandor wrote: How do I get 'filterfunction' of an arraycollection work on a datagrid/textinput search app with groupingcollection function placed on the datagrid? I struggled with this too, there is code : https://bugs.adobe.com/jira/browse/FLEXDMV-1097 -- Tom Chiverton Helping to widespreadedly transition proactive materials on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Application protection
On Wednesday 16 Jan 2008, Brent Dearth wrote: AS3, as I haven't heard of any. Me neither. -- Tom Chiverton Helping to autoschediastically differentiate unique segments on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Application domain and Modules
Ok, so I see where the problem lies. Even though I'm not directly accessing the module, the module manager still expects to be able to, via the interface. I'll use child domains of the current domain for my solution, but I'll be very careful that the classes I load don't get loaded into the current domain. Thanks for explaining it. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 17 January 2008 07:37 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Application domain and Modules Modules require sharing interfaces at minimum. The module manager expects to get a valid IFlexModuleFactory, but it can't since you've created a distinct appdom. You must use child appdoms of the main appdom or pick other places in the tree where you can share just enough interfaces to make it work. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gregor Kiddie Sent: Wednesday, January 16, 2008 8:30 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Application domain and Modules I've read everything off your blog (I have a RSS reader for a reason!) including the stuff on modules, and this isn't about accessing the module, at least as far as I think. The example I posted, set the loaders application domain to new Applicationdomain(null). That mean's no parent specified, so it becomes a direct child of the system's ApplicationDomain. This means that any classes loaded in that domain aren't checked against the classes loaded in my current domain. All well and good. But when I add that loader as a child of the VBox, nothing appears. I'm not trying to access the code in anyway. Does the fact that the code is in another ApplicationDomain mean that the Manager's cannot also access the code to display it? I would assume that the ModuleLoader could access the classes and manage it's own display, so separation wouldn't be a problem. (As it happens, I think I've found a better solution around the problem, but I'd still like to know the answer for this one). Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 15 January 2008 19:33 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Application domain and Modules Modules must have a common application domain otherwise you cannot access them via classes or interfaces. See my blog for more info (blogs.adobe.com/aharui) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gregor Kiddie Sent: Monday, January 14, 2008 5:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Application domain and Modules Is there any reason why the below code would not work? Although I see the module getting loaded when watching the debugger, and I can see that the modules always get different Application domains, nothing ever gets added to the Content Pane. It does when I load the module without the new ApplicationDomain. The module consists of a MXML view which is just a label, bound to a singleton AS class. What I'm aiming for is the ability to load a module with a singleton into the same application repeatedly, and have the modules act completely seperately (i.e. there is two instances of the singleton, one for each module). Rogerg. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical width=100% height=100% mx:Script nb! sp; ![CDATA[ import mx.modules.ModuleLoader;
[flexcoders] Dynamic evaluation of E4X expression
Hi, I find the E4X expression language very powerful, and would like to leverage it to find elements in an xml document. The problem is that I get the E4X expression at runtime, so I'm looking for a way to dynamically invoke the E4X expression. Something like: -- var myXML:XML = order item id='1' menuNameburger/menuName price3.95/price /item item id='2' menuNamefries/menuName price1.45/price /item /order; var expression:String = item.(@id==2).menuName; myXML.something here?(expression); -- I first look for an eval function as in javascript, but found that AS3 does not provide such function any more. - Xavier
Re: [flexcoders] Re: Move effect
Sherif Abdou escreveu: I am not sure but you can have the x={this.unscledWidth} so that will always update and do what you want. I think. - Original Message From: jovialrandor [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, January 16, 2008 11:48:56 PM Subject: [flexcoders] Re: Move effect how does the 'component.width+ Application. application. unscaledWidth' work? i do not know the screen resolution, so i would like it so I do not need to speciy an exact x,y coordinate. eg. if screen size is 1028x768 or 1600x1200, the component should move off the screen. take a look at this image description of what I'm trying to do. http://thedarkcity. ws/transition. gif http://thedarkcity.ws/transition.gif let me know if i need to further clarify. thanks --- In [EMAIL PROTECTED] ups.com http://ups.com/, Sherif Abdou [EMAIL PROTECTED] . wrote: you could just use i guess (component.width+ Application. application. unscaledWidth) and that should take it off the screen, i have no idea what the apple Ipod menu does so... - Original Message From: jovialrandor jovialrandor@ ... To: [EMAIL PROTECTED] ups.com http://ups.com/ Sent: Wednesday, January 16, 2008 4:20:04 PM Subject: [flexcoders] Re: Move effect What I am trying to accomplish is the Apple Ipod menu for Flex: Sliding out/in menues. --- In [EMAIL PROTECTED] ups.com http://ups.com/, jovialrandor jovialrandor@ ... wrote: How can I specify any Flex component to move out of the screen if i do not know the screen resoluction of the end user beforehand? Is there some Move value like '-1' that indicates to move out of any size screen? Thanks _ _ _ _ _ _ _ _ Never miss a thing. Make Yahoo your home page. http://www.yahoo. com/r/hs Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20 __ NOD32 2799 (20080116) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com What do you need the screen resolution for? Unless you could make sure the app is always fullscreen (wich you can't) the screen resolution would almost always be different from the application size. What matters to you is the application size. And you can easily get that value (as Sherif said, component.width+Application.application.width). Then you just have to trigger a Move effect (by AS or transition): mx:transitions mx:Transition fromState=inScreen toState=offScreen mx:Sequence mx:Move target={component} xFrom={component.x} xTo={component.width+Application.application.width}}/ /mx:Sequence /mx:Transition mx:Transition fromState=offScreen toState=inScreen mx:Sequence mx:Move target={component} xFrom={component.x} xTo={0}}/ /mx:Sequence /mx:Transition mx:transitions Now, you need to make sure the component gets off the screen AND it stays there if the application is resized. There are a few ways to do that, I'll tell you how to do it with Binding. First, the Binding only should be set when the component is off the screen: mx:transitions mx:Transition fromState=inScreen toState=offScreen mx:Sequence mx:Move target={component} xFrom={component.x} xTo={component.width+Application.application.width}} *onTweenEnd=bindX()*/ /mx:Sequence /mx:Transition mx:Transition fromState=offScreen toState=inScreen mx:Sequence *effectStart=unbindX()* mx:Move target={component} xFrom={component.x} xTo={0}}/ /mx:Sequence /mx:Transition mx:transitions Now the actual binding: private var watcher:ChangeWatcher; private function bindX():void { watcher = BindingUtils.bindSetter(_applicationWidht,Application.application,width); } private function unbindX():void { if(watcher!=null) { watcher.unwatch(); } } private function set applicationWidht(value:Number):void { this.x = component.width+Application.application.width; } And that's it. I didn't test this but I think it's at least enough to show you a way. Hope it helps, regards Frederico Garcia
[flexcoders] Re: Binding ValueObjects
One more question... How would you bind this update() to the vo in wich we change the propertie. I have VO in the modelLocator, and I change it with command. Then this must be updated on the component vo. How would you bind this? Thanks, Toni --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: Hi, I don't know if this helps, but what I've done in the past is to bind the VO and then if I need to update it I had the same problem you were talking about. I would change the value, but the VO wouldn't change as the binging goes from the VO to the component, not the other way around. My little work around was to have a function similar to this (assuming the VO is called 'voToChange' of type 'VO') private function update():void { var holderVO:VO = voToChange; voToChange = new VO(); voToChange = holderVO; } This then changes the VO so the change will go back to the component. Alternatively if you want to set something on the VO you could change the function to somethign like private function setSomthing(something:Object):void { voToChange.propertyToChange = something; //Call the update function update(); } I hope I haven't completely misunderstood what you are having problems with. Luck, Tim I understand that. I know how to bind some class. Problem is, that if I Bind whole VO to one of my components, if I change something in the VO (only one var) than nothing will change. I don't want to bind all the properties separately. I can make one example for drawing line: [Bindable] public class LineVO { public var startX:Number; public var startY:Number; public var endX:Number; public var endY:Number; } Than I have one component to draw the line with LineVO. var linevo:LineVO=new LineVO(); linevo.startX=0; linevo.startY=0; linevo.endX=20; linevo.endY=30; var newLine:Line=new Line(); newLine.vo=linevo; addChild(newLine); I only want to bind the whole linevo, not the properties. Now if i change some properties like startX or startY, in the line should be triggered one function that I bind to. It is working for me if I bind the every propertie by itself, like this: BindingUtils.bindProperty(newLine,onChange,linevo,startX); That is not O.K., because than I have to bind everything manually. I hope that now somebody can help me. Thanks, Toni --- In flexcoders@yahoogroups.com, madflexcoder brian.joseph31@ wrote: Put your [Bindable] tag on top of your class and it will make the entire class bindable. [Bindable] public class MyVo { } brian.. --- In flexcoders@yahoogroups.com, toniabc toniabc@ wrote: Hi! I have one problem. I have Value Object that I want to Bind to my custom made component. I have no problems to bind every single value from VO to component. And if I change something in the VO, that will be changed. But I want to Bind the whole VO (at once, not every value by itself). So that I can override the whole VO and changes will be automatically trigger the update function in my component. And if I remove the VO, than I want to remove my component from view. Thank you, Toni P.
Re: [flexcoders] Re: Application protection
simonjpalmer escreveu: Generally speaking the way to enforce your subscription and guarantee your money is to either charge up-front, disable features, or own the data, otherwise you only have people's goodwill to stop you being a free download. Whatever you do is going to p*ss off your users because they'll want it for nothing. Owning the data is very fashionable at the moment. If you really want to make sure that you get your cash then you charge them at the point of download. You could build in a time-bomb from the date of registration and keep a registry of users on your server with activation keys. When the time bomb goes off the app stops working and they have to come back and buy a license key. Pop up an annoying message reminding them that they haven't paid you anything every few minutes. Or, you could force it to handshake with the server to perform some very valuable function, like print, or save, or perhaps start up, whether running standalone or in the browser. Have you thought of giving it away for free and then extracting your value by some other means like licensing the data format? Worked for Macromedia... --- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: George [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 12, 2008 9:06 PM Subject: Re: [flexcoders] Application protection I'm not sure what kind of your application is. I guess it's an application could run both in browsers and AIR standalone (I planned a project myself like this) Yes, exactly that. I would make most of tasks 'call home' for sure. But there could be 'off-line' tasks. When the client get back online it will update (merge/diff) automatically. I will likely to give chance some information to be exported as a format like PDF. If some data useful for user even offline, let them exported so they can read anywhere, in a way you have some sort of control, help them instead let them hacking. You cannot protect anything you display to them, whatever sensitive data is, your clients could 'Print screen'. The clients are actually providing the data, so print screen is fine. The worst scenario is that the AIR application is hacked so it no longer needs the server and people could use it without the subscription. I'm fully aware that hackers will hack no matter what, I just want it to be harder for the occassional geek/rougue user to bypass the subscription and pass the software around. As far as I know there's no licence protection support in AIR, so I was hoping someone might say I have an AIR app and I'm using product XYZ for licencing. This is also a sensitive issue so I understand that people may be reluctant to discuss their own arrangements. Thanks again, Paul George Paul Andrews wrote: Hi Guys, I'm considering producing an application that could be sold commercially to small businesses or even some individuals. I won't say what the application is ;-) As a Flex application much of the logic (it could all be) will be on the client. Strictly speaking the server would only be used for saving data. The application could also work nicely as an AIR application. Ideally, I don't plan to sell the application, but a service - so it would be subscription based. No we all know the world is full of pirates and I'd like to know the best way to make things at least a bit more tricky for them. As a subscription based service, having a logon to a remote server will help since it will at lease make them 'call home'. Is this the only way to protect Flex applications? Presumably the only way to really protect an AIR App is to make it 'call home' too? If the calling home feature became disabled, it would leave the AIR app prone to missappropriation. Finally, potentially some of the data involved will be sensitive. It doesn't have to be sent to the client, but would be good if it was. That would then raise the spectre of data confidentiality on a remote server. My usual experience is with corporate intranets or websites where piracy/security isn't a big issue (at least not my specific problem). So any advice on security issues surrounding Flex/Air apps would be welcome before I finalise my architecture. Paul -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives:
Re: [flexcoders] Re: Binding ValueObjects
Ah - good it is Cairngorm. Initially bind the VO to the component. Well, actually I do bind it's properties directly to the individual elements of the component initially. Then what I do is create another Event call something like UpdateVOEvent and dispatch at the Command level. This then triggers a standard Command called something like UpdateVoCommand that you can call from all over the place to trigger the update. Currently I'm actually using it to reset big forms to their original values. But in answer to your question - the way I do it is to have a two step process - change the property and then update the VO. I think I may have misunderstood the question - how exactly are you binding a VO to a component without the component knowing which properties in the VO relate to which elements of the component? t One more question... How would you bind this update() to the vo in wich we change the propertie. I have VO in the modelLocator, and I change it with command. Then this must be updated on the component vo. How would you bind this? Thanks, Toni --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: Hi, I don't know if this helps, but what I've done in the past is to bind the VO and then if I need to update it I had the same problem you were talking about. I would change the value, but the VO wouldn't change as the binging goes from the VO to the component, not the other way around. My little work around was to have a function similar to this (assuming the VO is called 'voToChange' of type 'VO') private function update():void { var holderVO:VO = voToChange; voToChange = new VO(); voToChange = holderVO; } This then changes the VO so the change will go back to the component. Alternatively if you want to set something on the VO you could change the function to somethign like private function setSomthing(something:Object):void { voToChange.propertyToChange = something; //Call the update function update(); } I hope I haven't completely misunderstood what you are having problems with. Luck, Tim I understand that. I know how to bind some class. Problem is, that if I Bind whole VO to one of my components, if I change something in the VO (only one var) than nothing will change. I don't want to bind all the properties separately. I can make one example for drawing line: [Bindable] public class LineVO { public var startX:Number; public var startY:Number; public var endX:Number; public var endY:Number; } Than I have one component to draw the line with LineVO. var linevo:LineVO=new LineVO(); linevo.startX=0; linevo.startY=0; linevo.endX=20; linevo.endY=30; var newLine:Line=new Line(); newLine.vo=linevo; addChild(newLine); I only want to bind the whole linevo, not the properties. Now if i change some properties like startX or startY, in the line should be triggered one function that I bind to. It is working for me if I bind the every propertie by itself, like this: BindingUtils.bindProperty(newLine,onChange,linevo,startX); That is not O.K., because than I have to bind everything manually. I hope that now somebody can help me. Thanks, Toni --- In flexcoders@yahoogroups.com, madflexcoder brian.joseph31@ wrote: Put your [Bindable] tag on top of your class and it will make the entire class bindable. [Bindable] public class MyVo { } brian.. --- In flexcoders@yahoogroups.com, toniabc toniabc@ wrote: Hi! I have one problem. I have Value Object that I want to Bind to my custom made component. I have no problems to bind every single value from VO to component. And if I change something in the VO, that will be changed. But I want to Bind the whole VO (at once, not every value by itself). So that I can override the whole VO and changes will be automatically trigger the update function in my component. And if I remove the VO, than I want to remove my component from view. Thank you, Toni P.
Re: [flexcoders] Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security sandbox
On Thursday 17 Jan 2008, shemeshkale wrote: i get this error, but only on IE. on FF it doesn't show: Same player versions ? -- Tom Chiverton Helping to enthusiastically synthesize vertical segments on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security sandbox
i get this error, but only on IE. on FF it doesn't show: Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security sandbox violation: LocalConnection.send: mymachinename cannot access http://mymachinename:8087/app/app.swf. what does it mean?
[flexcoders] Re: Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security sandb
--- In flexcoders@yahoogroups.com, shemeshkale [EMAIL PROTECTED] wrote: i get this error, but only on IE. on FF it doesn't show: Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security sandbox violation: LocalConnection.send: mymachinename cannot access http://mymachinename:8087/app/app.swf. what does it mean? If you want to access a local-connection which is in different domain, then receiving local-connection side, need to give the permission to your domain. For this use the allowDomain method of the LocalConnection. Regards, Ahmed
[flexcoders] Re: Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security sandb
Same player versions ? YES... both = Version 9,0,115,0
[flexcoders] Re: Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security sandb
i just removed the history iframe from my html wrapper and the error no longer pops. but this is not good because i need the history management. what/why is it? how to solve? (i m using felx builder 3 with 2.0.1 hf3 sdk) --- In flexcoders@yahoogroups.com, Muhammad Ahmed Ullah [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, shemeshkale baldhead72@ wrote: i get this error, but only on IE. on FF it doesn't show: Error #2044: Unhandled SecurityErrorEvent:. text=Error #2047: Security sandbox violation: LocalConnection.send: mymachinename cannot access http://mymachinename:8087/app/app.swf. what does it mean? If you want to access a local-connection which is in different domain, then receiving local-connection side, need to give the permission to your domain. For this use the allowDomain method of the LocalConnection. Regards, Ahmed
[flexcoders] itemRenderer - copy values
Hi. I'm using an itemRenderer in a datagrid. The renderer contains a script, which will determine specific values in the {data} and setStyle on a canvas and the text of a string. But when I scroll in the datagrid, it seems like new children is not updated when they become visible. I'm sure that this is due to something I'm unaware of how to do correctly. But I havent been able to find any posts/articles on how to do this correct. Here's a copy of my itemRenderer - if someone has a good link or pointer I'd be very happy to hear from you. Thanks for your time. Mark ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=130 height=228 mx:Script ![CDATA[ import mx.controls.Alert; private function imgresize():void { if (this.img.height 180) { this.img.height = 180 }; if (this.img.width 125) { this.img.width = 125 }; } private function setState(state:String):String { this.indicator.visible = true; this.status.visible = true; if (state == '1'){ this.img.toolTip = Godkendt; this.indicator.setStyle(backgroundColor,0x00ff40); return Godkendt; } else if (state == '2') { this.img.toolTip = Korrektur; this.indicator.setStyle(backgroundColor,0xff); return Korrektur; } else if (state == null) { this.img.toolTip = Intet; this.indicator.visible = false; this.status.visible = false; } return ; } private function setSelectedItem() : void { this.parentApplication.g_arrPageItem = this.parentApplication.thumbTile.selectedIndex; parentApplication.switchPage(data.bf,data.pdfref,data.zoomref,data.pageno,data.pagecount,data.id); } ]] /mx:Script mx:Canvas width=125 height=200 horizontalCenter=0 borderStyle=solid themeColor=#ff borderColor=#00 cornerRadius=5 backgroundColor=#ee bottom=0 mx:Image id=img source={data.fn} horizontalCenter=0 scaleContent=true autoLoad=true updateComplete=imgresize(); buttonMode=true click=setSelectedItem(); showEffect=Iris top=2/ mx:Label id=lbl text={data.pageno} horizontalCenter=0 bottom=5 color=#00 fontSize=14/ /mx:Canvas mx:Canvas width=125 height=25 cornerRadius=5 borderStyle=solid id=indicator horizontalCenter=0 top=0 mx:Label text={setState(data.state)} id=status fontSize=14 color=#00 horizontalCenter=0 bottom=0/ /mx:Canvas /mx:Canvas
[flexcoders] [job] freelancer required in the London area
Hi guys, we are looking for some VERY experienced Flex Developers to work on some VERY interesting/challenging projects. If you think you are experienced enough, please don't hesitate to contact me to have further info. Best, chr -- ___ { Christian Giordano's site and blog @ http://nuthinking.com }
[flexcoders] Flex Charting
Hi, I am using FB3. I have a question in using pie chart. i have assigned a dataprovider to pie chart and it shown like dividing into segment and each segments has a label which is callout through line. My question is i want to select the label and corresponding segment should get selected in the chart and vice-versa.
[flexcoders] Selecting no color with ColorPicker
I'm wondering if anyone has been able to use the ColorPicker component in Flex to be able to select no colour. This is handy when we are allowing the user to select a fill for shapes, and they can choose a 'no colour' option to choose to not have a fill. If you look at the Fill colour picker in the Flash IDE it may make it clear what I mean! I'm surprised this wasn't built into the colour picker component...and it seems the framework makes it hard to extend it since a lot of things are private and not protected. ps: moderators, I apologize. I initially posted this in the wrong group (flexcomponents).
[flexcoders] Re: PrintDataGrid variablerowheight issue
Anyone have any other workarounds for this issue other than the subclass suggested on the bugs site? I'll try anything at this point. Thanks in advance. --- In flexcoders@yahoogroups.com, mitek17 [EMAIL PROTECTED] wrote: Hi Alex! Thanks for the comments. At least we all know that it will be fixed eventually. Cheers, Dmitri Girski. --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: I just updated some info in the bug. It is deferred because the Player has some issues that we can't easily workaround that prevent us from having guaranteed solution. I added code for a temporary workaround that will hopefully work in 'more' cases but not all. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mitek17 Sent: Monday, January 14, 2008 8:51 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: PrintDataGrid variablerowheight issue Hooray! It is in the state of Deferred Closed. :( PS I am just using a workaround - in the function which does a printing layout (e.g. showPrint() in SDK help) I do the following: pdg_procedures.height +=5; This extra 5 pixels fix the problem. Cheers, Dmitri. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , jf317820 jf317820@ wrote: https://bugs.adobe.com/jira/browse/SDK-14174 https://bugs.adobe.com/jira/browse/SDK-14174
[flexcoders] Re: LinkButton loaded in wrong position and adjusts on mouseOver
Bumping topic. Anyone have an idea? --- In flexcoders@yahoogroups.com, renzeullo [EMAIL PROTECTED] wrote: Hi all. I'm experiencing this problem where a LinkButton is incorrectly positioned on startup, about a few pixels more than the correct x and y location. On the first mouseOver, it adjusts to the correct position. Also, when the browser is resized, it seems to be positioned incorrectly again, and once again moves to the correct position on the next mouseOver. The movement while adjusting is very noticeable. It seems to be a scaling problem. The application is using StageScaleMode.SHOW_ALL. The problem does not happen if I remove the code setting it to SHOW_ALL. Is there a workaround to avoid this? Thanks in advance. Renz
[flexcoders] Print Preview in Flex
Hi Everybody, How can we show print preview in Flex? Before printing , i want the user to see print preview of the printing document. Thanks, with regards, JJain - Looking for last minute shopping deals? Find them fast with Yahoo! Search.
Re: [flexcoders] Print Preview in Flex
jitendra jain escreveu: Hi Everybody, How can we show print preview in Flex? Before printing , i want the user to see print preview of the printing document. Thanks, with regards, JJain Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping __ NOD32 2799 (20080116) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com Hi, Flex does not provide any way of doing print preview. You can see a demo of FlexReport http://www.kemelyon.com/flexreport/ I will make this project public during the next days. Regards, Frederico Garcia
[flexcoders] Re: SWC compiled against Flex 2 SDK only usable in Flex 3 projects
Hi Alex, No, I didn't because I had no idea I was supposed to. I don't see any info in the docs mentioning the need to create a global selector. I have now created one, but that causes a different error. No matter what I put in the selector I get an error in the createBorder() method of Container on the line border = new borderClass() because borderClass is null. Full stack trace below. What am I missing here? I should reiterate that this only happens when compiling against older versions of the SDK. If I point both the library and consumer projects to F3B3 this all works, even without a global selector. Thanks, Ben TypeError: Error #1007: Instantiation attempted on a non-constructor. at mx.core::Container/createBorder()[C:\dev\flex_201_ja\sdk\frameworks\mx\core\Container.as:4039] at mx.core::Container/styleChanged()[C:\dev\flex_201_ja\sdk\frameworks\mx\core\Container.as:3070] at mx.core::Application/styleChanged()[C:\dev\flex_201_ja\sdk\frameworks\mx\core\Application.as:909] at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::addingChild()[C:\dev\flex_201_ja\sdk\frameworks\mx\managers\SystemManager.as:1528] at mx.managers::SystemManager/initializeTopLevelWindow()[C:\dev\flex_201_ja\sdk\frameworks\mx\managers\SystemManager.as:2329] at mx.managers::SystemManager/docFrameHandler()[C:\dev\flex_201_ja\sdk\frameworks\mx\managers\SystemManager.as:2214]
RE: [flexcoders] Local Shared Object alternative?
Are there any alternatives to LSO's? ExternalInterface connecting to Javascript cookies? Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of polestar11 Sent: Wednesday, January 16, 2008 3:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Local Shared Object alternative? Hi there What do you do if your users want to avoid detection and update their Flash Player settings and set Local Storage to 0, making any user-based information stored as a LSO not possible? Are there any alternatives to LSO's? Cheers Tracy
[flexcoders] Re: container width parent container's width when vertical scrollbar present
I tried those settings on each canvas independently and then at the same time, but nothing changed. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: There's a couple of older threads in the archives on this topic. Setting minHeight/minWIdth=0 often helps From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dfalling Sent: Wednesday, January 16, 2008 2:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] container width parent container's width when vertical scrollbar present I've run into a really annoying issue... If I have a container that is higher than its parent container, it will add not only a vertical scrollbar, but also a horizontal scrollbar. It does this even if its width is set to 100% and it has plenty of room to display its contents. The really frustrating thing about this is that no matter how wide you resize the container, it will never be able to fit its contents...it's always missing the same amount of space. To test, simply use the following code. Note the horizontal scrollbar that will not go away. mx:Canvas width=90% height=400 mx:Canvas width=100% height=440/ /mx:Canvas
[flexcoders] Re: container width parent container's width when vertical scrollbar present
Thanks for the response. The first method prevents me from having vertical scrolling, so any content I wanted to display via scrolling is now gone. The second method will clip any content that's under the vertical scrollbar. This shouldn't be a problem because that canvas is percentage based and shouldn't have anything there, but since it's confused and always draws itself wider than it has room, there will always be content there. I can add extra padding to that side to compensate, but then when there is no vertical scrollbar, I have uneven padding around my content. --- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: All right so either you can do mx:Canvas width=90% height=400 clipContent=false mx:Canvas width=100% height=440 / /mx:Canvas or mx:Canvas width=90% height=400 horizontalScrollPolicy=off verticalScrollPolicy=off mx:Canvas width=100% height=440 / /mx:Canvas Is that what you mean? - Original Message From: dfalling [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, January 16, 2008 4:42:42 PM Subject: [flexcoders] container width parent container's width when vertical scrollbar present I've run into a really annoying issue... If I have a container that is higher than its parent container, it will add not only a vertical scrollbar, but also a horizontal scrollbar. It does this even if its width is set to 100% and it has plenty of room to display its contents. The really frustrating thing about this is that no matter how wide you resize the container, it will never be able to fit its contents...it' s always missing the same amount of space. To test, simply use the following code. Note the horizontal scrollbar that will not go away. mx:Canvas width=90% height=400 mx:Canvas width=100% height=440 / /mx:Canvas Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Re: [flexcoders] Print Preview in Flex
On Thursday 17 Jan 2008, jitendra jain wrote: How can we show print preview in Flex? Before printing , i want the user to see print preview of the printing document. No, but you can access the bitmap of a control, and display that in a PopUp. -- Tom Chiverton Helping to paradigmatically reintermediate cutting-edge features on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Move effect
Irrespective of screen resolution the components can be moved from outside of the flex application. mx:Move id=moveIn xFrom={-can.width} yFrom=0 duration=1000/ mx:Move id=moveOut / mx:Button click=can.visible=can.visible?*false*:*true*/ mx:Canvas id=can width=400 height=400 visible=false showEffect={ moveIn} hideEffect={moveOut} mx:List/ /mx:Canvas -- Regards, Hemadri S www.hemadri.info On Jan 16, 2008 5:18 PM, jovialrandor [EMAIL PROTECTED] wrote: How can I specify any Flex component to move out of the screen if i do not know the screen resoluction of the end user beforehand? Is there some Move value like '-1' that indicates to move out of any size screen? Thanks
[flexcoders] Binded data and Application functions in components
Hello all, In coding my first AIR-Flex application (Beta 3) I've run into a few problems. I'm new to Actionscript though I am slightly familiar with JavaScript (also ECMAScript). mx:Script ![CDATA[ thumbnail.source = parentDocument.getImage(this.data.id); ]] /mx:Script The previous code is inside a custom component I've created but the function getImage is in a external Actionscript file that is for the whole application, I believe this is how I would reference it but a quick confirmation would be appreciated. Second is the this.data.id, what I'm trying to accomplish with that is using a {data.id} in a script. If I have: mx:TextInput editable=true text={data.label} id=detailsName/ It works if it's in MXML, but I'd like to use the data.id in script to get an image from a local cache. A third situation I could use some clarification on is in reference to the local image cache. The plan I have is that a TileList displays a series of thumbnails which are located on a external webserver. Those images would be downloaded and stored in the local SQLite database. How might I use URLRequest to download images with the mime-type of image/jpeg to a SQLite blob column and then use that data in the database as the source for images? I realize this might seam quite complicated, but I'm willing to provide my source files to anyone willing to help. In review: 1. Component parent functions 2. Using {data.label} like references in Actionscript (inside a component) 3. Downloading images and storing in DB and using it as the source for mx:Image/ Thanks in advance. -- Ian Turner
Re: [flexcoders] Generate XML Schema
Hi mark, Please can you explain in detail here? What you want to do exactly? Thanks, Nirav On Jan 17, 2008 3:07 AM, markgoldin_2000 [EMAIL PROTECTED] wrote: Is it possible to generate an XML Schema to send to the server alone with an XML data? Thanks
[flexcoders] Re: Passing additional information into renderer
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: You can customize the properties bag on the class factory to supply more info to each instance. If I understand you correctly, you're saying that I should repeat the folder information in each object in the data source. To me, that's sort of a hack...it should be possible for the parent container to pass this information in easily, like you can with an itemRenderer in a Repeater. Why is it that it is so much easier to pass information to itemRenderers that are used in a Repeater? You can essentially tell them anything you want. It seems like it is prohibitively hard to cleanly pass data in the List type containers. Thanks; Amy
[flexcoders] Re: AIR app wrapper - Strange UI behaviour
Ok ... solved the problem The exceptions prevented parts of the from initializing, including the MenuBar. I still have the styling issues - it looks like AIR overwrites some of the Flex app's skin / styles. Also, is there a way to get around the SecuritySandbox violation when loading a remote SWF file with an AIR app? --- In flexcoders@yahoogroups.com, polestar11 [EMAIL PROTECTED] wrote: Hi I'm using an AIR app to wrap an existing Flex app. I do this via loading the Flex app swf with SWFLoader. I'm finding the following issues: 1) Some styles / custom skins do not appear (only some, which is strange) 2) I have a large amount of padding around my app content, despite setting all padding to 0 3) My MenuBar control is no longer visible 4) Some click actions don't fire (this could be due to an exception blocking them from being hooked up) What could be causing the 1st 3 points, especially point 3 with the MenuBar? Also, I read that there were security sandbox issues with loading a SWF file remotely via an AIR app. Is this currently possible? Cheers Tracy
[flexcoders] Failure to access a WSDL file from Flex's WebService class over HTTPS on IE
Hello, I have a problem to access a WSDL file from Flex's WebService class over HTTPS on IE. I have tried using Flex Builder 2 / 3 but the problem is the same. The web-server I am using is appWeb. Note that the same code works ok when I run it over HTTP (both IE and FF), and also over HTTPS but only from FireFox. The only problem is running it from IE over HTTPS. Analyzing the tcpdump I have compared the attempt to fetch the SWDL file from the flex code to a similar request done from the IE web-browser by typing the WSDL address in the URL field (This works ok and the browser displays the WSDL file). It seems that after the initial handshake the TCP connection is closed and the flex code doesn't open a new connection (like the IE does in the direct attempt). I am using the following lines of code in Flex: var webService:WebService = new WebService(); webService.showBusyCursor = true; webService.useProxy = false; webService.wsdl = https://IP_ADDRESS/MyService.wsdl; webService.endpointURI = https://IP_ADDRESS/SoapServer.php?serviceName=MyService; webService.addEventListener(LoadEvent.LOAD, handleLoad); webService.useProxy = false; I have received the following error: [SWF] C:\f2rca\_workspace\List\bin\List-debug.swf - 1,187,356 bytes after decompression 'DDDB2F4F-F7C5-676C-DDC6-819D636D5140' producer set destination to 'DefaultHTTP'. warning: unable to bind to property 'callType' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'callType' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'callType' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'callType' on class 'Object' (class is not an IEventDispatcher) Initializing WebService: https://135.64.100.135/SoapServer.php?serviceName=MyService, debug is: true Registering schema namespace: http://www.w3.org/1999/XMLSchema Registering schema namespace: http://www.w3.org/2000/10/XMLSchema Registering schema namespace: http://www.w3.org/2001/XMLSchema Registering schema namespace: http://schemas.xmlsoap.org/soap/encoding/ Registering schema namespace: http://xml.apache.org/xml-soap Registering schema namespace: http://rpc.xml.coldfusion '971164BA-D5DE-788B-5557-819D668A052A' producer set destination to 'DefaultHTTP'. '971164BA-D5DE-788B-5557-819D668A052A' producer set destination to 'DefaultHTTPS'. '3F645199-B68B-75BC-66C6-819D669A66F1' producer set destination to 'DefaultHTTP'. 'direct_http_channel' channel endpoint set to http: Creating WSDL object for https://135.64.100.135/MyService.wsdl 'C556A8DB-47F4-E47F-5B0F-819D66A92E33' producer set destination to 'DefaultHTTP'. Loading document https://135.64.100.135/MyService.wsdl for destination 'DefaultHTTPS' '971164BA-D5DE-788B-5557-819D668A052A' producer sending message 'AB4382D2-D12F-A510-D1FE-819D66A9E2DB' 'direct_http_channel' channel sending message: (mx.messaging.messages::HTTPRequestMessage)#0 body = (Object)#1 clientId = (null) contentType = application/x-www-form-urlencoded destination = DefaultHTTPS headers = (Object)#2 httpHeaders = (Object)#3 messageId = AB4382D2-D12F-A510-D1FE-819D66A9E2DB method = GET recordHeaders = false timestamp = 0 timeToLive = 0 url = https://135.64.100.135/MyService.wsdl; '971164BA-D5DE-788B-5557-819D668A052A' producer connected. '971164BA-D5DE-788B-5557-819D668A052A' producer acknowledge of 'AB4382D2-D12F-A510-D1FE-819D66A9E2DB'. '971164BA-D5DE-788B-5557-819D668A052A' producer fault for 'AB4382D2-D12F-A510-D1FE-819D66A9E2DB'. [RPC Fault faultString=HTTP request error faultCode=Server.Error.Request faultDetail=Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (https://135.64.100.135/MyService.wsdl)] at mx.rpc.soap::WSDLParser/mx.rpc.soap:WSDLParser::dispatchFault()[C:\dev\enterprise_bali\frameworks;mx\rpc\soap;WSDLParser.as:209] at mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::httpFaultHandler()[C:\dev\enterprise_bali\frameworks;mx\rpc\soap;WSDLParser.as:203] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[C:\dev\enterprise_bali\frameworks;mx\rpc;AbstractInvoker.as:146] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\dev\enterprise_bali\frameworks;mx\rpc;AbstractInvoker.as:195] at mx.rpc::Responder/fault()[C:\dev\enterprise_bali\frameworks;mx\rpc;Responder.as:56] at mx.rpc::AsyncRequest/fault()[C:\dev\enterprise_bali\frameworks;mx\rpc;AsyncRequest.as:107] at DirectHTTPChannel.as$139::DirectHTTPMessageResponder/errorHandler()[C:\dev\enterprise_bali\frameworks;mx\messaging\channels;DirectHTTPChannel.as:323] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at
[flexcoders] Re: Date field with time
Thanks for the reply, dataChange is for data property only and doesn't work. If i use valueCommit, i can't even click on the datechooser. The whole component is kind of broken. there should be some way to handle date time. Any ideas, anyone... jkaur --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Try valueCommit From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sherif Abdou Sent: Wednesday, January 16, 2008 10:13 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Date field with time try the dataChange event instead, i think - Original Message From: gur_sukh [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, January 17, 2008 12:01:50 AM Subject: [flexcoders] Date field with time Hi, Need some help. Fiddling with datefield component. mx:DateField id=sessionEndDate labelFunction= formatDate selectedDate= {model.sessionD ata.prodEndDate} change=if (null != DateField(event. currentTarget) .selectedDate) model.sessionData. prodEndDate = checkProdEndDate( DateField( event.currentTar get).selectedDat e) formatString= MM/DD/ JJ:NN:SS enabled={dateHandl er.checkDate( model.sessionDat a.prodEndDate) } editable=true width=160/ this works fine when the user chooses the date from date chooser. but when the users edits the time the change event doesn't occur. Which event should be used to know that the text has changed. Thanks jkaur Never miss a thing. Make Yahoo your homepage. http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs
[flexcoders] Re: PrintDataGrid variablerowheight issue
as a I mentioned before - I am adding 5 pixels to the PDG while doing the layout. Works in my case so far. PS Strange, but includeInLayout=false visible=false for the component which is placed _after_ the PDG don't work for me. I am changing the PDG height manually. Cheers, Smitri. --- In flexcoders@yahoogroups.com, jf317820 [EMAIL PROTECTED] wrote: Anyone have any other workarounds for this issue other than the subclass suggested on the bugs site? I'll try anything at this point. Thanks in advance. --- In flexcoders@yahoogroups.com, mitek17 mitek17@ wrote: Hi Alex! Thanks for the comments. At least we all know that it will be fixed eventually. Cheers, Dmitri Girski. --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: I just updated some info in the bug. It is deferred because the Player has some issues that we can't easily workaround that prevent us from having guaranteed solution. I added code for a temporary workaround that will hopefully work in 'more' cases but not all. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mitek17 Sent: Monday, January 14, 2008 8:51 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: PrintDataGrid variablerowheight issue Hooray! It is in the state of Deferred Closed. :( PS I am just using a workaround - in the function which does a printing layout (e.g. showPrint() in SDK help) I do the following: pdg_procedures.height +=5; This extra 5 pixels fix the problem. Cheers, Dmitri. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , jf317820 jf317820@ wrote: https://bugs.adobe.com/jira/browse/SDK-14174 https://bugs.adobe.com/jira/browse/SDK-14174
[flexcoders] Re: Advanced Datagrid with Grouping
Sorry Tom, but I don't understand how the sort code (link you provided) would help me with my filterfunction? Thanks --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 16 Jan 2008, jovialrandor wrote: How do I get 'filterfunction' of an arraycollection work on a datagrid/textinput search app with groupingcollection function placed on the datagrid? I struggled with this too, there is code : https://bugs.adobe.com/jira/browse/FLEXDMV-1097 -- Tom Chiverton Helping to widespreadedly transition proactive materials on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] How i can change the style of TextArea ScrollBar
NileAge, Mail escreveu: Hello All, *I want to change the TextArea style and remove the upper and down arrows.* Plz reply me. __ NOD32 2799 (20080116) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com Hi, Before posting questions you should see if anyone has asked them (or related) before. http://www.nabble.com/Scrollbar-Thumb-turn-off-stretch--td11168854.html#a11168854 Here you have exactly the solution for you question (remove arrows). As I replied in your previous question, check the documentation on programmatic skinning: http://www.adobe.com/devnet/flex/quickstart/skinning_components/ In the doc's they show how to create a borderSkin in actionscript and apply it in mxml. Combine the two examples (instead of a border you have to create thumbDownSkin, thumbOverSkin, thumbUpSkin and trackSkin) and you have your scrollbar with no arrows and changed width. If you read my previous answer and googled flex programmatic skin you would already know this. Please don't expect people to always give you ready to use code. Regards, Frederico Garcia
Re: [flexcoders] FB2: Cleaning Projects Annoyance
On Thursday 17 Jan 2008, Merrill, Jason wrote: MXML and Actionscript. All media is loaded in via Actionscript. It's very odd - I am using Flexbuilder 2 though, maybe it's just buggier. You can run Builder 3 beta in parallel (at the same time, even, if you don't share the workspace directory betwen them). -- Tom Chiverton Helping to heterogeneously deploy high-yield e-business on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: E4X Namespace Issues...
OK, I tried the following code and it's not working: var xml:XML = new XML(inputXML.text); var ns:Namespace = xml.namespace(); var filterdXML:XMLList = new XMLList(xml..ns::folder.(id == 13)); outputXML.text = filterdXML.toXMLString(); But, if I add a prefix to the namespace declared in the XML, it all works. xmlns:com=http://www.directTestmarketing.com/ws/schemas/communicationHi\ erarchyService ( added the :com). I'm still not considering my situation fixed, though. I'd like to be able to get at the default namespace. Thanks, Todd --- In flexcoders@yahoogroups.com, fourctv [EMAIL PROTECTED] wrote: try this: var xml:XML = new XML(inputXML.text); // get the xml var ns:Namespace = xml.namespace(); // extract the default namespace trace('folder13:',xml..ns::folder.(id ==13)); // use it in the E4X expression hth julio
[flexcoders] Re: E4X Namespace Issues...
Is Namespace only in Flex 3 SDK? (I'm using 2.01). --- In flexcoders@yahoogroups.com, fourctv [EMAIL PROTECTED] wrote: try this: var xml:XML = new XML(inputXML.text); // get the xml var ns:Namespace = xml.namespace(); // extract the default namespace trace('folder13:',xml..ns::folder.(id ==13)); // use it in the E4X expression hth julio
[flexcoders] AIR app wrapper - Strange UI behaviour
Hi I'm using an AIR app to wrap an existing Flex app. I do this via loading the Flex app swf with SWFLoader. I'm finding the following issues: 1) Some styles / custom skins do not appear (only some, which is strange) 2) I have a large amount of padding around my app content, despite setting all padding to 0 3) My MenuBar control is no longer visible 4) Some click actions don't fire (this could be due to an exception blocking them from being hooked up) What could be causing the 1st 3 points, especially point 3 with the MenuBar? Also, I read that there were security sandbox issues with loading a SWF file remotely via an AIR app. Is this currently possible? Cheers Tracy
RE: [flexcoders] FB2: Cleaning Projects Annoyance
I'm not using any runtime shared libraries if that's what you're referring to by saying RSL. This project so far only consists of some MXML and Actionscript. All media is loaded in via Actionscript. It's very odd - I am using Flexbuilder 2 though, maybe it's just buggier. Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Mathews Sent: Tuesday, January 15, 2008 5:16 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FB2: Cleaning Projects Annoyance Are you using RSLs? Only time that I have to clean is when I create a new workspace and import projects that rely on each other. When I had RSLs I had to clean now and then to resolve some things, but it was by no means often. On 1/15/08, Merrill, Jason [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Is it just me and the way I'm developing or do many of you find you have to clean your project often to get rid of old caches of code and files? It's very frustrating, it seems I have to clean my project because the compiler thinks some method is still written a certain way, or some XML file looks some other old way. I'm finding I have to clean my project several times a day sometimes in Flexbuilder 2. Is it just me and I'm doing something wrong? Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community
[flexcoders] Re: Generate XML Schema
I am trying to find the best way of sending DataGrid data to the server. One of the ideas is to send a complete XML. But because of XML conversions on the server the data is getting mistyped by am xml parser. It would work porperly if I could provide to parser an XML data definition schema. And that is my idea of sending schema with xml together. I can of course generate it on the server before conversion but dont know how either. --- In flexcoders@yahoogroups.com, Nirav Upadhyay [EMAIL PROTECTED] wrote: Hi mark, Please can you explain in detail here? What you want to do exactly? Thanks, Nirav On Jan 17, 2008 3:07 AM, markgoldin_2000 [EMAIL PROTECTED] wrote: Is it possible to generate an XML Schema to send to the server alone with an XML data? Thanks
[flexcoders] Re: E4X Namespace Issues...
Hello, I got it to work. I had to change the e4x expression a little to get it to work. I needed to qualify the ID with the namespace. So this code works: var xml:XML = new XML(inputXML.text); var ns:Namespace = xml.namespace(); trace(xml.namespace()); var filterdXML:XMLList = new XMLList(xml..ns::folder.(ns::id == 13)); outputXML.text = filterdXML.toXMLString(); Notice the ns:id == 13. So, now that I got it working, I'd still like to get it working with the following syntax so I dont have to add namespace aliases to my e4x: private namespace ns=http://; use namespace ns Thanks for any suggestions on taking this further. --- In flexcoders@yahoogroups.com, Todd [EMAIL PROTECTED] wrote: OK, I tried the following code and it's not working: var xml:XML = new XML(inputXML.text); var ns:Namespace = xml.namespace(); var filterdXML:XMLList = new XMLList(xml..ns::folder.(id == 13)); outputXML.text = filterdXML.toXMLString(); But, if I add a prefix to the namespace declared in the XML, it all works. xmlns:com=http://www.directTestmarketing.com/ws/schemas/communicationHi\ \ erarchyService ( added the :com). I'm still not considering my situation fixed, though. I'd like to be able to get at the default namespace. Thanks, Todd --- In flexcoders@yahoogroups.com, fourctv fourctv@ wrote: try this: var xml:XML = new XML(inputXML.text); // get the xml var ns:Namespace = xml.namespace(); // extract the default namespace trace('folder13:',xml..ns::folder.(id ==13)); // use it in the E4X expression hth julio
[flexcoders] Error: Call to a possibly undefined method setTextFormat
Why am I getting: Error: Call to a possibly undefined method setTextFormat? I did a search on google and got zero results for Error: Call to a possibly undefined method setTextFormat I totally do not understand why I am the only person in the history of the world who is getting this error. Feedback IS a TextArea, and setTextFormat IS a method of TextArea so it makes no sense at all. var formatter:TextFormat= new TextFormat(); formatter.bold=true; formatter.size=30; feedback.setTextFormat(formatter); mx:TextArea id=feedback width=230 fontWeight=bold text= x=350 y=100 /mx:TextArea
[flexcoders] Re: E4X Namespace Issues...
The e4XParser I speak of is at: http://www.adobe.com/devnet/flex/articles/e4x_04.html --- In flexcoders@yahoogroups.com, Jim Hayes [EMAIL PROTECTED] wrote: I've already included some dynamic e4x expression parsers that I found on the web Tod, do you have the urls for those to hand? and would you care to share them? Sorry to be so lazy, but I use e4x occasionally enough for the syntax to generally escape me when I have to. Hence anything I can bookmark for the next time I need a bit of help with it would be most useful to me (and others?) many thanks, Jim. -Original Message- From: flexcoders@yahoogroups.com on behalf of Todd Sent: Wed 16/01/2008 22:51 To: flexcoders@yahoogroups.com Subject: [flexcoders] E4X Namespace Issues... I'm sure this will have an obvious answer and that it's something that I've just been looking at for too long... I'm trying to select a node from xml where a child has a specific value For example: var xml:XML = communication xmlns=stuffHERE folder id1/id folder id2/id /folder folder id3/id folder id4/id /folder /folder /folder In the above, I'm using an e4x expression that looks like: xml..folder.(id == 3) All works well when I don't have a namespace declared. When I have a name space declared, I keep getting nothing back. I'm using the actionscript object: namespace test=http... use namespace test Any ideas on what I'm doing wrong? BTW, I've tried many, many different e4x expressions, none that work. Also, any techniques for debugging e4x? I've already included some dynamic e4x expression parsers that I found on the web. But I find that while I can get the expression to work fine dynamically, it still doesn't work. I've posted this over in teh Adobe Forums, too, as I'm not really sure which place is the best place to go for help. Thanks a bunch Here's my test MXML file, sorry for how ugly it looks in this window., Im hoping you can just copy this and paste it into a new MXML file for you to look at...: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=horizontal mx:Script ![CDATA[ import mx.logging.targets.TraceTarget; import com.theriabook.util.logging.TraceLogOutput; private var comm:XML = CommunicationHierarchy xmlns=http://www.directTestmarketing.com/ws/schemas/communicationHierarchyService; folder id13/id recordTypeFOLDER/recordType iconIdicon id/iconId labellabel/label shortDescriptionshort description/shortDescription descriptionFolder 21 description/description externalId1/externalId template id21/id recordTypeTEMPLATE/recordType iconIdicon id/iconId labellabel/label shortDescriptionshort description/shortDescription descriptionTemplate 22 description/description externalId1/externalId /template folder id14/id recordTypeFOLDER/recordType iconIdicon id/iconId labellabel/label shortDescriptionshort description/shortDescription descriptionFolder 31 description/description externalId1/externalId link id13/id recordTypeTEMPLATE/recordType iconIdicon id/iconId labellink label/label urllink url/url shortDescriptionshort description/shortDescription descriptiondescription of link - 14/description /link /folder folder id15/id recordTypeFOLDER/recordType iconIdicon id/iconId labellabel/label shortDescriptionshort description/shortDescription descriptionFolder 36 description/description externalId1/externalId link id15/id recordTypeTEMPLATE/recordType iconIdicon id/iconId labellink label/label urllink url/url shortDescriptionshort description/shortDescription descriptiondescription of link - 16/description /link /folder link id8/id recordTypeTEMPLATE/recordType iconIdicon id/iconId labellink label/label urllink url/url shortDescriptionshort description/shortDescription descriptiondescription of link - 9/description /link link id12/id recordTypeTEMPLATE/recordType iconIdicon id/iconId labellink label/label urllink url/url shortDescriptionshort description/shortDescription descriptiondescription of link -
[flexcoders] RE: [flexcomponents] How i can change the style of TextArea ScrollBar
Skin the component using and FLA and make the up and down arrows a transparent 1 pixel high box [or nothing at all]. Visit www.scalenine.com http://www.scalenine.com/ for more information on how to do this. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of NileAge, Mail Sent: Thursday, January 17, 2008 6:25 AM To: flexcoders@yahoogroups.com; Flex Components Subject: [flexcomponents] How i can change the style of TextArea ScrollBar Hello All, I want to change the TextArea style and remove the upper and down arrows. Plz reply me.
[flexcoders] Re: E4X Namespace Issues...
OOops, nevermind about the Namespace in Flex 2.0. Memory lapse. --- In flexcoders@yahoogroups.com, Todd [EMAIL PROTECTED] wrote: Is Namespace only in Flex 3 SDK? (I'm using 2.01). --- In flexcoders@yahoogroups.com, fourctv fourctv@ wrote: try this: var xml:XML = new XML(inputXML.text); // get the xml var ns:Namespace = xml.namespace(); // extract the default namespace trace('folder13:',xml..ns::folder.(id ==13)); // use it in the E4X expression hth julio
Re: [flexcoders] Re: Binding ValueObjects
For me I binding to a flag like lineVOUpdate in data model, but not lineVO itself. I give freedom for views to update or not. I found although most of time, when a value updated I should update those component in that view, but in my cases I need have control when to update. This is inside my data model: [Bindable] public var lineVOUpdate:Boolean; public var lineVO:LineVO = new LineVO(); In the case when I need update, I just call: if(update){ lineVOUpdate = false; lineVOUpdate = true; } In views, only get values from lineVO when lineVOUpdate is true; public function set lineVOUpdate(b:Boolean):void { if(b){ doSomething(); } } George [EMAIL PROTECTED] wrote: Ah - good it is Cairngorm. Initially bind the VO to the component. Well, actually I do bind it's properties directly to the individual elements of the component initially. Then what I do is create another Event call something like UpdateVOEvent and dispatch at the Command level. This then triggers a standard Command called something like UpdateVoCommand that you can call from all over the place to trigger the update. Currently I'm actually using it to reset big forms to their original values. But in answer to your question - the way I do it is to have a two step process - change the property and then update the VO. I think I may have misunderstood the question - how exactly are you binding a VO to a component without the component knowing which properties in the VO relate to which elements of the component? t One more question... How would you bind this update() to the vo in wich we change the propertie. I have VO in the modelLocator, and I change it with command. Then this must be updated on the component vo. How would you bind this? Thanks, Toni --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: Hi, I don't know if this helps, but what I've done in the past is to bind the VO and then if I need to update it I had the same problem you were talking about. I would change the value, but the VO wouldn't change as the binging goes from the VO to the component, not the other way around. My little work around was to have a function similar to this (assuming the VO is called 'voToChange' of type 'VO') private function update():void { var holderVO:VO = voToChange; voToChange = new VO(); voToChange = holderVO; } This then changes the VO so the change will go back to the component. Alternatively if you want to set something on the VO you could change the function to somethign like private function setSomthing(something:Object):void { voToChange.propertyToChange = something; //Call the update function update(); } I hope I haven't completely misunderstood what you are having problems with. Luck, Tim I understand that. I know how to bind some class. Problem is, that if I Bind whole VO to one of my components, if I change something in the VO (only one var) than nothing will change. I don't want to bind all the properties separately. I can make one example for drawing line: [Bindable] public class LineVO { public var startX:Number; public var startY:Number; public var endX:Number; public var endY:Number; } Than I have one component to draw the line with LineVO. var linevo:LineVO=new LineVO(); linevo.startX=0; linevo.startY=0; linevo.endX=20; linevo.endY=30; var newLine:Line=new Line(); newLine.vo=linevo; addChild(newLine); I only want to bind the whole linevo, not the properties. Now if i change some properties like startX or startY, in the line should be triggered one function that I bind to. It is working for me if I bind the every propertie by itself, like this: BindingUtils.bindProperty(newLine,onChange,linevo,startX); That is not O.K., because than I have to bind everything manually. I hope that now somebody can help me. Thanks, Toni --- In flexcoders@yahoogroups.com, madflexcoder brian.joseph31@ wrote: Put your [Bindable] tag on top of your class and it will make the entire class bindable. [Bindable] public class MyVo { } brian.. --- In flexcoders@yahoogroups.com, toniabc toniabc@ wrote: Hi! I have one problem. I have Value Object that I want to Bind to my custom made component. I have no problems to bind every single value from VO to component. And if I change something in the VO, that will be changed. But I want to Bind the whole VO (at once, not every value by itself). So that I can override the whole VO and changes will be automatically trigger the update function in my component. And if I remove the VO, than I want to remove my component from view. Thank you, Toni P.
[flexcoders] How i can change the style of TextArea ScrollBar
Hello All, I want to change the TextArea style and remove the upper and down arrows. Plz reply me.
[flexcoders] Customizing Flash Context Menus
The ability to customize right-mouse-click context menus in Flash is very limited. You cannot hide the default menu items in certain scenarios. You cannot do your own sub/cascading menus. You cannot have icons for menu items. Please vote for this issue if you have a need this type of capability and would like to see Adobe provide it: https://bugs.adobe.com/jira/browse/SDK-14327 Vijay
[flexcoders] Flex Amazon S3 Access Control List / ACL
Hi All, I've been playing around with the awss3lib ( http://www.code.google.com/awss3lib ) and looking at the documentation for Amazon's S3 ( http://docs.amazonwebservices.com/AmazonS3/2006-03-01/ )and I was wondering if anyone managed to get the ACL working with the awss3lib? If so, can you explain how you did it? The documentation says that we need to add a header x-amz-acl:{*private, *public-read, etc} to the PUT request but I can't seem to do it properly. I figured that I need to modify the authorization string but the one that the awss3lib doesn't seem to have headers. e.g. instead of Content-Type: text/plain it's just encoding text/plain and yet the request header has the full thing (Content-Type: text/plain). I tried adding x-amz-acl:public-read to the request header, and then to the authorization string but it comes back as an error 2038. Any help would be appreciated! Thanks! -Daniel -- - e: [EMAIL PROTECTED] w: http://DanielTse.com/ -
[flexcoders] Re: E4X Namespace Issues...
Also, I've discovered something interesting. In the XML Document, if I provide a namespace prefix, i.e., xmlns:com=http://...; then it all works as expected. So then my question becomes more about how to get the default namespace, not prefixed with an alias, to become visible to e4x. Thanks, Todd --- In flexcoders@yahoogroups.com, fourctv [EMAIL PROTECTED] wrote: try this: var xml:XML = new XML(inputXML.text); // get the xml var ns:Namespace = xml.namespace(); // extract the default namespace trace('folder13:',xml..ns::folder.(id ==13)); // use it in the E4X expression hth julio
[flexcoders] Re: Dynamic evaluation of E4X expression
Google for something called E4XParser.as. I think I found it on Adobe, but I'm not 100% certain. It allows you to debug your e4x at runtime. Very useful. --- In flexcoders@yahoogroups.com, xhanin [EMAIL PROTECTED] wrote: Hi, I find the E4X expression language very powerful, and would like to leverage it to find elements in an xml document. The problem is that I get the E4X expression at runtime, so I'm looking for a way to dynamically invoke the E4X expression. Something like: -- var myXML:XML = order item id='1' menuNameburger/menuName price3.95/price /item item id='2' menuNamefries/menuName price1.45/price /item /order; var expression:String = item.(@id==2).menuName; myXML.something here?(expression); -- I first look for an eval function as in javascript, but found that AS3 does not provide such function any more. - Xavier
Re: [flexcoders] Re: Advanced Datagrid with Grouping
On Thursday 17 Jan 2008, jovialrandor wrote: Sorry Tom, but I don't understand how the sort code (link you provided) would help me with my filterfunction? You do filtering the same way. -- Tom Chiverton Helping to elementarily embrace bricks-and-clicks e-services on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] RE: [flexcomponents] How i can change the style of TextArea ScrollBar
That's a bold request. :-) Do you mean that you want to change the way the scrollbars look or remove them entirely? Vertical/horizontalScrollPolicy=off removes the scrollbars. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of NileAge, Mail Sent: Thursday, January 17, 2008 6:25 AM To: flexcoders@yahoogroups.com; Flex Components Subject: [flexcomponents] How i can change the style of TextArea ScrollBar Hello All, I want to change the TextArea style and remove the upper and down arrows. Plz reply me.
[flexcoders] Re: Flex Amazon S3 Access Control List / ACL
I've connected to S3 from flex. If you want to email me off list I can send you my test project. --- In flexcoders@yahoogroups.com, Daniel Tse [EMAIL PROTECTED] wrote: Hi All, I've been playing around with the awss3lib ( http://www.code.google.com/awss3lib ) and looking at the documentation for Amazon's S3 ( http://docs.amazonwebservices.com/AmazonS3/2006-03-01/ )and I was wondering if anyone managed to get the ACL working with the awss3lib? If so, can you explain how you did it? The documentation says that we need to add a header x-amz-acl:{*private, *public-read, etc} to the PUT request but I can't seem to do it properly. I figured that I need to modify the authorization string but the one that the awss3lib doesn't seem to have headers. e.g. instead of Content-Type: text/plain it's just encoding text/plain and yet the request header has the full thing (Content-Type: text/plain). I tried adding x-amz-acl:public-read to the request header, and then to the authorization string but it comes back as an error 2038. Any help would be appreciated! Thanks! -Daniel -- - e: [EMAIL PROTECTED] w: http://DanielTse.com/ -
[flexcoders] RE: [flexcomponents] Lable Courser hand
This gets asked often. Please search the FlexCoders archive for the answer. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of NileAge, Mail Sent: Monday, January 14, 2008 10:56 AM To: flexcoders@yahoogroups.com; Flex Components Subject: [flexcomponents] Lable Courser hand I trying to make a hand courser when mouse over the Label like this code: mx:Label id=myLabel text=My Label useHandCursor=true buttonMode=true/ But the hand courser not appear. Plz help me to know what the problem. Thanks Abdullah Abdelhay.
[flexcoders] Re: Passing additional information into renderer
Its generally more about giving your renderer enough info that it can retrieve the information it needs. This is my take on using ClassFactory with renderers. http://www.returnundefined.com/2006/11/creating-truly-reusable-renderers-with-classfactory HTH, Ben --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: You can customize the properties bag on the class factory to supply more info to each instance. If I understand you correctly, you're saying that I should repeat the folder information in each object in the data source. To me, that's sort of a hack...it should be possible for the parent container to pass this information in easily, like you can with an itemRenderer in a Repeater. Why is it that it is so much easier to pass information to itemRenderers that are used in a Repeater? You can essentially tell them anything you want. It seems like it is prohibitively hard to cleanly pass data in the List type containers. Thanks; Amy
[flexcoders] Validating Combo Box and Radio Button Selections
Greetings - I need to validate that some choice has been made in both Combo Boxes and Radio Button Groups. In general, I'm familiar with Validators but couldn't get either case to work. For example, not sure what property on the ComboBox you'd specify for the validator, whether no selection (ie prompt still displayed fires an invalid event if the Validator is required, etc. Ditto regarding RadioButtons.. cheers, ethan
[flexcoders] Error: Could not resolve mx:TextField to a component implementation.
Is there no mxml TextField tag ? Error: Could not resolve mx:TextField to a component implementation. mx:TextField id=feedback width=230 fontWeight=bold text= x=350 y=100 /mx:TextField I'm trying to make the word correct with a font size of 20
Re: [flexcoders] Re: E4X Namespace Issues...
ns:Namespace = xml.namespace(); default xml namespace = ns; Although since you're talking about the default namespace, this shouldn't be necessary... -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Todd [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: E4X Namespace Issues... Date: Thu, 17 Jan 2008 16:02:49 - Hello, I got it to work. I had to change the e4x expression a little to get it to work. I needed to qualify the ID with the namespace. So this code works: var xml:XML = new XML(inputXML.text); var ns:Namespace = xml.namespace(); trace(xml.namespace()); var filterdXML:XMLList = new XMLList(xml..ns::folder.(ns::id == 13)); outputXML.text = filterdXML.toXMLString(); Notice the ns:id == 13. So, now that I got it working, I'd still like to get it working with the following syntax so I dont have to add namespace aliases to my e4x: private namespace ns=http://; use namespace ns Thanks for any suggestions on taking this further. --- In flexcoders@yahoogroups.com, Todd [EMAIL PROTECTED] wrote: OK, I tried the following code and it's not working: var xml:XML = new XML(inputXML.text); var ns:Namespace = xml.namespace(); var filterdXML:XMLList = new XMLList(xml..ns::folder.(id == 13)); outputXML.text = filterdXML.toXMLString(); But, if I add a prefix to the namespace declared in the XML, it all works. xmlns:com=http://www.directTestmarketing.com/ws/schemas/communicationHi \ erarchyService ( added the :com). I'm still not considering my situation fixed, though. I'd like to be able to get at the default namespace. Thanks, Todd --- In flexcoders@yahoogroups.com, fourctv fourctv@ wrote: try this: var xml:XML = new XML(inputXML.text); // get the xml var ns:Namespace = xml.namespace(); // extract the default namespace trace('folder13:',xml..ns::folder.(id ==13)); // use it in the E4X expression hth julio
Re: [flexcoders] Error: Call to a possibly undefined method setTextFormat
There is no setTextFromat property in the TextArea - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, January 17, 2008 10:58:06 AM Subject: [flexcoders] Error: Call to a possibly undefined method setTextFormat Why am I getting: Error: Call to a possibly undefined method setTextFormat ? I did a search on google and got zero results for Error: Call to a possibly undefined method setTextFormat I totally do not understand why I am the only person in the history of the world who is getting this error. Feedback IS a TextArea, and setTextFormat IS a method of TextArea so it makes no sense at all. var formatter:TextForma t= new TextFormat() ; formatter.bold= true; formatter.size= 30; feedback.setTextFor mat(formatter) ; mx:TextArea id=feedback width=230 fontWeight= bold text= x=350 y=100 /mx:TextArea Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
[flexcoders] IViewCursor and nested XMLListCollections (sorting, filtering, searching)
Hi all, Recently Ive been working with an XML document that has a structure similar to the following: Members Member id=1 name=John color=blue Member id=2 name=sally color=blue Member id=3 name=Moe color=red/ Member id=61 name=Elliot color=green Member id=123 name=Michael color=blue/ /Member /Member /Member /Members Where member123 is a child of member61. member61 and member3 are children of member2. And Member2 is a child of member1. Now the Flex documentation states that a call to a IViewCursor.findAny method is supposed to traverse the heirarchy of the XMLListCollection (I save the XML as a XMLListCollection) and return values that match a given id# or name, etc from the attributes in the XML node. I have also tried to filter the list by color or whatever other attribute is available and this doesnt work either. Whenever I pass the XMLListCollection to a filterFunction, it passes the entire XML document instead of item by item. The documentation states that filterFunctions are supposed to pass each node to the parameter in the method for evaulation: eg protected function colorFilter(item:Object):Boolean { return [EMAIL PROTECTED] == 'blue'; } is supposed to filter the XMLListcollection by color but it doesnt work. Can anyone offer some advice on this? I have traced my cursor and my item pass object and its passing the entire XML doc instead of the individual node. And when I sort, using something similar to : protected function treeSort():void{ var treeSort:Sort = new Sort(); treeSort.fields = [new SortField(@id)]; xmlListColVar.sort = treeSort; //My XMLListCol tree data provider xmlListColVar.refresh(); } The sort doesnt do anything. The docs say sorting is supposed to be done this way and I think the nested nature of the XML Document has something to do with it. I would appreciate any and all help, advice, and assistance I can get. Thanks! Shawn
Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation.
Try AnimateProperty (make sure to set its isStyle to true): http://livedocs.adobe.com/labs/flex3/langref/mx/effects/AnimateProperty.html#includeExamplesSummary -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: [EMAIL PROTECTED] [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. Date: Thu, 17 Jan 2008 12:46:20 -0500 Thanks, but I want to change the size dynamically. I want the size to get larger and then smaller. Sherif Abdou wrote: mx:Label fontSize=20/ - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, January 17, 2008 11:39:41 AM Subject: Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. And then how do I set the fontSize ? Error: Access of possibly undefined property fontSize through a reference with static type mx.controls: Label. Maciek Sakrejda wrote: Try mx:Label. -Original Message- From: [EMAIL PROTECTED] org mailto:info1%40reenie.org mailto:info1% 40reenie. org [EMAIL PROTECTED] org mailto:info1%40reenie.org mailto:info1% 40reenie. org Reply-To: [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups. com To: [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups. com Subject: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. Date: Thu, 17 Jan 2008 12:18:08 -0500 Is there no mxml TextField tag ? Error: Could not resolve mx:TextField to a component implementation. mx:TextField id=feedback width=230 fontWeight= bold text= x=350 y=100 /mx:TextField I'm trying to make the word correct with a font size of 20 -- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20
Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation.
Thanks, but I want to change the size dynamically. I want the size to get larger and then smaller. Sherif Abdou wrote: mx:Label fontSize=20/ - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, January 17, 2008 11:39:41 AM Subject: Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. And then how do I set the fontSize ? Error: Access of possibly undefined property fontSize through a reference with static type mx.controls: Label. Maciek Sakrejda wrote: Try mx:Label. -Original Message- From: [EMAIL PROTECTED] org mailto:info1%40reenie.org mailto:info1% 40reenie. org [EMAIL PROTECTED] org mailto:info1%40reenie.org mailto:info1% 40reenie. org Reply-To: [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups. com To: [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups. com Subject: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. Date: Thu, 17 Jan 2008 12:18:08 -0500 Is there no mxml TextField tag ? Error: Could not resolve mx:TextField to a component implementation. mx:TextField id=feedback width=230 fontWeight= bold text= x=350 y=100 /mx:TextField I'm trying to make the word correct with a font size of 20 Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20
Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation.
mx:Label fontSize=20/ - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, January 17, 2008 11:39:41 AM Subject: Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. And then how do I set the fontSize ? Error: Access of possibly undefined property fontSize through a reference with static type mx.controls: Label. Maciek Sakrejda wrote: Try mx:Label. -Original Message- From: [EMAIL PROTECTED] org mailto:info1% 40reenie. org [EMAIL PROTECTED] org mailto:info1% 40reenie. org Reply-To: [EMAIL PROTECTED] ups.com mailto:flexcoders% 40yahoogroups. com To: [EMAIL PROTECTED] ups.com mailto:flexcoders% 40yahoogroups. com Subject: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. Date: Thu, 17 Jan 2008 12:18:08 -0500 Is there no mxml TextField tag ? Error: Could not resolve mx:TextField to a component implementation. mx:TextField id=feedback width=230 fontWeight= bold text= x=350 y=100 /mx:TextField I'm trying to make the word correct with a font size of 20 Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation.
And then how do I set the fontSize ? Error: Access of possibly undefined property fontSize through a reference with static type mx.controls:Label. Maciek Sakrejda wrote: Try mx:Label. -Original Message- From: [EMAIL PROTECTED] mailto:info1%40reenie.org [EMAIL PROTECTED] mailto:info1%40reenie.org Reply-To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. Date: Thu, 17 Jan 2008 12:18:08 -0500 Is there no mxml TextField tag ? Error: Could not resolve mx:TextField to a component implementation. mx:TextField id=feedback width=230 fontWeight=bold text= x=350 y=100 /mx:TextField I'm trying to make the word correct with a font size of 20
[flexcoders] Re: Date field with time
hmm could that be a problem? I am assigning the model.sessionData.priceEndDate the text value and this is bound to the selecteddate on the priceEndDate. The same code below, i just changed the change to valueCommit. jkaur --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I doubt that your problem indicates that the entire component is broken. valueCommit is used by databinding so it probably works in many cases. What are you doing in your valueCommit handler? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gur_sukh Sent: Thursday, January 17, 2008 7:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Date field with time Thanks for the reply, dataChange is for data property only and doesn't work. If i use valueCommit, i can't even click on the datechooser. The whole component is kind of broken. there should be some way to handle date time. Any ideas, anyone... jkaur --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Try valueCommit From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Sherif Abdou Sent: Wednesday, January 16, 2008 10:13 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Date field with time try the dataChange event instead, i think - Original Message From: gur_sukh gur_sukh@ To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Thursday, January 17, 2008 12:01:50 AM Subject: [flexcoders] Date field with time Hi, Need some help. Fiddling with datefield component. mx:DateField id=sessionEndDate labelFunction= formatDate selectedDate= {model.sessionD ata.prodEndDate} change=if (null != DateField(event. currentTarget) .selectedDate) model.sessionData. prodEndDate = checkProdEndDate( DateField( event.currentTar get).selectedDat e) formatString= MM/DD/ JJ:NN:SS enabled={dateHandl er.checkDate( model.sessionDat a.prodEndDate) } editable=true width=160/ this works fine when the user chooses the date from date chooser. but when the users edits the time the change event doesn't occur. Which event should be used to know that the text has changed. Thanks jkaur Never miss a thing. Make Yahoo your homepage. http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs
Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation.
I'm curious, what is a TextField ? http://www.adobe.com/livedocs/flex/2/langref/flash/text/TextField.html#setTextFormat() Specifically, why is there is TextField class but no mxml TextField tag ? Maciek Sakrejda wrote: Try mx:Label. -Original Message- From: [EMAIL PROTECTED] mailto:info1%40reenie.org [EMAIL PROTECTED] mailto:info1%40reenie.org Reply-To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. Date: Thu, 17 Jan 2008 12:18:08 -0500 Is there no mxml TextField tag ? Error: Could not resolve mx:TextField to a component implementation. mx:TextField id=feedback width=230 fontWeight=bold text= x=350 y=100 /mx:TextField I'm trying to make the word correct with a font size of 20
Re: [flexcoders] Validating Combo Box and Radio Button Selections
I think you would use the valueCommit Event and see the choice from there - Original Message From: Ethan Miller [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, January 17, 2008 10:59:27 AM Subject: [flexcoders] Validating Combo Box and Radio Button Selections Greetings - I need to validate that some choice has been made in both Combo Boxes and Radio Button Groups. In general, I'm familiar with Validators but couldn't get either case to work. For example, not sure what property on the ComboBox you'd specify for the validator, whether no selection (ie prompt still displayed fires an invalid event if the Validator is required, etc. Ditto regarding RadioButtons. . cheers, ethan Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
RE: [flexcoders] Re: Passing additional information into renderer
If you look at ClassFactory, it has a properties map that will copy any properties in the map to each instance. This is different from assigning it to the data objects in the dataprovider, which you don't want to do because you're trying for a clean model/view design. With repeaters, you are essentially generating view instances. If your renderer had a property called thumbnailViewer that pointed to something you wanted to customize, then you can assign to the ClassFactory properties= {thumbNailViewer, myThumbNailViewer} and it will essentially give every instance of the renderer that reference. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Thursday, January 17, 2008 7:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Passing additional information into renderer --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: You can customize the properties bag on the class factory to supply more info to each instance. If I understand you correctly, you're saying that I should repeat the folder information in each object in the data source. To me, that's sort of a hack...it should be possible for the parent container to pass this information in easily, like you can with an itemRenderer in a Repeater. Why is it that it is so much easier to pass information to itemRenderers that are used in a Repeater? You can essentially tell them anything you want. It seems like it is prohibitively hard to cleanly pass data in the List type containers. Thanks; Amy
Re: [flexcoders] underline in datagrid
You want to underline the Data in the Grid correct but not the header?, this just under lines the values mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=initApp() mx:Script ![CDATA[ private function initApp():void{ } [Bindable] private var object:Object={name:FlexCoders,cffUid:FlexCodders}; ]] /mx:Script mx:Style .headerCustomStyle { borderColor: #80; textAlign: 'left'; color: #00; fontFamily: 'Arial'; themeColor: #00; } .header { textDecoration: none; } /mx:Style mx:DataGrid dataProvider={object} id=fcsGrid styleName=headerCustomStyle headerStyleName=header textDecoration=underline alternatingItemColors=[#bfdfff, #ff] headerColors=[#99,#ff] borderThickness=2 borderColor=#379bff maxHeight=124 width=237 top=0 height=124 left=25 mx:columns mx:DataGridColumn headerText=CFF UID dataField=cffUid width=100 /mx:DataGridColumn /mx:columns /mx:DataGrid /mx:Application - Original Message From: Dominique Bessette - Halsema [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, January 17, 2008 12:44:01 PM Subject: Re: [flexcoders] underline in datagrid that just made it all underlined, even the header mx:DataGrid id=fcsGrid styleName=headerCustomStyle alternatingItemColo rs=[#bfdfff, #ff] headerColors=[#99,#ff] click=onClick(event) borderThickness=2 borderColor=#379bff maxHeight=124 width=237 top=0 height=124 left=25 mx:columns mx:DataGridColumn headerText=CFF UID dataField=cffUid width=100 headerStyleName=header textDecoration=underline / /mx:columns /mx:DataGrid On 1/17/08, Sherif Abdou [EMAIL PROTECTED] com wrote: you want to do it in the DataGridColumn - Original Message From: Dominique Bessette - Halsema [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Thursday, January 17, 2008 12:39:21 PM Subject: Re: [flexcoders] underline in datagrid it's still not underlineing just the grid. i can get it to underline everything or nothing .headerCustomStyle { borderColor: #80; textAlign: 'left'; color: #00; fontFamily: 'Arial'; themeColor: #00; } .header { textDecoration: none; } mx:DataGrid id=fcsGrid styleName=headerCustomStyle headerStyleName=header textDecoration=underline alternatingItemColo rs=[#bfdfff, #ff] headerColors=[#99,#ff] click=onClick(event) borderThickness=2 borderColor=#379bff maxHeight=124 width=237 top=0 height=124 left=25 mx:columns mx:DataGridColumn headerText=CFF UID dataField=cffUid width=100 / /mx:columns /mx:DataGrid On 1/16/08, Alex Harui [EMAIL PROTECTED] com wrote: Set headerStyleName on the columns to have tetDecoration= none From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of Dominique Bessette - Halsema Sent: Wednesday, January 16, 2008 4:18 PM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] underline in datagrid what if i dont want the datagrid's title to be underlined On 1/16/08, Sherif Abdou [EMAIL PROTECTED] com wrote: textDecoration= underline - Original Message From: dominique.bessette [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Wednesday, January 16, 2008 5:46:52 PM Subject: [flexcoders] underline in datagrid How do I underline my text in a datagrid? Looking for last minute shopping deals? Find them fast with Yahoo! Search. Never miss a thing. Make Yahoo your homepage. Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
[flexcoders] Re: Refresh login screen
OK so I am still having a little problem implementing the code so I'll post all relevate code. Hello, I am having a little issue with a script that is supposed to stop a request to my server when I enter information into a form but the information takes more than 5 seconds to be processed by the server. Code: mx:Script ![CDATA[ import mx.controls.Alert; import mx.controls.Text; private function initApp():void{ this.Submit.addEventListener(MouseEvent.CLICK,onFormClick); } private function onFormClick(event:MouseEvent):void{ var timer:Timer = new Timer(1000,5); timer.addEventListener(TimerEvent.TIMER_COMPLETE,onTimerComplete1); timer.start(); } private function onTimerComplete1(event:TimerEvent):void{ Alert.show('Invalid Request); clearFormHandler(); } ]] /mx:Script Here is the data Service mx:HTTPService id=login_user result=checkLogin(event) showBusyCursor=true method=GET url=https://{customer.text}.mysite.net/interface.php; useProxy=false fault=userFaultHandler(event) mx:request xmlns= customer {customer.text} /customer username {username.text} /username password {password.text} /password /mx:request /mx:HTTPService and the form mx:Panel resizeEffect=Resize width=582 height=354 layout=absolute title=Board Login horizontalCenter=0 verticalCenter=-2 id=panel1 color=#FF backgroundColor=#191919 cornerRadius=15 themeColor=#FFA800 borderColor=#9FA7B7 mx:Label x=10 y=14 text=Customer Number id=customerlbl fontSize=20 width=542 textAlign=center/ mx:TextInput x=10 y=61 id=customer width=542 borderColor=#F90404 backgroundColor=#D5D1D1 themeColor=#FFA800 color=#050505 change=validateForm(event);/ mx:Label x=10 y=91 text=Username id=label1 fontSize=20 width=542 textAlign=center/ mx:TextInput x=10 y=138 id=username width=542 borderColor=#F90404 backgroundColor=#D5D1D1 themeColor=#FFA800 color=#050505 change=validateForm(event);/ mx:Label x=10 y=175 text=Password id=label2 fontSize=20 width=542 textAlign=center/ mx:TextInput x=11 y=217 id=password displayAsPassword=true width=542 borderColor=#F90404 backgroundColor=#D5D1D1 themeColor=#FFA800 color=#050505 change=validateForm(event);/ mx:Button x=10 y=282 label=Login id=Submit click=login_user.send(); fontSize=14 themeColor=#FFA800 borderColor=#FA0202 enabled={formIsValid} / mx:Button x=85 y=282 label=Reset id=Reset enabled={!formIsEmpty} click=clearFormHandler(); fontSize=14 themeColor=#FFA800 borderColor=#FA0202/ /mx:Panel There are several different functions that are going on with this form. All other functions are working but the timer is not timing out and resetting the form as I expect it to. Any Ideas.
RE: [flexcoders] Re: Date field with time
Possibly. Changing selectedDate probably dismisses the dropdown. You may have to examine the event object to be more specific about whether to set selected date. Or subclass and get the textInput events from the dropdown. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gur_sukh Sent: Thursday, January 17, 2008 9:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Date field with time hmm could that be a problem? I am assigning the model.sessionData.priceEndDate the text value and this is bound to the selecteddate on the priceEndDate. The same code below, i just changed the change to valueCommit. jkaur --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: I doubt that your problem indicates that the entire component is broken. valueCommit is used by databinding so it probably works in many cases. What are you doing in your valueCommit handler? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of gur_sukh Sent: Thursday, January 17, 2008 7:57 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Date field with time Thanks for the reply, dataChange is for data property only and doesn't work. If i use valueCommit, i can't even click on the datechooser. The whole component is kind of broken. there should be some way to handle date time. Any ideas, anyone... jkaur --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Try valueCommit From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Sherif Abdou Sent: Wednesday, January 16, 2008 10:13 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Date field with time try the dataChange event instead, i think - Original Message From: gur_sukh gur_sukh@ To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Thursday, January 17, 2008 12:01:50 AM Subject: [flexcoders] Date field with time Hi, Need some help. Fiddling with datefield component. mx:DateField id=sessionEndDate labelFunction= formatDate selectedDate= {model.sessionD ata.prodEndDate} change=if (null != DateField(event. currentTarget) .selectedDate) model.sessionData. prodEndDate = checkProdEndDate( DateField( event.currentTar get).selectedDat e) formatString= MM/DD/ JJ:NN:SS enabled={dateHandl er.checkDate( model.sessionDat a.prodEndDate) } editable=true width=160/ this works fine when the user chooses the date from date chooser. but when the users edits the time the change event doesn't occur. Which event should be used to know that the text has changed. Thanks jkaur Never miss a thing. Make Yahoo your homepage. http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs
RE: [flexcoders] Error: Call to a possibly undefined method setTextFormat
Normally, you adjust a TextArea using setStyle. If you want to use setTextFormat, subclass TextArea From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, January 17, 2008 8:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Error: Call to a possibly undefined method setTextFormat Why am I getting: Error: Call to a possibly undefined method setTextFormat? I did a search on google and got zero results for Error: Call to a possibly undefined method setTextFormat I totally do not understand why I am the only person in the history of the world who is getting this error. Feedback IS a TextArea, and setTextFormat IS a method of TextArea so it makes no sense at all. var formatter:TextFormat= new TextFormat(); formatter.bold=true; formatter.size=30; feedback.setTextFormat(formatter); mx:TextArea id=feedback width=230 fontWeight=bold text= x=350 y=100 /mx:TextArea
[flexcoders] Looking for some training
Does anyone know where I can find some tutorials about using the new import webservice feature? I've tried using it...it generates a bunch of code that I don't know what to do with. Also, does anyone know a good training source on creating applications with the application server type set at ASP.NET? I choose asp.net then asp.net development server and I don't know what to do after that Thanks for the help. -Nate
Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation.
Ah, never mind: TextSprite is from a library I've been working with. But a cursory glance at livedocs shows TextField, FlexTextField, UITextField, Label, and Text. Wee! -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Maciek Sakrejda [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. Date: Thu, 17 Jan 2008 09:42:04 -0800 My understanding is that TextField is an old (pre-Flex) Flash class. If you're writing Flex (and especially mxml), you're better off sticking with UI widgets from the mx.controls package. I'll be the first to agree that the redundancy caused by having Flex UI classes and old Flash UI classes side-by-side is a little confusing. There's three different text-field-like classes just off the top of my head: TextSprite, TextField, and Label... -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: [EMAIL PROTECTED] [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. Date: Thu, 17 Jan 2008 12:35:17 -0500 I'm curious, what is a TextField ? http://www.adobe.com/livedocs/flex/2/langref/flash/text/TextField.html#setTextFormat() Specifically, why is there is TextField class but no mxml TextField tag ? Maciek Sakrejda wrote: Try mx:Label. -Original Message- From: [EMAIL PROTECTED] mailto:info1%40reenie.org [EMAIL PROTECTED] mailto:info1%40reenie.org Reply-To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. Date: Thu, 17 Jan 2008 12:18:08 -0500 Is there no mxml TextField tag ? Error: Could not resolve mx:TextField to a component implementation. mx:TextField id=feedback width=230 fontWeight=bold text= x=350 y=100 /mx:TextField I'm trying to make the word correct with a font size of 20
Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation.
Yep, that worked great! Thanks. Sherif Abdou wrote: like this? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ [*Bindable*] *private* *var* myFontSize:Number=20; *private* *function* initApp():*void*{ myFontSize=40; } ]] /mx:Script mx:Label id=test text=Sherif fontSize={myFontSize} mouseOver=initApp() / /mx:Application - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, January 17, 2008 11:46:20 AM Subject: Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. Thanks, but I want to change the size dynamically. I want the size to get larger and then smaller. Sherif Abdou wrote: mx:Label fontSize=20 / - Original Message From: [EMAIL PROTECTED] org mailto:info1%40reenie.org [EMAIL PROTECTED] org mailto:info1%40reenie.org To: [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com Sent: Thursday, January 17, 2008 11:39:41 AM Subject: Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. And then how do I set the fontSize ? Error: Access of possibly undefined property fontSize through a reference with static type mx.controls: Label. Maciek Sakrejda wrote: Try mx:Label. -Original Message- From: [EMAIL PROTECTED] org mailto:info1% 40reenie. org mailto:info1% 40reenie. org [EMAIL PROTECTED] org mailto:info1% 40reenie. org mailto:info1% 40reenie. org Reply-To: [EMAIL PROTECTED] ups.com http://ups.com/ mailto:flexcoders% 40yahoogroups. com mailto:flexcoders% 40yahoogroups. com To: [EMAIL PROTECTED] ups.com http://ups.com/ mailto:flexcoders% 40yahoogroups. com mailto:flexcoders% 40yahoogroups. com Subject: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. Date: Thu, 17 Jan 2008 12:18:08 -0500 Is there no mxml TextField tag ? Error: Could not resolve mx:TextField to a component implementation. mx:TextField id=feedback width=230 fontWeight= bold text= x=350 y=100 /mx:TextField I'm trying to make the word correct with a font size of 20 - - - - - - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://us.rd. yahoo.com/ evt=51733/ *http://mobile. yahoo.com/ ;_ylt=Ahu06i62sR 8HDtDypao8Wcj9tA cJ%20 http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20 Never miss a thing. Make Yahoo your homepage. http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs
[flexcoders] Re: HTTPService - save DataGrid data
What if I want to send field name/value pair to the server? Can you ppoint to the right diection to do that? Can you point me into --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: var oRequest:Object = {xmlstring=XMLData.toXMLString()}; myHTTPService.send(oRequest); Now this way, the xml string the server gets will not be valid xml because it will have no root. You can handle this on the server, or as I do: When you get the xml from the server , put it in an instance level xml var. (in the result handler). You can copy() it if you need to preserve the original for something like undo. Then pull your XMLList or collection directly from this var. Changes made to the xml will be made in the instance var and you can then send it back to the server as above, using toXMLString(). The server will get valid xml and can loadXML() or whatever to parse it. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Wednesday, January 16, 2008 11:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: HTTPService - save DataGrid data Yes, I am getting XML from tthe server. I am assigning data to DataGrid like this: o.dataProvider = XMLData; where XMLData is XMLList: var XMLData:XMLList = XML(resultXML).copy().someXml you can send the xml straight back to the server And that is my question: How to do that? Thanks for help. --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Tracy Spratt tspratt@ wrote: You probably got xml from the server. Are you using it directly, or via XMLListCollection? If so, then updates to the dataGrid should be reflected in the main XML and you can send the xml straight back to the server. This is how I usually do it. If you generated an ArrayCollection of value objects, you will need to manually build the xml and send it back. While we are supposed to be able to send xml documents directly using HTTPService, I heard about trouble with this and have settled on sending XML strings via normal contentType by posting name=value pairs. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of markgoldin_2000 Sent: Tuesday, January 15, 2008 2:24 PM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Re: HTTPService - save DataGrid data But I need to send modified DataGrid's data: a dataProvider that was initially created in the service's Result event. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Scott Melby smelby@ wrote: Mark - You can make your backend code take whatever you like. The HTTPService.send will just post to a URL that you specify (based on url property). You can then pass params... here is an example. var params:Object = new Object(); params.changedItemID = 1; params.name = New Name; myHttpService.send(params); on the backend you can then just parse the request params to get the changed data and commit them to your DB etc. hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com markgoldin_2000 wrote: But I am not sure what exaclty I need to provide to the send method to post data back to server. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Scott Melby smelby@ wrote: Just re-read this and realized I may have mis-understood the question :) If you want to save data from grid back to server after user changes it, take a look at DataGrid.itemEditEnd event. hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com Scott Melby wrote: Is there a reason that you can't use SharedObject to save the grid size, etc. on the client side? hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com http://www.fastlanesw.com markgoldin_2000 wrote: I am using HTTPService to
Re: [flexcoders] DataGridColumn headerRenderer instance
Thanks for the reply, but no. headerRenderer on DataGridColumn is a class factory object, and in cases where I am not specifically setting it, it is null (but actually rendered using the default DataGridItemRenderer). I actually need the instance so I can get it's dimensions. Thanks, -Mark On Jan 17, 2008, at 1:06 PM, Sherif Abdou wrote: can;t u just do col.headerRenderer - Original Message From: Mark Bradley [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, January 17, 2008 1:01:41 PM Subject: [flexcoders] DataGridColumn headerRenderer instance Greetings all, Can anyone tell me how to access the visible headerRenderer instance given a DataGridColumn instance? public function getVisibleHeaderRen derer( col:DataGridColumn ): Object { var grid:DataGrid = this; // somehow get the header renderer (if it is visible) return ?? } I'm really stuck here, but I know there has got to be a way! I can do it if I have a MouseEvent on the column header itself, but how can I get it without an event? I've also tried DataGrid.getMeasuri ngRenderer, passing in the DataGridColumn instance (and true) and I do not get back the correct renderer (I actually get back the last header renderer). Any help? Thanks! -Mark Looking for last minute shopping deals? Find them fast with Yahoo! Search.
Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation.
Thats very interesting, but how do I apply a sequence in an event listener ? for example, it uses mouseDownEffect={animateScaleXUpDown} I want to do something like this: myLabel.animateScaleXUpDown; Maciek Sakrejda wrote: Try AnimateProperty (make sure to set its isStyle to true): http://livedocs.adobe.com/labs/flex3/langref/mx/effects/AnimateProperty.html#includeExamplesSummary http://livedocs.adobe.com/labs/flex3/langref/mx/effects/AnimateProperty.html#includeExamplesSummary -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com http://www.truviso.com -Original Message- From: [EMAIL PROTECTED] mailto:info1%40reenie.org [EMAIL PROTECTED] mailto:info1%40reenie.org Reply-To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. Date: Thu, 17 Jan 2008 12:46:20 -0500 Thanks, but I want to change the size dynamically. I want the size to get larger and then smaller. Sherif Abdou wrote: mx:Label fontSize=20/ - Original Message From: [EMAIL PROTECTED] mailto:info1%40reenie.org [EMAIL PROTECTED] mailto:info1%40reenie.org To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Thursday, January 17, 2008 11:39:41 AM Subject: Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. And then how do I set the fontSize ? Error: Access of possibly undefined property fontSize through a reference with static type mx.controls: Label. Maciek Sakrejda wrote: Try mx:Label. -Original Message- From: [EMAIL PROTECTED] org mailto:info1%40reenie.org mailto:info1% 40reenie. org [EMAIL PROTECTED] org mailto:info1%40reenie.org mailto:info1% 40reenie. org Reply-To: [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups. com To: [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups. com Subject: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. Date: Thu, 17 Jan 2008 12:18:08 -0500 Is there no mxml TextField tag ? Error: Could not resolve mx:TextField to a component implementation. mx:TextField id=feedback width=230 fontWeight= bold text= x=350 y=100 /mx:TextField I'm trying to make the word correct with a font size of 20 -- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20 http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20
Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation.
Try mx:Label. -Original Message- From: [EMAIL PROTECTED] [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. Date: Thu, 17 Jan 2008 12:18:08 -0500 Is there no mxml TextField tag ? Error: Could not resolve mx:TextField to a component implementation. mx:TextField id=feedback width=230 fontWeight=bold text= x=350 y=100 /mx:TextField I'm trying to make the word correct with a font size of 20
[flexcoders] Moves Flex mouse cursor to a new position in the stage
Hey there, Is there a way to move the mouse cursor to a new location in the Flex application? Any sample code please? Cheers
Re: [flexcoders] inline styles
Is there COMPLETE SIMPLE example of using html and actionscript to format text anywhere ? I want to make an mxml tag, and then I want to change the font size with action script. I have spent 2 days trying to figure this out. Why is it so hard ? All the examples I have found go on for hundreds of lines with all sorts of extra added complications that have nothing to do with simply changing the font size. I have numerous books, including the action script 3.0 cookbook and the examples are completely worthless because they say stuff like field.html=true without giving any clues as to what field is. In other words, the examples are not complete. I have tried various controls and all I get is errors. Seriously, why doesn't Adobe hire someone to write COMPLETE SIMPLE examples ? Alex Harui wrote: Flex/Flash has limited HTML support, but you can use the few tags it does support to affect text in Text, Label, TextInput and TextArea. Affecting one word of text in Button and other controls is trickier. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of [EMAIL PROTECTED] *Sent:* Wednesday, January 16, 2008 10:41 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] inline styles That looks like it applys styles to particular words, buts I studied the code and I can't figure out how it does it. I'm really regretting trying to learn how to use flex. Even the simplest things take days to figure out and it leaves me so drained I just want to kill myself. I can't understand how something this complicated and difficult can possibly be successful. I just don't understand it. . Sherif Abdou wrote: in the flexlib on google, i am guessing this is kinda what u want kind of? http://flexlib.googlecode.com/svn/trunk/examples/Highlighter/Highlighter_Sample.swf http://flexlib.googlecode.com/svn/trunk/examples/Highlighter/Highlighter_Sample.swf http://flexlib.googlecode.com/svn/trunk/examples/Highlighter/Highlighter_Sample.swf http://flexlib.googlecode.com/svn/trunk/examples/Highlighter/Highlighter_Sample.swf http://code.google.com/p/flexlib/wiki/ComponentList http://code.google.com/p/flexlib/wiki/ComponentList http://code.google.com/p/flexlib/wiki/ComponentList http://code.google.com/p/flexlib/wiki/ComponentList similar ideas? - Original Message From: [EMAIL PROTECTED] mailto:info1%40reenie.org [EMAIL PROTECTED] mailto:info1%40reenie.org To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Wednesday, January 16, 2008 11:56:56 PM Subject: Re: [flexcoders] inline styles How do you apply any style to just 1 word. I know how to apply it to a text control but I don't know how to apply it to SOME words in the text control. I can't even find 1 example . Sherif Abdou wrote: if u wana underline one word why dont u just set the textDecoration on that word? what exactly do u want to do - Original Message From: [EMAIL PROTECTED] org mailto:info1%40reenie.org [EMAIL PROTECTED] org mailto:info1%40reenie.org To: [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com Sent: Wednesday, January 16, 2008 8:09:37 PM Subject: [flexcoders] inline styles I can't figure out how to make an inline style. For example, how to underline 1 word? This help file is wrong because it seem to think that formatting text in buttons is an example of an inline styles. The button seems like a block element to me. I can't find anything that would allow a style in anything that is really inline. What would be the equivalent of html span ? http://livedocs. http://livedocs./ http://livedocs./ adobe.com/ http://adobe.com/ http://adobe.com/ flex/201/ html/wwhelp/ wwhimpl/common/ html/wwhelp. htm?context= LiveDocs_ Book_Parts file=styles_ 069_25.html http://livedocs. adobe.com/ flex/201/ html/wwhelp/ wwhimpl/common/ html/wwhelp. htm?context= LiveDocs_ Book_Parts file=styles_ 069_25.html http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=styles_069_25.html http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=styles_069_25.html - - - - - - Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://us.rd. yahoo.com/ evt=51734/ *http://tools. search.yahoo. com/newsearch/ category. php?category= shopping http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping http://us.rd.yahoo.com/evt=51734/*http:/tools.search.yahoo.com/newsearch/category.php?category=shopping -- Never miss a thing. Make
RE: [flexcoders] Re: Binding ValueObjects
I think what you should do is create a model in mxml from the value object and then bind the model to the visual display components and the visual display components to the model. How the data gets into the value object from your database, or wherever, is still the same. For example, // value object package valueobjects { [RemoteClass(alias=contacts.db.PersonBean)] [Bindable] public class PersonVO { public var personID:Number = 0; public var lName:String = ; public var fName:String = ; public var DOB:Date = null; public var Telephone:String = ; public var Address:String = ; public var City:String = ; public var State:String = ; public var Zip:String = ; public function PersonVO() { } } } Then, in your mxml code, pass in the key, find the data, and display it. Binding in this way allows you to change the data in either the display fields or the value object: mx:Script ![CDATA[ import mx.utils.ObjectUtil; import mx.controls.Alert; import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; import valueobjects.*; private var _key:Object; public function get key():Object { return this._key; } public function set key(key:Object):void { this._key = key; } private function initComponent():void { this.detailObj = new PersonVO(); // get the requested item getItem(); } /** * Remote Server Calls and handlers **/ // get an instance of the item from the server public function getItem():void { this.dm.getById(this._key); } private function server_fault(event:FaultEvent):void { Alert.show(ObjectUtil.toString(event.fault)); } private function get_result(event:ResultEvent):void { var detailPerson:PersonVO = event.result as PersonVO; this.detailObj = detailPerson; } ]] /mx:Script mx:RemoteObject id=dm showBusyCursor=true destination=ColdFusion source=contacts.db.PersonGateway mx:method name=getById result=get_result(event) fault=server_fault(event) / /mx:RemoteObject !-- create a model, using the PersonVO.as Value Object class. With this mxml version of the model, you can bind the form fields back to the object. -- model:PersonVO id=detailObj model:personID{Number(Person_personID.text)}/model:personID model:lName{Person_lName.text as String}/model:lName model:fName{Person_fName.text as String}/model:fName model:DOB{Person_DOB.selectedDate as Date}/model:DOB model:Telephone{Person_Telephone.text as String}/model:Telephone model:Address{Person_Address.text as String}/model:Address model:City{Person_City.text as String}/model:City model:State{Person_State.text as String}/model:State model:Zip{Person_Zip.text as String}/model:Zip /model:PersonVO mx:Form width=100% height=100% mx:FormItem width=100% label=Person ID mx:TextInput id=Person_personID enabled=false text={this.detailObj.personID} width=120/ /mx:FormItem mx:FormItem width=100% label=Last Name mx:TextInput id=Person_lName text={this.detailObj.lName} width=200/ /mx:FormItem mx:FormItem width=100% label=First Name mx:TextInput id=Person_fName text={this.detailObj.fName} width=180/ /mx:FormItem mx:FormItem width=100% label=Date of Birth (MM/DD/) !-- make the date field editable so you can just enter the date of birty instead of having to scroll through the years -- mx:DateField id=Person_DOB editable=true yearNavigationEnabled=true selectedDate={this.detailObj.DOB} width=100/ /mx:FormItem mx:FormItem width=100% label=Telephone required=false mx:TextInput id=Person_Telephone text={this.detailObj.Telephone} width=110/ /mx:FormItem mx:FormItem width=100% label=Address mx:TextInput id=Person_Address text={this.detailObj.Address} width=180/ /mx:FormItem mx:FormItem width=100% label=City mx:TextInput id=Person_City text={this.detailObj.City} width=180/ /mx:FormItem mx:FormItem width=100% label=State mx:TextInput id=Person_State text={this.detailObj.State} width=180/ /mx:FormItem mx:FormItem width=100% label=Zip required=false mx:TextInput id=Person_Zip text={this.detailObj.Zip} width=180/ /mx:FormItem /mx:Form You can see a full working demo of this code on my blog at HYPERLINK http://www.martinized.us/http://www.martinized.us/ HTH, Randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, January 17, 2008 5:02 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Binding ValueObjects Ah - good it is Cairngorm. Initially bind the VO to the component. Well, actually I do bind it's
RE: [flexcoders] Re: Date field with time
I doubt that your problem indicates that the entire component is broken. valueCommit is used by databinding so it probably works in many cases. What are you doing in your valueCommit handler? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gur_sukh Sent: Thursday, January 17, 2008 7:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Date field with time Thanks for the reply, dataChange is for data property only and doesn't work. If i use valueCommit, i can't even click on the datechooser. The whole component is kind of broken. there should be some way to handle date time. Any ideas, anyone... jkaur --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Try valueCommit From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Sherif Abdou Sent: Wednesday, January 16, 2008 10:13 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Date field with time try the dataChange event instead, i think - Original Message From: gur_sukh [EMAIL PROTECTED] To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Thursday, January 17, 2008 12:01:50 AM Subject: [flexcoders] Date field with time Hi, Need some help. Fiddling with datefield component. mx:DateField id=sessionEndDate labelFunction= formatDate selectedDate= {model.sessionD ata.prodEndDate} change=if (null != DateField(event. currentTarget) .selectedDate) model.sessionData. prodEndDate = checkProdEndDate( DateField( event.currentTar get).selectedDat e) formatString= MM/DD/ JJ:NN:SS enabled={dateHandl er.checkDate( model.sessionDat a.prodEndDate) } editable=true width=160/ this works fine when the user chooses the date from date chooser. but when the users edits the time the change event doesn't occur. Which event should be used to know that the text has changed. Thanks jkaur Never miss a thing. Make Yahoo your homepage. http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs
Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation.
just set the fontSize - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, January 17, 2008 11:18:08 AM Subject: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. Is there no mxml TextField tag ? Error: Could not resolve mx:TextField to a component implementation. mx:TextField id=feedback width=230 fontWeight= bold text= x=350 y=100 /mx:TextField I'm trying to make the word correct with a font size of 20 Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Re: [flexcoders] Re: Date field with time
The whole component is kind of broken. Can you be a little more specific? -Original Message- From: gur_sukh [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Date field with time Date: Thu, 17 Jan 2008 15:56:46 - Thanks for the reply, dataChange is for data property only and doesn't work. If i use valueCommit, i can't even click on the datechooser. The whole component is kind of broken. there should be some way to handle date time. Any ideas, anyone... jkaur --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Try valueCommit From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sherif Abdou Sent: Wednesday, January 16, 2008 10:13 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Date field with time try the dataChange event instead, i think - Original Message From: gur_sukh [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, January 17, 2008 12:01:50 AM Subject: [flexcoders] Date field with time Hi, Need some help. Fiddling with datefield component. mx:DateField id=sessionEndDate labelFunction= formatDate selectedDate= {model.sessionD ata.prodEndDate} change=if (null != DateField(event. currentTarget) .selectedDate) model.sessionData. prodEndDate = checkProdEndDate( DateField( event.currentTar get).selectedDat e) formatString= MM/DD/ JJ:NN:SS enabled={dateHandl er.checkDate( model.sessionDat a.prodEndDate) } editable=true width=160/ this works fine when the user chooses the date from date chooser. but when the users edits the time the change event doesn't occur. Which event should be used to know that the text has changed. Thanks jkaur Never miss a thing. Make Yahoo your homepage. http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs
[flexcoders] DataGridColumn headerRenderer instance
Greetings all, Can anyone tell me how to access the visible headerRenderer instance given a DataGridColumn instance? public function getVisibleHeaderRenderer( col:DataGridColumn ): Object { var grid:DataGrid = this; // somehow get the header renderer (if it is visible) return ?? } I'm really stuck here, but I know there has got to be a way! I can do it if I have a MouseEvent on the column header itself, but how can I get it without an event? I've also tried DataGrid.getMeasuringRenderer, passing in the DataGridColumn instance (and true) and I do not get back the correct renderer (I actually get back the last header renderer). Any help? Thanks! -Mark
Re: [flexcoders] DataGridColumn headerRenderer instance
can;t u just do col.headerRenderer - Original Message From: Mark Bradley [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, January 17, 2008 1:01:41 PM Subject: [flexcoders] DataGridColumn headerRenderer instance Greetings all, Can anyone tell me how to access the visible headerRenderer instance given a DataGridColumn instance? public function getVisibleHeaderRen derer( col:DataGridColumn ): Object { var grid:DataGrid = this; // somehow get the header renderer (if it is visible) return ?? } I'm really stuck here, but I know there has got to be a way! I can do it if I have a MouseEvent on the column header itself, but how can I get it without an event? I've also tried DataGrid.getMeasuri ngRenderer, passing in the DataGridColumn instance (and true) and I do not get back the correct renderer (I actually get back the last header renderer). Any help? Thanks! -Mark Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Re: [flexcoders] underline in datagrid
haha i dont know what's wrong but it's not working. I'm just going to do a headerRenderer maybe or something On 1/17/08, Sherif Abdou [EMAIL PROTECTED] wrote: You want to underline the Data in the Grid correct but not the header?, this just under lines the values mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=initApp() mx:Script ![CDATA[ *private* *function* initApp():*void*{ } [ *Bindable*] *private* *var* object:Object={name:*FlexCoders*,cffUid:*FlexCodders*}; ]] /mx:Script mx:Style .headerCustomStyle { borderColor: #80; textAlign: 'left'; color: #00; fontFamily: 'Arial'; themeColor: #00; } .header { textDecoration: none; } /mx:Style mx:DataGrid dataProvider={object} id= fcsGrid styleName=headerCustomStyle headerStyleName= header textDecoration=underline alternatingItemColors= [#bfdfff, #ff] headerColors= [#99,#ff] borderThickness= 2 borderColor=#379bff maxHeight= 124 width=237 top=0 height=124 left=25 mx:columns mx:DataGridColumn headerText=CFF UID dataField=cffUid width=100 /mx:DataGridColumn /mx:columns /mx:DataGrid /mx:Application - Original Message From: Dominique Bessette - Halsema [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, January 17, 2008 12:44:01 PM Subject: Re: [flexcoders] underline in datagrid that just made it all underlined, even the header mx:DataGrid id=fcsGrid styleName=headerCustomStyle alternatingItemColo rs=[#bfdfff, #ff] headerColors=[#99,#ff] click=onClick(event) borderThickness=2 borderColor=#379bff maxHeight=124 width=237 top=0 height=124 left=25 mx:columns mx:DataGridColumn headerText=CFF UID dataField=cffUid width=100 headerStyleName=header textDecoration=underline / /mx:columns /mx:DataGrid On 1/17/08, Sherif Abdou [EMAIL PROTECTED] com [EMAIL PROTECTED] wrote: you want to do it in the DataGridColumn - Original Message From: Dominique Bessette - Halsema [EMAIL PROTECTED] com[EMAIL PROTECTED] To: [EMAIL PROTECTED] ups.com flexcoders@yahoogroups.com Sent: Thursday, January 17, 2008 12:39:21 PM Subject: Re: [flexcoders] underline in datagrid it's still not underlineing just the grid. i can get it to underline everything or nothing .headerCustomStyle { borderColor: #80; textAlign: 'left'; color: #00; fontFamily: 'Arial'; themeColor: #00; } .header { textDecoration: none; } mx:DataGrid id=fcsGrid styleName=headerCustomStyle headerStyleName=header textDecoration=underline alternatingItemColo rs=[#bfdfff, #ff] headerColors=[#99,#ff] click=onClick(event) borderThickness=2 borderColor=#379bff maxHeight=124 width=237 top=0 height=124 left=25 mx:columns mx:DataGridColumn headerText=CFF UID dataField=cffUid width=100 / /mx:columns /mx:DataGrid On 1/16/08, Alex Harui [EMAIL PROTECTED] com [EMAIL PROTECTED] wrote: Set headerStyleName on the columns to have tetDecoration= none -- *From:* [EMAIL PROTECTED] ups.com flexcoders@yahoogroups.com[mailto:[EMAIL PROTECTED] ups.com flexcoders@yahoogroups.com] *On Behalf Of *Dominique Bessette - Halsema *Sent:* Wednesday, January 16, 2008 4:18 PM *To:* [EMAIL PROTECTED] ups.com flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] underline in datagrid what if i dont want the datagrid's title to be underlined On 1/16/08, *Sherif Abdou* [EMAIL PROTECTED] com[EMAIL PROTECTED] wrote: textDecoration= underline - Original Message From: dominique.bessette [EMAIL PROTECTED] com [EMAIL PROTECTED] To: [EMAIL PROTECTED] ups.com flexcoders@yahoogroups.com Sent: Wednesday, January 16, 2008 5:46:52 PM Subject: [flexcoders] underline in datagrid How do I underline my text in a datagrid? -- Looking for last minute shopping deals? Find them fast with Yahoo! Search.http://us.rd.yahoo.com/evt=51734/*http:/tools.search.yahoo.com/newsearch/category.php?category=shopping -- Never miss a thing. Make Yahoo your homepage.http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs -- Looking for last minute shopping deals? Find them fast with Yahoo! Search.http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping
RE: [flexcoders] Failure to access a WSDL file from Flex's WebService class over HTTPS on IE
This is due to a long-standing IE bug with HTTPS and cache-related response headers. If you're not routing your web service invocations through the LCDS or BlazeDS proxy service, you'll need to tweak your application server to tweak the response headers related to caching if the user agent making the request is IE and the request arrives over HTTPS. Various folks have tried different header settings and combinations to work around this. Google for their recommendations. Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of eyal_c Sent: Wednesday, January 16, 2008 10:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Failure to access a WSDL file from Flex's WebService class over HTTPS on IE Hello, I have a problem to access a WSDL file from Flex's WebService class over HTTPS on IE. I have tried using Flex Builder 2 / 3 but the problem is the same. The web-server I am using is appWeb. Note that the same code works ok when I run it over HTTP (both IE and FF), and also over HTTPS but only from FireFox. The only problem is running it from IE over HTTPS. Analyzing the tcpdump I have compared the attempt to fetch the SWDL file from the flex code to a similar request done from the IE web-browser by typing the WSDL address in the URL field (This works ok and the browser displays the WSDL file). It seems that after the initial handshake the TCP connection is closed and the flex code doesn't open a new connection (like the IE does in the direct attempt). I am using the following lines of code in Flex: var webService:WebService = new WebService(); webService.showBusyCursor = true; webService.useProxy = false; webService.wsdl = https://IP_ADDRESS/MyService.wsdl; webService.endpointURI = https://IP_ADDRESS/SoapServer.php?serviceName=MyService; webService.addEventListener(LoadEvent.LOAD, handleLoad); webService.useProxy = false; I have received the following error: [SWF] C:\f2rca\_workspace\List\bin\List-debug.swf - 1,187,356 bytes after decompression 'DDDB2F4F-F7C5-676C-DDC6-819D636D5140' producer set destination to 'DefaultHTTP'. warning: unable to bind to property 'callType' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'callType' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'callType' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'callType' on class 'Object' (class is not an IEventDispatcher) Initializing WebService: https://135.64.100.135/SoapServer.php?serviceName=MyService, debug is: true Registering schema namespace: http://www.w3.org/1999/XMLSchema Registering schema namespace: http://www.w3.org/2000/10/XMLSchema Registering schema namespace: http://www.w3.org/2001/XMLSchema Registering schema namespace: http://schemas.xmlsoap.org/soap/encoding/ Registering schema namespace: http://xml.apache.org/xml-soap Registering schema namespace: http://rpc.xml.coldfusion '971164BA-D5DE-788B-5557-819D668A052A' producer set destination to 'DefaultHTTP'. '971164BA-D5DE-788B-5557-819D668A052A' producer set destination to 'DefaultHTTPS'. '3F645199-B68B-75BC-66C6-819D669A66F1' producer set destination to 'DefaultHTTP'. 'direct_http_channel' channel endpoint set to http: Creating WSDL object for https://135.64.100.135/MyService.wsdl 'C556A8DB-47F4-E47F-5B0F-819D66A92E33' producer set destination to 'DefaultHTTP'. Loading document https://135.64.100.135/MyService.wsdl for destination 'DefaultHTTPS' '971164BA-D5DE-788B-5557-819D668A052A' producer sending message 'AB4382D2-D12F-A510-D1FE-819D66A9E2DB' 'direct_http_channel' channel sending message: (mx.messaging.messages::HTTPRequestMessage)#0 body = (Object)#1 clientId = (null) contentType = application/x-www-form-urlencoded destination = DefaultHTTPS headers = (Object)#2 httpHeaders = (Object)#3 messageId = AB4382D2-D12F-A510-D1FE-819D66A9E2DB method = GET recordHeaders = false timestamp = 0 timeToLive = 0 url = https://135.64.100.135/MyService.wsdl; '971164BA-D5DE-788B-5557-819D668A052A' producer connected. '971164BA-D5DE-788B-5557-819D668A052A' producer acknowledge of 'AB4382D2-D12F-A510-D1FE-819D66A9E2DB'. '971164BA-D5DE-788B-5557-819D668A052A' producer fault for 'AB4382D2-D12F-A510-D1FE-819D66A9E2DB'. [RPC Fault faultString=HTTP request error faultCode=Server.Error.Request faultDetail=Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (https://135.64.100.135/MyService.wsdl)] at mx.rpc.soap::WSDLParser/mx.rpc.soap:WSDLParser::dispatchFault()[C:\dev\enterprise_bali\frameworks;mx\rpc\soap;WSDLParser.as:209] at mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::httpFaultHandler()[C:\dev\enterprise_bali\frameworks;mx\rpc\soap;WSDLParser.as:203] at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at
[flexcoders] Re: Date field with time
I can't even click on the datechooser it doesn't popup or anything. Could binding issue. --- In flexcoders@yahoogroups.com, Maciek Sakrejda [EMAIL PROTECTED] wrote: The whole component is kind of broken. Can you be a little more specific? -Original Message- From: gur_sukh [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Date field with time Date: Thu, 17 Jan 2008 15:56:46 - Thanks for the reply, dataChange is for data property only and doesn't work. If i use valueCommit, i can't even click on the datechooser. The whole component is kind of broken. there should be some way to handle date time. Any ideas, anyone... jkaur --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Try valueCommit From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sherif Abdou Sent: Wednesday, January 16, 2008 10:13 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Date field with time try the dataChange event instead, i think - Original Message From: gur_sukh gur_sukh@ To: flexcoders@yahoogroups.com Sent: Thursday, January 17, 2008 12:01:50 AM Subject: [flexcoders] Date field with time Hi, Need some help. Fiddling with datefield component. mx:DateField id=sessionEndDate labelFunction= formatDate selectedDate= {model.sessionD ata.prodEndDate} change=if (null != DateField(event. currentTarget) .selectedDate) model.sessionData. prodEndDate = checkProdEndDate( DateField( event.currentTar get).selectedDat e) formatString= MM/DD/ JJ:NN:SS enabled={dateHandl er.checkDate( model.sessionDat a.prodEndDate) } editable=true width=160/ this works fine when the user chooses the date from date chooser. but when the users edits the time the change event doesn't occur. Which event should be used to know that the text has changed. Thanks jkaur Never miss a thing. Make Yahoo your homepage. http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs
Re: [flexcoders] Error: Could not resolve mx:TextField to a component implementation.
What kind of control should I use that allows me to just set the fontSize ? Sherif Abdou wrote: just set the fontSize - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, January 17, 2008 11:18:08 AM Subject: [flexcoders] Error: Could not resolve mx:TextField to a component implementation. Is there no mxml TextField tag ? Error: Could not resolve mx:TextField to a component implementation. mx:TextField id=feedback width=230 fontWeight= bold text= x=350 y=100 /mx:TextField I'm trying to make the word correct with a font size of 20 Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20
[flexcoders] Nested Repeaters not working
Hey people, I posted a bug over at the flex jira (http://bugs.adobe.com/jira/browse/FB-11755) but I probably should have run it by here first. If I nest repeaters, and assign dataProviders in the repeater tag, it works as expected. However if I deplay the assignment of the dataProvider, i.e. creationComplete, the inner repeater doesnt execute at all. Does that sound like a bug to you guys? If so, how responsive are they to their public jira? example (I modified the repeater example at the component explorer): [Bindable] private var dp:Array = [1, 2, 3, 4]; [Bindable] private var dp2:Array = ['A', 'B', 'C', 'D']; private function init():void{ brokenRp.dataProvider = dp; brokenRp2.dataProvider = dp2; } -- mx:Repeater id=brokenRp mx:Button height=49 width=50 label={String(brokenRp.currentItem)}/ mx:Repeater id=brokenRp2 mx:Button height=49 width=50 label={String(brokenRp2.currentItem)}/ /mx:Repeater /mx:Repeater
Re: [flexcoders] underline in datagrid
it's still not underlineing just the grid. i can get it to underline everything or nothing .headerCustomStyle { borderColor: #80; textAlign: 'left'; color: #00; fontFamily: 'Arial'; themeColor: #00; } .header { textDecoration: none; } mx:DataGrid id=fcsGrid styleName=headerCustomStyle headerStyleName=header textDecoration=underline alternatingItemColors=[#bfdfff, #ff] headerColors=[#99,#ff] click=onClick(event) borderThickness=2 borderColor=#379bff maxHeight=124 width=237 top=0 height=124 left=25 mx:columns mx:DataGridColumn headerText=CFF UID dataField=cffUid width=100 / /mx:columns /mx:DataGrid On 1/16/08, Alex Harui [EMAIL PROTECTED] wrote: Set headerStyleName on the columns to have tetDecoration=none -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dominique Bessette - Halsema *Sent:* Wednesday, January 16, 2008 4:18 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] underline in datagrid what if i dont want the datagrid's title to be underlined On 1/16/08, *Sherif Abdou* [EMAIL PROTECTED] wrote: textDecoration= underline - Original Message From: dominique.bessette [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, January 16, 2008 5:46:52 PM Subject: [flexcoders] underline in datagrid How do I underline my text in a datagrid? -- Looking for last minute shopping deals? Find them fast with Yahoo! Search.http://us.rd.yahoo.com/evt=51734/*http:/tools.search.yahoo.com/newsearch/category.php?category=shopping
RE: [flexcoders] inline styles
I think you don't have experience with many other tools. for me, flex has been the easiest thing to learn and I practically start feeling happy when flex builder starts up because I know how much easier it is to work with than visual studio and other tools. Just curious, what would you prefer working with, and how long did you train with that before you learned it? Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, January 16, 2008 10:41 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] inline styles That looks like it applys styles to particular words, buts I studied the code and I can't figure out how it does it. I'm really regretting trying to learn how to use flex. Even the simplest things take days to figure out and it leaves me so drained I just want to kill myself. I can't understand how something this complicated and difficult can possibly be successful. I just don't understand it. . Sherif Abdou wrote: in the flexlib on google, i am guessing this is kinda what u want kind of? http://flexlib.googlecode.com/svn/trunk/examples/Highlighter/Highlighter_Sam ple.swf http://flexlib.googlecode.com/svn/trunk/examples/Highlighter/Highlighter_Sa mple.swf http://code.google.com/p/flexlib/wiki/ComponentList http://code.google.com/p/flexlib/wiki/ComponentList similar ideas? - Original Message From: [EMAIL PROTECTED] mailto:info1%40reenie.org [EMAIL PROTECTED] mailto:info1%40reenie.org To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Wednesday, January 16, 2008 11:56:56 PM Subject: Re: [flexcoders] inline styles How do you apply any style to just 1 word. I know how to apply it to a text control but I don't know how to apply it to SOME words in the text control. I can't even find 1 example . Sherif Abdou wrote: if u wana underline one word why dont u just set the textDecoration on that word? what exactly do u want to do - Original Message From: [EMAIL PROTECTED] org mailto:info1%40reenie.org [EMAIL PROTECTED] org mailto:info1%40reenie.org To: [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com Sent: Wednesday, January 16, 2008 8:09:37 PM Subject: [flexcoders] inline styles I can't figure out how to make an inline style. For example, how to underline 1 word? This help file is wrong because it seem to think that formatting text in buttons is an example of an inline styles. The button seems like a block element to me. I can't find anything that would allow a style in anything that is really inline. What would be the equivalent of html span ? http://livedocs. http://livedocs./ adobe.com/ http://adobe.com/ flex/201/ html/wwhelp/ wwhimpl/common/ html/wwhelp. htm?context= LiveDocs_ Book_Parts file=styles_ 069_25.html http://livedocs. adobe.com/ flex/201/ html/wwhelp/ wwhimpl/common/ html/wwhelp. htm?context= LiveDocs_ Book_Parts file=styles_ 069_25.html http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.h tm?context=LiveDocs_Book_Parts http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.h tm?context=LiveDocs_Book_Partsfile=styles_069_25.html file=styles_069_25.html - - - - - - Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://us.rd. yahoo.com/ evt=51734/ *http://tools. search.yahoo. com/newsearch/ category. php?category= shopping http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/c ategory.php?category=shopping http://us.rd.yahoo.com/evt=51734/*http:/tools.search.yahoo.com/newsearch/ca tegory.php?category=shopping -- Never miss a thing. Make Yahoo your homepage. http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs
[flexcoders] Re: Error: Could not resolve mx:TextField to a component implementation.
There is no mx component TextField. Your choices are TextArea, Text, and TextInput. If you have created a custom control then it is not going to have the mx: namespace. Thats what the component implementation error is referencing.