Flex :: HTTP Resources Not Loading?

Jul 8, 2009

I'm working though the Adobe "Flex in a Week" video training series, and I've reached Exercise 9, which deals with creating a remote service call. Up til this point, the data source and images have been local assets (located in src/assets in my Flash Builder project).
I access the room list by this:

<mx:HTTPService id="rooms" url="assets/roomList.xml"
fault="httpFaultHandler(event)"
result="httpResultHandler(event)"/>

Here are the two result handlers:

private function httpFaultHandler(event:FaultEvent):void{
Alert.show("There was a problem","Error");
}[code]...........

However, when I run the application in the blazeDS container, I get no rooms despite the fact that the room list clearly exists in the deployment directory after running the application:

$ find . -name roomList.xml
./tomcat/webapps/odt/adobeODT-debug/assets/roomList.xml

How can I debug the reason for this failure? The deployment process used by the Flash Builder tool is fairly opaque, and the tomcat instance isn't advertising 404s from Flex apps. Is there logging somewhere, or something, that needs to be turned on?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Loading Thumbnails Using Search Box - Flash Resources

Aug 5, 2009

Any way to dynamically see how much memory the Flash player is taking up? I am loading in hundreds of thumbnails using a search box, and I want to make sure assets are off-loading properly. Also, the thumbnails are being loaded in one at a time in a for-loop. The thumbnail addresses are being received via an XML page. When I load them through the for-loop, some of the thumbnails never load. Most of them do, but I find spots where they don't. Most important question is about the flash resource manager! Is there one?

View 12 Replies

ActionScript 3.0 :: Loading Resources - Create A Loader To Load My Game?

Dec 20, 2009

I am making a game, then I learned to load the resources (images,etc) just when I need them, using the Loader class.I would like to know if I embed them they would be loaded with the game swf file (I am thinking as if my game is on a website) or when I instantiate them.If I load it one time and not use it anymore (loose its reference) and after some time load it again, will it be downloaded from server again? Or it will load from my pc? If I put the resources on a folder in the server (now I am using a folder on my pc) anyone would go there and get all the resources! What should I do? how my game would work on a website, not on my PC only I got the idea to create a loader to load my game, but I cant think about the resources loading,

View 1 Replies

ActionScript 2.0 :: Good Online Flex Resources?

Jan 9, 2007

Can anybody tell about good online flex resources? maybe a good forum?

View 2 Replies

Flex :: Localization - Use Localized Runtime Framework Resources?

May 10, 2011

By default, Flex uses signed .swz files to hold the Flex Framework classes. I noticed that under Adobe Flash Builder 4 > sdks > [version] > frameworks > locale > [locale] there are multiple languages supported.en_USen_GBzh_CNetc etcThe files in these directories vary in that they contain a "_rb.swc" at the end of each file. Files include datavisualization_rb.swc, spark_rb.swc, framework_rb.swc, etc etc. These are different from the rsls signed framework resources stored as .swz in framework .rsls. Since localized signed versions of the framework don't appear to be available, can I use these locale > [LOCALE] .swc versions instead as RUNTIME SHARED RESOURCES?

I DON'T want to compile different versions of my app for each locale, rather want to link the localized framework resource libraries at runtime. It would be nice to have the contents of the sdks > [VERSION] > frameworks > locale directory copied into my bin-debug/bin-release folder when I build my app.Is this possible? How would I set this up in Flash Builder 4?My assumption (I know about assumptions) is that there is a way to set up the Flex Build Path or supply compiler options that would cause all of the locales stored in the locales > [LOCALE] folder to be included into the bin-debug/bin-release of the project.

View 1 Replies

Flex :: Maven 2 - Coping Swf Resources With Mojos To The Custom Folder?

Sep 16, 2010

How I can configure copy-flex-resources goal and swf dependencies to copy swf files to the custom folder in my web-app? By default it copies to the web-app root.[URL]

View 2 Replies

Http - SWF Flash Files Not Loading With IIS Compression On?

Mar 7, 2010

I've got a bunch of flash files being served off a HTTPS site in IIS7. With contentcompression turned on, the flash files wont display. Does flash not support HTTPcompression, or is IIS doing something unusual?

View 1 Replies

Actionscript 3 :: Loading Images And Video In AIR Without HTTP

Jan 2, 2012

I'm curious what the correct methodology is for loading image and video data directly from the file system, without employing HTTP.I'm writing an AIR slideshow application, and it works great but currently relies on a local MAMP server to hand the app all the media via the standard, tried and true, FLASH media loading methodologies.I know that since FLASH was developed as a web plugin it handles this way of receiving data best, but I'd really like to extricate this rather onerous and unnecessary bit and have the app as a stand-alone player, however, I'm unclear what the "correct" way is to load the media.I have the File objects ready and I've gotten as far as having the user select the local directory from which to pull the media and I'm getting a list of the files (based on their extensions) from the list.

View 1 Replies

ActionScript 3.0 :: Loading FLV From Network Drive To SWF In HTTP

May 17, 2011

I have an swf wrapped with swfobject in html on a intranet: [URL]. That swf tries to access a flv file on a network drive:
\sub.mydomain.comdatamediamymovie.flv
I get an NetStream.Play.StreamNotFound error when I try to load that flv file. The code works fine when accessing files on the same http domain and when locally on my hd.

I've tried both with single and double backslash I the path so that it isnt broken.. cause I noticed that flash removes single backslahses. It actually seem as if I cant access any file on the network drive. So therefore I cant load a policy file (crossdomain) from that netwrok as well. I've added the network path to the Global Security settings panel, but that doesnt work. But it actually works in plugin version 10.1.. but not in 10.2 or 10.0. How is that for weird. I think it has something to do with security sandbox when accessing file over networks.

View 1 Replies

ActionScript 2.0 :: Access To Singleton Instance After Loading Swf Via Http?

Oct 14, 2009

My first swf loads a singleton class and instantiate it , and I access to it in the following swf's files (they were loaded in local system).

Now I have to load all swf via http. The issue is when I load second movie throw the first one, I can't get the singleton instance... it seems it lost reference...

View 0 Replies

ActionScript 3.0 :: Not Loading Videos From A Network Share (unc Path) Into Swf On Http Intranet

May 17, 2011

This isse occurs in flash player 10.2 but not in 10.1. Im sorry if my rusty english is making this hard to understand. I have an issue that causes my hair to turn grey. I think it has something to do with security sandbox when accessing file over networks share from http. I have an swf wrapped with swfobject in html on a intranet: [URL] That swf tries to access/stream/load a flv file on a network share unc path:[URL] I get an NetStream.Play.StreamNotFound error when i try to load that flv file. I catn even load an image from that share. The code works fine when accessing files on the same http domain and when locally on my hd.

I've tried both with single and double backslash i the path so that it isnt broken.. cause I noticed that flash removes single back slashes. It actually seem as if I cant access any file on the netwrok drive. So therefore I cant load a policy file (crossdomain) from that network as well. I've added the network path to the Global Security settings panel, I can provide you with more info if you want to.

View 2 Replies

ActionScript 3.0 :: Loading The Image Binary (after HTTP Request Headers Are Removed) As A Bitmap In Flash?

Sep 11, 2010

I'm building an image viewer that has violent content (video games), and so it requires users to enter their birthdays. Problem is that because of company policy, I can't expose any of the source images being viewed in the event that someone might use their resources/net tabs (or just sniff the request) and get the direct link to the image. (I know that they could screenshot it, but that's out of anyone's control and not something I'm worried about.)Is there anyway to inherently mask loaded resources (images)? I've been using sockets, which is great, but there's also the problem of actually loading the image binary (after HTTP request headers are removed) as a Bitmap in Flash.

View 4 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

Ruby On Rails :: Access Resources Login Protected With Rails And Flex?

Feb 27, 2010

i'm trying to figure out how i can handle login protected actions in RoR (Ruby on Rails) with Flex without using weborm or rubyamf remoteobject.I'm in the situation where i have to fill a datagrid with results of an HTTPService request after i log in correctly into my application. Can anyone suggest me the way to accomplish that?

View 1 Replies

Flex :: Superfluous Calls To AddEventListener("event", ThisSpecificFunction) Waste Resources?

Apr 6, 2010

I have ItemRenderers that need to listen for events. When they hear an event (and when data changes), they dispatch an event with their current data value. As item renderers are reused, each of them is going to add its callback in set data(value...)and pass the callback function in the event as well as the current data value. So, the listener of the item renderer's bubbling event will set someEventDispatcher.addEventListener("someEvent", itemRendererEvent.callbackListener). This will happen more than once. Does setting the same event listener on the same event for the same dispatcher waste resources? Does the displatcher see that it already has the listener?

View 1 Replies

Flex :: How To Implement HTTP Tunneling

Jul 26, 2009

I've written a Flash (Flex) client connecting to a back-end server to exchange data. I've also written my server from scratch, and it serves two purposes:

(1) Web (HTTP) Server- By default listens on port 80

(2) Socket/Application- Server - By default listens on port 443

Just FYI, both servers run in the same process space, for convenience reasons. They are not expected to handle massive loads, so I'm fine with that. As soon as the Flash client is served to the browser from the HTTP socket, the client attempts to open an XMLSocket to the Socket/Application server. I now want to implement HTTP tunneling, so that my client can connect to the Application server even if the user is behind a firewall. I do not want any external servers involved (proxies etc.) - simply use the servers I already have.

My questions:

(1) Is it better to use port 443 for that? (does it better fool firewalls?)

(2) As far as I can see, what I am required to do, is just ensure that my actual application data is simply encapsulated in an HTTP structure (preceded by a dummy HTTP header), both from the client and server sides. Is that so or am I missing anything here?

(3) Do I need to keep hiding/encapsulating my data every message I send through the socket, or can I just encapsulate the first message when opening the connection?

View 1 Replies

Flex :: Http DataInfo Used With ResultHandler

Jan 2, 2010

I use this resultHandler and instead of using my data with four(4) separate field I would like to use the following code in one field. and as a one line read out?
E.g (title + "." +firstName + " " + middleName + " " + last Name) = (Mr. Harald E. W. Buttweiser). I get it with static Xml e.g. models but cant find the right way to get it with my Http!

[Code]....

View 1 Replies

Flex :: Http - Handling Redirected URL Within App?

Apr 1, 2010

We have a Flex client and a server that is using the Spring/Blazeds project. After the user logs in and is authenticated, the spring security layer sends a redirect to a new URL which is where our main application is located. However, within the flex client, I'm currently using HTTPService for the initial request and I get the redirected page sent back to me in its entirety. How can I just get the URL so that I can use navigatetourl to get where the app to go where it needs to?

View 2 Replies

Flex :: End Up Getting A Http 500 Error And Have Not Been Able To Get Past That?

May 24, 2011

I have used wsdl2js to generate the javascript needed to communicate with the service.However I end up getting a http 500 error and have not been able to get past that. I have looked through the provided examples from the Apache CXF download and I have done some searching and cannot find a solid example of creating the javascript client. A lot of examples seem to somehow access the wsdl file at runtime from a server but my javascript is already generated from the CXF tool and I just include the scripts.

Adobe Flex and AS3Another option I have considered is using Adobe Flex. I create a new Mobile Flex project in Flash Builder using the BlackBerry PlayBook SDK and Flex 4.5. However when I use the menu options to connect to a web service I get prompted with "This option is only available for flex projects."Are there any other options out there that provide a solution to this problem? If you need more information just let me know

View 1 Replies

Flash :: Read A Http Response Body When Tyring To Read Http Via Tcp Socket?

Feb 19, 2011

So I want to read http streams using flash tcp sockets. I do not really need the http header at all - all I need is body which contains flv. so how to read http response body into byte array using flash sockets?

View 1 Replies

Flex :: Inspect HTTP Traffic In Adobe Air?

Aug 22, 2009

How does one inspect the HTTP traffic in Adobe Air? Obviously because it's running outside of a browser you can't use firebug .

View 4 Replies

Django - HTTP Push Examples In Flex?

Aug 31, 2009

I am trying to create a simple board game (a kind of checkers), where users will be able to play online with each other using flex application as a client.

I am using django application to process the game on the server side. And I come across the problem, if one user made a move, I can send it to a server, but how do I let the opponent know about it?

The way I am thinking to do it is to create a timer and send requests to the server asking was opponents move done or not....But here we have 2 limitations:

1) Each client would produce big amount of requests (not sure how server will work if I have e.g 100 such clients)

2) If players will chose game with a time limit for example 5 minutes/per game it will be very important to show them situation on the board as soon as it changes (without a pause), but timer will send request only on timer event, so if for example I will chose tick interval to 5 seconds it will mean that 5 seconds another side will not be aware of the situation changes.

