The instructions I read for using AC_FL_RunContent, say to leave off the file extension of the swf file, e.g.: AC_FL_RunContent(..., 'movie', 'some'); So that it will embed some.swf. However, I need to serve the swf from a servlet, e.g. /blah/SomeServletName. How can I do that? I tried changing the javascript of AC_RunActiveContent.js, so it doesn't manipulate the file extension. In other words, so I could use:
AC_FL_RunContent(..., 'movie', 'some.swf'); But, it displays nothing if I use the servlet path, instead of a path that looks like a file name, e.g.: AC_FL_RunContent(..., 'movie', '/blah/SomeServletName');
I have an ActionScript File sending XML to my servlet. I am only getting empty arrays on output.output is:
java.io.StreamCorruptedException: invalid stream header at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:764) at java.io.ObjectInputStream.(ObjectInputStream.java:277) at myDungeonAccessor.myDungeonAccessorServlet.doPost(myDungeonAccessorServlet.java:82)
I have developed a Flex application. I have also developed a Java servlet program for an Access database using Tomcat. How can I use that servlet backend for my Flex application using HTTPService ?
Is there any way to connect Java servlet to FMS?I would like to send comand from servlet via HTTP to FMS?(Something like communication to Flash media server using administration API)The best way for me would be connecting (writing) to SharedObjects, but I would be happy with any connection at all.(I read some about ColdFusion, but there would be too much modification on my servlet.)
read a local shared object with a servlet even if there is no flash present on a page? I want to set a local shared object like a cookie, and then access it again from a page that doesn't have a flash movie.If I can't do this, is it standard to have the initial flash movie call an external javascript to set a traditional cookie that can later be read?
I have a problem using Flex with BlazeDS on a Tomcat 5.5 through a Proxy (Apache). I already searched for it but didn't find answers which solved my problem. I hope you guys can help me out. Our scenario is the following: Flex-App using BlazeDS to communicate with our Dataservice on a Tomcat 5.5.The Webapp is balze enabled and the services config contains channel definitions like the following:
I am new to Flex. I am just wondering how to manage session and cookies for logging in, logging off in Flex? I am using Flex HttpService and Java servlet.
I have a collection of Objects in an ArrayCollection in my flex page.
What is the best approach to send this data to a Java Servlet?
The object in the ArrayCollection is a VO that consists of an id and message for now. I want a solution that is scalable in case more properties are added later on.
I am passing some parameters as POST to a Servlet from my Flex WebApplication. I am able to pass and retrieve strings properly. I used new Date().getTime() in my flex code and tried passing the timestamp variable hoping to parse it at the servlet and convertit into a java.util.Date object. But i am getting a NumberFormatException when i try to parse the variable from the string that i got from request.getParameter.
I'm working on a flex application and I need to call some data with a synchonous method. After some research, I've found a code from adobe that use ajax and external interface. That great. the code from adobe
When I send data with the GET method, the servlet read the parameters and print some infos (to check). But when I send data with the POST method, the servlet recieve the request, but the parameters disappeared.
I'm using Flash 4.0 as UI tier, and I'm trying to send data to the server side, which runs on Tomcat. I wrote a servlet that the calls are directed to it. But I do not understand how can I see the data that was sent from the flash tier. to clarify, hereby example:
My .fla/.swf file is unable to load the data from server. Instead, it is displaying the below error: Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: [URL] cannot load data from [URL]. at MiniHumanAp_fla::MainTimeline/MiniHumanAp_fla::frame1() the reply for root-cause of this error...
I use fileReference.download() to download files. The fileReference send request to java servlet.In servlet, some error may be checked. For example error - 'File not found'. I want to send the error to flex side. I tried lots of methods,but fileReference in flex can't receive them.Such asresponse.sendError(HttpServletResponse.SC_NOT_FOUND, "File not found");r PrintWriter out = resp.getWriter(); out.print("File not found");It seems fileReference can't triggers event 'DataEvent.UPLOAD_COMPLETE_DATA' and'HTTPStatusEvent.HTTP_STATUS'.
I wrote a small Adobe Air server socket app for a small client/server application. Aside from getting a dedicated server, are there any companies out there that would ...
1. Allow running Adobe AIR on the server
2. Grant permissions on ports for socket sending/listening
Flex having any init(), destroy() method. Like Servlet init()method will run at Application initialize and never call it again if Refresh the Page also.
I have this code gameOver1.text = (count1.currentCount / 100).toString();but i want to add some text before i display the current count. for instance in gameOver1.text i want to say
I've just found this ActionScript and tried it out in my Flash MX file. However, when I preview the movie, it comes up with 2 errors - either for unexpected } or expected {.[code]...