- Step One: First you need to create a project in flex builder. This really isn't that hard, just start a new air project and call it insync. When it's done just drag everything from the flex source into the src directory of your new project. Let it overwrite insync.mxml. There now you should have your very own project to play with.
-
Step Two: It's been a while since the original author wrote this insync sample so if you don't want an error that says:"error while loading initial content" then you need to go into your insync-app.xml. At the second line there is an application block, change it to say
. - Step Two:Ok now you need the lcds libraries in your path or else you won't be able to compile against them. If you try you'll just get a bunch of errors which I forget at the moment but they basically say "GET THE LIBRARIES" :) So where are they? If you're like me they're hidden in the war files. Go to your lcds-samples.war file, and unzip it again. Now under the WEB-INF directory you just made by unzipping the file, there is a flex directory. Under that directory are two folders libs and locale. That's where your libraries are. You can copy them someplace else or leave them where they are that's up to you. Next you need to add them to your path. In Flex Builder go to project properties, then go to the Flex Build Path tab. Now you need to add two SWC folders, just click on the SWC folder button and add libs and locale. Now you need to add two SWC files. The first is the airfds.swc file, it's in that libs folder you just added, in the air directory. The last file you need to add is in the locale directory, under the en_US directory, and it's called fds_rb.swc. Just add that file and you're good to go
- Step Three: At this point you should be able to build. So give it a shot. If you start up your jboss server from part two and start the sample database, then try to run your application you'll get this error: Error: Unable to initialize destinations on server: ["nameOfDataService"] Sigh more errors, unfortunately this one is a bug in lcds, and it's documented here You'll notice there are others that feel our pain, and at the bottom Jeff from Adobe invites people to email him to receive a fixed copy of a library. Which I did yesterday, which was Saturday so we'll see what I get back. In the meantime his advice to compile in your services descriptions led me to come up with the following modifications to the compiler command line. Just go back to Project --> properties in Flex Builder. Now under the Flex Compiler tab, add this to Additional Compiler Arguments: Fill in your directory paths: -locale en_US -services {your path to jboss}/jboss-4.2.2.GA/server/default/deploy/{your directory you unziped lcds-samples.war to}/WEB-INF/flex/services-config.xml -context-root=http://localhost/ Mine looks like this: -locale en_US -services /Users/Downloads/jboss-4.2.2.GA/server/default/deploy/test26/WEB-INF/flex/services-config.xml -context-root=http://localhost/
A hardware guy writing code is kind of like a bear riding a bicycle. Sure he can do it, but why? Also if you get too close you might get eaten.
Sunday, March 15, 2009
Part 3 LCDS Insync Example, it works and I'm fed up.
Ok so I got this example to work and there was much rejoicing, followed by much disappointment but I'll save that for the end. There are a ton of steps, and missing one means it's not going to work so I'll try to lay it out for you.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment