Actionscript 3.0 :: Getting Zend AMF Framework Parameters Error

Mar 21, 2009

I've got some trouble with the Zend Framework (AMF) and ActionScript, in sending multiple parameter to a PHP Function.

The user loads an image file from the local hard drive using FileReference into the Flash Movie than I take the Image's Bitmap Data, encode it to with JPGEncoder (CoreLib), get the byteArray of it and pass it to a PHP function though a NetConnection Instance like this.[code]...

View 1 Replies


Similar Posts:


Php :: FlashBuilder 4 And Zend Framework Error?

Jun 11, 2010

I am trying to use adobe flash builder 4 with a php service.I had it set up an older macbook running leopard, but just tried to set it up on my new laptop running snow leopard.I did all the same steps.. set the Flex Server to be PHP, set the web root and url.Then I go to Data->Connect To PHP and point it to a php file I have in my web root. It says it needs to install Zend, and claims it does so successfully, but then when I try to continue, I get an error.I don't understand.. this same setup works on my older laptop.

(Yes, I checked the amf.production was false)

Unable to retrieve operations and entities from the file

Make sure that Zend Framework is installed correctly and the parameter "amf.production" is not set to true in the amf_config.ini file located in the project output folder.code]....

View 1 Replies

Flex :: Zend Framework Model With Service?

Feb 10, 2010

i have a question about Zend Framework and mainly the model part. I know there is no abstract model class and understand why. I red a lot of blog posts about it, but couldn't find any example that would clearly explain it to me. I'm building a very basic application. Lets imagine we have just three tables.company(ID, name, street, streetNo, Town), meta(ID, name, description), company2meta(ID, companyID, metaID, value, note). All types of realtionship are there (1n n1, nm). The a need also services (amf) with Value Objects. So, here is what I think:

[Code]...

View 1 Replies

Jquery :: Add An Onload Event To A View In Zend Framework?

Oct 12, 2011

I tried the following:

$this->view->pagedata['body'] = "onload='purchase_ajax_init();'";

But just keep getting:

Notice: Indirect modification of overloaded property Zend_View::$view has no effect in C:Program Files (x86)endApache2htdocsljjapplicationviewsscriptspurchasecreate.phtml on line 4

View 2 Replies

Zend Framework :: Connect From Flash Media Server 3.5 To Zend_Amf?

Dec 31, 2009

i want to be able to connect from flash media server 3.5 to Zend_Amf (latest ZendFramework version). i tried doing the following:

