Flex :: Data Fetching From The Server?

Apr 3, 2011

I have a Flex-based client app which "talks" to the back-end through BlazeDS. In one of my use cases there will be a so called "Photo Wall" view, which will present a number of the most recent photos, submitted from people and for locations the user is following (Facebook-like).

The thing is, the data in this photo wall has to be filtered by "All", meaning no filter, "Friends", meaning friends that the user is following, and "Locations", meaning locations the user is following. If I get data from the server only once (when the ALL filter is selected by default), I will store it locally, and the next time a user clicks on a filter, this local collection will be filtered locally. The problem is that I can't predict how many of all recent photos are coming from friends, and how many from locations, thus I may end up with a page that shows only one photo, where a minimum of 5 photos should always be present. I clearly don't want to deal with partial fetching and stuff like that.

The other way is making two separate requests to the server initially, one to get a collection of recent photos from friends, and one for locations. Thus I will make sure I have the bare minimum of photos for the filtered pages. When data arrives, the client will merge those two collections, sort by date, and voila there is the "ALL" collection (of course, repeating photos will have to be pruned while merging)Third, making this same thing down at the server level, by making two separate queries and then merging them.

View 1 Replies


Similar Posts:


Actionscript 3.0 :: Fetching Data From Database?

Aug 26, 2009

i am trying to build a web application wherein i have two display data in two text fields. one text will display the Resort name and the other one will display the URL related to the resort.There are only two fields.

View 5 Replies

ActionScript 3.0 :: Fetching Current Date (From Any Other Server)

Feb 24, 2011

My app needs to fetch the current date and I don't want it to come from the computer's clock. I've searched [URL] and other sites for APIs, but have come short so far. Is there a web service somewhere or any other dedicated server where I could fetch today's date from using AS3?

View 1 Replies

Actionscript :: Flex Fetching Assets From A CDN

Mar 25, 2010

My main.swf loads symbols from other swfs at runtime. If I keep all the swfs(main and others)on my server, things work fine. But if I keep all of them on a CDN, one particular symbol won't display occassionally. With flash tracer plugin for firefox I am able to see that all the symbols have been loaded and their z-indices are as they should be.

View 1 Replies

Flex :: Insert Data Into A SQL Server?

Apr 5, 2010

I want to insert data into a SQL Server, but I keep getting this error RPC Fault faultString="SOAP Response cannot be decoded. Raw response:faultCode="DecodingError" faultDetail="null"]

I can get data all day, but why can't I input any?

<mx:WebService id="ws" wsdl="http://localhost:/AService01.asmx?wsdl"
fault="onFault(event)">
<mx:operation
name="GetEmployees"

[Code]...

View 1 Replies

Flex :: Retrieve CSV Data From A Web Server?

May 18, 2010

I am trying to retrieve a stock quote from Yahoo! finance using Flex. I currently have it set so that it will pull the quote like I want, but it opens it in a new file. However, I want to store the CSV data in a variable so that I can use it in my program.

How do I do this?

Here is the code that I am using right now:

navigateToURL(new URLRequest("http://download.finance.yahoo.com/d/quotes.csv?s=aapl&f=l1"),"_self");

View 3 Replies

Flex :: Store Data About Server In App?

Mar 28, 2011

I am a Flex newbie and I'm developing a Flex application that needs to talk to an AMF server in order to authenticate the user.Where should I store the server URL? I don't want to hardcode it in the source code, but the URL should be fixed at compile time, because when I compile the app it should be tied to a specific server.

View 3 Replies

Flex :: Use Dto's To Transfer Data Between Server And Client?

Oct 28, 2009

I've read some books on creating stateless websites, I've read some about stateful client applications, but a lot of complexity comes along when you have to combine both. We have a Flex application that needs to persist data to a database via .NET services. Things to keep in mind are:

- Concurrency (optimistic/pessimistic)

- Performance: Flex needs to load in lots of data so lazy-loading is often necessary.

- Do you use Dto's to transfer data between server and client?

I'll tell you the history of our product. We've used SubSonic from the beginning as a o/r mapper. SubSonic objects are converted to dto's written by us and these dto's are transferred to the client. Clientside the dto's are converted to the domain model. If clientside a domain model object needs to be saved, it is converted back to a dto and send to the server. Server side the dto is converted to a subsonic object and saved to the database.

Now, some time ago, we needed the domain model on the .NET server side... so now we have like three models on the server side, the subsonic model, the dto model and the domain model. The dto model is more simple and resembles the database more, the domain model has much more logic. It gets complex... We now have to synchronize the AS3 domain model code with the C# domain model code. If we could do it again (of get time to refactor) I think we wouldn't use the dto's anymore, but transfer the domain model between client and server. Dto's are simple objects so easy to transfer. Domain model objects can be very complex.

View 2 Replies

Flex :: Jabber Server Returned Data?

Dec 3, 2010

I am developing a chat application using flex, which can use different service providers users like gmail,yahoomail,ami etc. Almost similar like meebo.com.

I am using jabber server. My question is what kind of information jabber returns.I am getting userid,password,status,status message but I am not getting address or phone number of the user or picture of the user..

Please let me know,how can I take these values and what should I pass to jabber server to revcieve full information from jabber for different service provider's users.

View 1 Replies

Flex :: URL Encoding - Posting Data On Server

May 27, 2009

I want to post data to a URL on my server from a Flex app. I am using the following
UrlParam = UrlParam + '&name='+ name.text + '&business=' + buisness.text; navigateToURL(new URLRequest(UrlParams),'_self');
The problem I am having however is that if I enter a business with an ampersand ("A&b.com") then the name does not send. Does Flex have anything out of the box to do the encoding from & to %26?

View 2 Replies

Flex :: Downloading Data Posted To Server As A File?

Jul 8, 2010

I'm trying to post data up to a server and have it bounced back to me as a file download, prompting the native browser file download box. I know the server part works just fine becasue I can post from a demo web form, but when I run the following Flex 3 code, I can't even get the request to fire.

var fileRef:FileReference = new FileReference();
private function saveXmlAsFile(event:MouseEvent):void
{

[code]......

View 3 Replies

Java :: Check If Data Sent From Flex To Server Is Zipped Or Not

Aug 4, 2010

I want to analyse if the XML I send from my client Flex to my Java using remoteObject is compressed or not. for this, I'm using Wireshark, but it can't get packets in the localhost (windows vista)

View 2 Replies

Flex :: Uploading Data And Track Bytes Sent To Server

Nov 6, 2010

I want to upload data (not a local file) with Flex (4.1), and show what the progress is of the bytes sent. Now I use a URLLoader, but I know that URLLoader was designed to download data, I can connect a listener to ProgressEvent.PROGRESS but that has no effect. I also know there is a FileReference object which supports uploading. The problem here is, I do not want to browse for a file and upload it. I have a byte array which I want to send to the server, but the data property of FileReference is read-only. How can I send the byte array (which is actually a PNG encoded image) to the server and be able to track the progress of the bytes sent to server?

View 1 Replies

Flex :: Save Data Into External Files In AS3, With Out Server?

Dec 10, 2010

How can I save some text information in local hard-disk with out the server support. I know shared object, but i dont use this. I need to save all these function in anther external file as text.

Is there any way to do that in AS3.0.

I don't prefer Flex, am working in Action Script 3.0 & Flash IDE

EDIT:

My swf is saved in a local machine. So no server interaction or browser interaction. the swf is running a local folder and read txt files from local folder, and save once press the save button.

View 3 Replies

Flex :: Adobe - Send/receive Data From/to Media Server

Oct 27, 2009

i want to make a simple chat with flex as3 and red5 media server

my idea is that i send from the swf a message to the server and the server sends it to all the swfs (including the one that sent the message)

i just don't know how to to send and receive and how to receive from the server

View 2 Replies

Send Xml Data To The Server Using HttpService Request Thr POST In Flex?

Dec 12, 2009

send xml data to the server using HttpService request thr POST in Flex?

View 1 Replies

Flex :: Save Data Into Flash Media Server Like Rdbms?

May 17, 2010

im using fms to save datas like rdbms. Im using shared object for this. But I cant save more than one row of data into flash media server. What can I do for this purpose??

View 1 Replies

Java :: Build The Client With Flex And Connect To The Server Data With BlazeDS?

Dec 20, 2010

I have a server with some simple java objects running. I want to build the client with Flex and connect to the server data with BlazeDS. The problem is the Flash Builder is not generating the Classes correctly. Just the properties are being generated, the inheritance are not being generates.

View 1 Replies

Flex :: Messaging - Selective Server Data Push Using Spring Blazeds

Mar 1, 2011

I have a flex UI which communicates with server using spring blazeds. I have a very typical requirement of Live data streaming on a panel in UI. Requirement is like this, We have an object say, Person and server keeps pushing its data on blazeds message destination where UI panel consumer has subscribed and hence user can see this live data in a panel. User can open multiple panels in same browser to view data for different Persons at the same time (e.g id=1,2,3 respectively). There can be multiple UI users who may be viewing the same data for person id=1 at a given time, lets say.

Basically I want to separate data between UI panels. UI panel opened for person id=1 must not display data of that for person id=2. I am doing this using headers-selectors, but apparently I found out that the differentiation to select and display what data happens on UI which is causing performance issues. I learned that using subtopics may improve performance. But, before proceeding for it, I want to know, will UI browser end up in receiving data irrespective of subtopic assigned to data and then consumer will decide to accept it or not?

View 1 Replies

Flex :: RDS Server Connect Data Services Using Blazeds Get Error Message

Mar 2, 2011

When I connect data services using blazeds I get following error message.

[Code]...

Why am not able to connect? But when specify remoteObject in the declaration tags and call the methods it works fine.

View 1 Replies

Flex :: Streaming Server (for Pushing Data Not Video) Setup With GraniteDS

Apr 21, 2011

I have a streaming server (for pushing data not video) setup with GraniteDS and it works great. I have to include multiple swf files in a web page. Each of these swf files has a data table which includes streaming data(this is a specific requirement - so I really cant combine all data tables into 1 huge data table/swf file). All the swf files however, connect to the same gravity channel/streaming endpoint.

How many connections are there from the web page to the streaming server? Does each swf file start a new streaming connection? Or do all them share the same connection since they are just connecting to a single channel?

View 1 Replies

Process Flex/Flash SPEEX Audio Data On The Server Side?

May 4, 2011

I'm implementing a very simple audio-only RTMP server.I have my client code like this:

// get the default mic
var mic:Microphone= Microphone.getMicrophone();
// best quality (picks up all sounds, no transmission interruptions)[code].....

Then on the server, I keep receiving audio packets with size of either 43 bytes or 11 bytes (no other sizes found yet).My questions are:

Why do I get size of either 43 bytes or 11 bytes (from SPEEX encoding?)?

Is the 43 bytes = 1 head byte + 42 data bytes?

What is the size of 11 bytes?

How should I process or convert the SPEEX to raw data, so that my server side app can use this audio data? My current implementation:

I pick up all 43-byte packets (drop all 11-byte packets);

Skip the first 1 byte;

Decode the left 42 bytes using Speex library.

How should I convert the raw data back to SPEEX audio data?

View 1 Replies

Actionscript 3 :: Send Data In AMF Format From Flex To Java Socket Server?

May 19, 2011

i want to know how to send data using the AMF format from my flex AIR project to a socket written in Java. I am getting CorruptedStreamException when sending data using writeUTFBytes() methods. Has anyone experienced similar problems? Also can AMF be used only if i am using LCDS only?

private SimpleServer(int port)
{
System.out.println(">> Starting SimpleServer on port " + port);

[code].....

View 2 Replies

Actionscript 3 :: Write Data To Socket Opened By Flex From Java Server

May 19, 2011

Ok, basically my Flex app will open up a socket and listen on it. My java program will write some string to this port.

My AS3 code is

private function onRecvClick():void
{
var host:String = "localhost";

[Code]....

While trying to write to the socket, i am getting this java.net.ConnectException: Connection refused: connect. Funny thing is that the socket in Flex doesn't seem to dispatch any events, is it normal for that to happen?

View 1 Replies

ActionScript 3.0 :: Delay Of Fetching URl?

Apr 5, 2009

I've got the stop command in and the get url, what I wanted to know is if there is a line of code or something to dealy the fetch for like 5seconds? Also how after adding an animation do I keep it there, for instance I have three animations all starting at different parts and I need to extend the first one so the graphic stays in place. I tried just adding frames to each animations layer to extend it, but it fouls up the animation.

View 11 Replies

Flex :: Use Existing Tools To Facilitate Process Of Changing Data On Server Using DataGrid?

Aug 18, 2009

It is very simple to retrieve data from a database and display it inside a DataGrid. However, what are the current practices to push the changes in the DataGrid back to the database? One can achieve this by inserting a lot of meta information, however, it is very tedious and not reusable.

View 4 Replies

ActionScript 3.0 :: Fetching A String Globally

Jun 5, 2011

For examples sake, say I have an 'Icon' class. When you set Icon's 'name' variable, it downloads the image (of the given name) from a server/directory.

The problem however, is that even though the name (of the image) is provided, the name of the server, or even the folder containing the image is not.

Of course, I could explicitly define the full name and location of the file to the class, but if I ever decide to change folder structure I would have to go through and find all references to the folder and change it. It also seems wrong to litter all of my parent classes with arbitrary URL's to feed to the Icon class.

The preference of course would be to 'globally request' the image server/directory on instantiation, but in the world of OOP how is this best achieved?

I was just about to have the Icon class dispatch a bubbling event, letting something at the end of the displayList catch the event/request and feed it the information (a String) it was looking for, but it didn't feel right. It feels like dispatchEvent should only be used to Dispatch Events, not request a string...

Also, I've come up to similar situations where I've needed a similar request structure without being an extension of EventDispatcher (such as just a primitive Object). Is there a best practice for both?

View 9 Replies

Flash :: Fetching Variable From Javascript?

Mar 2, 2010

I'm creating a quiz and as a timer in the quiz I have a flash movie (an animated clock). I poll the clock every second to see if the time for the quiz has run out.

[Code]...

First of all, it just fetches the flash movie object, and then calls some mehtods on the object. This works fine in Firefox (pc & mac), Safari (mac) but in IE8 on pc it returns 'unexpected error on line 3' (or any other line that uses the flashMovie object

[Code]...

View 2 Replies

ActionScript 3.0 :: Fetching Image From Xml Having Html Tag

Apr 29, 2011

I have a problem that em fetching image from xml having html tag. I want if someone click at that image it should magnify.secondly I have imported a swf in another but when I do it online it wont open at its correct place you can check this issue at esrtreatment.com/hma in project gallery tab.can some one tell me what that issue is as it open at its right place when i open locally.

View 0 Replies

Licensing :: License The Data Visualization Components (charting) For The Flex SDK On An Automated Builder Server?

Oct 23, 2009

I have a professional license of Flex 3.3. This allows me to create applications using the data visualization components (charts) without watermarks. However, all of release builds (test, production, etc) occur on our build server.

The build server only has the Flex SDK installed (not full Flex Builder). As a result the SWFs compiled with this SDK contain watermarks on all the charts. How can I apply a Flex Builder Professional license to the build server to remove the watermakrs w/o installing Flex Builder?My build environment is Flex SDK 3.3 + CruiseControl.NET + NAnt.

View 3 Replies







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