Re: [flexcoders] Flex. AIR and IPhone
On 27/01/2009, at 6:10 PM, Sam Lai wrote: I think the issue here is that if Adobe/MS used SVG as a base instead of their proprietary XML dialects, then they won't be able to innovate and implement new features as quickly. I disagree, and cite the HTML web browser example again If they added proprietary extensions to SVG, there'll be a massive backlash as seen with IE and its CSS, JS and HTML extensions. IE is criticized because it is rubbish and *doesn't follow the standards*. If they try to get it into the standard, it will take ages to get it through the committee, and they will lose the competitive advantage of developing that feature in the first place. Unfortunately the standards process just does not keep up with innovation. But personally, I don't think it should - details should be thrashed out, and issues should be resolved in standards, particularly those that could not be foreseen during the initial implementation. Yes, that tends to happen and is fine...the point is though that there is a working towards a standard, which is not currently what's happening with Flash or Silverlight. Both are pretending SVG doesn't exist. Flash has some token support for it is the best anyone can say. I'm a believer of what Sebastian said - Competition is what drives technology forward, standards come after the war to clean up the mess, but they don't innovate. Again, i disagree, but then maybe I think more highly of humanity than you do... :-) What would be nice would be a SVG container for Flex/SL, and one that can reach out into the app and allow the app to reach in. Indeed. I'd be amazed if both MS and Adobe don't have a functioning SVG interpreter figured out for their respective plugins, ready to jump if that ever becomes necessary (ie, their market share would improve if they included it). Guy 2009/1/27 Guy Morton g...@alchemy.com.au: Both Adobe and MS could have used SVG as the basis for Flex and Silverlight, but both prefer to lock people into proprietary approaches. Just because SVG doesn't do everything Flash/Flex can do is no reason to use all the things it DOES do (it has styling and scripting support for a start...). Having used both SVG and Flex, I can tell you the fundamentals are the same. Sure Flex has a much better component library and the flash player has better penetration, but most of the things I currently do in Flex are doable in SVG. Making the Flex SDK open source is a strategic decision to capture more market share. It has nothing to do with supporting W3C standards. It is only about funneling more developers into delivering for the Flash platform in the face of MS and Silverlight. I think you are seriously misguided about the role of standards. HTML seems to have worked pretty well. I don't see MS or Adobe trying to do their own versions of that (though they may screw up their support for it at times, yes IE is dreadful)... Guy On 27/01/2009, at 9:30 AM, Sebastien ARBOGAST wrote: Like all W3C standards, SVG is just one tiny little piece of the puzzle. The Flash platform or silverlight offer much more than that of course. Component libraries, styling, scripting support, system integration, remoting support, IDEs, and all the accessories that, like it or not, only a big company can produce. Competition is what drives technology forward, standards come after the war to clean up the mess, but they don't innovate. With the iPhone being so closed, at least Android and Palm have a big card to play on openness to compete. But wishing for one silver bullet technology is not a dream, it is not even a utopia, it's like wishing for hell on earth. Oh, and by the way, the Flex SDK is totally Open Source, but this has already been repeated thousands of times so I guess you know. Sébastien Arbogast http://sebastien-arbogast.com 2009/1/26 Guy Morton g...@alchemy.com.au Mm..yes, but then again Apple is supporting SVG on the iPhone...Adobe hasn't exactly covered itself in glory with its support for SVG. Of course since they bought Macromedia they no longer have any strategic use for it. And now we have Silverlight from MS we have THREE technologies that are essentially the same - two proprietory and one a W3C standard. Sigh. It's the usual mess we get when corporations exercise their competitive impulses. Wouldn't it have been nice to have an open vector animation standard (SVG) that would play in a commonly deployed runtime (Flash)? Then we could all develop once and have native playback in browsers that support SVG, player support for those that don't and we'd be able to target the iPhone. That of course will never happen. :-) Guy On 27/01/2009, at 12:23 AM, Wally Kolcz wrote: Could not have put it any better myself.
Re: [flexcoders] Flex 3.3
On Monday 26 Jan 2009, Matt Chotin wrote: It's all bug fixes, and not a huge number of them. We're not going to have an associated Flex Builder release either, just the SDK (though we'll get the charts updated). So how will the chart updates be released ? In the past, the only way to get them was to install Builder and rip them out by hand. Are they now, finally, going to be available as a separate download ? -- Tom Chiverton Helping to confidentially deliver frictionless metrics This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Flex. AIR and IPhone
Thank you everybody for this discussion about SVG. When I introduced XML in my company, in 1999, (already 10 years ago !), I remember that I told as examples 40 or 50 XML-based standards. I explained that SVG was one of the oldest but I had many questions about its performance and about its compliance with existing browsers. I don't know what was the version of flash at this moment (2 or 3 ?) When I decided to launch the first development with Royale, in december 2003, I was convinced that it was the only technology for making RIA and I was feeling that Royale will become a great thing because RIA was a real need for simplifying user interfaces. (Royale was the former name of Flex). I recruted 2 RD people and they made the first Flex application in the world (which is the ancestor of Flexstore). These RD people were SVG specialist and in their report, they explained the power of Flex. Flash was still in version 6. Today, Flash is in version 10, after a huge rewriting, and Flex is near the version 4. I don't know if Mister Allaire was influenced by SVG, but he made a wonderfull job when he invented the ancestor of Royale. I remember his conference in JavaOne 2002, showing the next generation of GUI. Java is widely deployed today, just because there was a pilot in plane, Sun. Flash player is the most widely deployed software in the world. It was proprietary. It is now open. Thanks to Macromedia to have evolve it. They were working for sustainability. And thanks to Adobe to reinforce this sustanability. With Flash we have the second generation of application portability. And thanks to Adobe to invent AIR. I choose Pdf in 1994, because I needed a sustainable format for publishing documents on CD-ROM. Now Pdf is a ISO standard and, as is, becomes the only way to transmit digital information towards the next generations. Again thanks to Adobe to build sustainability. I am not working for Adobe or any other ISV. But I think that making sustainable software is the most important thing we have to do. It is much more than interoperability, which is the minimal need. Standards are a dream of software sustainability. Sometimes they don't succeed. Sometimes they are ubiquitous. But they are just a way. The important thing is the pillar they can provide for making sustainable things. Hervé And the real bad thing is that the iPhone is not running AIR and Flash. Sam Lai a écrit : I think the issue here is that if Adobe/MS used SVG as a base instead of their proprietary XML dialects, then they won't be able to innovate and implement new features as quickly. If they added proprietary extensions to SVG, there'll be a massive backlash as seen with IE and its CSS, JS and HTML extensions. If they try to get it into the standard, it will take ages to get it through the committee, and they will lose the competitive advantage of developing that feature in the first place. Unfortunately the standards process just does not keep up with innovation. But personally, I don't think it should - details should be thrashed out, and issues should be resolved in standards, particularly those that could not be foreseen during the initial implementation. I'm a believer of what Sebastian said - Competition is what drives technology forward, standards come after the war to clean up the mess, but they don't innovate. What would be nice would be a SVG container for Flex/SL, and one that can reach out into the app and allow the app to reach in. 2009/1/27 Guy Morton g...@alchemy.com.au mailto:guy%40alchemy.com.au: Both Adobe and MS could have used SVG as the basis for Flex and Silverlight, but both prefer to lock people into proprietary approaches. Just because SVG doesn't do everything Flash/Flex can do is no reason to use all the things it DOES do (it has styling and scripting support for a start...). Having used both SVG and Flex, I can tell you the fundamentals are the same. Sure Flex has a much better component library and the flash player has better penetration, but most of the things I currently do in Flex are doable in SVG. Making the Flex SDK open source is a strategic decision to capture more market share. It has nothing to do with supporting W3C standards. It is only about funneling more developers into delivering for the Flash platform in the face of MS and Silverlight. I think you are seriously misguided about the role of standards. HTML seems to have worked pretty well. I don't see MS or Adobe trying to do their own versions of that (though they may screw up their support for it at times, yes IE is dreadful)... Guy On 27/01/2009, at 9:30 AM, Sebastien ARBOGAST wrote: Like all W3C standards, SVG is just one tiny little piece of the puzzle. The Flash platform or silverlight offer much more than that of course. Component libraries, styling, scripting support, system integration, remoting support,
[flexcoders] Go and Vote for beter Flex builder! (Cache Buster)
https://bugs.adobe.com/jira/browse/FB-16764
Re: [flexcoders] Dynamically loading image from URL
You must wait fot the 'complete' event. Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com On Tue, Jan 27, 2009 at 12:10 AM, pratikshah83 pratiksha...@yahoo.comwrote: Hi Guys, I want to have a custom image as the itemrenderer for plot chart... just like the butterfly image here http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formatting_12.html. But I want to load image dynamically from an URL, and not embed it in. Can any one help me with this. I tried using loader but loader.content is null. Thanks in advance. -Pratik
Re: [flexcoders] Go and Vote for beter Flex builder! (Cache Buster)
I'm not sure if it is necessary to change FlexBuilder to do this. Have you tried a ant script running as a builder before your flex build. Cheers Ralf. On Tue, Jan 27, 2009 at 10:40 AM, Cato Paus ca...@brannsikring.no wrote: https://bugs.adobe.com/jira/browse/FB-16764
[flexcoders] Modules
Hi, i have a problem in my app.. i have a main application and here i create a custom module, a titlewindow with a close button... when i click the button i would unload the module...is it possible to listen for module events from the main app? how can i rich this goal? Thanks in advance Regards Lorenzo
[flexcoders] Re: Flex. AIR and IPhone
--- In flexcoders@yahoogroups.com, Pete Appleby bon...@... wrote: Guy, I agree with your comments. I've been in computing for 30 years, and it is unfortunate, but in my opinion you hit the nail on the head. The old Not Invented Here syndrome is at work. Microsoft can keep SilverFish and IE. I am sticking with Flex and AIR. The day the Microsoft buys Adobe is the day that I retire. Sorry for the rant! Pete Thanks everybody for replies.. so it's no possible to rich this goal by now... Thanks again Regards Lorenzo
[flexcoders] Flex skins not being applied when viewed in browser
In my application, I have many different skins for different panels. All the skins render in the browser, except for one skin for a panel. The skin renders exactly as it should be in the design mode, but the skin does not get rendered in the browser. I debugged it and checked if the style parameter was being set correctly and it was set correctly.Is there any way to debug such an issue?
[flexcoders] Re: Go and Vote for beter Flex builder! (Cache Buster)
Yes I know that but, I was thinking on making flex builder a better product for all and not only the hard core coders :) --- In flexcoders@yahoogroups.com, Ralf Bokelberg ralf.bokelb...@... wrote: I'm not sure if it is necessary to change FlexBuilder to do this. Have you tried a ant script running as a builder before your flex build. Cheers Ralf. On Tue, Jan 27, 2009 at 10:40 AM, Cato Paus ca...@... wrote: https://bugs.adobe.com/jira/browse/FB-16764
[flexcoders] Dynamic text flowing
I have a custom component comprised of stacked mx:Text within a mx:VBox within a mx:HBox and using this component within a TileList. I need to have the text resize dynamically to show all the wrapped text within the Text to display within the tile. Some of the custom component is shown below... ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100% scroll=false clipContent=true horizontalScrollPolicy=off verticalScrollPolicy=off borderStyle=none verticalGap=0 horizontalGap=4 verticalAlign=top doubleClick=doubleClickEventHandler(event) doubleClickEnabled=true height=220 mx:Image source={data.statusImage} / mx:VBox width=50% height=100% mx:Text text=Associated Topic Name: {data.associated_topic} fontSize=9 fontFamily=Arial truncateToFit=true width=100% textAlign=left toolTip={data.associated_topic} fontWeight=bold enabled=true/ mx:Text text=Action Name: {data.name} fontSize=9 fontFamily=Arial width=100% textAlign=left toolTip={data.name} fontWeight=bold/ mx:Text text=Action Owner: {data.owner} fontSize=9 fontFamily=Arial width=100% textAlign=left toolTip={data.owner} fontWeight=bold/ mx:Text text=Action Description: {data.description} fontSize=9 fontFamily=Arial width=100% textAlign=left toolTip={data.description} fontWeight=bold/ /mx:VBox mx:VBox width=50% height=100% mx:Text text=Action Initiation Date: {data.initiation_date} fontSize=9 fontFamily=Arial width=100% textAlign=left toolTip={data.initiation_date} fontWeight=bold/ mx:Text text=Initial Due Date: {data.initial_due_date} fontSize=9 fontFamily=Arial width=100% textAlign=left toolTip={data.initial_due_date} fontWeight=bold/ mx:Text text=Action Revised Due Date: {data.revised_due_date} fontSize=9 fontFamily=Arial width=100% textAlign=left toolTip={data.revised_due_date} fontWeight=bold/ mx:Text text=Resolution Description: {data.resolution_description} fontSize=9 fontFamily=Arial width=100% textAlign=left toolTip={data.resolution_description} fontWeight=bold/ /mx:VBox /mx:HBox Any suggestions are welcomed. Thanks, CJ
RE: [flexcoders] PHP Remoting and value objects
Thanks for the reply, although this is throwing an error for me. I'm using WebOrb, if that makes any odds? kratosaurus wrote: Try: var testVO:TestVO = e.result.serverInfo.initialData as TestVO; (depending on how you've constructed your data for return from php) Also, throw a breakpoint into your app where the remote comes back - then take a look inside the *result* object. You'll have the *result.serverInfo* object, which itself contains * initialData*, *serviceName*, *columnNames* among others. Cheers. -- View this message in context: http://www.nabble.com/PHP-Remoting-and-value-objects-tp21674002p21683571.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Flex. AIR and IPhone
Good post Hervé. Paul - Original Message - From: Hervé Crespel crespel.he...@wanadoo.fr To: flexcoders@yahoogroups.com Sent: Tuesday, January 27, 2009 9:29 AM Subject: Re: [flexcoders] Flex. AIR and IPhone Thank you everybody for this discussion about SVG. snip I am not working for Adobe or any other ISV. But I think that making sustainable software is the most important thing we have to do. It is much more than interoperability, which is the minimal need. Standards are a dream of software sustainability. Sometimes they don't succeed. Sometimes they are ubiquitous. But they are just a way. The important thing is the pillar they can provide for making sustainable things. Hervé And the real bad thing is that the iPhone is not running AIR and Flash. snip
[flexcoders] How to reference external CSS file
Hi Guys, I have the following situation: A lib project, that generates a swc file. This file contains a lot of images, css files and other 'assets'. In my main project I want to use those files, but not figuring out how to do it. I tried a lot of different ways w/o success. How should I do it ? Is it correct to put this assets in a swc file instead of a swf one? Thansks in advance, PS
[flexcoders] auto suggest for xml data
HI all, I am writing flex code to get a text box which will auto suggest the user (similar to goggle suggest),the data for autosuggestion have to come from the xml file. any idea to how can i do that?? Will be helpful if u can provide a link to resources for doing the same. Regards Saurabh
[flexcoders] Re: How to get data from many rows in DataGrid?
You're right that the doc isn't very complete on this point. When I use an API like this I always run it in the debugger, call the method, put a breakpoint after the call, and look at the result in the debugger. --- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote: public function get selectedItems():Array what the Array look like? I have not see a demo
[flexcoders] Setting data from web service to ArrayCollection.
I am so trying to wrap my head around web services and use them for my projects since we Blue Dragon here at the U. I have my CFCs and they seem to work fine. However, I have no idea on how to set the 'return value' for a web service to an arraycollection to use it. I am used to RemoteObjects that I can just set and then use myData.getItemAt(0).name... I have a query to my database that returns one row of records through a web service. It is returned to my Flex app and I am trying to get it to an ArrayCollection variable for use in the application. I was watching a Lynda video that uses something like: myData = e.result.Tables.Table0.Rows as ArrayCollection. Now is that how you can set that row's columns at the value of the ArrayCollections? Or is this only going to work for the video scenerio? Thanks for any info!
RE: [flexcoders] auto suggest for xml data
There is an autocomplete component available : http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetailex tid=1047291 Whether it suits your needs I can't really say at the moment. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of info_diwan2000 Sent: 27 January 2009 06:18 To: flexcoders@yahoogroups.com Subject: [flexcoders] auto suggest for xml data HI all, I am writing flex code to get a text box which will auto suggest the user (similar to goggle suggest),the data for autosuggestion have to come from the xml file. any idea to how can i do that?? Will be helpful if u can provide a link to resources for doing the same. Regards Saurabh __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
[flexcoders] Re: PHP Remoting and value objects
Grab a copy of Charles and see what the object is when it is returned. Also, set a breakpoint when the result is returned and look at the object type in the result. You may not have the object bindings set correctly for Flex to auto convert the objects. --- In flexcoders@yahoogroups.com, Sceneshift j...@... wrote: Thanks for the reply, although this is throwing an error for me. I'm using WebOrb, if that makes any odds? kratosaurus wrote: Try: var testVO:TestVO = e.result.serverInfo.initialData as TestVO; (depending on how you've constructed your data for return from php) Also, throw a breakpoint into your app where the remote comes back - then take a look inside the *result* object. You'll have the *result.serverInfo* object, which itself contains * initialData*, *serviceName*, *columnNames* among others. Cheers. -- View this message in context: http://www.nabble.com/PHP-Remoting-and-value-objects-tp21674002p21683571.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Anyone using Subclipse 1.4.x in flexbuilder 3 ?
When I last installed subclipse (probably early last year), it seemed to be recommended advice to use subclipse 1.2, so I followed it. I'm currently having some nasties with this and subversion 1.5 (Which could well be down to something else rather than subclipse 1.2, I admit). I'm just wondering if subclipse 1.4 will now work? Any experience, hints or tips are most welcome, many thanks. (I'm using the latest flexbuilder 3.2 by the way, if it makes any difference) __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
re: [flexcoders] Setting data from web service to ArrayCollection.
I moved my CFC and database to my localhost so I can debug the webservice output and see it. I am a wee bit confused. The results panel is saying something like this: e -- result -- source -- [0] -- firstName (etc) How do I set that local? I tried myData = e.result.source as ArrayCollection and then tried to trace myData.getItemAt(0).firstName but got an error. From: Wally Kolcz wko...@isavepets.com Sent: Tuesday, January 27, 2009 5:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Setting data from web service to ArrayCollection. I am so trying to wrap my head around web services and use them for my projects since we Blue Dragon here at the U. I have my CFCs and they seem to work fine. However, I have no idea on how to set the 'return value' for a web service to an arraycollection to use it. I am used to RemoteObjects that I can just set and then use myData.getItemAt(0).name... I have a query to my database that returns one row of records through a web service. It is returned to my Flex app and I am trying to get it to an ArrayCollection variable for use in the application. I was watching a Lynda video that uses something like: myData = e.result.Tables.Table0.Rows as ArrayCollection. Now is that how you can set that row's columns at the value of the ArrayCollections? Or is this only going to work for the video scenerio? Thanks for any info!
[flexcoders] Re: Base one mxml component on another from Library
Finally I got it working. Here is my library component: ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical close=PopUpManager.removePopUp(this) showCloseButton=true borderStyle=solid borderThickness=2 headerColors=[#00,#D2CEB2] minHeight=400 minWidth=500 backgroundColor=#F8F8DD verticalAlign=top mx:Script ![CDATA[ import mx.managers.PopUpManager; ]] /mx:Script /mx:TitleWindow and here is a component in my development project: ?xml version=1.0 encoding=utf-8? customPopupWindow xmlns=modulecode.* xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 verticalCenter=yes /customPopupWindow It gets compiled without errors, but when I run it I dont see any colors or borders settings being inherited. All I have is a plain popup with no custom settings. What am I doing wrong? Thanks --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2...@... wrote: Ok, here is my modified code: ?xml version=1.0 encoding=utf-8? modulecode:popupTitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=400 height=300 xmlns:modulecode=UFDCommonLib.src.modulecode.* /modulecode:popupTitleWindow and the message is: Unable to locate specified base class 'UFDCommonLib.src.modulecode.popupTitleWindow' for component class 'saveAsPriceList'. UFDPortal/src saveAsPriceList.mxml Unknown 1233004480341 1143 --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote: - Original Message - From: markgoldin_2000 markgoldin_2000@ To: flexcoders@yahoogroups.com Sent: Monday, January 26, 2009 5:43 PM Subject: [flexcoders] Re: Base one mxml component on another from Library xmlns:modulecode=/UFDCommonLib/src/modulecode UFDCommonLib - is my common library name, src/modulecode is location of a mxml component. I have tried differnt variations of xmlns:modulecode=/UFDCommonLib/src/modulecode but all I am getting is: Could not resolve modulecode:popupTitleWindow to a component implementation. I think we both have a Doh moment. Swap the / characters for . . Paul --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote: - Original Message - From: markgoldin_2000 markgoldin_2000@ To: flexcoders@yahoogroups.com Sent: Monday, January 26, 2009 5:35 PM Subject: [flexcoders] Re: Base one mxml component on another from Library here is my simplified component definition: ?xml version=1.0 encoding=utf-8? modulecode:popupTitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=400 height=300 xmlns:modulecode=/UFDCommonLib/src/modulecode /modulecode:popupTitleWindow But that does not work. Are you sure the path is correct - can you create popupTileWindow elsewhere? What is the error? Paul --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote: - Original Message - From: markgoldin_2000 markgoldin_2000@ To: flexcoders@yahoogroups.com Sent: Monday, January 26, 2009 5:26 PM Subject: [flexcoders] Base one mxml component on another from Library I have a project with a common component library added to it as SWC. I am trying to create a mxml component in my project that would be based on a component from the library. How do I do that? Components are based on the component that's used at the top level in the component definition. I would assume it's just a case of using the component in the swc as the top component of your new component. Paul Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469- 446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Flex in a week tutorial problem
Hello, Working my way through this tutorial and I hit a wall. I looked at the sample code and cannot figure out why this event is not available. Any Idea's, probably something simple I am just not seeing, thanks... This is the error I am getting: Event type 'events:OptionSelectEvent' is unavailable. AdobeODT/src AdobeODT.mxml line 61 This is the code for the AdobeODT.mxml I have marked the post where the error is with the text ERROR LINE. Below is also the code for the Options.mxml code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical horizontalAlign=left paddingTop=5 backgroundColor=#FF creationComplete=init() xmlns:Components=Components.* mx:Script ![CDATA[ import mx.events.ListEvent; import mx.collections.ArrayCollection; import mx.rpc.events.FaultEvent; import mx.controls.Alert; import mx.rpc.events.ResultEvent; import Events.OptionSelectEvent; [Bindable] private var roomList:ArrayCollection; [Bindable] public var selectedOptions:ArrayCollection = new ArrayCollection(); private function changeHandler(event:ListEvent):void{ } private function init():void{ rooms.send(); } private function httpFaultHandler(event:FaultEvent):void{ Alert.show(There was a problem,Error); } private function httpResultHandler(event:ResultEvent):void{ roomList= event.result.rooms.room; } private function optionHandler(event:OptionSelectEvent):void{ var index:int = selectedOptions.getItemIndex(event.option); if (index == -1){ selectedOptions.addItem(event.option); }else{ selectedOptions.removeItemAt(index); } } ]] /mx:Script mx:HTTPService id=rooms url=assets/roomList.xml fault=httpFaultHandler(event) result=httpResultHandler(event)/ mx:Label x=10 y=10 text=XYZ Convention fontWeight=bold fontSize=21/ mx:HBox mx:Text x=10 y=41 text=111 49th Ave. Denver, CO 80634/ mx:Text x=208 y=41 text=Phone: 303-555-1212/ mx:Text x=345 y=41 text=Fax: 303-555-1234/ /mx:HBox mx:Label x=10 y=72 text=Room Reservation System fontSize=14 fontWeight=bold/ mx:Canvas height=100% mx:Label x=0 text=Please select any additional amenities needed for your room. Our staff will contact you to finialize your reservation/ Components:Options x=0 y=26 ERROR LINE optionSelected=optionHandler(event)/ mx:Label x=0 y=116 text=Rooms Available/ mx:List id=dg x=0 y=142 width=250 itemClick=changeHandler(event) dataProvider={roomList} labelField=name /mx:List Components:ReservationForm x=439 y=142 width=318 height=529 selectedOptions={selectedOptions}/ /mx:Canvas /mx:Application **END CODE* ***OPTIONS.MXML CODE* ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=840 height=80 mx:Script ![CDATA[ import Events.OptionSelectEvent; private function clickHandler(event:Event):void{ var selection:String = event.target.label; var optionSelectEvent:OptionSelectEvent = new OptionSelectEvent(optionSelected,selection); dispatchEvent(optionSelectEvent); } ]] /mx:Script mx:Metadata [Event(name=optionSelected, type=events.OptionSelectEvent)] /mx:Metadata mx:CheckBox x=132 y=10 label=Dance Floor click=clickHandler(event)/ mx:CheckBox x=10 y=10 label=Microphone click=clickHandler(event)/ mx:CheckBox x=132 y=40 label=Special Lighting click=clickHandler(event)/ mx:CheckBox x=529 y=10 label=Extra Trash Receptacals click=clickHandler(event)/ mx:CheckBox x=272 y=10 label=Food Station click=clickHandler(event)/ mx:CheckBox x=422 y=10 label=Security click=clickHandler(event)/ mx:CheckBox x=422 y=40 label=Waitstaff click=clickHandler(event)/ mx:CheckBox x=10 y=40 label=Projector click=clickHandler(event)/ mx:CheckBox x=272 y=40 label=Color Table Linens click=clickHandler(event)/ mx:CheckBox x=529 y=40 label=Additional Electrical Outlets
[flexcoders] Re: Anyone using Subclipse 1.4.x in flexbuilder 3 ?
Yes, I've been using it with FB3.2 standalone for some time now. No problems to report. A few goodies over 1.2: - it defaults new objects as selected when committing - no need to update after commit to get the version updated on the navigator All else seems to work as before. cheers, julio --- In flexcoders@yahoogroups.com, Jim Hayes j...@... wrote: When I last installed subclipse (probably early last year), it seemed to be recommended advice to use subclipse 1.2, so I followed it. I'm currently having some nasties with this and subversion 1.5 (Which could well be down to something else rather than subclipse 1.2, I admit). I'm just wondering if subclipse 1.4 will now work? Any experience, hints or tips are most welcome, many thanks. (I'm using the latest flexbuilder 3.2 by the way, if it makes any difference) __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
[flexcoders] Question about popup
Here is my code: var c:Classes = new Classes(); var popupWindow:TitleWindow = new TitleWindow; this line works fine: popupWindow = c.showPopupWindow(DisplayObject(this), saveAsPriceList); var saveAs:saveAsPriceList = new saveAsPriceList; but this wouldn't compile: popupWindow = c.showPopupWindow(DisplayObject(this), saveAs); Message: 1067: Implicit coercion of a value of type saveAsPriceList to an unrelated type Class. public function showPopupWindow(parent:DisplayObject, WhatToShow:Class):TitleWindow { // Create a modal TitleWindow container. var popupWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(parent, WhatToShow, true)); PopUpManager.centerPopUp(popupWindow); return popupWindow; } Any idea? Thanks
[flexcoders] Re: Modules
--- In flexcoders@yahoogroups.com, thelordsince1984 lore...@... wrote: Hi, i have a problem in my app.. i have a main application and here i create a custom module, a titlewindow with a close button... when i click the button i would unload the module...is it possible to listen for module events from the main app? how can i rich this goal? Thanks in advance Regards Lorenzo Anybody can help me? Suppose that i have a module.This module contains a title window and a close button. From the main app i load this module through a ModuleLoader.. then when i click in the close button module i would unload the module..how to do this? if i fire an event from the module the event remains into the module, is it true?the main app can't catch the event... please help me...
Re: [flexcoders] Go and Vote for beter Flex builder! (Cache Buster)
I¹d rather know how to add the feature it myself. https://bugs.adobe.com/jira/browse/FB-16764 Alan
Re: [flexcoders] Flex in a week tutorial problem
- Original Message - From: rbross77 ro...@cswllc.com To: flexcoders@yahoogroups.com Sent: Tuesday, January 27, 2009 2:49 PM Subject: [flexcoders] Flex in a week tutorial problem Hello, Working my way through this tutorial and I hit a wall. I looked at the sample code and cannot figure out why this event is not available. Any Idea's, probably something simple I am just not seeing, thanks... import events.OptionSelectEvent This is the error I am getting: Event type 'events:OptionSelectEvent' is unavailable. AdobeODT/src AdobeODT.mxml line 61
[flexcoders] Re: Setting data from web service to ArrayCollection.
Perhaps you have an arrayCollection of arrayCollections (What does the debugger show as the result type?). You may like to try... var resultArrColl:ArrayCollection = e.result.source; var firstResult:ArrayCollection = resultArrColl[0]; Alert.show(firstResult[0]); --- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: I moved my CFC and database to my localhost so I can debug the webservice output and see it. I am a wee bit confused. The results panel is saying something like this: e -- result -- source -- [0] -- firstName (etc) How do I set that local? I tried myData = e.result.source as ArrayCollection and then tried to trace myData.getItemAt(0).firstName but got an error. From: Wally Kolcz wko...@... Sent: Tuesday, January 27, 2009 5:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Setting data from web service to ArrayCollection. I am so trying to wrap my head around web services and use them for my projects since we Blue Dragon here at the U. I have my CFCs and they seem to work fine. However, I have no idea on how to set the 'return value' for a web service to an arraycollection to use it. I am used to RemoteObjects that I can just set and then use myData.getItemAt(0).name... I have a query to my database that returns one row of records through a web service. It is returned to my Flex app and I am trying to get it to an ArrayCollection variable for use in the application. I was watching a Lynda video that uses something like: myData = e.result.Tables.Table0.Rows as ArrayCollection. Now is that how you can set that row's columns at the value of the ArrayCollections? Or is this only going to work for the video scenerio? Thanks for any info!
[flexcoders] Re: Flex in a week tutorial problem
I found the problem... my events folder was named with a capital E and needed to be lower case e. Went over exercise again and found it. Works as expected now --- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote: - Original Message - From: rbross77 ro...@... To: flexcoders@yahoogroups.com Sent: Tuesday, January 27, 2009 2:49 PM Subject: [flexcoders] Flex in a week tutorial problem Hello, Working my way through this tutorial and I hit a wall. I looked at the sample code and cannot figure out why this event is not available. Any Idea's, probably something simple I am just not seeing, thanks... import events.OptionSelectEvent This is the error I am getting: Event type 'events:OptionSelectEvent' is unavailable. AdobeODT/src AdobeODT.mxml line 61
Re: [flexcoders] Re: Setting data from web service to ArrayCollection.
Why do not you try Alert.show(ObjectUtil.toString(e.result)) //replace e.result with e to see the whole event ObjectUtil is very useful in situation like this as it show a textual representation of any object graph On Tue, Jan 27, 2009 at 5:37 PM, valdhor valdhorli...@embarqmail.comwrote: Perhaps you have an arrayCollection of arrayCollections (What does the debugger show as the result type?). You may like to try... var resultArrColl:ArrayCollection = e.result.source; var firstResult:ArrayCollection = resultArrColl[0]; Alert.show(firstResult[0]); --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Wally Kolcz wko...@... wrote: I moved my CFC and database to my localhost so I can debug the webservice output and see it. I am a wee bit confused. The results panel is saying something like this: e -- result -- source -- [0] -- firstName (etc) How do I set that local? I tried myData = e.result.source as ArrayCollection and then tried to trace myData.getItemAt(0).firstName but got an error. From: Wally Kolcz wko...@... Sent: Tuesday, January 27, 2009 5:30 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Setting data from web service to ArrayCollection. I am so trying to wrap my head around web services and use them for my projects since we Blue Dragon here at the U. I have my CFCs and they seem to work fine. However, I have no idea on how to set the 'return value' for a web service to an arraycollection to use it. I am used to RemoteObjects that I can just set and then use myData.getItemAt(0).name... I have a query to my database that returns one row of records through a web service. It is returned to my Flex app and I am trying to get it to an ArrayCollection variable for use in the application. I was watching a Lynda video that uses something like: myData = e.result.Tables.Table0.Rows as ArrayCollection. Now is that how you can set that row's columns at the value of the ArrayCollections? Or is this only going to work for the video scenerio? Thanks for any info! -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Re: ComboBox selectedIndex revisited
--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: You have a lot of stuff happening in there. Did you debug it to see why it was not working? Particularly the computeSelectedDateRangeIndex() function? Was it being called when you expected? I agree with Tracy. I would expect that to only fire when there's a change event on one of the variables being used as a parameter for it. Are those variables bindable? Could there be a case where you _think_ they changed (i.e. you changed the underlying private variable without going through the setter), but the setter doesn't _know_ they changed?
[flexcoders] Re: PHP Remoting and value objects
--- In flexcoders@yahoogroups.com, Sceneshift j...@... wrote: Hey guys, I'm a little confused over how to get myself from WebOrb PHP into a VO in my Flex application. I am getting my result sent to me from my php script which is returned as an object, and I'm trying to set this result as a value object like so: var testVO:TestVO = e.result as TestVO; This isn't working, which confuses me. Do I have to run through each result in order to type it accordingly? I thought one of the benefits of remoting was that we didn't need to type our results? You shouldn't have to cast it--it should come back already as that type. If it isn't already that type, check out these links: http://flexdiary.blogspot.com/2008/11/thoughts-on-remoting.html http://flexdiary.blogspot.com/2009/01/lazy-loading-tree-example-file- posted.html The latter link includes both the php and Flex side of a working remote class. HTH; Amy
Re: [flexcoders] Re: Setting data from web service to ArrayCollection.
thisindex (@150ba0a1) emx.rpc.events.ResultEvent (@1516eaa9) [inherited] headersnull resultmx.collections.ArrayCollection (@151f2701) [inherited] [0]mx.utils.ObjectProxy (@1516eee1) DEPARTMENTPRMC FIRSTNAMEWally ISACTIVE1 LASTNAMEKolcz objectObject (@15247ce1) PASSWORD2113 POSITIONSenior ColdFusion Architect ROLEadmin typenull uid3D083FE4-4B87-A1E6-B185-18D99C4193BD UNIQNAMEwkolcz sourceArray (@1537ef21) [0]mx.utils.ObjectProxy (@1516eee1) length1 statusCode0 resultArrCollundefined firstResultundefined From: Fotis Chatzinikos fotis.chatzini...@gmail.com Sent: Tuesday, January 27, 2009 7:42 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Setting data from web service to ArrayCollection. Why do not you try Alert.show(ObjectUtil.toString(e.result)) //replace e.result with e to see the whole event ObjectUtil is very useful in situation like this as it show a textual representation of any object graph On Tue, Jan 27, 2009 at 5:37 PM, valdhor valdhorli...@embarqmail.com wrote: Perhaps you have an arrayCollection of arrayCollections (What does the debugger show as the result type?). You may like to try... var resultArrColl:ArrayCollection = e.result.source; var firstResult:ArrayCollection = resultArrColl[0]; Alert.show(firstResult[0]); --- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: I moved my CFC and database to my localhost so I can debug the webservice output and see it. I am a wee bit confused. The results panel is saying something like this: e -- result -- source -- [0] -- firstName (etc) How do I set that local? I tried myData = e.result.source as ArrayCollection and then tried to trace myData.getItemAt(0).firstName but got an error. From: Wally Kolcz wko...@... Sent: Tuesday, January 27, 2009 5:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Setting data from web service to ArrayCollection. I am so trying to wrap my head around web services and use them for my projects since we Blue Dragon here at the U. I have my CFCs and they seem to work fine. However, I have no idea on how to set the 'return value' for a web service to an arraycollection to use it. I am used to RemoteObjects that I can just set and then use myData.getItemAt(0).name... I have a query to my database that returns one row of records through a web service. It is returned to my Flex app and I am trying to get it to an ArrayCollection variable for use in the application. I was watching a Lynda video that uses something like: myData = e.result.Tables.Table0.Rows as ArrayCollection. Now is that how you can set that row's columns at the value of the ArrayCollections? Or is this only going to work for the video scenerio? Thanks for any info! -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
Re: [flexcoders] Re: Setting data from web service to ArrayCollection.
Using Alert.show(ObjectUtil.toString(e.result)) This is what I got: (mx.collections::ArrayCollection)#0 filterFunction = (null) length = 1 list = (mx.collections::ArrayList)#1 length = 1 source = (Array)#2 [0] (Object)#3 DEPARTMENT = PRMC FIRSTNAME = Wally ISACTIVE = 1 LASTNAME = Kolcz PASSWORD = 2113 POSITION = Senior ColdFusion Architect ROLE = admin UNIQNAME = wkolcz uid = C7A50498-377F-0EE0-A170-18E1C0C2D677 sort = (null) source = (Array)#2 How can I set it to userData:ArrayCollection and then call the firstName variable? From: Fotis Chatzinikos fotis.chatzini...@gmail.com Sent: Tuesday, January 27, 2009 7:42 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Setting data from web service to ArrayCollection. Why do not you try Alert.show(ObjectUtil.toString(e.result)) //replace e.result with e to see the whole event ObjectUtil is very useful in situation like this as it show a textual representation of any object graph On Tue, Jan 27, 2009 at 5:37 PM, valdhor valdhorli...@embarqmail.com wrote: Perhaps you have an arrayCollection of arrayCollections (What does the debugger show as the result type?). You may like to try... var resultArrColl:ArrayCollection = e.result.source; var firstResult:ArrayCollection = resultArrColl[0]; Alert.show(firstResult[0]); --- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: I moved my CFC and database to my localhost so I can debug the webservice output and see it. I am a wee bit confused. The results panel is saying something like this: e -- result -- source -- [0] -- firstName (etc) How do I set that local? I tried myData = e.result.source as ArrayCollection and then tried to trace myData.getItemAt(0).firstName but got an error. From: Wally Kolcz wko...@... Sent: Tuesday, January 27, 2009 5:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Setting data from web service to ArrayCollection. I am so trying to wrap my head around web services and use them for my projects since we Blue Dragon here at the U. I have my CFCs and they seem to work fine. However, I have no idea on how to set the 'return value' for a web service to an arraycollection to use it. I am used to RemoteObjects that I can just set and then use myData.getItemAt(0).name... I have a query to my database that returns one row of records through a web service. It is returned to my Flex app and I am trying to get it to an ArrayCollection variable for use in the application. I was watching a Lynda video that uses something like: myData = e.result.Tables.Table0.Rows as ArrayCollection. Now is that how you can set that row's columns at the value of the ArrayCollections? Or is this only going to work for the video scenerio? Thanks for any info! -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
Re: [flexcoders] Flex. AIR and IPhone
Apologies for how long this email became, but I was reading around on the trusty wikipedia and wanted to try to clear up some things about the success of the existing web standards. I don't want this to come off as too much of a rant, but it proably will. Let's take a look at the history of CSS (http://en.wikipedia.org/wiki/CSS): CSS level 1: November 4, 1997 CSS level 2: May 12, 1998 CSS level 3: began 1998, still unfinished A brief excerpt: The CSS Working Group began tackling issues that had not been addressed with CSS level 1, resulting in the creation of CSS level 2 on November 4, 1997. It was published as a W3C Recommendation on May 12, 1998. *CSS level 3, which was started in 1998, is still under development as of 2008*. *In 2005 the CSS Working Groups decided to enforce the requirements for standards more strictly. This meant that already published standards like CSS 2.1, CSS 3 Selectors and CSS 3 Text were pulled back from Candidate Recommendation to Working Draft level.* And if you really want to have fun look at the half-assed implementation of CSS across the many browsers: http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(CSS). It's been 10 years since CSS 2 was written (10 years!) and yet there still isn't even consistent implementation of that. And CSS 3 implementation is a joke. Maybe HTML is better, let's look at that ( http://en.wikipedia.org/wiki/HTML#Version_history_of_the_standard): HTML 2: 1995 HTML 3.2 recommendation: January, 1997 HTML 4 recommendation: December, 1997 HTML 5 working draft: January 2008 (10 years!) Hmm, maybe we can look at ECMAScript, the standard controlling JavaScript development (http://en.wikipedia.org/wiki/ECMAScript) ECMAScript 1: June 1997 ECMAScript 2: June 1998 ECMAScript 3: December 1999 Added E4X to ECMAScript: June 2004 ECMAScript 4: scrapped ECMAScript Harmony: in development And now, finally, we'll look at the timeline of Flash/ActionScript: Flash Player 2: 1997 Flash Player 3: 1998 Flash Player 4: May, 1999 Flash Player 5: August 2000 ActionScript 1: September, 2000 Flash Player 6: March 2002 Flash Player 7: September 2003 ActionScript 2: September 2003 Flash Player 8: August 2005 Flah Player 9: June 2006 ActionScript 3: June 2006 Flash Player 10: October 2008 So for literally the past 10 years the standards bodies haven't been able to release a single completed specification. That goes for HTML, CSS, and ECMASCript (the closest would be the draft of the unimplemented HTML 5 that was released a year ago). The entire standards-based web is running on stuff that was written before the dot-com bubble burst! Now look at how Flash has progressed since 1999. That includes the complete evolution of ActionScript all the way from the very first version to the AS3 (including the recent Vector, etc enhancements that come with Player 10). The entire evolution of AS3 occurred after the last ECMAScript spec was written. CSS 3 started development in 1998 and still isn't finished. In that same time period we went from Flash Player 3 to 10. I'm not holding my breath for anything new coming out of these standards groups. 10 years and they can't write a specification. The entire world changes in 10 years. Doug On Tue, Jan 27, 2009 at 12:37 AM, Guy Morton g...@alchemy.com.au wrote: On 27/01/2009, at 6:10 PM, Sam Lai wrote: I think the issue here is that if Adobe/MS used SVG as a base instead of their proprietary XML dialects, then they won't be able to innovate and implement new features as quickly. I disagree, and cite the HTML web browser example again If they added proprietary extensions to SVG, there'll be a massive backlash as seen with IE and its CSS, JS and HTML extensions. IE is criticized because it is rubbish and *doesn't follow the standards*. If they try to get it into the standard, it will take ages to get it through the committee, and they will lose the competitive advantage of developing that feature in the first place. Unfortunately the standards process just does not keep up with innovation. But personally, I don't think it should - details should be thrashed out, and issues should be resolved in standards, particularly those that could not be foreseen during the initial implementation. Yes, that tends to happen and is fine...the point is though that there is a working towards a standard, which is not currently what's happening with Flash or Silverlight. Both are pretending SVG doesn't exist. Flash has some token support for it is the best anyone can say. I'm a believer of what Sebastian said - Competition is what drives technology forward, standards come after the war to clean up the mess, but they don't innovate. Again, i disagree, but then maybe I think more highly of humanity than you do... :-) What would be nice would be a SVG container for Flex/SL, and one that can reach out into the app and allow the app to reach in. Indeed. I'd be amazed if both MS and Adobe don't have a
Re: [flexcoders] Re: Modules
Hi Lorenzo - What you want to do is use the ready event of the module loader to add event listeners to your module. So in your main application, you want something like this: private function moduleReadyHandler(event:Event):void { if(moduleLoader.child is DesignBrowser) { moduleLoader.child.addEventListener(DesignBrowser.DESIGN_SELECTED, designSelectedHandler); } } private function designSelectedHandler(event:Event):void { trace('design selected' + event.target.name); } ... mx:ModuleLoader ready=moduleReadyHandler(event) id=moduleLoader/ In my application, I have a module called DesignBrowser. It dispatches a DESIGN_SELECTED event when the user selects a design. The module then loader listens for this event because I added an EventListener to the child of the module loader during the ready event. Hope this helps! Rob On Jan 27, 2009, at 7:20 AM, thelordsince1984 wrote: --- In flexcoders@yahoogroups.com, thelordsince1984 lore...@... wrote: Hi, i have a problem in my app.. i have a main application and here i create a custom module, a titlewindow with a close button... when i click the button i would unload the module...is it possible to listen for module events from the main app? how can i rich this goal? Thanks in advance Regards Lorenzo Anybody can help me? Suppose that i have a module.This module contains a title window and a close button. From the main app i load this module through a ModuleLoader.. then when i click in the close button module i would unload the module..how to do this? if i fire an event from the module the event remains into the module, is it true?the main app can't catch the event... please help me...
[flexcoders] How to convert RichTextEditor htmlText to a real HTML code?
Hi, I check the flex RichTextEditor htmlText property but it seem it is not a good html code. Do you know how to convert it to good html code? Do you know other flex Wysiwyg Editor with html preview feature? Thanks for help Mark
Re: [flexcoders] localconnection data encrypted?
On Monday 26 Jan 2009, Pete Appleby wrote: Is the data encrypted? If not, I assume that I must encrypt sensitive information myself. Does LocalConnection even use the network ? As opposed to some sort of shared memory access ? -- Tom Chiverton Helping to adaptively entrench magnetic patterns This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] html text | TextArea | ui tag
Hi I want to have this kind of look http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_nestedlists2 I made the following in TextArea mx:TextArea id=txtAccounts editable=false borderThickness=1 condenseWhite=true width=100% height=100% mx:htmlText ![CDATA[ ul liCoffee/li liTea/li ul liBlack tea/li liGreen tea/li ul liChina/li liAfrica/li /ul /ul liMilk/li /ul ]] /mx:htmlText /mx:TextArea But i do not get the desired result. Any pointers. Thanks ilikeflex
Re: [flexcoders] Re: Setting data from web service to ArrayCollection.
Try the following: userData:ArrayCollection = event.result as ArrayCollection ; Then it seems that the array contains untyped object (Dictionary/hashmap type) so: userData.getItemAt(0)[FIRSTNAME] should give you :Wally ; do not have a compiler in hand at the moment ... if the previous line does not work for any reason: var object:Object = userData.getItemAt(0) ; var firstName:String = object[FIRSTNAME] ; PS: I would recomment to change your backend script a bit in order to return an ArrayCollection of typed User objects PS2: Passwords are normally kept on the server and not transfered on the client , at least not in text form... On Tue, Jan 27, 2009 at 6:19 PM, Wally Kolcz wko...@isavepets.com wrote: Using Alert.show(ObjectUtil.toString(e.result)) This is what I got: (mx.collections::ArrayCollection)#0 filterFunction = (null) length = 1 list = (mx.collections::ArrayList)#1 length = 1 source = (Array)#2 [0] (Object)#3 DEPARTMENT = PRMC FIRSTNAME = Wally ISACTIVE = 1 LASTNAME = Kolcz PASSWORD = 2113 POSITION = Senior ColdFusion Architect ROLE = admin UNIQNAME = wkolcz uid = C7A50498-377F-0EE0-A170-18E1C0C2D677 sort = (null) source = (Array)#2 How can I set it to userData:ArrayCollection and then call the firstName variable? -- *From*: Fotis Chatzinikos fotis.chatzini...@gmail.com *Sent*: Tuesday, January 27, 2009 7:42 AM *To*: flexcoders@yahoogroups.com *Subject*: Re: [flexcoders] Re: Setting data from web service to ArrayCollection. Why do not you try Alert.show(ObjectUtil.toString(e.result)) //replace e.result with e to see the whole event ObjectUtil is very useful in situation like this as it show a textual representation of any object graph On Tue, Jan 27, 2009 at 5:37 PM, valdhor valdhorli...@embarqmail.comwrote: Perhaps you have an arrayCollection of arrayCollections (What does the debugger show as the result type?). You may like to try... var resultArrColl:ArrayCollection = e.result.source; var firstResult:ArrayCollection = resultArrColl[0]; Alert.show(firstResult[0]); --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Wally Kolcz wko...@... wrote: I moved my CFC and database to my localhost so I can debug the webservice output and see it. I am a wee bit confused. The results panel is saying something like this: e -- result -- source -- [0] -- firstName (etc) How do I set that local? I tried myData = e.result.source as ArrayCollection and then tried to trace myData.getItemAt(0).firstName but got an error. From: Wally Kolcz wko...@... Sent: Tuesday, January 27, 2009 5:30 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Setting data from web service to ArrayCollection. I am so trying to wrap my head around web services and use them for my projects since we Blue Dragon here at the U. I have my CFCs and they seem to work fine. However, I have no idea on how to set the 'return value' for a web service to an arraycollection to use it. I am used to RemoteObjects that I can just set and then use myData.getItemAt(0).name... I have a query to my database that returns one row of records through a web service. It is returned to my Flex app and I am trying to get it to an ArrayCollection variable for use in the application. I was watching a Lynda video that uses something like: myData = e.result.Tables.Table0.Rows as ArrayCollection. Now is that how you can set that row's columns at the value of the ArrayCollections? Or is this only going to work for the video scenerio? Thanks for any info! -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com, -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Re: html text | TextArea | ui tag
The htmlText in the TextArea control supports only a limited number of HTML tags; take a look at this blog post for more info: http://devharbor.blogspot.com/2008/12/display-html-file-in-flex-textarea.html I don't think the ul tag is supported; nor can it be nested. To create lists, you simply use the li tag. - Alex --- In flexcoders@yahoogroups.com, ilikeflex ilikef...@... wrote: Hi I want to have this kind of look http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_nestedlists2 I made the following in TextArea mx:TextArea id=txtAccounts editable=false borderThickness=1 condenseWhite=true width=100% height=100% mx:htmlText ![CDATA[ ul liCoffee/li liTea/li ul liBlack tea/li liGreen tea/li ul liChina/li liAfrica/li /ul /ul liMilk/li /ul ]] /mx:htmlText /mx:TextArea But i do not get the desired result. Any pointers. Thanks ilikeflex
[flexcoders] Looking to tweak a List control's drop indicator
Hello All, I'm looking to change the behavior/looks of the drop indicator when rearranging items in a List control. I understand that I can make a new dropIndicatorSkin (which I hope to do this in Flash). However, I'd also like to add some separation between the items in the list when I drag the item over a potential drop spot. What would happen is both the item above and below would shift apart a bit. Ideally, the individual items wouldn't change size, but if it made it easier, they could squash a bit. Any suggestions on how to do something like this? (I'm thinking there might be an API inside Flex to already deal with this.) Thanks.
Re: [flexcoders] Flex. AIR and IPhone
Thank you very much Doug, You show how the facts are meaningfull when we take the time to look backward. Doug McCune a écrit : Apologies for how long this email became, but I was reading around on the trusty wikipedia and wanted to try to clear up some things about the success of the existing web standards. I don't want this to come off as too much of a rant, but it proably will. Let's take a look at the history of CSS (http://en.wikipedia.org/wiki/CSS http://en.wikipedia.org/wiki/CSS): CSS level 1: November 4, 1997 CSS level 2: May 12, 1998 CSS level 3: began 1998, still unfinished A brief excerpt: The CSS Working Group began tackling issues that had not been addressed with CSS level 1, resulting in the creation of CSS level 2 on November 4, 1997. It was published as a W3C Recommendation on May 12, 1998. _CSS level 3, which was started in 1998, is still under development as of 2008_. _In 2005 the CSS Working Groups decided to enforce the requirements for standards more strictly. This meant that already published standards like CSS 2.1, CSS 3 Selectors and CSS 3 Text were pulled back from Candidate Recommendation to Working Draft level._ And if you really want to have fun look at the half-assed implementation of CSS across the many browsers: http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(CSS) http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28CSS%29. It's been 10 years since CSS 2 was written (10 years!) and yet there still isn't even consistent implementation of that. And CSS 3 implementation is a joke. Maybe HTML is better, let's look at that (http://en.wikipedia.org/wiki/HTML#Version_history_of_the_standard http://en.wikipedia.org/wiki/HTML#Version_history_of_the_standard): HTML 2: 1995 HTML 3.2 recommendation: January, 1997 HTML 4 recommendation: December, 1997 HTML 5 working draft: January 2008 (10 years!) Hmm, maybe we can look at ECMAScript, the standard controlling JavaScript development (http://en.wikipedia.org/wiki/ECMAScript http://en.wikipedia.org/wiki/ECMAScript) ECMAScript 1: June 1997 ECMAScript 2: June 1998 ECMAScript 3: December 1999 Added E4X to ECMAScript: June 2004 ECMAScript 4: scrapped ECMAScript Harmony: in development And now, finally, we'll look at the timeline of Flash/ActionScript: Flash Player 2: 1997 Flash Player 3: 1998 Flash Player 4: May, 1999 Flash Player 5: August 2000 ActionScript 1: September, 2000 Flash Player 6: March 2002 Flash Player 7: September 2003 ActionScript 2: September 2003 Flash Player 8: August 2005 Flah Player 9: June 2006 ActionScript 3: June 2006 Flash Player 10: October 2008 So for literally the past 10 years the standards bodies haven't been able to release a single completed specification. That goes for HTML, CSS, and ECMASCript (the closest would be the draft of the unimplemented HTML 5 that was released a year ago). The entire standards-based web is running on stuff that was written before the dot-com bubble burst! Now look at how Flash has progressed since 1999. That includes the complete evolution of ActionScript all the way from the very first version to the AS3 (including the recent Vector, etc enhancements that come with Player 10). The entire evolution of AS3 occurred after the last ECMAScript spec was written. CSS 3 started development in 1998 and still isn't finished. In that same time period we went from Flash Player 3 to 10. I'm not holding my breath for anything new coming out of these standards groups. 10 years and they can't write a specification. The entire world changes in 10 years. Doug On Tue, Jan 27, 2009 at 12:37 AM, Guy Morton g...@alchemy.com.au mailto:g...@alchemy.com.au wrote: On 27/01/2009, at 6:10 PM, Sam Lai wrote: I think the issue here is that if Adobe/MS used SVG as a base instead of their proprietary XML dialects, then they won't be able to innovate and implement new features as quickly. I disagree, and cite the HTML web browser example again If they added proprietary extensions to SVG, there'll be a massive backlash as seen with IE and its CSS, JS and HTML extensions. IE is criticized because it is rubbish and *doesn't follow the standards*. If they try to get it into the standard, it will take ages to get it through the committee, and they will lose the competitive advantage of developing that feature in the first place. Unfortunately the standards process just does not keep up with innovation. But personally, I don't think it should - details should be thrashed out, and issues should be resolved in standards, particularly those that could not be foreseen during the initial implementation. Yes, that tends to happen and is fine...the point is though that there is a working towards a standard, which is not currently what's happening with Flash or Silverlight. Both are pretending SVG doesn't exist. Flash has some
[flexcoders] Re: Modules
--- In flexcoders@yahoogroups.com, Rob Kunkle r...@... wrote: Hi Lorenzo - What you want to do is use the ready event of the module loader to add event listeners to your module. So in your main application, you want something like this: private function moduleReadyHandler(event:Event):void { if(moduleLoader.child is DesignBrowser) { moduleLoader.child.addEventListener(DesignBrowser.DESIGN_SELECTED, designSelectedHandler); } } private function designSelectedHandler(event:Event):void { trace('design selected' + event.target.name); } ... mx:ModuleLoader ready=moduleReadyHandler(event) id=moduleLoader/ In my application, I have a module called DesignBrowser. It dispatches a DESIGN_SELECTED event when the user selects a design. The module then loader listens for this event because I added an EventListener to the child of the module loader during the ready event. Hope this helps! Rob On Jan 27, 2009, at 7:20 AM, thelordsince1984 wrote: --- In flexcoders@yahoogroups.com, thelordsince1984 loreboa@ wrote: Hi, i have a problem in my app.. i have a main application and here i create a custom module, a titlewindow with a close button... when i click the button i would unload the module...is it possible to listen for module events from the main app? how can i rich this goal? Thanks in advance Regards Lorenzo Anybody can help me? Suppose that i have a module.This module contains a title window and a close button. From the main app i load this module through a ModuleLoader.. then when i click in the close button module i would unload the module..how to do this? if i fire an event from the module the event remains into the module, is it true?the main app can't catch the event... please help me... thanks Rob you give me a big help.. can i ask you an ther question? i would implement an application like igoogle..but with flex! to do this i have some modules... my app structure looks like this: 1) the main app 2) a main panel (this a child of the main app) 2) n modules so when i start the main app i would load modules on demand into the main panel and then i would drag and drop them to change their position..is it possible to do? can you give me some guide lines? And is it possible to write my personal ModuleLoader in Actionscript3?Can i create i new one and then use it to load all or some of the modules tha i have created? Thanks, thanks thanks Regards Lorenzo
Re: [flexcoders] Re: How to get data from many rows in DataGrid?
It's an array of the objects from the dataprovider. No demo required. Try putting the code in, then using the debugger to stop execution at that line so you can examine it more closely. On Mon, Jan 26, 2009 at 11:26 PM, markflex2007 markflex2...@yahoo.comwrote: public function get selectedItems():Array what the Array look like? I have not see a demo -- Howard Fore, howard.f...@hofo.com The universe tends toward maximum irony. Don't push it. - Jeff Atwood
[flexcoders] Re: html text | TextArea | ui tag
Hi Alex Thanks for the information. Is their any workaround .If you want to display such list. Thanks ilikeflex --- In flexcoders@yahoogroups.com, oneworld95 oneworl...@... wrote: The htmlText in the TextArea control supports only a limited number of HTML tags; take a look at this blog post for more info: http://devharbor.blogspot.com/2008/12/display-html-file-in-flex- textarea.html I don't think the ul tag is supported; nor can it be nested. To create lists, you simply use the li tag. - Alex --- In flexcoders@yahoogroups.com, ilikeflex ilikeflex@ wrote: Hi I want to have this kind of look http://www.w3schools.com/tags/tryit.asp? filename=tryhtml_nestedlists2 I made the following in TextArea mx:TextArea id=txtAccounts editable=false borderThickness=1 condenseWhite=true width=100% height=100% mx:htmlText ![CDATA[ ul liCoffee/li liTea/li ul liBlack tea/li liGreen tea/li ul liChina/li liAfrica/li /ul /ul liMilk/li /ul ]] /mx:htmlText /mx:TextArea But i do not get the desired result. Any pointers. Thanks ilikeflex
Re: [flexcoders] Flex. AIR and IPhone
There's not much to add.But I'm afraid that's precisely what frightens standards' zealots: things change too fast, and it's reassuring to have standards slow things down a little bit sometimes. Hide your fear with a little standard/openness confusion, some big-papa-mama-sucky-corporation FUD, and you're good to go. Standards, openness, corporations, let's not confuse everything. Adobe and Flex are on the right path to provide us with the best of both innovation and openness worlds. And they've come so far in way less time that it has taken Sun to open up Java. Now the last thing I have to say is, if some of you are not happy with the way Adobe deals with openness, there is a webmeeting next week where you will be able to voice your constructive feedback directly to the Flex SDK team: http://www.adobeforums.com/webx?13@@.59b7a2da Now if you really want to point at some anti-open big corporation, maybe Apple should be your target regarding the original question in this thread. But that's completely out-of-scope here. Sébastien Arbogast http://sebastien-arbogast.com 2009/1/27 Hervé Crespel crespel.he...@wanadoo.fr Thank you very much Doug, You show how the facts are meaningfull when we take the time to look backward. Doug McCune a écrit : Apologies for how long this email became, but I was reading around on the trusty wikipedia and wanted to try to clear up some things about the success of the existing web standards. I don't want this to come off as too much of a rant, but it proably will. Let's take a look at the history of CSS (http://en.wikipedia.org/wiki/CSS http://en.wikipedia.org/wiki/CSS): CSS level 1: November 4, 1997 CSS level 2: May 12, 1998 CSS level 3: began 1998, still unfinished A brief excerpt: The CSS Working Group began tackling issues that had not been addressed with CSS level 1, resulting in the creation of CSS level 2 on November 4, 1997. It was published as a W3C Recommendation on May 12, 1998. _CSS level 3, which was started in 1998, is still under development as of 2008_. _In 2005 the CSS Working Groups decided to enforce the requirements for standards more strictly. This meant that already published standards like CSS 2.1, CSS 3 Selectors and CSS 3 Text were pulled back from Candidate Recommendation to Working Draft level._ And if you really want to have fun look at the half-assed implementation of CSS across the many browsers: http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(CSS) http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28CSS%29. It's been 10 years since CSS 2 was written (10 years!) and yet there still isn't even consistent implementation of that. And CSS 3 implementation is a joke. Maybe HTML is better, let's look at that (http://en.wikipedia.org/wiki/HTML#Version_history_of_the_standard http://en.wikipedia.org/wiki/HTML#Version_history_of_the_standard): HTML 2: 1995 HTML 3.2 recommendation: January, 1997 HTML 4 recommendation: December, 1997 HTML 5 working draft: January 2008 (10 years!) Hmm, maybe we can look at ECMAScript, the standard controlling JavaScript development (http://en.wikipedia.org/wiki/ECMAScript http://en.wikipedia.org/wiki/ECMAScript) ECMAScript 1: June 1997 ECMAScript 2: June 1998 ECMAScript 3: December 1999 Added E4X to ECMAScript: June 2004 ECMAScript 4: scrapped ECMAScript Harmony: in development And now, finally, we'll look at the timeline of Flash/ActionScript: Flash Player 2: 1997 Flash Player 3: 1998 Flash Player 4: May, 1999 Flash Player 5: August 2000 ActionScript 1: September, 2000 Flash Player 6: March 2002 Flash Player 7: September 2003 ActionScript 2: September 2003 Flash Player 8: August 2005 Flah Player 9: June 2006 ActionScript 3: June 2006 Flash Player 10: October 2008 So for literally the past 10 years the standards bodies haven't been able to release a single completed specification. That goes for HTML, CSS, and ECMASCript (the closest would be the draft of the unimplemented HTML 5 that was released a year ago). The entire standards-based web is running on stuff that was written before the dot-com bubble burst! Now look at how Flash has progressed since 1999. That includes the complete evolution of ActionScript all the way from the very first version to the AS3 (including the recent Vector, etc enhancements that come with Player 10). The entire evolution of AS3 occurred after the last ECMAScript spec was written. CSS 3 started development in 1998 and still isn't finished. In that same time period we went from Flash Player 3 to 10. I'm not holding my breath for anything new coming out of these standards groups. 10 years and they can't write a specification. The entire world changes in 10 years. Doug On Tue, Jan 27, 2009 at 12:37 AM, Guy Morton g...@alchemy.com.auguy%40alchemy.com.au mailto:g...@alchemy.com.au guy%40alchemy.com.au
[flexcoders] Re: html text | TextArea | ui tag
Look on this page: http://livedocs.adobe.com/flex/3/langref/flash/text/TextField.html#htmlText The textformat tag and its attributes should get you what you need. Look at the indent, leftmargin, etc. to place your nested li items where you need them. And get rid of the ul tags. - Alex --- In flexcoders@yahoogroups.com, ilikeflex ilikef...@... wrote: Hi Alex Thanks for the information. Is their any workaround .If you want to display such list. Thanks ilikeflex --- In flexcoders@yahoogroups.com, oneworld95 oneworld95@ wrote: The htmlText in the TextArea control supports only a limited number of HTML tags; take a look at this blog post for more info: http://devharbor.blogspot.com/2008/12/display-html-file-in-flex- textarea.html I don't think the ul tag is supported; nor can it be nested. To create lists, you simply use the li tag. - Alex --- In flexcoders@yahoogroups.com, ilikeflex ilikeflex@ wrote: Hi I want to have this kind of look http://www.w3schools.com/tags/tryit.asp? filename=tryhtml_nestedlists2 I made the following in TextArea mx:TextArea id=txtAccounts editable=false borderThickness=1 condenseWhite=true width=100% height=100% mx:htmlText ![CDATA[ ul liCoffee/li liTea/li ul liBlack tea/li liGreen tea/li ul liChina/li liAfrica/li /ul /ul liMilk/li /ul ]] /mx:htmlText /mx:TextArea But i do not get the desired result. Any pointers. Thanks ilikeflex
Re: [flexcoders] Go and Vote for beter Flex builder! (Cache Buster)
Anyone have any suggestions of good places to learn about using ANT, particularly in context of Flex's compiler? Alan I'm not sure if it is necessary to change FlexBuilder to do this. Have you tried a ant script running as a builder before your flex build.
Re: [flexcoders] Re: ComboBox selectedIndex revisited
I don't know why you say there's a lot of stuff happening. It's just using binding (in the form of a binding function) to set an initial selection. Seems completely legitimate to me. The fact that it's a function rather than a direct reference is because of the well-known ComboBox limitations with non-primitive objects. Yes, the binding function does fire when expected, but I haven't debugged ComboBox itself. I have the workaround I showed, but if I find time I'll try to set up a test case. On Tue, Jan 27, 2009 at 8:04 AM, Amy amyblankens...@bellsouth.net wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tracy Spratt tspr...@... wrote: You have a lot of stuff happening in there. Did you debug it to see why it was not working? Particularly the computeSelectedDateRangeIndex() function? Was it being called when you expected? I agree with Tracy. I would expect that to only fire when there's a change event on one of the variables being used as a parameter for it. Are those variables bindable? Could there be a case where you _think_ they changed (i.e. you changed the underlying private variable without going through the setter), but the setter doesn't _know_ they changed?
Re: [flexcoders] Re: Setting data from web service to ArrayCollection.
I seem to be missing something. I tried the suggested way: public function loginHandler(e:ResultEvent):void { userData = e.result as ArrayCollection; var object:Object = userData.getItemAt(0) ; var firstName:String = object[FIRSTNAME] ; Alert.show(firstName); } and I am getting this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at index/loginHandler() at index/___index_Operation3_result() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler() at mx.rpc::Responder/result() at mx.rpc::AsyncRequest/acknowledge() at DirectHTTPMessageResponder/completeHandler() at flash.events::EventDispatcher/dispatchEventFunction() How can I change my backend script a bit in order to return an ArrayCollection of typed User objects? Any examples? Also, I normally don't return all user info, but just using '*' till I can get this figured out: Thanks for the help so far From: Fotis Chatzinikos fotis.chatzini...@gmail.com Sent: Tuesday, January 27, 2009 8:49 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Setting data from web service to ArrayCollection. Try the following: userData:ArrayCollection = event.result as ArrayCollection ; Then it seems that the array contains untyped object (Dictionary/hashmap type) so: userData.getItemAt(0)[FIRSTNAME] should give you :Wally ; do not have a compiler in hand at the moment ... if the previous line does not work for any reason: var object:Object = userData.getItemAt(0) ; var firstName:String = object[FIRSTNAME] ; PS: I would recomment to change your backend script a bit in order to return an ArrayCollection of typed User objects PS2: Passwords are normally kept on the server and not transfered on the client , at least not in text form... On Tue, Jan 27, 2009 at 6:19 PM, Wally Kolcz wko...@isavepets.com wrote: Using Alert.show(ObjectUtil.toString(e.result)) This is what I got: (mx.collections::ArrayCollection)#0 filterFunction = (null) length = 1 list = (mx.collections::ArrayList)#1 length = 1 source = (Array)#2 [0] (Object)#3 DEPARTMENT = PRMC FIRSTNAME = Wally ISACTIVE = 1 LASTNAME = Kolcz PASSWORD = 2113 POSITION = Senior ColdFusion Architect ROLE = admin UNIQNAME = wkolcz uid = C7A50498-377F-0EE0-A170-18E1C0C2D677 sort = (null) source = (Array)#2 How can I set it to userData:ArrayCollection and then call the firstName variable? From: Fotis Chatzinikos fotis.chatzini...@gmail.com Sent: Tuesday, January 27, 2009 7:42 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Setting data from web service to ArrayCollection. Why do not you try Alert.show(ObjectUtil.toString(e.result)) //replace e.result with e to see the whole event ObjectUtil is very useful in situation like this as it show a textual representation of any object graph On Tue, Jan 27, 2009 at 5:37 PM, valdhor valdhorli...@embarqmail.com wrote: Perhaps you have an arrayCollection of arrayCollections (What does the debugger show as the result type?). You may like to try... var resultArrColl:ArrayCollection = e.result.source; var firstResult:ArrayCollection = resultArrColl[0]; Alert.show(firstResult[0]); --- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: I moved my CFC and database to my localhost so I can debug the webservice output and see it. I am a wee bit confused. The results panel is saying something like this: e -- result -- source -- [0] -- firstName (etc) How do I set that local? I tried myData = e.result.source as ArrayCollection and then tried to trace myData.getItemAt(0).firstName but got an error. From: Wally Kolcz wko...@... Sent: Tuesday, January 27, 2009 5:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Setting data from web service to ArrayCollection. I am so trying to wrap my head around web services and use them for my projects since we Blue Dragon here at the U. I have my CFCs and they seem to work fine. However, I have no idea on how to set the 'return value' for a web service to an arraycollection to use it. I am used to RemoteObjects that I can just set and then use myData.getItemAt(0).name... I have a query to my database that returns one row of records through a web service. It is returned to my Flex app and I am trying
[flexcoders] Re: html text | TextArea | ui tag
Hi Alex Thanks for good pointer. I will explore this and i think this should work. Great ilikeflex --- In flexcoders@yahoogroups.com, oneworld95 oneworl...@... wrote: Look on this page: http://livedocs.adobe.com/flex/3/langref/flash/text/TextField.html#htm lText The textformat tag and its attributes should get you what you need. Look at the indent, leftmargin, etc. to place your nested li items where you need them. And get rid of the ul tags. - Alex --- In flexcoders@yahoogroups.com, ilikeflex ilikeflex@ wrote: Hi Alex Thanks for the information. Is their any workaround .If you want to display such list. Thanks ilikeflex --- In flexcoders@yahoogroups.com, oneworld95 oneworld95@ wrote: The htmlText in the TextArea control supports only a limited number of HTML tags; take a look at this blog post for more info: http://devharbor.blogspot.com/2008/12/display-html-file-in-flex- textarea.html I don't think the ul tag is supported; nor can it be nested. To create lists, you simply use the li tag. - Alex --- In flexcoders@yahoogroups.com, ilikeflex ilikeflex@ wrote: Hi I want to have this kind of look http://www.w3schools.com/tags/tryit.asp? filename=tryhtml_nestedlists2 I made the following in TextArea mx:TextArea id=txtAccounts editable=false borderThickness=1 condenseWhite=true width=100% height=100% mx:htmlText ![CDATA[ ul liCoffee/li liTea/li ul liBlack tea/li liGreen tea/li ul liChina/li liAfrica/li /ul /ul liMilk/li /ul ]] /mx:htmlText /mx:TextArea But i do not get the desired result. Any pointers. Thanks ilikeflex
Re: [flexcoders] Flex 3.3
Yes, it will be a separate download. We're also going to make this strategy better in Flex 4. Matt On 1/27/09 1:29 AM, Tom Chiverton tom.chiver...@halliwells.com wrote: On Monday 26 Jan 2009, Matt Chotin wrote: It's all bug fixes, and not a huge number of them. We're not going to have an associated Flex Builder release either, just the SDK (though we'll get the charts updated). So how will the chart updates be released ? In the past, the only way to get them was to install Builder and rip them out by hand. Are they now, finally, going to be available as a separate download ?
[flexcoders] Re: Flex 3.3
So, 3.3 will *not* apply to eclipse FB plugin? Jeff --- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote: It's all bug fixes, and not a huge number of them. We're not going to have an associated Flex Builder release either, just the SDK (though we'll get the charts updated). Matt On 1/26/09 1:18 PM, tntomek tnto...@... wrote: Looks like we finally have official 3.3 SDK builds out. http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 This seems to have been a relabeling as changes between last 3.2 build and 3.3 build are very minor. Does anyone know what features or changes 3.3 will bring us?
Re: [flexcoders] Re: Flex 3.3
Correct On 1/27/09 9:44 AM, securenetfreedom nv1...@gmail.com wrote: So, 3.3 will *not* apply to eclipse FB plugin? Jeff --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mcho...@... wrote: It's all bug fixes, and not a huge number of them. We're not going to have an associated Flex Builder release either, just the SDK (though we'll get the charts updated). Matt On 1/26/09 1:18 PM, tntomek tnto...@... wrote: Looks like we finally have official 3.3 SDK builds out. http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 This seems to have been a relabeling as changes between last 3.2 build and 3.3 build are very minor. Does anyone know what features or changes 3.3 will bring us?
RE: [flexcoders] Re: Flex 3.3
I´cant found the releases notes. _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Matt Chotin Sent: Tuesday, January 27, 2009 3:56 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex 3.3 Correct On 1/27/09 9:44 AM, securenetfreedom nv1...@gmail. mailto:nv1000%40gmail.com com wrote: So, 3.3 will *not* apply to eclipse FB plugin? Jeff --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mcho...@... wrote: It's all bug fixes, and not a huge number of them. We're not going to have an associated Flex Builder release either, just the SDK (though we'll get the charts updated). Matt On 1/26/09 1:18 PM, tntomek tnto...@... wrote: Looks like we finally have official 3.3 SDK builds out. http://opensource. http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 adobe.com/wiki/display/flexsdk/Download+Flex+3 This seems to have been a relabeling as changes between last 3.2 build and 3.3 build are very minor. Does anyone know what features or changes 3.3 will bring us?
Re: [flexcoders] Re: Flex 3.3
We haven't shipped yet :-) still a few weeks away. On 1/27/09 10:03 AM, Andres Serral aser...@gmail.com wrote: I´cant found the releases notes. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Matt Chotin Sent: Tuesday, January 27, 2009 3:56 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex 3.3 Correct On 1/27/09 9:44 AM, securenetfreedom nv1...@gmail.com mailto:nv1000%40gmail.com wrote: So, 3.3 will *not* apply to eclipse FB plugin? Jeff --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mcho...@... wrote: It's all bug fixes, and not a huge number of them. We're not going to have an associated Flex Builder release either, just the SDK (though we'll get the charts updated). Matt On 1/26/09 1:18 PM, tntomek tnto...@... wrote: Looks like we finally have official 3.3 SDK builds out. http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 This seems to have been a relabeling as changes between last 3.2 build and 3.3 build are very minor. Does anyone know what features or changes 3.3 will bring us?
Re: [flexcoders] Flex. AIR and IPhone
Just so no one misses it that meeting is tomorrow! On Tue, Jan 27, 2009 at 12:17 PM, Sebastien ARBOGAST sebastien.arbog...@gmail.com wrote: Now the last thing I have to say is, if some of you are not happy with the way Adobe deals with openness, there is a webmeeting next week where you will be able to voice your constructive feedback directly to the Flex SDK team: http://www.adobeforums.com/webx?13@@.59b7a2da .
[flexcoders] OlapDataGrid like headers using ADG
Is it possible to have 'split' or 'colspan'-ed headers without having to resort to serious column rework? Something like: http://livedocs.adobe.com/flex/3/html/help.html?content=olapdatagrid_2.html I've tried and tried to find any resources for this but all seem to point to Alex's Split Column example. http://blogs.adobe.com/aharui/SplitColumns/dg.swf . Since Alex wrote that post with Flex 2 in mind, I'd be curious to know if this has somehow been solved in Flex 3. While this works, it's nowhere near as slick as OlapDataGrid. |2009| |Q1-||-Q2| |Jan|Feb|Mar||Apr|May|Jun| -- | 0 | 1 | 1 || 2 | 4 | 8 | Sorting or selecting any of the aggregate time (Years or quarters) isn't important, the leaf (Months) have the real data. I am leaning towards creating fake headers that would line up with the single row headers as that seems to keep the ADG more true to itself for any native support it offers (multi column sort/resize/show hide). Is this a good idea? I am just starting this project and have a lot of features left to implement and it seems like the complexity of using the ADG is exponential as you try anything that isn't supported out of the box.
[flexcoders] Advanced DataGrid sorting
Hi there, I need to sort the advanced grid but I want the sort apply only certain nodes of data. For example Group 0 contains 10 items which it makes sense to sort while Group 1 contain items which should always remain in the same sequence. The sequence should not even change if the sort changes from ascending to descending. In other words, the sort should only affect certain groups of data. From the docs, it looks like the sortCompareFunction cannot accomplish this since it does not expose the characteristics of the current sort - it just determines the sequence of two elements. What is the easiest way to do this? Is it possible to do this while still utilizing the sort column header renderers that indicate the current sort settings? Thanks in advance!!! Denis
Re: [flexcoders] Go and Vote for beter Flex builder! (Cache Buster)
ant.apache.org is a good place to start. The replace task allows you to replace strings in a file. The buildNumber task gives you a updated buildNumber per build. I looked into it, and i start to think that Cato has a valid point though. It is not easy and it is not as perfect as a Flex Builder internal solution could be. So lets all sign his petition :) Ralf. On Tue, Jan 27, 2009 at 6:24 PM, Alan K ultr...@gmail.com wrote: Anyone have any suggestions of good places to learn about using ANT, particularly in context of Flex's compiler? Alan I'm not sure if it is necessary to change FlexBuilder to do this. Have you tried a ant script running as a builder before your flex build.
Re: [flexcoders] Flex. AIR and IPhone
Here, here! Doug has it exactly right. Innovation flies in the face of standards, and by its success, can become a kind of standard, even if it's not the standard. Lots of standards become that way after the fact. Even when the success is, well, questionable, it can become a standard after the fact. The NTSC/VC-1 with Microsoft comes to mind. The Blu-Ray/HD-DVD war had as much to do with H.264 vs. VC-1 video standards as it did the actual disc standards. It is easy enough to argue that Microsoft is the great boat anchor of web standards. Fine. I can see lots of business reasons for that. Whether it's open source or Adobe moving ahead anyway, that's another business decision. But innovation is going to happen, just as it always has, with or without a committee standard. That's great news. Will Flash get on the iPhone? Which is a proprietary, non-standard, but-now-a-standard-unto-itself platform? Maybe, maybe not, for techincal and/or business reasons. Is the Flash platform being proprietary bad? No. Is having to learn to program the iPhone SDK bad? No. My point? Don't hold your breath, or waste any breath over committee standards. It's really okay to just enjoy the innovation that is taking place, proprietary or not. It's also okay to develop on more than one platform. - Cole From: Doug McCune d...@dougmccune.com To: flexcoders@yahoogroups.com Sent: Tuesday, January 27, 2009 9:23:11 AM Subject: Re: [flexcoders] Flex. AIR and IPhone Apologies for how long this email became, but I was reading around on the trusty wikipedia and wanted to try to clear up some things about the success of the existing web standards. I don't want this to come off as too much of a rant, but it proably will. Let's take a look at the history of CSS (http://en.wikipedia.org/wiki/CSS): CSS level 1: November 4, 1997 CSS level 2: May 12, 1998 CSS level 3: began 1998, still unfinished A brief excerpt: The CSS Working Group began tackling issues that had not been addressed with CSS level 1, resulting in the creation of CSS level 2 on November 4, 1997. It was published as a W3C Recommendation on May 12, 1998. CSS level 3, which was started in 1998, is still under development as of 2008. In 2005 the CSS Working Groups decided to enforce the requirements for standards more strictly. This meant that already published standards like CSS 2.1, CSS 3 Selectors and CSS 3 Text were pulled back from Candidate Recommendation to Working Draft level. And if you really want to have fun look at the half-assed implementation of CSS across the many browsers: http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(CSS). It's been 10 years since CSS 2 was written (10 years!) and yet there still isn't even consistent implementation of that. And CSS 3 implementation is a joke. Maybe HTML is better, let's look at that (http://en.wikipedia.org/wiki/HTML#Version_history_of_the_standard): HTML 2: 1995 HTML 3.2 recommendation: January, 1997 HTML 4 recommendation: December, 1997 HTML 5 working draft: January 2008 (10 years!) Hmm, maybe we can look at ECMAScript, the standard controlling JavaScript development (http://en.wikipedia.org/wiki/ECMAScript) ECMAScript 1: June 1997 ECMAScript 2: June 1998 ECMAScript 3: December 1999 Added E4X to ECMAScript: June 2004 ECMAScript 4: scrapped ECMAScript Harmony: in development And now, finally, we'll look at the timeline of Flash/ActionScript: Flash Player 2: 1997 Flash Player 3: 1998 Flash Player 4: May, 1999 Flash Player 5: August 2000 ActionScript 1: September, 2000 Flash Player 6: March 2002 Flash Player 7: September 2003 ActionScript 2: September 2003 Flash Player 8: August 2005 Flah Player 9: June 2006 ActionScript 3: June 2006 Flash Player 10: October 2008 So for literally the past 10 years the standards bodies haven't been able to release a single completed specification. That goes for HTML, CSS, and ECMASCript (the closest would be the draft of the unimplemented HTML 5 that was released a year ago). The entire standards-based web is running on stuff that was written before the dot-com bubble burst! Now look at how Flash has progressed since 1999. That includes the complete evolution of ActionScript all the way from the very first version to the AS3 (including the recent Vector, etc enhancements that come with Player 10). The entire evolution of AS3 occurred after the last ECMAScript spec was written. CSS 3 started development in 1998 and still isn't finished. In that same time period we went from Flash Player 3 to 10. I'm not holding my breath for anything new coming out of these standards groups. 10 years and they can't write a specification. The entire world changes in 10 years. Doug
[flexcoders] How to compile multiple modules with mxmlc ant task
Hi, Is it possible to give multiple mxml files under the file property of mxmlc task ? Without this my build.xml is becoming very big due to repetition of many mxmlc sections, the only difference being the value of the file property. Thanks, Aejaz
[flexcoders] Re: Setting data from web service to ArrayCollection.
--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: I moved my CFC and database to my localhost so I can debug the webservice output and see it. I am a wee bit confused. The results panel is saying something like this: e -- result -- source -- [0] -- firstName (etc) How do I set that local? I tried myData = e.result.source as ArrayCollection and then tried to trace myData.getItemAt(0).firstName but got an error. Try myData = ArrayCollection(e.result.source); Your CFC may be returning an Array.
[flexcoders] Re: Question about popup
--- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2...@... wrote: Here is my code: var c:Classes = new Classes(); var popupWindow:TitleWindow = new TitleWindow; this line works fine: popupWindow = c.showPopupWindow(DisplayObject(this), saveAsPriceList); var saveAs:saveAsPriceList = new saveAsPriceList; but this wouldn't compile: popupWindow = c.showPopupWindow(DisplayObject(this), saveAs); try: //use the full path if this is not in the same //package as the calling code var saveAs:Class = saveAsPriceList; HTH; Amy
[flexcoders] Re: Setting data from web service to ArrayCollection.
--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: I seem to be missing something. I tried the suggested way: public function loginHandler(e:ResultEvent):void { userData = e.result as ArrayCollection; var object:Object = userData.getItemAt(0) ; var firstName:String = object[FIRSTNAME] ; Alert.show(firstName); } and I am getting this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at index/loginHandler() at index/___index_Operation3_result() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal:: dispatchRpcEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::re sultHandler() at mx.rpc::Responder/result() at mx.rpc::AsyncRequest/acknowledge() at DirectHTTPMessageResponder/completeHandler() at flash.events::EventDispatcher/dispatchEventFunction() How can I change my backend script a bit in order to return an ArrayCollection of typed User objects? Any examples? You might find this example useful: http://flexdiary.blogspot.com/2009/01/lazy-loading-tree-example-file- posted.html
[flexcoders] Flex and asSQL - Crossdomain issue?
Hi everyone, Yesterday I developed my first flex 3 app and placed the Release build in the webapps folder of tomcat (5.5.26). The application is quite simple and just needs to populate the datagrid with the data in MySQL (which is on the same machine on port 3306). I have used asSQL to communicate. When run from flex builder, I get the app to work perfectly. But on accessing the URL http://gauravt-xp:8080/MyAppsName/MyHTML.html;, I get a blank datagrid. My suspicion is that this is related to crossdomain.xml file. Am I right with this? If yes where should I place it? I searched on the forum and could not find a definitive answer. The crossdomain file that I have created looks like: ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=gauravt-xp to-ports=8080,3306 / /cross-domain-policy I tried placing it in the webapps and webapps/ROOT folder of tomcat but data was not populated. Thanks in advance for the help. Gaurav -- View this message in context: http://www.nabble.com/Flex-and-asSQL---Crossdomain-issue--tp21691913p21691913.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] Flex and asSQL - Crossdomain issue?
I would suspect the same, add a crossdomain in the root of your site (or you can use a policy element to put it somewhere else but more fiddly) In your cross domain add the 'all ports', if you are just 'testing' you can leave it wide open : cross-domain-policy allow-access-from domain=* to-ports=*/ /cross-domain-policy It should be accessible via http://gauravt-xp/crossdomain.xml you could try http://gauravt-xp:8080/crossdomain.xml but I'm not sure it will work. I'm pretty sure flash requests the crossdomain file on port 80 (maybe override-able by a policy file), but my sites all run on port 80 so not messed with it in a while. A good way to see whats going on is using the Charles httpd debugging proxy to monitor the traffic and see if it request a cross domain xml file, if it does and your applications fails right after that then you can be sure it's a silent failure due to the policy file. Cheers Grant ... b l u e t u b e i n t e r a c t i v e. .: Development solutions for creatives :. .: grant davies .: 404.428.6839 (c) .: 404.921.9550 (F) gr...@bluetubeinteractive.com http://www.bluetubeinteractive.com From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of GeeTee Sent: Tuesday, January 27, 2009 1:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex and asSQL - Crossdomain issue? Hi everyone, Yesterday I developed my first flex 3 app and placed the Release build in the webapps folder of tomcat (5.5.26). The application is quite simple and just needs to populate the datagrid with the data in MySQL (which is on the same machine on port 3306). I have used asSQL to communicate. When run from flex builder, I get the app to work perfectly. But on accessing the URL http://gauravt-xp:8080/MyAppsName/MyHTML.html;, I get a blank datagrid. My suspicion is that this is related to crossdomain.xml file. Am I right with this? If yes where should I place it? I searched on the forum and could not find a definitive answer. The crossdomain file that I have created looks like: ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=gauravt-xp to-ports=8080,3306 / /cross-domain-policy I tried placing it in the webapps and webapps/ROOT folder of tomcat but data was not populated. Thanks in advance for the help. Gaurav -- View this message in context: http://www.nabble.com/Flex-and-asSQL---Crossdomain-issue--tp21691913p216 91913.html Sent from the FlexCoders mailing list archive at Nabble.com. No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.10.13/1912 - Release Date: 1/27/2009 7:26 AM image001.png
[flexcoders] Re: Flex and asSQL - Crossdomain issue?
Make sure which player you are using? The cross domain works differently with player 9 and player 10. --- In flexcoders@yahoogroups.com, Grant Davies gr...@... wrote: I would suspect the same, add a crossdomain in the root of your site (or you can use a policy element to put it somewhere else but more fiddly) In your cross domain add the 'all ports', if you are just 'testing' you can leave it wide open : cross-domain-policy allow-access-from domain=* to-ports=*/ /cross-domain-policy It should be accessible via http://gauravt-xp/crossdomain.xml you could try http://gauravt-xp:8080/crossdomain.xml but I'm not sure it will work. I'm pretty sure flash requests the crossdomain file on port 80 (maybe override-able by a policy file), but my sites all run on port 80 so not messed with it in a while. A good way to see whats going on is using the Charles httpd debugging proxy to monitor the traffic and see if it request a cross domain xml file, if it does and your applications fails right after that then you can be sure it's a silent failure due to the policy file. Cheers Grant ... b l u e t u b e i n t e r a c t i v e. .: Development solutions for creatives :. .: grant davies .: 404.428.6839 (c) .: 404.921.9550 (F) gr...@... http://www.bluetubeinteractive.com From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of GeeTee Sent: Tuesday, January 27, 2009 1:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex and asSQL - Crossdomain issue? Hi everyone, Yesterday I developed my first flex 3 app and placed the Release build in the webapps folder of tomcat (5.5.26). The application is quite simple and just needs to populate the datagrid with the data in MySQL (which is on the same machine on port 3306). I have used asSQL to communicate. When run from flex builder, I get the app to work perfectly. But on accessing the URL http://gauravt-xp:8080/MyAppsName/MyHTML.html;, I get a blank datagrid. My suspicion is that this is related to crossdomain.xml file. Am I right with this? If yes where should I place it? I searched on the forum and could not find a definitive answer. The crossdomain file that I have created looks like: ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=gauravt-xp to-ports=8080,3306 / /cross-domain-policy I tried placing it in the webapps and webapps/ROOT folder of tomcat but data was not populated. Thanks in advance for the help. Gaurav -- View this message in context: http://www.nabble.com/Flex-and-asSQL---Crossdomain-issue-- tp21691913p216 91913.html Sent from the FlexCoders mailing list archive at Nabble.com. No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.10.13/1912 - Release Date: 1/27/2009 7:26 AM
[flexcoders] Re: Flex and asSQL - Crossdomain issue?
Make sure which player you are using? The cross domain works differently with player 9 and player 10. --- In flexcoders@yahoogroups.com, Grant Davies gr...@... wrote: I would suspect the same, add a crossdomain in the root of your site (or you can use a policy element to put it somewhere else but more fiddly) In your cross domain add the 'all ports', if you are just 'testing' you can leave it wide open : cross-domain-policy allow-access-from domain=* to-ports=*/ /cross-domain-policy It should be accessible via http://gauravt-xp/crossdomain.xml you could try http://gauravt-xp:8080/crossdomain.xml but I'm not sure it will work. I'm pretty sure flash requests the crossdomain file on port 80 (maybe override-able by a policy file), but my sites all run on port 80 so not messed with it in a while. A good way to see whats going on is using the Charles httpd debugging proxy to monitor the traffic and see if it request a cross domain xml file, if it does and your applications fails right after that then you can be sure it's a silent failure due to the policy file. Cheers Grant ... b l u e t u b e i n t e r a c t i v e. .: Development solutions for creatives :. .: grant davies .: 404.428.6839 (c) .: 404.921.9550 (F) gr...@... http://www.bluetubeinteractive.com From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of GeeTee Sent: Tuesday, January 27, 2009 1:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex and asSQL - Crossdomain issue? Hi everyone, Yesterday I developed my first flex 3 app and placed the Release build in the webapps folder of tomcat (5.5.26). The application is quite simple and just needs to populate the datagrid with the data in MySQL (which is on the same machine on port 3306). I have used asSQL to communicate. When run from flex builder, I get the app to work perfectly. But on accessing the URL http://gauravt-xp:8080/MyAppsName/MyHTML.html;, I get a blank datagrid. My suspicion is that this is related to crossdomain.xml file. Am I right with this? If yes where should I place it? I searched on the forum and could not find a definitive answer. The crossdomain file that I have created looks like: ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=gauravt-xp to-ports=8080,3306 / /cross-domain-policy I tried placing it in the webapps and webapps/ROOT folder of tomcat but data was not populated. Thanks in advance for the help. Gaurav -- View this message in context: http://www.nabble.com/Flex-and-asSQL---Crossdomain-issue-- tp21691913p216 91913.html Sent from the FlexCoders mailing list archive at Nabble.com. No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.10.13/1912 - Release Date: 1/27/2009 7:26 AM
[flexcoders] Best way to toggle elements in ArrayCollections
So in my Flex 3 project I have an ArrayCollection, like this: [Bindable] private var myDataProvider:ArrayCollection = new ArrayCollection( [ {country:Apple, quantity:5}, {country:Pear, quantity:3}, {country:Banana, quantity:7}, ]); This is the dataprovider for another visual component (this is not the actual data, I've simplified it for the sake of clarity in asking this question). I have some checkboxes that I want to use to toggle elements in and out of the arrayCollection, thus changing what's shown in the visual component which is bound by databinding. I thought about just having a visual property in the dataprovider, but then found out I cannot access display list items in this third party chart component I am using, so the only way to change what is shown in the chart component is to change what's contained in the array collection. My question is, while I can think of ways to do this (adding and removing elements in the ArrayCollection), but they all involve some pretty ugly Actionscript. Is there a good way to handle this, but keep my data intact? How would you use checkboxes to toggle data in and out of the ArrayCollection elegantly? Thanks, Jason Merrill Bank of America Picture (Device Independent Bitmap) Instructional Technology Media * GCIB Staff Support LLD Interested in Flash Platform technologies? Join the Bank of America Flash Platform Developer Community blocked::http://sharepoint.bankofamerica.com/sites/tlc/flash/default.as px Interested in innovative ideas in Learning? Check out the Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http% 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis ts%2FPosts%2FArchive%2Easpx . attachment: ole0.bmp
re: [flexcoders] Re: Setting data from web service to ArrayCollection.
I get this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at index/loginHandler() at index/___index_Operation3_result() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler() at mx.rpc::Responder/result() at mx.rpc::AsyncRequest/acknowledge() at DirectHTTPMessageResponder/completeHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete() My CFC is returning a Query. Does that help? From: Amy amyblankens...@bellsouth.net Sent: Tuesday, January 27, 2009 10:42 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Setting data from web service to ArrayCollection. --- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: I moved my CFC and database to my localhost so I can debug the webservice output and see it. I am a wee bit confused. The results panel is saying something like this: e -- result -- source -- [0] -- firstName (etc) How do I set that local? I tried myData = e.result.source as ArrayCollection and then tried to trace myData.getItemAt(0).firstName but got an error. Try myData = ArrayCollection(e.result.source); Your CFC may be returning an Array.
Re: [flexcoders] Re: Modules
Hi again Lorenzo - Sure, you can do that. I'm still learning to work with modules, so I'm not sure what would be the BEST way to do it, but one thing you could try is to have a custom panel component at the application level. Inside of the panel component, you could have a ModuleLoader component. When you create a new panel at the application level, you could specify which .swf the ModuleLoader inside the panel should load. so at the application level you would have something like: var p1:SpecialPanel = new SpecialPanel(); p1.moduleLoader.loadModule( com/whatever/whatever/components/moduleA); var p2:SpecialPanel = new SpecialPanel(); p2.moduleLoader.loadModule ( com/whatever/whatever/components/ moduleB); Application.addChild(p1); Application.addChild(p2); This should work. I'm not sure if there would be overhead having multiple module loaders in memory, so again this might not be the best way. Rob On Jan 27, 2009, at 9:07 AM, thelordsince1984 wrote: --- In flexcoders@yahoogroups.com, Rob Kunkle r...@... wrote: Hi Lorenzo - What you want to do is use the ready event of the module loader to add event listeners to your module. So in your main application, you want something like this: private function moduleReadyHandler(event:Event):void { if(moduleLoader.child is DesignBrowser) { moduleLoader.child.addEventListener(DesignBrowser.DESIGN_SELECTED, designSelectedHandler); } } private function designSelectedHandler(event:Event):void { trace('design selected' + event.target.name); } ... mx:ModuleLoader ready=moduleReadyHandler(event) id=moduleLoader/ In my application, I have a module called DesignBrowser. It dispatches a DESIGN_SELECTED event when the user selects a design. The module then loader listens for this event because I added an EventListener to the child of the module loader during the ready event. Hope this helps! Rob On Jan 27, 2009, at 7:20 AM, thelordsince1984 wrote: --- In flexcoders@yahoogroups.com, thelordsince1984 loreboa@ wrote: Hi, i have a problem in my app.. i have a main application and here i create a custom module, a titlewindow with a close button... when i click the button i would unload the module...is it possible to listen for module events from the main app? how can i rich this goal? Thanks in advance Regards Lorenzo Anybody can help me? Suppose that i have a module.This module contains a title window and a close button. From the main app i load this module through a ModuleLoader.. then when i click in the close button module i would unload the module..how to do this? if i fire an event from the module the event remains into the module, is it true?the main app can't catch the event... please help me... thanks Rob you give me a big help.. can i ask you an ther question? i would implement an application like igoogle..but with flex! to do this i have some modules... my app structure looks like this: 1) the main app 2) a main panel (this a child of the main app) 2) n modules so when i start the main app i would load modules on demand into the main panel and then i would drag and drop them to change their position..is it possible to do? can you give me some guide lines? And is it possible to write my personal ModuleLoader in Actionscript3?Can i create i new one and then use it to load all or some of the modules tha i have created? Thanks, thanks thanks Regards Lorenzo
Re: [flexcoders] Flex and asSQL - Crossdomain issue?
The cross domain works differently with player 9 and player 10. I am using Flash Player 10 plugin. The error dialog that shows up says Error #2044: Unhandled ioError:. text=Error #2048: Security sandbox violation: http://gauravt-xp:8080/MonitoringCompleteResults/OLS_Monitoring_CompleteResults.swf cannot load data from gauravt-xp:3306. you could try http://gauravt-xp:8080/crossdomain.xml but I'm not sure it will work. Well I am able to access the crossdomain.xml file in this way. It correctly shows up. In your cross domain add the 'all ports', if you are just 'testing' you can leave it wide open : cross-domain-policy allow-access-from domain=* to-ports=*/ /cross-domain-policy Even this did not help. I place this in the cross domain file in webapps/root folder of tomcat. Thanks to both of you for the quick response. Gaurav ilikeflex wrote: Make sure which player you are using? The cross domain works differently with player 9 and player 10. --- In flexcoders@yahoogroups.com, Grant Davies gr...@... wrote: I would suspect the same, add a crossdomain in the root of your site (or you can use a policy element to put it somewhere else but more fiddly) In your cross domain add the 'all ports', if you are just 'testing' you can leave it wide open : cross-domain-policy allow-access-from domain=* to-ports=*/ /cross-domain-policy It should be accessible via http://gauravt-xp/crossdomain.xml you could try http://gauravt-xp:8080/crossdomain.xml but I'm not sure it will work. I'm pretty sure flash requests the crossdomain file on port 80 (maybe override-able by a policy file), but my sites all run on port 80 so not messed with it in a while. A good way to see whats going on is using the Charles httpd debugging proxy to monitor the traffic and see if it request a cross domain xml file, if it does and your applications fails right after that then you can be sure it's a silent failure due to the policy file. Cheers Grant ... b l u e t u b e i n t e r a c t i v e. .: Development solutions for creatives :. .: grant davies .: 404.428.6839 (c) .: 404.921.9550 (F) gr...@... http://www.bluetubeinteractive.com From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of GeeTee Sent: Tuesday, January 27, 2009 1:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex and asSQL - Crossdomain issue? Hi everyone, Yesterday I developed my first flex 3 app and placed the Release build in the webapps folder of tomcat (5.5.26). The application is quite simple and just needs to populate the datagrid with the data in MySQL (which is on the same machine on port 3306). I have used asSQL to communicate. When run from flex builder, I get the app to work perfectly. But on accessing the URL http://gauravt-xp:8080/MyAppsName/MyHTML.html;, I get a blank datagrid. My suspicion is that this is related to crossdomain.xml file. Am I right with this? If yes where should I place it? I searched on the forum and could not find a definitive answer. The crossdomain file that I have created looks like: ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=gauravt-xp to-ports=8080,3306 / /cross-domain-policy I tried placing it in the webapps and webapps/ROOT folder of tomcat but data was not populated. Thanks in advance for the help. Gaurav -- View this message in context: http://www.nabble.com/Flex-and-asSQL---Crossdomain-issue-- tp21691913p216 91913.html Sent from the FlexCoders mailing list archive at Nabble.com. No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.10.13/1912 - Release Date: 1/27/2009 7:26 AM -- View this message in context: http://www.nabble.com/Flex-and-asSQL---Crossdomain-issue--tp21691913p21692447.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] How to compile multiple modules with mxmlc ant task
Refactor your build.xml to pass the module mxml target as an ant property, and call this from another target. E.g., target name=build-modules antcall target=build-module param name=module.mxml value=module1.mxml/ /antcall antcall target=build-module param name=module.mxml value=module2.mxml/ /antcall antcall target=build-module param name=module.mxml value=module3.mxml/ /antcall /target target name=build-module mxmlc file=flex/src/${module.mxml} ... -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: aejaz_98 aejaz...@yahoo.com Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] How to compile multiple modules with mxmlc ant task Date: Tue, 27 Jan 2009 18:31:32 - Hi, Is it possible to give multiple mxml files under the file property of mxmlc task ? Without this my build.xml is becoming very big due to repetition of many mxmlc sections, the only difference being the value of the file property. Thanks, Aejaz
Re: [flexcoders] Re: Anyone using Subclipse 1.4.x in flexbuilder 3 ?
I had some trouble when I first installed subclipse 1.5 on my macbook. I had to upgrade the svn client on my machine and everything works fine now. On Jan 27, 2009, at 6:26 AM, fourctv wrote: A few goodies over 1.2: - it defaults new objects as selected when committing - no need to update after
Re: [flexcoders] Re: Flex 3.3
Once it is released, if we download the current FB will it come with 3.3? On Tue, Jan 27, 2009 at 10:05 AM, Matt Chotin mcho...@adobe.com wrote: We haven't shipped yet :-) still a few weeks away. On 1/27/09 10:03 AM, Andres Serral aser...@gmail.com wrote: I´cant found the releases notes. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Matt Chotin Sent: Tuesday, January 27, 2009 3:56 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex 3.3 Correct On 1/27/09 9:44 AM, securenetfreedom nv1...@gmail.com mailto:nv1000%40gmail.com wrote: So, 3.3 will *not* apply to eclipse FB plugin? Jeff --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mcho...@... wrote: It's all bug fixes, and not a huge number of them. We're not going to have an associated Flex Builder release either, just the SDK (though we'll get the charts updated). Matt On 1/26/09 1:18 PM, tntomek tnto...@... wrote: Looks like we finally have official 3.3 SDK builds out. http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 This seems to have been a relabeling as changes between last 3.2 build and 3.3 build are very minor. Does anyone know what features or changes 3.3 will bring us?
Re: [flexcoders] Re: Setting data from web service to ArrayCollection.
Ok, lets take this the other way. Here is my simple CFC. How can I modify this to return a result to Flex to which I can then set to an ArrayCollection that I can use? cfcomponent cffunction name=login access=remote returntype=query output=false hint=I attempt a login cfargument name=username type=string required=yes / cfargument name=password type=string required=yes / cfquery name=result datasource=PRMC_Projects Select * FROM users WHERE uniqname = cfqueryparam value=#arguments.username# AND password = cfqueryparam value=#arguments.password# / /cfquery cfreturn result / /cffunction /cfcomponent
Re: [flexcoders] Flex 3.3
Any chance the charts will be separated from FB? FB is a fine tool, but for, say, a build system, this coupling just doesn't make sense. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Matt Chotin mcho...@adobe.com Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 3.3 Date: Tue, 27 Jan 2009 09:39:19 -0800 Yes, it will be a separate download. We're also going to make this strategy better in Flex 4. Matt On 1/27/09 1:29 AM, Tom Chiverton tom.chiver...@halliwells.com wrote: On Monday 26 Jan 2009, Matt Chotin wrote: It's all bug fixes, and not a huge number of them. We're not going to have an associated Flex Builder release either, just the SDK (though we'll get the charts updated). So how will the chart updates be released ? In the past, the only way to get them was to install Builder and rip them out by hand. Are they now, finally, going to be available as a separate download ?
[flexcoders] DataGrid Drop Deny based on dropIndex
Anyone have an example of how to deny a drop based on the drop index? The problem I'm facing is that even though my dragEnter event handler doesn't call the DragManager.acceptDragDrop(UIComponent), it still allows me to drop it.
[flexcoders] Re: Advanced DataGrid sorting
--- In flexcoders@yahoogroups.com, Denis morentso...@... wrote: Hi there, I need to sort the advanced grid but I want the sort apply only certain nodes of data. For example Group 0 contains 10 items which it makes sense to sort while Group 1 contain items which should always remain in the same sequence. The sequence should not even change if the sort changes from ascending to descending. In other words, the sort should only affect certain groups of data. From the docs, it looks like the sortCompareFunction cannot accomplish this since it does not expose the characteristics of the current sort - it just determines the sequence of two elements. AdvancedDateGrid casts its dataProvider to HierarchicalCollectionView, which means that if you have any node you know what its parent is. sortCompare tells you what the node is. HTH; Amy
RE: [flexcoders] Re: Setting data from web service to ArrayCollection.
I do not know Cold Fusion, but... Which RPC protocol are you actually using? Have you set resultFormat? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz Sent: Tuesday, January 27, 2009 3:39 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Setting data from web service to ArrayCollection. Ok, lets take this the other way. Here is my simple CFC. How can I modify this to return a result to Flex to which I can then set to an ArrayCollection that I can use? cfcomponent cffunction name=login access=remote returntype=query output=false hint=I attempt a login cfargument name=username type=string required=yes / cfargument name=password type=string required=yes / cfquery name=result datasource=PRMC_Projects Select * FROM users WHERE uniqname = cfqueryparam value=#arguments.username# AND password = cfqueryparam value=#arguments.password# / /cfquery cfreturn result / /cffunction /cfcomponent
[flexcoders] How to assign html tag to text property
Hi, I try the following code but I get error,please give me a idea to fix it. Thanks Mark mx:TextArea x=170 y=147 height=229 width=248 id=ta mx:text = html body Hello /body /html /mx:TextArea
[flexcoders] How to set LCDS development enviroment in Eclipse?
Hi, I try to use Eclipse to develop both Flex and Java codes and deploy them to Tomcat 6 automatically. Please give me a idea. Thanks a lot Mark
[flexcoders] Re: OlapDataGrid like headers using AdvancedDataGrid
--- In flexcoders@yahoogroups.com, tntomek tnto...@... wrote: Is it possible to have 'split' or 'colspan'-ed headers without having to resort to serious column rework? Something like: http://livedocs.adobe.com/flex/3/html/help.html?content=olapdatagrid_2.html I've tried and tried to find any resources for this but all seem to point to Alex's Split Column example. http://blogs.adobe.com/aharui/SplitColumns/dg.swf . Since Alex wrote that post with Flex 2 in mind, I'd be curious to know if this has somehow been solved in Flex 3. While this works, it's nowhere near as slick as OlapDataGrid. |2009| |Q1-||-Q2| |Jan|Feb|Mar||Apr|May|Jun| -- | 0 | 1 | 1 || 2 | 4 | 8 | Sorting or selecting any of the aggregate time (Years or quarters) isn't important, the leaf (Months) have the real data. I am leaning towards creating fake headers that would line up with the single row headers as that seems to keep the ADG more true to itself for any native support it offers (multi column sort/resize/show hide). Is this a good idea? I am just starting this project and have a lot of features left to implement and it seems like the complexity of using the ADG is exponential as you try anything that isn't supported out of the box. Add AdvancedDataGrid keyword.
[flexcoders] external swf inside an AIR HTML component right click issues.
I have the strangest AIR issue that I've never seen. Right clicking on a TextInput sets focus to the TextInput directly above the component. (There are two 'stages' involved, and it is a javascript + HTML component issue). I'm using SDK 3.0.2.214193 (I'm sure there's an update, but all of our developers have to be on the same build version). To reproduce: 1) Start a new AIR project. Add one HTML component. height=100%, width=100%, location will be set to the HTML file created below. 2) Start a new Flex project. layout=vertical (I know...). Add about five or six TextInputs. 3) (If you've built the flex project, you may have to clean it to make this change... throw a java alert() in there somewhere if you're not sure): In the 'if(hasRequestedVersion)' javascript block of the index.template.html file, add 'wmode, transparent,' to the arguments of the AC_FL_RunContent function. (This is a requirement for my html files). 4) set the location of the HTML component to the html file of the Flex project in your bin-debug output location. Right click on the bottom TextInput. I'm on a windows box and right clicking on a textInput setsFocus to the component directly above the one you've right clicked. To get rid of the problem, either comment out the history.js script in the, or remove the wmode=transparent jive. (remember to clean the flex project if you make changes to index.template.html). I don't know enough Javascript to fight through the history.js file. Creating a lightweight history.js (that only enables BrowserManager) might be a fix as I can't say we'll be worrying about the history/back/fwd/etc. Any ideas?
[flexcoders] Re: Advanced DataGrid sorting
--- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: --- In flexcoders@yahoogroups.com, Denis morentsov_d@ wrote: Hi there, I need to sort the advanced grid but I want the sort apply only certain nodes of data. For example Group 0 contains 10 items which it makes sense to sort while Group 1 contain items which should always remain in the same sequence. The sequence should not even change if the sort changes from ascending to descending. In other words, the sort should only affect certain groups of data. From the docs, it looks like the sortCompareFunction cannot accomplish this since it does not expose the characteristics of the current sort - it just determines the sequence of two elements. AdvancedDateGrid casts its dataProvider to HierarchicalCollectionView, which means that if you have any node you know what its parent is. sortCompare tells you what the node is. HTH; Amy Thanks Amy! This is helpful - I will play with this and try to make it work.
[flexcoders] Re: Best way to toggle elements in ArrayCollections
Jason, I'm doing something similar with checkboxes and the DataGrid. Are you able to turn the visibility of your component on/off ? Rather than modify the dataset, you may be able to use a checkbox event to trigger the visibility change of your display component. ~Mike --- In flexcoders@yahoogroups.com, Merrill, Jason jason.merr...@... wrote: So in my Flex 3 project I have an ArrayCollection, like this: [Bindable] private var myDataProvider:ArrayCollection = new ArrayCollection( [ {country:Apple, quantity:5}, {country:Pear, quantity:3}, {country:Banana, quantity:7}, ]); This is the dataprovider for another visual component (this is not the actual data, I've simplified it for the sake of clarity in asking this question). I have some checkboxes that I want to use to toggle elements in and out of the arrayCollection, thus changing what's shown in the visual component which is bound by databinding. I thought about just having a visual property in the dataprovider, but then found out I cannot access display list items in this third party chart component I am using, so the only way to change what is shown in the chart component is to change what's contained in the array collection. My question is, while I can think of ways to do this (adding and removing elements in the ArrayCollection), but they all involve some pretty ugly Actionscript. Is there a good way to handle this, but keep my data intact? How would you use checkboxes to toggle data in and out of the ArrayCollection elegantly? Thanks, Jason Merrill Bank of America Picture (Device Independent Bitmap) Instructional Technology Media * GCIB Staff Support LLD Interested in Flash Platform technologies? Join the Bank of America Flash Platform Developer Community blocked::http://sharepoint.bankofamerica.com/sites/tlc/flash/default.as px Interested in innovative ideas in Learning? Check out the Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http% 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis ts%2FPosts%2FArchive%2Easpx .
RE: [flexcoders] Flex and asSQL - Crossdomain issue?
The crossdomain file goes in the root of the server serving the *data*. So if you go to a browser and type in: http://gauravt-xp:3306 http://gauravt-xp:3306/ /crossdomain.xml, you should see your crossdomain file in the browser. If you are using WebService protocol, there are other settings that might be needed, particularly if you use headings. These entries may be needed in the crossdomain file: allow-http-request-headers-from domain=* headers=* / site-control permitted-cross-domain-policies=master-only/ Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of GeeTee Sent: Tuesday, January 27, 2009 2:22 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex and asSQL - Crossdomain issue? The cross domain works differently with player 9 and player 10. I am using Flash Player 10 plugin. The error dialog that shows up says Error #2044: Unhandled ioError:. text=Error #2048: Security sandbox violation: http://gauravt-xp:8080/MonitoringCompleteResults/OLS_Monitoring_Complete Results.swf http://gauravt-xp:8080/MonitoringCompleteResults/OLS_Monitoring_Complet eResults.swf cannot load data from gauravt-xp:3306. you could try http://gauravt-xp:8080/crossdomain.xml http://gauravt-xp:8080/crossdomain.xml but I'm not sure it will work. Well I am able to access the crossdomain.xml file in this way. It correctly shows up. In your cross domain add the 'all ports', if you are just 'testing' you can leave it wide open : cross-domain-policy allow-access-from domain=* to-ports=*/ /cross-domain-policy Even this did not help. I place this in the cross domain file in webapps/root folder of tomcat. Thanks to both of you for the quick response. Gaurav ilikeflex wrote: Make sure which player you are using? The cross domain works differently with player 9 and player 10. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Grant Davies gr...@... wrote: I would suspect the same, add a crossdomain in the root of your site (or you can use a policy element to put it somewhere else but more fiddly) In your cross domain add the 'all ports', if you are just 'testing' you can leave it wide open : cross-domain-policy allow-access-from domain=* to-ports=*/ /cross-domain-policy It should be accessible via http://gauravt-xp/crossdomain.xml http://gauravt-xp/crossdomain.xml you could try http://gauravt-xp:8080/crossdomain.xml http://gauravt-xp:8080/crossdomain.xml but I'm not sure it will work. I'm pretty sure flash requests the crossdomain file on port 80 (maybe override-able by a policy file), but my sites all run on port 80 so not messed with it in a while. A good way to see whats going on is using the Charles httpd debugging proxy to monitor the traffic and see if it request a cross domain xml file, if it does and your applications fails right after that then you can be sure it's a silent failure due to the policy file. Cheers Grant ... b l u e t u b e i n t e r a c t i v e. .: Development solutions for creatives :. .: grant davies .: 404.428.6839 (c) .: 404.921.9550 (F) gr...@... http://www.bluetubeinteractive.com http://www.bluetubeinteractive.com From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of GeeTee Sent: Tuesday, January 27, 2009 1:55 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Flex and asSQL - Crossdomain issue? Hi everyone, Yesterday I developed my first flex 3 app and placed the Release build in the webapps folder of tomcat (5.5.26). The application is quite simple and just needs to populate the datagrid with the data in MySQL (which is on the same machine on port 3306). I have used asSQL to communicate. When run from flex builder, I get the app to work perfectly. But on accessing the URL http://gauravt-xp:8080/MyAppsName/MyHTML.html http://gauravt-xp:8080/MyAppsName/MyHTML.html , I get a blank datagrid. My suspicion is that this is related to crossdomain.xml file. Am I right with this? If yes where should I place it? I searched on the forum and could not find a definitive answer. The crossdomain file that I have created looks like: ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd cross-domain-policy allow-access-from domain=gauravt-xp to-ports=8080,3306 / /cross-domain-policy I tried placing it in the webapps and webapps/ROOT folder of tomcat but data was not populated. Thanks in advance for the
Re: [flexcoders] DataGrid Drop Deny based on dropIndex
Hi, We handle something very similar to this, and although we don't deny a drop based on the index, we use the index to persist the drop location in the database...the same logic applies. We are using this on an ADG and hence my example below: You could grab the internal targetGrids dropData get the dropData.index...check it and if its not the value you want, perform an event.preventDefault and stopPropagation... private function adg_DragEvent(event:DragEvent):void { var targetGrid:AdvancedDataGrid = event.currentTarget as AdvancedDataGrid; use namespace mx_internal; var dropData:Object = targetGrid.mx_internal::_dropData; adgIndex = dropData.index; if (adgIndex 4) { targetGrid.hideDropFeedback(event); targetGrid.selectedItems = new Array(); event.preventDefault(); event.stopPropagation(); } } HTH! Adrian park96 wrote: Anyone have an example of how to deny a drop based on the drop index? The problem I'm facing is that even though my dragEnter event handler doesn't call the DragManager.acceptDragDrop(UIComponent), it still allows me to drop it.
RE: [flexcoders] Re: Best way to toggle elements in ArrayCollections
How about filtering the ArrayCollection? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Mike Sent: Tuesday, January 27, 2009 4:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Best way to toggle elements in ArrayCollections Jason, I'm doing something similar with checkboxes and the DataGrid. Are you able to turn the visibility of your component on/off ? Rather than modify the dataset, you may be able to use a checkbox event to trigger the visibility change of your display component. ~Mike --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Merrill, Jason jason.merr...@... wrote: So in my Flex 3 project I have an ArrayCollection, like this: [Bindable] private var myDataProvider:ArrayCollection = new ArrayCollection( [ {country:Apple, quantity:5}, {country:Pear, quantity:3}, {country:Banana, quantity:7}, ]); This is the dataprovider for another visual component (this is not the actual data, I've simplified it for the sake of clarity in asking this question). I have some checkboxes that I want to use to toggle elements in and out of the arrayCollection, thus changing what's shown in the visual component which is bound by databinding. I thought about just having a visual property in the dataprovider, but then found out I cannot access display list items in this third party chart component I am using, so the only way to change what is shown in the chart component is to change what's contained in the array collection. My question is, while I can think of ways to do this (adding and removing elements in the ArrayCollection), but they all involve some pretty ugly Actionscript. Is there a good way to handle this, but keep my data intact? How would you use checkboxes to toggle data in and out of the ArrayCollection elegantly? Thanks, Jason Merrill Bank of America Picture (Device Independent Bitmap) Instructional Technology Media * GCIB Staff Support LLD Interested in Flash Platform technologies? Join the Bank of America Flash Platform Developer Community blocked::http://sharepoint.bankofamerica.com/sites/tlc/flash/default.as http://sharepoint.bankofamerica.com/sites/tlc/flash/default.as px Interested in innovative ideas in Learning? Check out the Innovative Learning Blog http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx and subscribe http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.a spx?List=%7B41BD3FC9%2DBB07%2D4763%2DB3AB%2DA6C7C99C5B8D%7DSource=http% 3A%2F%2Fsharepoint%2Ebankofamerica%2Ecom%2Fsites%2Fddc%2Frd%2Fblog%2FLis ts%2FPosts%2FArchive%2Easpx .
[flexcoders] Single src creating multi SWF modules in Flex using Maven
Hello, I currently have a project that has multiple modules under one source, This project compiles fine under Flex Builder. The application SWF and module SWF are behaving correctly. However, I am struggling with Maven, since Maven I am not able to create a module SWF file using net.israfil.mojo/maven-flex2-plugin. I have read that their has been success in the creation of multiple swf modules from a single source from ant; but could not find any examples. I have attempted a few times using maven-antrun-plugin for Ant tasks but was not successful. Has anyone ever attempted this task before in either Maven or Ant? Thank you, yoshilo
Re: [flexcoders] How to set LCDS development enviroment in Eclipse?
check this link: http://coenraets.org/downloads/max2008/flex-dataservices-tutorial.pdf On Tue, Jan 27, 2009 at 1:25 PM, markflex2007 markflex2...@yahoo.com wrote: Hi, I try to use Eclipse to develop both Flex and Java codes and deploy them to Tomcat 6 automatically. Please give me a idea. Thanks a lot Mark
[flexcoders] Re: Setting data from web service to ArrayCollection.
This tutorial will probably help: http://tutorial6.flexcf.com/ NB. I don't use coldfusion - I use PHP with WebORB. --- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: Ok, lets take this the other way. Here is my simple CFC. How can I modify this to return a result to Flex to which I can then set to an ArrayCollection that I can use? cfcomponent cffunction name=login access=remote returntype=query output=false hint=I attempt a login cfargument name=username type=string required=yes / cfargument name=password type=string required=yes / cfquery name=result datasource=PRMC_Projects Select * FROM users WHERE uniqname = cfqueryparam value=#arguments.username# AND password = cfqueryparam value=#arguments.password# / /cfquery cfreturn result / /cffunction /cfcomponent
Re: [flexcoders] How to set LCDS development enviroment in Eclipse?
also http://coenraets.org/blog/category/lcds/ On Tue, Jan 27, 2009 at 1:39 PM, Vivian Richard kanps...@gmail.com wrote: check this link: http://coenraets.org/downloads/max2008/flex-dataservices-tutorial.pdf On Tue, Jan 27, 2009 at 1:25 PM, markflex2007 markflex2...@yahoo.com wrote: Hi, I try to use Eclipse to develop both Flex and Java codes and deploy them to Tomcat 6 automatically. Please give me a idea. Thanks a lot Mark
RE: [flexcoders] DataGrid Drop Deny based on dropIndex
Any reason you are not using the List.calculateDropIndex() method? Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Adrian Williams Sent: Tuesday, January 27, 2009 4:33 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataGrid Drop Deny based on dropIndex Hi, We handle something very similar to this, and although we don't deny a drop based on the index, we use the index to persist the drop location in the database...the same logic applies. We are using this on an ADG and hence my example below: You could grab the internal targetGrids dropData get the dropData.index...check it and if its not the value you want, perform an event.preventDefault and stopPropagation... private function adg_DragEvent(event:DragEvent):void { var targetGrid:AdvancedDataGrid = event.currentTarget as AdvancedDataGrid; use namespace mx_internal; var dropData:Object = targetGrid.mx_internal::_dropData; adgIndex = dropData.index; if (adgIndex 4) { targetGrid.hideDropFeedback(event); targetGrid.selectedItems = new Array(); event.preventDefault(); event.stopPropagation(); } } HTH! Adrian park96 wrote: Anyone have an example of how to deny a drop based on the drop index? The problem I'm facing is that even though my dragEnter event handler doesn't call the DragManager.acceptDragDrop(UIComponent), it still allows me to drop it.
RE: [flexcoders] How to assign html tag to text property
Not sure what you are trying to do. If you want the html rendered in the text area, set the htmlText property: mx:TextArea x=170 y=147 height=229 width=248 id=ta mx:htmlText ![CDATA[html body Hello /body /html]] /mx:htmlText /mx:TextArea If you want to actually display the markup as a string, set the text property: mx:TextArea x=170 y=147 height=229 width=248 id=ta mx:text ![CDATA[html body Hello /body /html]] /mx:text /mx:TextArea HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markflex2007 Sent: Tuesday, January 27, 2009 2:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to assign html tag to text property Hi, I try the following code but I get error,please give me a idea to fix it. Thanks Mark mx:TextArea x=170 y=147 height=229 width=248 id=ta mx:text = html body Hello /body /html /mx:TextArea This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
Re: [flexcoders] DataGrid Drop Deny based on dropIndex
Hi Tracy... Ummm.epic brain fart fail? Can't see the forest for the trees? Out of the 23,598 methods...we remembered all but that one :-) Adrian Tracy Spratt wrote: Any reason you are not using the List.calculateDropIndex() method? Tracy Spratt Lariat Services Flex development bandwidth available *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Adrian Williams *Sent:* Tuesday, January 27, 2009 4:33 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] DataGrid Drop Deny based on dropIndex Hi, We handle something very similar to this, and although we don't deny a drop based on the index, we use the index to persist the drop location in the database...the same logic applies. We are using this on an ADG and hence my example below: You could grab the internal targetGrids dropData get the dropData.index...check it and if its not the value you want, perform an event.preventDefault and stopPropagation... private function adg_DragEvent(event:DragEvent):void { var targetGrid:AdvancedDataGrid = event.currentTarget as AdvancedDataGrid; use namespace mx_internal; var dropData:Object = targetGrid.mx_internal::_dropData; adgIndex = dropData.index; if (adgIndex 4) { targetGrid.hideDropFeedback(event); targetGrid.selectedItems = new Array(); event.preventDefault(); event.stopPropagation(); } } HTH! Adrian park96 wrote: Anyone have an example of how to deny a drop based on the drop index? The problem I'm facing is that even though my dragEnter event handler doesn't call the DragManager.acceptDragDrop(UIComponent), it still allows me to drop it.
[flexcoders] Re: How to compile multiple modules with mxmlc ant task
Thanks a lot. I was thinking something along those lines but was hoping that it would be possible to specify multiple files somehow. Aejaz --- In flexcoders@yahoogroups.com, Maciek Sakrejda msakre...@... wrote: Refactor your build.xml to pass the module mxml target as an ant property, and call this from another target. E.g., target name=build-modules antcall target=build-module param name=module.mxml value=module1.mxml/ /antcall antcall target=build-module param name=module.mxml value=module2.mxml/ /antcall antcall target=build-module param name=module.mxml value=module3.mxml/ /antcall /target target name=build-module mxmlc file=flex/src/${module.mxml} ... -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: aejaz_98 aejaz...@... Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] How to compile multiple modules with mxmlc ant task Date: Tue, 27 Jan 2009 18:31:32 - Hi, Is it possible to give multiple mxml files under the file property of mxmlc task ? Without this my build.xml is becoming very big due to repetition of many mxmlc sections, the only difference being the value of the file property. Thanks, Aejaz