function amfresponder ( ) {
this.onResult = function (result) {
trace("Success: " + String(result));

[code]....

View 2 Replies

Zend Framework - Zend_AMF Endpoint Protection In A Flash Game Deployed In Facebook?

Apr 25, 2011

feasable protection of my Zend_AMF gateway? I mean, how can I prevent someone from calling my service methods?

View 1 Replies

ActionScript 3.0 :: Passing Parameters From FLEX To PHP (zend Amf)?

Feb 5, 2010

I'm working on a school assignment in which I have to make a basic CRUD (create, read, update and delete) content management application using the Zend AMF framework in FLEX.Basically I create a mock database and have flex print the data from the database into a data-grid. I need to also have an add form, edit+update feature and delete feature. As of now I have FLEX printing all the database info into my data-grid and my add form works as well as my delete button. My problem is I cannot get the update function/query to work. You know:

(UPDATE myTable SET valueName='".$variable."')

What happens is I have it programmed so that when you click on any row in the data-grid, the information is printed back into the add form. Here you can change the values and hit the 'update button' (not the add button) to run the update query on the php file.So my mxml looks something like this:

PHP Code:

<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="{amfcall.getDatabase()}">
<mx:RemoteObject id="amfcall" destination="MyPHPclass" source="MyPHPclass" endpoint="http://localhost/FlexAMFCMSapplication/index.php" showBusyCursor="true" />

[code]....

So basically I can send the ID over to the PHP but not other values along with it, in this case the date time and name. How can I send over these edited values so the update function actually updates them?I'm assuming my update function is wrong in either the mxml or the php or both.

View 4 Replies

Actionscript 3.0 :: Zend : Getting A BadCall Version Error?

Feb 6, 2009

So I can get the following to work on a MAMP local server but have a problem running it on the internet (I have Dreamhost) as I keep getting a BadCall version error and when I run it locally using WAMP it just times out without an error. As to the error when I am running it up online, I am using Charles to see what is going on and it gives me this output:

Connected successfully<br />
<b>Warning</b>: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in <b>/home/.glick/mydomain/mydomain.com/zendPractice/Tutorials.php</b> on line <b>18</b><br />
<br />[code]..........

View 1 Replies

Php :: Flex/Zend Channel Connect Failed Error?

Jul 6, 2010

I am using Flex and php to develop my project. Everything works great in my local machine.However, when I upload my files to my serverI got the error when loading my flex application.The pop-up error message is

send failed
channel.connect.failed.error
Netconnection.call.Badversion: url:

[code].....

View 4 Replies

Professional :: Mac OS X Native Extensions Framework Error?

Mar 28, 2012

When I try to publish an Air app out of CS5.5 I've started to get this message:It happens with a blank document. I'm using Air 2.5 & 2.6 on SnowLeopard

View 2 Replies

Actionscript 3 :: Error #2004: One Of The Parameters Is Invalid

Apr 3, 2011

I have the following code which loads a sound, 'test.mp3', and then lowers its pitch, also slowing it down. The sound plays correctly at the lower pitch but at the end of the sample, I get this error: 'RangeError: Error #2004: One of the parameters is invalid.'. What am I doing wrong and how can I fix this problem?

[Code]...

View 2 Replies

Flex :: Zend Production Error "Class "testService" Does Not Exist: Plugin By Name 'testService' Was Not Found In The Registry; Used Paths"

Jan 14, 2011

I've got my flex, php & zend project working fine on localhost but when I try to move it to production I get the following error: Class "testService" does not exist: Plugin by name 'testService' was not found in the registry; used paths: : /home/myNewFolder/services/

[Code]....

View 2 Replies

ActionScript 3.0 :: Error #1063: MyApp/onMouseClick() Parameters Mismatching,it Should Two,current One?

Nov 12, 2010

I draw 2 balls,and when click one ball,it move it's place,so I use addEventListener,like follows:

Code:
...
ball0:Ball=new Ball();
ball1:Ball=new Ball();[code].........

Then I run above code,it draw 2 balls,and when I click one ball,it raise following error:
ArgumentError: Error #1063: MyApp/onMouseClick() parameters mismatching,it should two,current one.I don't know how to correct above code, what can I do?

View 3 Replies

Php :: Service Browser For Zend AMF

Apr 13, 2010

Does Zend AMF has a service browser feature like AMFPHP does? Some people do mention about zamfbrowser, but at the time I'm posting this question, the site is still unavailable. Is there any possibility to use AMFPHP's service browser with Zend AMF?

View 3 Replies

Arrays :: Error: 1199: Type Parameters With A Non-parameterized Type

Nov 7, 2011

Seems like in AS3, I can in theory, delare arrays that can only contain certain data types:

private var my_array:Array.<String>;
produces this error:
1199: type parameters with a non-parameterized type
however
private var my_vector:Vector.<String>;

is just fine. Is there a way of making this work with an Array?

View 4 Replies

ActionScript 3.0 :: Error 1199: Type Parameters With A Non-parameterized Type

Nov 18, 2009

The compiler keeps yelling at my first line "package aRenberg.utils", and I don't see anything wrong with it.

what this error even means? I'll upload the code if needed, and I'm using a heavy amount of ASDoc if it makes any difference.

EDIT: I might have isolated it. If I comment out "import flash.utils.Dictionary;" the error goes away, and it moves on to other errors, however, one of the errors is "1046: Type was not found or was not a compile-time constant: Dictionary."

View 1 Replies

ActionScript 3.0 :: Setup FB4.5 For PHP Without Using Zend Server?

Oct 4, 2011

I've watched a really helpful tutorial on FB4.5 for PHP by Mihai Corlan and am hoping to use some of his techniques but would like to use a different PHP server because Zend Server costs money and I'd rather avoid polluting my workstation with still more daemon-type services. I've set up numerous Debian and CentOS servers from scratch and would like to configure FB4.5 for PHP so that I can debug both my Actionscript and PHP. Has anyone done this? I could certainly used advice from someone who's gone through all the trouble already. I'd very much like to capitalize on all of the ways that FB4.5 automatically generates code and creates links for you rather than writing all that stuff by hand.

View 1 Replies

AS3 :: Php - Open A File Dialogue Box From Zend AMF?

Dec 3, 2010

I want to send a request to my Zend AMF to Open a Dialogue Box for a File Download.The process:Send a request to the Zend Server from my flash App, process the MYSQL results with PHP, then send the result to the browser as a file download (.csv) AND a result true or false to the appI have the code working just fine outside of the Zend Environment, but of course, when i go to echo/print the file - it sends back to flash with nothing happening.Is there any way around this?

$file = "";
$outtype = "Content-type: application/octet-stream";
header($outtype);

[code]......

View 2 Replies

Php :: Flex (with Zend) Running On A IIS-Server?

Feb 8, 2011

I have a Flex-Page which connects to a MySQL-DB through PHP (Zend). I run the Flex-Page on an IIS-Server (Windows Server 2008 R2) and it works. But the problem is, that i specified the web root to the C:inetpubwwwroot directory (there php is running). On the server i want it on another directory.(Now i have the main Flex Page in the directory für the webserver, and the php files are in the wwwroot directory).

When i specify the web root to an other directory, nothing works, not even on my local machine.

View 1 Replies

Flex :: Zend AMF Implementation And AMF Protocol Security?

Jan 15, 2010

I have a Flex frontend connecting via RemoteObject to Zend Framework's Zend Amf. This is my only means to transport data between client layer (Flex) and the application and persistence layers (LAMP with Zend Framework).Some ways I can address security are as follows:

I can address TLS by using mx.messaging.channels.SecureAMFChannel in my services-config.xml file and ensuring Flash player is loaded into a HTTPS wrapper and is in fact using HTTPS since the AMF protocol is layered on top of HTTP RemoteObject has a setCredentials method with which I can pass AMF authentication headers to protect user related data. Assuming TLS was actually secure I can expose methods on the endpoint after authenticating the User.I can protect against cross-site scripting and other FLASH vulnerabilities with a properly set up crossdomain.xml how to I protect my endpoint against another AMF consumer? For instance, if there were another AMF consumer (not Flash so not bound by crossdomain.xml and Flash sandbox security) other than my Flex client that knew my endpoint, what would stop it from using methods that the endpoint exposes?

As far as I know I essentially need a way to authenticate my Flex application against my Zend Amf endpoint. After AMF consumer authentication, I have some of the security mechanisms I mentioned above to protect certain pieces of data (like User authentication). I can not embed some sort of authentication mechanism into my Flex swf because the swf is vulnerable to decompilation (the swf can not be trusted). While sensitive data is protected via User authentication the unprotected data is hardly public but as far as I can tell is totally open for public consumption.

View 2 Replies

Php :: Getting The 'Zend Amf Endpoint' Mesage On Dreamhost But OK On Localserver

Aug 22, 2010

I've been working with Zend Amf for few months and everything is fine on my localserver (and was fine on my test server hosted by dreamhost) until recently. Now every time I try to access the gateway via the URL (i.e. http://hostname/gateway/) instead of the 'Zend AMF endpoint' message should be getting, the browser simply prompts me to download an application/x-amf file.

I have checked my code for any leading or trailing spaces (made sure all my PHP didn't have an endtag).Checked the PHP version..it's 5.2..updated Zend to 1.10.7. I was hoping that this wasn't interfering with my remote flash calls but that doesn't seem to be working as well. Flex doesn't even report a fault code.

Is there any specific PHP settings I should be checking?

View 1 Replies

Flex :: Zend Amf - Display Results In Different Labels

Apr 11, 2011

I've got a simple app that is currently getting information form a database and just displaying the content into a datagrid.

Instead of having this information displayed in a datagrid, I'd like to display it in a couple of labels (first name, last name, phone, etc.), but I'm not really sure how to.

Currently on creationComplete I call my php query function - which looks like this.

public function getPeople() {
return mysql_query("SELECT * FROM tbl_people ORDER BY pers_name ASC");
}

[Code].....

Eventually my query will be modified and will only ever return 1 row from the database. So how do I get the results to display in labels instead of the datagrid?

View 1 Replies

ActionScript 3 :: Flash - AMF Zend Fails Silently

Jun 1, 2011

I'm trying to connect to a Zend-PHP service within a pure ActionScript program. I've managed to use the service successfully using Flex. (But Flex mobile apps are bloated, and typically 10x bigger than pure ActionScript apps - which is why I'm trying to write it in Pure Actionscript). I'm trying to access the PHP/Zend service that I downloaded, and used in the following tutorial:- [URL] The PHP code that I'm connecting to is available as a download from this site - as well as instructions about how to use it in Flex. And this is what I've written in ActionScript:-

[Code]...

View 2 Replies

Flex :: Access Strings From Zend AMF Objects?

Dec 3, 2011

I'm using Flex 3.6 and ZEND AMF version 1.11

I have an array that shows in my trace using trace(ObjectUtil.toString(event.result))[code]...

View 1 Replies

Actionscript 3.0 :: Zend AMF On Flash Online / Not Localhost

Jun 25, 2009

i managed to make a image gallery with the help of the gotoAndLearn ZendAmf Flash tutorial. When i use the WAMP localhost it works absolutely great, but when i try to use it online it doesn´t work.[code]

View 1 Replies

Actionscript 3.0 :: Errors On Inserting Db Objects Using Zend?

Aug 3, 2010

That part works fine and I can run a SELECT query on my database and return the results to Flash - No problem!However, I get constant errors when I try to use the INSERT command. I must be clear that the INSERT command is working fine and it DOES update the database - It's the callback to Flash that brings up error:ReferenceError: Error #1069: Property length not found on Boolean and there is no default value.at main/onReturnSchoolPupilsSetup()My PHP code is as follows:

Code: Select allpublic function addSchoolClass($schoolID, $className)
{
$result = mysql_query("INSERT INTO class SET schoolID = $schoolID, name = '$className'"); 

[code].....

View 1 Replies

Php :: Zend Class Variable Retention For Mysql Queries

Jan 9, 2010

I have a flash application which uses a single php file to retrieve records from a database (using the Zend framework). When the application first begins, I make a call to the php to set a class variable, so that all future requests to the database will use this variable to select records based on its value. So here is how the class begins: class MyClass

[Code]...

So my question is, how can I get a PHP class variable to persist so that I can set it once, and I can access it anytime during the life of an application?

View 1 Replies

Flash :: Embed Movie In A Zend View Programmatically?

Mar 15, 2010

I have tried to embed a flash movie in a zend view using the htmlFlash helper.

In theory you only have to pass the movie path to the htmlFlash helper in a phtml view[code]...

View 3 Replies

Actionscript 3.0 :: Zend AMF Call Isn't Transferring To Client Server

May 7, 2010

I have a client that I am going live with so I am transferring their website from my web server to their web server. Using Zend AMF, I am calling a database that reads perfectly when I point to it from my server but it doesn't work when I call the database from the client's server. In both instances, I am pointing to the same absolute path to my boot strap (on my web server). I don't understand what the difference would be.

View 2 Replies

ActionScript 3.0 :: Flex Services + Zend AMF + CakePHP = FlexibleCake?

May 11, 2009

I'm working on a new project in Flex with a CakePHP backend and since I'm using Mate, I wanted to use the RemoteObject stuff it does to call CakePHP.First I tried just doing one call at a time in CakePHP but I saw that that would mean a lot of endpoints, so I looked into some like amfphp for cakephp. I saw that Zend AMF is now the successor to AMFPHP so I wanted to try to integrate it.

I probably spent 8 hours on the final solution that is probably 10 lines of code.So without further ado I give you FlexibleCake: a CakePHP controller that acts as an AMF Endpoint and is able to instantiate and call any controller / method. I also built a "tester" or "explorer" app that allows you to send requests to the end point and visualize the result.

[URL]

PS there where some changes I had to make to the core CakePHP classes to make it work. It only involved modifying the comments in the model.php class I believe (since Zend AMF reads the comments to gather metadata for the functions called).

View 5 Replies







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