Re: [flexcoders] Having hard time understanding what features are available to whom when and how
I've used Axis on other projects, but I'm not sure how this interaction as a RemoteObject would look in the context of Flex 2.0 . Do you know of a working example of this somewhere? I'm not sure what I would code on the Flex side and I'm not sure what I'd need to do on the server side to make it compatible and synchronize. I'm also wondering whether everything is available to support developing this demo for as long as it takes or if I will at some point have to buy a license for one thing or another to continue development. I also need to know how to explain the production operational costs to a potential investor. Potentially this is an application run by large companies on their own servers for many subscribers. And from a technical viewpoint, I'm still wondering how to implement these arbitrary small shapes (such as states on a map) that need to change to one of a number of colors. I'd probably be able to answer that by myself if I were a Flash developer, but my Flash experience is limited to having run through the examples of a much earlier version of Flash. I know that's a lot of questions.Thanks,BruceOn 12/27/05, Matt Chotin <[EMAIL PROTECTED] > wrote: I think you'll find 1.5 a more stable development experience in the next month though of course 2.0 offers a lot of stuff. For RemoteObject in 2.0 for now you do need the 2.0 CF adapter, but as many folks will be happy to point out you could also just expose your Java objects via a WebService using Apache Axis instead (this should be done in the 2.0 samples maybe but is definitely in 1.5 for reference). The Flex 2 alpha will hint at functionality (like RemoteObject) that may not actually be functional in your configuration. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of JesterXL Sent: Tuesday, December 27, 2005 4:39 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Having hard time understanding what features are available to whom when and how I cannot answer all of your questions, but here are my suggestions. - assuming on Windows, download Apache Tomcat - download Flex 1.5 demo - install Flex 1.5 demo with just FlexBuilder 1.5 - copy and paste the flex.war & samples.war files into Tomcat's webapps directory Hit the samples page to ensure all is well. On mine, it's: http://localhost:8080/samples/ I've yet to get Flex 2 to work with Remoting + AMFPHP. Considering AMF (the binary format used to send serialized class bits across the wire) is undergoing big changes, OpenAMF (Java) and AMFPHP (PHP) don't really work yet. I've heard of some people getting Remoting to work with the CFAdapter, but I don't use CF ( I do at work, but I don't code it). Some have reported success with the WebService/HTTPService. Me? I use Flex 1.5 every day and it works great. At night, I moonlight in Flex 2, but she's still alpha, so we have a ways to go. The bad news is, for those client developers (like me) who only care about the client, Flex 1.5 has the server requirement. However, you can still snag SWF's off of the server once compiled as well as to show clients of what's possible. Good news, she works great, HTTPService (GET/POST) works, WebService works, and RemoteObject works with AMFPHP, OpenAMF, and ColdFusion. Hope that helps some. Feel free to post more questions. - Original Message - From: "BCichowlas" <[EMAIL PROTECTED]> To:Sent: Tuesday, December 27, 2005 4:22 PM Subject: [flexcoders] Having hard time understanding what features are available to whom when and how Hi! I'm an independent developer trying to put together an RIA demo for potential investors in a proposed enterprise. This proposed enterprise is not a software company but would make heavy use of an RIA application. My most reasonable choices seem to be Flex, Laszlo or Ajax (in its many variations). I spent the last week with the Iteration Two Flex book, downloading what is available freely to developers from the Macromedia/Adobe site. As part of my demo, I need to be able to change the color of irregular small shapes. The shapes themselves are known in advance and don't change. For the sake of discussion, it is as if I had an outline of New England, divided into the six New England states and I wanted to be able to choose one of eight colors for each of the states based on user interaction. After looking at the complexities of Ajax, Flex seemed like an ideal choice. Since I develop under Eclipse and since the 2.0 alpha seemed like a generally usable version, it was my first choice. However, the examples in the Iteration Two book seem to be written for 1.0 or 1.5, and I spent quite a while trying to run them under 2.0 with varying degrees of success. My database needs for this demo application are modest, but I did want to be able to use RemoteObject. I was never able to get anything using RemoteObject to operate successfully. I
Re: [flexcoders] Having hard time understanding what features are available to whom when and how
I'm wondering which of the ways to implement the color-changing irregular shapes might work or whether I should be learning to do something custom with Flash, such as making a movie in which the irregular shape changes between the eight colors. I don't know enough about using Flash controls within Flex to know whether that is an appropriate and feasible idea or not. Thanks,BruceOn 12/28/05, Weyert de Boer <[EMAIL PROTECTED]> wrote: What's the problem? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Bruce CichowlasAffirm TechSoftware Development and Consultinghttp://www.affirmtech.com [EMAIL PROTECTED](508)-904-6122 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Having hard time understanding what features are available to whom when and how
Thanks for the prompt reply.I can see how your suggestion would work, but in my case I don't think I can use the background color. Imagine if the shapes were the six states of New England on a map. I want to be able to control the color of each state to be one of eight colors. I can see a few approaches. One would be to treat the whole map of New England as a graphic and then somehow repaint the individual state, perhaps on a pixel by pixel basis. I suppose that could work, but it would be tedious. Another way would be to have a graphic object of each state with a transparent background and then overlay them appropriately in their appropriate positions. However, the color I would have to then change would be the foreground object color and I don't know that there is a simple way to do that. I could, perhaps, supply eight graphics for each state and then switch between them using _javascript_ to alter the DHTML. That might be feasible for six states, but if the map included all fifty states, I would need at least 50 * 8 graphic objects to use that approach. A third way might be to somehow use areamaps and regions, but I don't know if that would result in DHTML where I could easily recolor a region.What do you think would work?Bruce On 12/28/05, JesterXL <[EMAIL PROTECTED]> wrote: Can help with #3. Here's a sample: xmlns:mx="http://www.macromedia.com/2003/mxml " initialize="initApp()"> id="color_cb" change="setColor(event)">0x00 0x66 0x66 id="colorMe_box" borderStyle="solid" width="100" height="100"/> - Original Message - From: Bruce Cichowlas To: flexcoders@yahoogroups.com Sent: Tuesday, December 27, 2005 8:01 PM Subject: Re: [flexcoders] Having hard time understanding what features are available to whom when and how I've used Axis on other projects, but I'm not sure how this interaction as a RemoteObject would look in the context of Flex 2.0 . Do you know of a working example of this somewhere? I'm not sure what I would code on the Flex side and I'm not sure what I'd need to do on the server side to make it compatible and synchronize. I'm also wondering whether everything is available to support developing this demo for as long as it takes or if I will at some point have to buy a license for one thing or another to continue development. I also need to know how to explain the production operational costs to a potential investor. Potentially this is an application run by large companies on their own servers for many subscribers. And from a technical viewpoint, I'm still wondering how to implement these arbitrary small shapes (such as states on a map) that need to change to one of a number of colors. I'd probably be able to answer that by myself if I were a Flash developer, but my Flash experience is limited to having run through the examples of a much earlier version of Flash. I know that's a lot of questions.Thanks,Bruce On 12/27/05, Matt Chotin <[EMAIL PROTECTED] > wrote: I think you'll find 1.5 a more stable development experience in the nextmonth though of course 2.0 offers a lot of stuff. For RemoteObject in2.0 for now you do need the 2.0 CF adapter, but as many folks will behappy to point out you could also just expose your Java objects via aWebService using Apache Axis instead (this should be done in the 2.0samples maybe but is definitely in 1.5 for reference). The Flex 2 alphawill hint at functionality (like RemoteObject) that may not actually befunctional in your configuration.Matt -Original Message-From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] OnBehalf Of JesterXLSent: Tuesday, December 27, 2005 4:39 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Having hard time understanding what featuresare available to whom when and howI cannot answer all of your questions, but here are my suggestions.- assuming on Windows, download Apache Tomcat- download Flex 1.5 demo- install Flex 1.5 demo with just FlexBuilder 1.5- copy and paste the flex.war & samples.war files into Tomcat's webapps directoryHit the samples page to ensure all is well. On mine, it's:http://localhost:8080/samples/I've yet to get Flex 2 to work with Remoting + AMFPHP. Considering AMF(the binary format used to send serialized class bits across the wire) is undergoing big changes, OpenAMF (Java) and AMFPHP (PHP) don't reallywork yet.I've heard of some people getting Remoting to work with the CFAdapter,but I don't use CF ( I do at work, but I don't code it). Some have reported success with the WebService/HTTPService.Me? I use Flex 1.5 every day and it works great. At night, I moonli
Re: [flexcoders] Having hard time understanding what features are available to whom when and how
That's very informative. I'll be trying it soon.I did install Tomcat and Flex 1.5 in the way that you suggested and confirmed that it was running properly with the samples. I've also looked through some of the 1.5 examples and found it encouraging. I have part of my app that I initially built in 2.0 under Eclipse which I need to move back into the 1.5 environment.I'm finding the OpenAMF stuff a bit confusing. I've been studying http://www.darronschall.com/weblog/archives/000186.cfm and hope that it is relevant. I'm wondering if I have to read up on Flash, but perhaps not. So what I'm going to attempt next is to Flex to download the initial colors from the server using OpenAMF, add some rudimentary controls to the Flex page to change the colors and another button to write them back to the server. If I can get that to work today, I will think that Flex 1.5 will most likely get me through this demo.I'm still wondering whether I will run up against trial deadline limits on the demo products I am using that will get. I also have to figure out what to tell the potential investors about how much the use of Flex will add to the cost of the production product. Thanks for your help,BruceOn 12/28/05, JesterXL <[EMAIL PROTECTED]> wrote: Dude, that is so easy. You just: - import each graphic into Flash - give it an instance name - modify the code I posted to do: var c:Color = new Color(targetState); c.setRGB(0xFF); That'll set it red, and ONLY it. If you have the graphic as a PNG or GIF (transparency intact), it'll color just the shape with nice edges. You could do the same in Flex as well, just embed the images: [Embed(source="maine.png")] var main_png:String; And set the color the same way: var c:Color = new Color(main_png_img); c.setRGB(0xFF); Flash, Flex... either one. Additionally, Bline Express created a pretty phat USA Map component with all 50 states. Methods already exist in it to set colors, know which state you clicked on, etc. It's written for Flash 6, but you could easily load that into a Flex Loader, and use proxy functions to call the Flash 6 methods in the externally loaded SWF. Bring it. - Original Message - From: Bruce Cichowlas To: flexcoders@yahoogroups.com Sent: Wednesday, December 28, 2005 12:13 AM Subject: Re: [flexcoders] Having hard time understanding what features are available to whom when and how Thanks for the prompt reply.I can see how your suggestion would work, but in my case I don't think I can use the background color. Imagine if the shapes were the six states of New England on a map. I want to be able to control the color of each state to be one of eight colors. I can see a few approaches. One would be to treat the whole map of New England as a graphic and then somehow repaint the individual state, perhaps on a pixel by pixel basis. I suppose that could work, but it would be tedious. Another way would be to have a graphic object of each state with a transparent background and then overlay them appropriately in their appropriate positions. However, the color I would have to then change would be the foreground object color and I don't know that there is a simple way to do that. I could, perhaps, supply eight graphics for each state and then switch between them using _javascript_ to alter the DHTML. That might be feasible for six states, but if the map included all fifty states, I would need at least 50 * 8 graphic objects to use that approach. A third way might be to somehow use areamaps and regions, but I don't know if that would result in DHTML where I could easily recolor a region.What do you think would work?Bruce On 12/28/05, JesterXL <[EMAIL PROTECTED]> wrote: Can help with #3. Here's a sample: xmlns:mx="http://www.macromedia.com/2003/mxml " initialize="initApp()"> id="color_cb" change="setColor(event)">0x00 0x66 0x000066 id="colorMe_box" borderStyle="solid" width="100" height="100"/> - Original Message - From: Bruce Cichowlas To: flexcoders@yahoogroups.com Sent: Tuesday, December 27, 2005 8:01 PM Subject: Re: [flexcoders] Having hard time understanding what features are available to whom when and how I've used Axis on other projects, but I'm not sure how this interaction as a RemoteObject would look in the context of Flex 2.0 . Do you know of a working example of this somewhere? I'm not sure what I would code on the Flex side and I'm not sure what I'd need to do on the server side to make it compatible and synchronize. I'm also wondering whether everything is available to support developing this demo for as l