Actionscript 3 :: Deployed Flex Applet Not Processing Web Service Results

Nov 20, 2010

When I test my deployed app in a browser the popup window continues to be displayed even after it should be closed. Everything works as expected when debugged in Flash Builder 4.

Following is currently what's happening: the request is sent to my restful web service, which processes the request, (seemingly) the ResultEvent is called which in turn dispatches the profileEvt dynamic event that changes the view state. However, the popup window does not get closed and the applet gets 'stuck.'

Below are the flex applet web service event listeners/handlers:

webService.addEventListener(ResultEvent.RESULT, function(event:ResultEvent):void
{
var rawData:String = String(event.result);
var profileEvt:DynamicEvent = new DynamicEvent("profileSaved", true);

[Code].....

View 1 Replies


Similar Posts:


Actionscript 3 :: Deployed Applet Suddenly Not Working?

Apr 12, 2011

I put together an applet that uploads images via as3httpclientlib to a servlet. The applet works fine in debug mode (through flash builder) and until today it worked when deployed. From the servlet logs, it appears the servlet never receives the image(s) byte stream, therefore my hunch is the applet is not posting the multipart data.

View 1 Replies

Performance - Simple Flash Test Application Runs Very Slowly Compared To Exact Same Processing Applet?

Mar 3, 2011

I get a working application in Flash made that lets the user click to create blocks which subsequently gravitate towards the mouse. I made the exact same thing in Processing too, just to compare speeds.However, when I run the Flash version and add around 15-20 blocks, the framerate drops to 5-10 FPS.In the Processing version I can add ~60 with no noticeable slowdown. What's the deal, Flash?

Links to each version's source:

Flash version
Processing version

Here is the source for each in case you are a wizard and can help just by glowering at the code sternly and telling it to behave:

Flash version:

blocks.fla
import flash.events.Event;
import flash.display.MovieClip;

[code]....

View 1 Replies

ActionScript 3.0 :: Retrieve Query Results From ASP.NET Web Service?

Feb 23, 2011

I located a code example to reference my ASP.NET web service and have saved it as MainDocument.as. I have a combo box cbRentalType that has entries of Party (value=3), Sale (value=1) and All (value = All). I have a combo box cbCatSelect that allows the user to select Product Categories. I have a text input field txtSearch where the user enters their search string.

What I need to do:

1. Submit a query with RentalType=1 or 3 or Blank, Category = dbCatSelect.selectedvalue and Product Keyword = txtSearch to my web service.

2. The ASP.NET web service returns all database entries from MS Access query named ProductDetailsAll. These query results need to be populated in individual rectangle objects with dynamic text fields for Product Name, Image, Description and Price. How do I set these dynamic fields to populate data from my query?

3. The Flash movie clip contains 16 rectangles, or can house up to 16 product results from the web service. If more than 16 results are returned, how do I populate a new page of product details in my movie clip?

4. How do I reference the outgoing variables in Actionscript 3.0 pertaining to CategoryID, RentalType and search string? How/where do I store the incoming variables for Product Name, Description, Image and Price?

View 1 Replies

Professional :: Web Service - Method Calls Show Params, But Not Results (which Return Empty)?

Feb 21, 2011

Using the web services panel, I've connected to a web service, but all the method calls will only show the param structures/types - not the result structures/types.  To the best of my knowledge, I'm sending the right parameters, in the right structure, but always I get an empty response.The web services panel:

Debugger results (with breakpoint placed just after a response is received):
 
Where might the problem be?

View 1 Replies

Flex :: Deployed SWF Not Accessible In Firefox?

Nov 15, 2010

I'm using swfobject.js to deploy load my flex applet. Unfortunately, while I'm able to run/debug in Firefox via Flash Builder, I cannot access the deployed applet via its URL -- the applet doesn't load/start. I can access the deployed applet via its URL from both IE 8 and Chrome 7. Below are the swfobject code and the produced object tag:

<script type="text/javascript">
window.onload = function() {
<!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. -->
var swfVersionStr = "10.0.0";

[code]....

View 1 Replies

Php :: Flex Service - Bind A Service To A Button

Feb 2, 2011

I am experiencing a strange problem when I want to bind a service to a button or something else:

[Code]...

I can add the services to the Data Services panel but I have two strange things:

1) when I want to configure the return type he doesn't let me create a new ValueObject type, I only get the bottom datagrid which states: Properties returned by the operation: Property: country_Id, provence_Id, city_Id, id_cdpc, district_Id with the related values on the right side. Why can't I create a new data type on the top?

2) When I accept this and want to add the service call to a button (drag&drop) I get the following error: Error occurred while generating code. Make sure that there are no compiler eroors and try again after reopening the file. Componentn type services.cdpc.CDPC not found... (ps: When I perform a Test Operation everything seems to be ok, I get the expected output values)

View 1 Replies

Javascript :: Flex - Works On Bin-debug, But Not On Deployed Server?

Feb 18, 2010

My Flex application is successfully calling functions in a JavaScript file through the ExternalInterface class when these are in the bin-debug folder and the JS file is located in the same directory as the Flex app.But when I test the Flex app on the server, it is not interacting with the JavaScript. The only difference I can find is that on the remote server the JS file is being pulled in from a URL, instead of locally. The JS file URL is in the same domain as the Flex application, therefore I don't think this is a cross-domain issue. What am I missing?

View 2 Replies

Flex :: Actionscript - Wrap A Java Applet Around A Flex Application?

Oct 20, 2009

I'm just learning about Flex and I'm loving it. Unfortunatly I still have to make the decision on which RIA technology to use and its dependent on, among other things, from the following case: How can we wrap a java applet around a Flex application? More specifically, I would like to wrap/integrate NASA's World Wind applet in a Flex panel, similar to what Adrew Trice did with the Google Earth API.

An alternative would be id Flex would support direct access to the 3D hardware through OpenGL or DirectX. But I do not think that that is the case yet, not even through AIR.

View 2 Replies

Flex :: 'Root Folder' Name In Flas Builder 4.5 If Java Web Application Is Deployed In War File?

Nov 13, 2011

I am trying to develop one simple application using Java, Flex and Blazeds. I am using Flash builder 4.5, blazeds 4 and JBoss 6.I have created 'Dynamic Web' application in Eclipse, added blazeds related file in WEB-INF/lib and in WEB-INF/flex folder. I have deployed this web application in JBoss using Eclipse, so this application is getting deployed in war file.Then I tried to create new 'Flex Project' using flash builder 4.5 and I am stuck in 2nd step where we have to configure Root Folder, Root URL and Context Root.As my java web application is deployed in war, there's no folder to which I can set Root Folder.

View 1 Replies

Professional :: Flex Applet In Flash Application, No Sound?

Sep 2, 2010

I have flex applet which captures microphone and plays back remote contact's voice. This application is running fine in browser or in standalone pages, but when this application is loaded in a flash application, no sound nor microphone capture. I have logs in this application, network invocations are working fine with my remote rtmp server application.
 
I remember I had an issue with allowScriptAccess which needed to be set to always instead of sameDomain on the web page where the main flash application was loaded, but here, this parameter seems to be set.

View 2 Replies

Flex :: Flex Causes Browser Unresponsive When Processing Large Amount Of Data?

Jun 29, 2011

I have an actionscript function which is supposed to launch a panel and then fill in Networktopology data inside it.As, network data is too large that it consumes much time and makes browser hang!Even I tried to display busy cursor which also stopped spinning when data was being processed.How can I ensure processing large amount of data does not hang the browser.

View 3 Replies

Flex :: Audio - Recording From Microphone From Within The Browser Using Flex Or Processing?

Jul 24, 2009

A groups of friends are working on a little game that would listen to the microphone as part of the interaction. We've tinkered with processing and flex. What we'd like to know is if anyone has succeeded in:

recording from the microphone using a web app

performing an FFT on this microphone data

In the case of flex, according to the docs "Because sound data from a microphone...do not pass through the global SoundMixer object, the SoundMixer.computeSpectrum() method will not return data from those sources."[1]

View 2 Replies

Flex :: Check To See If CallResponder Is Processing?

Apr 11, 2012

I'm using Flash Builder 4.6. As a simple example, say I have the following application:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:sdk="services.sdk.*">

[code].....

View 2 Replies

Actionscript 3 :: Flex: Processing Xml, Before Using It In Datagrid?

Aug 12, 2009

I have following problem: My webservice application returns xml data in following order:

<my_claims>
<claim>
<opponent>Oleg</opponent>
<rank>2000</rank>

[Code]...

View 3 Replies

Flex :: Pre-processing Data Before Showing It In AdvancedDataGrid

Jun 8, 2010

I want to extend AdvancedDataGrid to show a Waterfall Chart in one of its columns.

To do that I already created custom cell render that shows bars as I need.

Now I have a little challenge: I have to pre-process data to show my Waterfall Chart properly. I have to do it before my grid is show. So, I assume that I have to extends AdvancedDataGrid and overwrite some methods.

View 1 Replies

ActionScript 3.0 :: Flex Delayed Message Processing?

Aug 6, 2009

I've been working with a 3rd-party multiplayer engine for a game I'm developing. A lot of messages get sent during certain times (loading, etc) to the point where it is possible that multiple messages may be sent per gameloop. To solve this problem, I am attempting to create a delayed message processing scheme. this function is invoked every time a new message is received:

Code:
// called by the Client
public function PushMessage(gameMsg:GameMessage):void
{
messageQueue.push(gameMsg);
}

And at a point in the gameloop, I want to process these messages and clear the message queue. The only problem: there is no assurance that the messageQueue won't be modified during that time. The messages in AS3 are basically interrupts (possibly overlapping), and I can't find any way to temporarily disable event dispatching for a specific EventDispatcher-derived class.

So at this point I can think of only two options. The first is to write a mutex using a Boolean and setTimeout. I do not want to do this for obvious reasons (bad! BAD!). The second is to give up on a delayed processing model.

View 6 Replies

ActionScript 3.0 :: Image Processing In Flash (flex)

Oct 30, 2010

Is there a way to process a picture > 4096 x 4096 px in pixel bender? Or any other technique?

View 3 Replies

Flex :: Adobe - UI Processing Data And Displaydata In One Thread?

Mar 10, 2011

As I know. Flex/AS is single threaded.I want to write an application that talking to server side, also display the data streamed from server.Since Flex is single threaded. I am not sure how could I do this.Better not involve something like "implement your own multi-thread model"

View 1 Replies

Flash :: Flex - Client-side Image Processing?

Sep 20, 2011

I'm creating some image uploader in Flex with client-side image processing. Processing consists of two steps:
1. Resizing (solved)

2. Converting resized image (represented by ByteArray in PNG32 with alpha-channel) to gray-scale PNG with bit-depth = 2 and no color-palette. Is there any existing library that is capable of second step? Something like libpng for C++, maybe?Edit:It seem I stumbled upon rarely encountered problem. However my descision was to create an AS3 class that is capable of converting bitmapData to 2bit grayscale PNG. I used standart PNGEncoder and PNG format specification (which is not so good as I expected) as basis.

View 1 Replies

Flex :: Security - Setting Wsdl Service In Flex Project Crossdomain.xml?

Apr 7, 2011

How can i settings crossdomain.xml my flex project.* this is my crossdomain.xml.

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>

[code].....

I've tried lots of different methods but my project send error message "Security error accessing url Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL [URL]"

put the file in different places

C:wampwwwMYPROJECTin-debugcrossdomain.xml
(my swf url : http://localhost/bin-debug/test.html checked http://localhost/bin-debug/crossdomain.xml its ok)
C:wampwwwcrossdomain.xml

I added the load line of the project

protected function application1_initializeHandler(event:FlexEvent):void
{
Security.loadPolicyFile("http://localhost/MYPROJECT/bin-debug/crossdomain.xml");
}

if flex server type select none everythings ok. but server type select PHP need crossdomain.xml how can i fix.

View 1 Replies

Flex - Pass Authentication Headers Using Flex HTTP Service?

Sep 6, 2010

I am trying to access a .Net service which requires an authentication header. If WebService is used it works fine. But when it is accessed using HTTPService it throws error. The project is already done by somebody else using HTTPService. Now changing to webService requires some time since there needs to be modification in a lot of files.

Below is the SOAP envelop required by the service.

[Code]...

View 1 Replies

Flex :: Builder - Deploy Flex App Using Different Web Service Urls?

Sep 28, 2011

Is there some sort of configuration settings in FlashBuilder 4.5 where you can easily switch between webservice urls? Right now I have to delete and recreate the web service every time I switch from local to production and vice versa.

View 2 Replies

FLV / F4V Video Player Not Appearing When Deployed On Server

May 26, 2011

I've imported a video into Flash and have selected a skin for the video player.When I test on my local machine the video controls (skin) display and function as they should.But when I load the upload the .flv to the server, then re-import into Flash and select video deployed on server, publish, upload to server and and test the movie, the video plays fine but the video controllers are not appearing.I am using the html that Flash(CS5) created in the Publish Settings. I've different player skins with the same result.I've tried importing both .flv and .f4v's with the same result.

View 1 Replies

Flex :: Using Grails To Connect To A Flex Web Service?

Jun 20, 2009

I have a grails application that will be rendering an html page into a pdf file and I have a flex application sitting on a server that is going to accept REST parameters and construct a graph based on the parameters (which will be formatted in JSON). What I want to do is make a call to the flex app with my parameters and have the flex app create the graph, render a JPEG of the graph, then send an image back to grails. In other words, I want to put an HTML img src=that will render the image directly to the page so that my PDF Plugin in grails will render it into the PDF.

View 1 Replies

Flex :: Develop Flex/Air Application As A Service?

Jan 28, 2011

Is it possible to develop flex/Air application as a service. The application doesn't require any GUI it should run as service in embedded Linux/Linux/Windows.

View 1 Replies

Flex :: Mvc - A Different Service App Using Zend_Amf?

Feb 4, 2010

I have an iterator service that works fine already and returns a correctly structured values to my flex application through my Zend Amf server

$contacts = array();
mysql_connect( 'localhost', 'root', 'test' );
mysql_select_db( 'test' );

[code].....

View 2 Replies

Asp.net :: Asp.net - Flex App Not Hitting Web Service?

Dec 1, 2011

determine what is preventing my web service from being called. We have a working application in production and the developer who wrote it has left. am trying to build it on my machine and I can see a web service call in fiddler being made with the URL "/Services.asmx/MethodName" (as a GET request).I have set my break point in the asmx web service and it is not being hit. All I get in the flex front end is a pop up with " The remote server failed to respond and may be offline. he web service is in the same application as the web app that hosts the SWF file.I have the cross domain policy file in place.

View 1 Replies

Php :: Flex With AMF Returning Results Slowly?

Sep 3, 2010

I think this is just a matter of fine tuning some different elements, but I'd like to know your take. I've got a Flex app, using the Flex 4 data services, communicating with Zend AMF services. One of the services returns all the results in a database using SELECT * FROM table there are ~1200 rows (140KB package size).

My problem is the response time, it's rage inducing. Total duration is always between 7-8 seconds. All but about 150ms of that is latency. I broke up the PHP to figure out exactly where the latency was and turns out return $rows is eating up ~6.8sec latency. I can deal with 1-2sec, but when I start waiting around for 8sec I feel kinda dumb. I cross checked the query response speed directly from the database, and just like I was expecting the total query time is 45-60ms.

PHP, this is basically just the generated Flex data service code, although in production it isn't the same:

public function getAllProject_entries() {
$stmt = mysqli_prepare($this->connection, "SELECT u.*
FROM $this->tablename u");

[code]....

View 1 Replies

Flex :: Stop A Web Service From Executing?

Jan 12, 2010

is it possible to stop a web service from executing?

I have a flex web application that searches clients with both full name and client id, when searching by name sometimes the usuer just types the last name and it takes a long time.

Since the app is used when clients are waiting in line, I would like to be able to stop the search and use their full name or id instead, and avoid waiting for the results and then having to search the user manually within the results.

I meant "web service" I actually meant mx.rpc.soap.mxml.WebService, I want to stop it from waiting for the result event and the fault event.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved