Serialization - What Are The Pros/cons Of Using AMF Versus Serializing Data Between Flash And A Web Script/service

Nov 24, 2009

I was using the serializing approach between Flash and PHP for the longest time before AMFPHP had its 1.0 release (wow...that was a long time ago...in 2006)!Serializing using a sepiroth's AS library paired with PHP's built in serializing functions worked and I didn't change it because it did the job.

Should I switch over to the AMF format and technology? One pro is that the data exchange is probably more efficient for AMF because it's a binary format.I've also see other scripting languages/frameworks such as Python/Django, Ruby/Rails supporting AMF. I guess AMF is also a standard format. Does each language serialize data differently?

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Outweigh The Pros And Cons Of Using Vector Vs Array

Jan 22, 2010

I'm developing a small library and trying to outweigh the pros and cons of using Vector vs. Array. So far, I can only think of a few things to think of: Vector only works for FP10, while Array works for both 9 and 10. Vector is typed (which is a wonderful, fabulous thing), but if I'm only using the Array as a private variable, so I have full control over what goes in and comes out of it, this factor may not play as great a part anymore, but definitely great protection.

I believe I heard somewhere that Vector is a lot faster than Array, yet in a quick inconclusive speed test I did a while back, it didn't seem to make any real difference at all. Is Vector really faster than Array? If so, is it faster in all aspects, or only faster in certain situations just as uint is only faster than Number when using byteshifting?

View 2 Replies

Jquery :: Flash - Pros And Cons To Use Jquery SWF Plugin Over Original Swfobject?

Mar 12, 2010

I'm alreadu using jquery library on site.What are pros and cons to use jQuery SWFObject plugin over origional swfobject

jQuery SWFObject plugin

http:[url].....

View 3 Replies

Php :: Flash - Flex - Connect To Data Service Via PHP Versus SOAP?

Aug 26, 2011

I am writing an application in Flash Builder 4.5. I am also writing a PHP Web service to access data from our MySQL database. This Web service will be made available to third party clients for them to develop applications to access our database as well, via SOAP.

Is there a big performance difference between connecting to the service in Flash Builder via connecting directly to the PHP file vs. connecting to a Web Service via SOAP?I would kind of like to connect to this service the same way that our clients will, to make sure things stay as uncomplicated as possible for future development, but performance is my main priority.

View 1 Replies

ActionScript 3.0 :: Flash Requesting Data From A WCF Service?

Sep 6, 2011

I just finished making a WCF service for a little hobby project.

[Code]...

View 3 Replies

Flash :: Flex - Manipulate Data Returned From PHP Service In Builder

Mar 12, 2011

I'm using the data/services in Flash Builder 4 to access the php functions of a site within an Air based Crud, and figuring out the most efficient ways to work with the data objects that come back.

[Code]...

The data comes back as an associative array, which is fine if I want everything from it to be treated the same. But I'm not sure how I am supposed to pull a particular column from the array without having to go through a for loop to parse through it.. since right now the contact name would be at allContacts[i].name.

Basically I want to make a list of the names from the allContacts, so I want an array of allContacts[i].name to set as the data provider for a element. Is there any way to get that done without having to write a for loop to convert it into a new array or writing a new php function?

View 1 Replies

ActionScript 2.0 :: What Are Cons Of Publishing In Flash Player 7

Jan 23, 2010

I've been working on an xml gallery. The website scales according to the browser window. Some of my work is fine lineart and any scaling seems to cause a lot of aliasing. If I publish it with Flash Player 7 the scaling is fine.This may sound like a naive question but what are the cons with publishing a portfolio with an older Flash Player?

View 2 Replies

Adobe Flash Builder Http Data Service Call Fails Only After Export?

Dec 8, 2011

I wrote an app using adobe flash builder that makes an http data service call to a website.

When I build and launch the app it loads in my browser (the address in the broswer is C:Userspath omyapp.html) and works perfectly. However, when I upload the app to my website or even launch it from outside the project build directory, the HTTP service call fails with the popup

Security error accessing url
Destination: DefaultHTTP

Of course I googled this error and realized it may have something to do with a 'crossdomain.xml' in my web root directory. I tried this and it continued to fail.
Below was my crossite domain file

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="www.my_domain_for_http_service.com" />
</cross-domain-policy>

I'm using the free trial version of Adobe flash builder, but I do not see anything indicating that this has to do with the error.

Data from http service call is in xml format.

View 1 Replies

Flash :: Flex - Benifits/cons For Multi-player Servers For A AIR Game?

Jul 13, 2011

I have an air application that I'd like to turn into a multi-player game. I'd like to have 2-40 concurrent connections per "room". We would like to have 1-10 rooms going at once in the beginning. I'd like for users to be able to share voice and video but that's not a requirement.

Users will be racing each other based on data that's updated once every second, so ping doesn't have to be super low. 1000ms would be fine but lower is preferred.[URL]..

Cirrus looks perfect. I've heard some problems about firewall and port settings, but was wondering if anyone had experience with at home users and Cirrus. Another problem is that it's been in labs for ever. You can get RTMFP with Flash Media Server Enterprise but that's like 60k-70k per processor, way out of our price range. I've also looked at [URL] but it doesn't support RTMFP. I know we can host this on AWS and maybe save some money.

There is an open source project (cumulus) that implements RTMFP too but I've read that it's more of a POC then a production ready project. The license is also GPL which doesn't work for our commercial application. I've also looked at[URL].. but again, no RTMFP integration.The reason I like RTMFP is because we can scale without a lot of server cost. I know it's a closed protocol from Adobe and it looks like wowza or red5 won't be implementing it any time soon.

Is there an affordable (not 70k per processor) server tech for multi-player gaming that you can use with AIR/Flash that scales well?

View 2 Replies

FLASH:: Data Integration - HTML - Switch Over To Hosting Service's Mailing List Manager For Sending Out Newsletters?

Aug 8, 2006

I have a Flash Web site for a small literary journal and am trying to switch over to my hosting service's mailing list manager for sending out newsletters. I see the HTML code for setting this up (available from my host), but do not know how to get it to work in my Flash site. (I did not build the site and know very little about Flash...I'm learning as I go in order to do updates.) It looks like the site currenly links to a PHP file to allow for sign ups to our newsletter. Can anyone tell me h how to get the HTML code to work on my site?

View 2 Replies

Actionscript 3 :: Serializing An Array In Flash?

Jan 13, 2010

I need to serialize and unserialize (is that even a word?) an array in AS3, so it can be sent as a string.

The only problem is that it doesnt just contain text, it contains objects.

Is it possible to serialize and unserialize arrays in AS3 like you can in PHP? How can I do so?

Once this bug is fixed, all will be well with my program.

EDIT: I need to be able to sync an array across several flash files, which are connecting via TCP and can send simple things like strings and integers, so I need to be able to transmit data about this in one go, in string form.

View 2 Replies

Php :: Serializing Flash Objects Over HTTP Without The Gateway?

Jan 17, 2010

Flash + AMFPHP is a great combination. But there are cases, when Flash Remoting with NetConnection isn't the right tool, for various reasons. Rob had a great post on this some time ago: http:[url]....He also has a nice example on how to deliver AMF to a http request, without the POST and AMF-request package to call the function that NetConnection sends, using Zend_AMF.

// Include the Zend Loader
include_once 'Zend/Loader.php';
// Tell the Zend Loader to autoload any classes we need[code].....

I really like this approach and would be very hapy to replicate it with AMFPHP. Why AMFPHP, you ask? The 'newest' version uses amf-ext, a C PHP extension, to serialize and deserialize the data. It is much faster than the php way ZendAMF is still using.Of course I already played around with AMFPHP and tried to build the necessary objects and use the Serializer class. I even got a valid AMF string, but the real data was always wrapped by a 'method package' that told the receiver this was a answer to 'Service.method' call.is there a way to serialize Flash Objects directly, without the gateway and method wrapper, in AMFPHP?

View 2 Replies

Actionscript :: Rule Of Thumb For When To Re-download Data Versus Load It From Cache?

Jan 22, 2012

I'm new to Flex. Let's say we have a web application that needs to download several series of data (several thousand numbers) used by one screen.When the user leaves that screen and later returns to it (in the same session; that is, the user hasn't logged out then logged back in), should the application fetch the original downloaded data from cache or simply download it again? What are pros and cons of each and are there any general rules of thumb to follow when it comes to re-downloading data (e.g. again) versus simply getting it from cache? The goal would be to minimize user's wait time as long as there's no drawback.

View 1 Replies

ActionScript 3.0 :: SWF Can't Get Data From Web Service

Sep 8, 2011

I have an html file and I'm using swfobject 2.2 to embed a flash file into the html file. This flash file is getting data from a web service, so it is trying to communicate with an "Internet-enabled location". I know and have read a lot about peolpe having trouble with this kind of problem, but I can't seem to find a solution for it. After this dialog box pops up I add the actual swf file and my project folder which is in wwwroot to the trusted location settings. This works fine, but only when I use the absolute file path in my browser.

[Code]....

View 0 Replies

ActionScript 2.0 :: XML Serialization In Flash?

Jan 11, 2010

I am trying to set up a communication between a flash client and a C# server. I would like to know if Flash allows me to perform XML serialization in the way that C# does. This is because I would like to use the XMLserialization class in C# for passing of data. If this is not possible, what other methods are available for communication?

View 1 Replies

ActionScript 3.0 :: Sending Data To Web Service

Apr 7, 2009

I need to access the database using web service through CS3 i have tried accessing the database using Asp.Net page and it successed when i change just the URL of the Asp page and replace it with the web service URL it reports to me the follwoing error: Error opening [URL] Load failed: HTTP Status = 500 Load failed: IO error: Error #2032: Stream Error. [URL]

and this error elimnates when i request the web service and not sending data in the URL as i send SQL query through URLVariable as follows: var variables:URLVariables = new URLVariables();variables.SQLQuery = "select * from Employee"; this code working with the .aspx page but when i use the web service it reports the previous error inspite the code written in web service is the same in the .aspx page.where in the web service i call a function in the constructor of the web service and this function gets the data from URL and then execute it as follows : if (HttpContext.Current.Request.Form["SQLQuery"] != null)

View 6 Replies

Php :: AMF Data Is Incomplete With Flex Service?

Apr 28, 2010

I am bussy with a Flex Project with a data services. Flash builder installed Zend Framework with Zend_Amf.

When i run the project i get the error NetConnection.Call.Failed: HTTP: Failed. With chalers i say that Zend_Amf give the error: AMF data is incomplete (0 bytes of 0 bytes). Please check the recording limits in the Recording Settings.

I don't know what the problem means. I have searched on google, but i haven't found a good result. The Flex project code is:

<?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"

[code]...

View 2 Replies

ActionScript 3.0 :: Sending Data To Web Service?

Apr 7, 2009

I need to access the database using web service through CS3 i have tried accessing the database using Asp.Net page and it successed when i change just the URL of the Asp page and replace it with the web service URL it reports to me the follwoing error:

Error opening URL 'http://localhost/Trial/DAService.asmx' Load failed: HTTP Status = 500 Load failed: IO error: Error #2032: Stream Error. URL: http://localhost/Trial/DAService.asmx
and this error elimnates when i request the web service and not sending data in the URL as i send SQL query through URLVariable as follows:var variables:URLVariables = new URLVariables ();variables.SQLQuery = "select * from Employee";this code working with the .aspx page but when i use the web service it reports the previous error inspite the code written in web service is the same in the .aspx page.where in the web service i call a function in the constructor of the web service and this function gets the data from URL and then execute it

View 1 Replies

ActionScript 2.0 :: Possible To Perform XML Serialization In Flash

Jan 11, 2010

I am using AS2 in flash CS3. I am trying to set up a communication between a flash client and a C# server. I would like to know if Flash allows me to perform XML serialization in the way that C# does. This is because I would like to use the XMLserialization class in C# for passing of data. If this is not possible, what other methods are available for communication?

View 3 Replies

Actionscript :: What Are The Pros And Contras Of Using A Vector.<> Instead Of Array

Jul 15, 2009

What are the pros and contras of using a Vector.<> instead of array?

View 5 Replies

ActionScript 3.0 :: Read Json Data From A Web Service?

Mar 17, 2011

I'm trying to read json data from a web service. The problem is that it seems URLLoader always return the data as XML so I can't decode the json string.
 
This is my code :
 
import com.adobe.serialization.json.JSON;
var myRequest:URLRequest = new URLRequest(<asmx, web service path>);
myRequest.method = URLRequestMethod.POST;
var variables:URLVariables = new URLVariables();

[code]....

not surprisingly i get an error on the json decode because as far as i can see using trace, i get xml data.Also i tried to run it on the browser, didn't help. Also tried to set the content type in the request to 'application/json', but it gave me an error.Even though i googled it, i couldn't fint what is the problem in my as3 code. It seems to me it should have worked.

View 3 Replies

Actionscript 3 :: Changing Data Service From BlazeDS To PHP?

Jul 22, 2011

Recently started to learn Flex technology to create RIAs. And now I want to create web based application of my created program in C++ builder. (flight info sys)

I liked the Flex because of it's cross platform and animation rich possibilities. One of the best web applications that i faced with in the inet is [URL] it has wonderful animating grid possibilities. Its server technology is in Java. How about converting this data service to PHP? That should read data from mysql in PHP.. I prefer working with PHP (as data service) and MySql (as rdbms) in Flex...

seeing animated grid is so cool :)) Switch to Grid mode!

Is it possible to convert it's Data service to php?

View 1 Replies

Data Integration :: Web Service Connecting To Variables Not Other Components?

Oct 27, 2006

All the web services tutorials I have reviewed always demonstrate how to setup the WebServicesConnector and bound to other input components on the stage (like the textinput component). I want to bind from a variable value in my Flash movie (ie; _level0.set_zone ) to somewheres in my WebServicesConnector. How can I set this up within my binding bound to value field?

View 4 Replies

Java :: Push Data From Service To Flex Clients?

Dec 9, 2010

Since my service, I would like to push data (messaging).

@Service
@RemotingDestination
public class LoginService implements ILoginService
{

[Code]....

With this implementation, nothing to do ... clients receiveid nothing.

So, how I push data from a service like that ? Is it possible ?

View 2 Replies

Java :: Flex 4 Loader Having Status With Data Service

Apr 23, 2011

I have been working on a flex application with java, as i have used Life Cycle Data Service for communication, i wana know, is there any function of flex, where i can see the loading status in percentage, that how much record is being loaded.Problem is, if there is lengthy record, no body comes to know, whats happening with software, like in Comboboxes or Grids, users usually think it as a BUG in application, but ofcourse it is not.I need such graphical loader, which keeps on loading with proper status in percentage, until it receives all data from JAVA (SQL Server).

View 2 Replies

Flex :: Maximum Size Of Data Which Can Be Fetched Using Web Service?

Jun 30, 2011

I want to know the size limit of data which can be fetched in case of HTTP/Webservice/RO.

View 2 Replies

ActionScript 2.0 :: Web Service Returns Object - Access Data

Nov 23, 2010

I am consuming a web service and it is returning an object, how can I access this data? Below is the XML returned by the service.

[Code]...

View 0 Replies

Actionscript 3 :: What Are The Pro And Cons Of Using Haxe

Mar 7, 2011

I'm thinking about using Haxe in place of AS3.What are the disadventages of that?Difficulties with using native AS3 ibraries.Difficulity of debugging after language translation.Haxe is quite young, it may have some rough edges. Does it?What are the adventages? I've heard:

Performance.Multiple targets (But I don't see how that is useful)Better typing that AS3 Maybe better syntax.Haxe is big enough that there should be more. What are the pros of Haxe?

Edit:If there are no real disadvantages then why Haxe is not replacing AS3?

View 1 Replies

Unit Testing - Mock Out A Service Using Local Data In Flex 3?

Jul 9, 2009

I am writing a small flex application that will, eventually, call PHP services to perform its work. In the meantime, however, I would like to have it use local data in XML form to allow me to develop the Flex part independently of the data service.

What is the best way to do this? I want to emulate a service like this:

[Code]...

And invoke the service using issuerService.send(), populating my results as expected. How do I do this as though it were a RemoteObject instead, but keep my data local?

View 2 Replies

Flex :: Connect To Data/service Wsdl URL Introspect Error?

Apr 20, 2011

i am trying to add a web service in flex 4. This web service is deployed in share point 2010 in the intranet . I am able to see this wsdl file through browser but trying to introspect the service is giving an authentication error. I am getting the following error :-

There was an error during service introspection.

WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at 'http://sql2008:47672/_vti_bin/StoryboardingDatabaseConnect.asmx?WSDL'.: java.io.IOException: Authentication failure

View 1 Replies







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