View 4 Replies

Flex :: Retrieve Body Of A HTTP 403 With Flash?

Dec 15, 2009

I've got a simple YouTube API client put together, written in Flex, that uses a plain ol' URLRequest object to handle Google's "ClientLogin" authentication scheme. Everything works perfectly, except for one case: when Google responds with a 403 and a response body indicating that I should prompt the user for additional information (specifically, a CAPTCHA request).

The problem I'm having is that in this case, I need to be able to retrieve the body of the 403 response, as the body contains information Google expects me to use to assemble the CAPTCHA (e.g., an image URL, etc.). It looks like Flash fails to populate the URLLoader's data property when it encounters a 403 (which is where the response body would normally show up), so I can't tell the difference between a "403: Login Failed" and a "403: Login Succeeded, but We Want a CAPTCHA".

As a backup, I figured I'd have a look at as3crypto's TLSSocket code, but I haven't been able to make any of that stuff work with Google (or even one of my own SSL certs, for that matter).

Is it possible to access the body ofa 403 response with Flash (and if so, how)? And if not,Does anyone have personal experience with a suitable workaround?

View 1 Replies

Flex :: Switch From HTTP To HTTPS In Application?

Dec 21, 2009

I am building a FLEX web application that also has a payment module where the user needs to enter his credit card details.

The whole Flex application runs on HTTP. However, whenever the user lands on a page where we ask for credit card details, we want these details to be sent over HTTPS.In this page we need information from the model of the application, because it holds certain selection the user did, the state the application is in, etc.

Do I need to make this page a Module that runs on HTTPS?

Or can I just configure the specific 'credit card' services (we have a JAVA back end) so that these run on HTTPS?

View 1 Replies

Http - Display DB Blob Type In Flex?

Aug 2, 2011

My Mysql database stores images (in PNG, JPG)of our personnel and it's field type is set to longblob.

Is there any possibility to load blob data type using HttpService and render it in Image component in Flex

I'm eager to know about as it comes in handy in the nearest future!!!

View 2 Replies

C# :: Handle Http Fired By Flex In Server?

Jan 22, 2012

I am trying to send a simple HTTP message from Flex to C# server, but it seems that I am getting tow calls, first is the real one and the second is an empty one.

Why is that and how can I handle it?

This is my C# code:

TcpListener listener = new TcpListener(IPAddress.Any, 9400);
listener.Start();
Console.WriteLine("Server started");

[Code].....

I been trying to send a true HTTP response a notice another thing, the second call is coming without waiting for the first call, if I am putting the response thread to short sleep(100 milliseconds in my test) then I am getting the second call before I been able to response for the first one.

View 3 Replies

Flex :: Get The Response From An HTTP Request On Error?

Jun 2, 2009

I tried using both HTTPService and URLRequest/URLLoader. But I can't figure out how to get either the response output or the response headers in case of a server error(like 500).

View 1 Replies

Flex :: Http - Prevent From Caching An External Resource

Jul 1, 2009

I'm writing a flex application that polls an xml file on the server to check for updated data every few seconds, and I'm having trouble preventing it from caching the data and failing to respond to it being updated.

I've attempted to set headers using the IIS control panel to use the following, without any luck:

CacheControl: no-cache
Pragma: no-cache

I've also attempted adding a random HTTP GET parameter to the end of the request URL, but that seems like it's stripped off by the HttpService class before the request is made. Here's the code to implement it:

http.url = "test.xml?time=" + new Date().getMilliseconds();

And here's the debug log that makes me think it failed:

(mx.messaging.messages::HTTPRequestMessage)#0
body = (Object)#1
clientId = (null)

[Code].....

View 2 Replies

Flex :: Filling Datagrid From Remote Http Service?

Jul 21, 2009

I am trying my first flex application. And have a problems adding data from xml http service to datagid.

My xml file looks like this:

<players>
<player>
<name>test</name>

[Code]....

The problem is that nothing is shown in the datagrid

View 1 Replies

Flex :: Block Http Requests To Some Web-pages From Adobe Air

Jan 20, 2010

Is it any way to prevent user to go to specific web-pages using Adobe AIR framework.I want this software to run at startup and not allowing user to surf some web parts.I want to use Adobe AIR beacause of its crossplatform capabilities.

View 1 Replies







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