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
Similar Posts:
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
Jul 14, 2009
I identify my current installed debug version? Basically, I am using Flex 3, for past 2-3 days whenever I launch any Project or debug it, I get the message box saying "Flex Builder requires a more recent version of Flash Player." It says my curent FP as 9.0.115.0 and debug version as 9.0.45.0. However, my actual FP version if FP 10.0.22.87. I don't understand why this confussion! I don't know how can I know my actual version of Debug player.
View 2 Replies
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
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
Aug 11, 2011
I imported my Flex 3 project to Flex 4 and removed all the errors and warnings listed in Flex 4 problem windows. I am having the following error in Flex 4 when launching my application.
What could be the cause of this?
Error: Compatibility version has already been read.
at mx.core::FlexVersion$/set compatibilityVersion()[E:dev4.xframeworksprojectsframeworksrcmxcoreFlexVersion.as:254]
at mx.core::FlexVersion$/set compatibilityVersionString()
[Code]...
View 2 Replies
Sep 1, 2010
I am trying to use ZendAMF to do remote method calls to a MySQL database from Flash and I keep recieving the NetConnection.Call.BadVersion error.
My Server is working correctly. Apache 2.2.14
My PHP is working correctly. PHP 5.2.11
My Database is working. MySQL 5.0
My first problem was a security error in Flash. If you try to run a local SWF from the Flash IDE to a web service online, you'll get a security warning which will throw the BadVersion error. However, the security error won't show up if you 'TEST MOVIE' so it took me a while to realize that. I changed my testing process to remove this variable. I am now able to implement my php class code successfully using AMFPHP, which essentially rules out my class as the issue (I think). It seems to be a problem with the Zend implemntation of AMF.
I have followed a tutorial from Lee Brimlow here: [URL]. I was unable to get this to work locally, and I've moved my content onto a web server and can call the Class and Method from my SWF. I've used Charles to view the response. When I go to validate the response in Charles I get this:
Validator: Failed to Parse XML Document.
Reason: An invalid XML character (Unicode: 0x0) was found in the CDATA section.
Line: 65 Column: 87
Can it be handled in PHP?
Here is my ZendAMF code:
<?php
error_reporting(E_ALL|E_STRICT);
ini_set("display_errors", "on");
ini_set("include_path", "./frameworks");
require_once 'Zend/Amf/Server.php';
require_once 'Animal.php';
[Code] .....
View 3 Replies
Jul 28, 2011
while i'm publishing iOS app from Flash, i get that thing
Unexpected or unknown element or attribute in the application descriptor file.
/Users/stockingem/Documents/DWP/1-app.xml(44): error 103: application.version is an unexpected element/attribute
application.version is an unexpected element/attribute
View 17 Replies
Feb 19, 2010
I'm currently using AMFPHP 1.9 to make a simple flash game which uses a game server.Sometimes, I get this error (BadVersion) when there are simultaneous calls to the server.I've searched the web for some of the answers to this problem, and it seems they were answered back in 2004.Is there an updated version of how to solve this problem?I tried to change the globals.php parameters to use absolute path, like performing the below:
//$servicesPath = "services/";
//change to
$servicesPath = "/httpdocs/Flash/AMFPHP/services/";
[code].....
View 1 Replies
Sep 21, 2010
a client asked me to incorporate a flash version check in a flash application i made for him.it should read something like: "you have flash player 10.x.x.x.x.x.x.x the current version is 10.1.x.x.x.x.x.x"the user veriosn is easy to get with Capabilities.versionbut is there an url on adobe's site to get the string of the current downloadable version from?
View 6 Replies
Mar 1, 2012
I need to validate an uploaded SWF to ensure it meets certain Flash and ActionScript version limitations. Anyone know a good Python library to parse metadata out of a SWF?
View 2 Replies
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
Jun 22, 2007
Are there any plans to upgrade the SDK to version 8 or 9 or release a updated flash version for the Wii. It's ridiculous that Adobe has not done this already considering the sheer volume of people using the Wii web browser.
View 4 Replies
Oct 17, 2010
i have a Main class and a other class called Calc everything seems to works when its written fully written but when i condense it into a loop, behavior becomes different and broken posted the FLA and Class heres the working version [URL] and the loop [URL] im trying to get the loop version to behave just like the written out version,
View 5 Replies
Oct 27, 2009
I installed Flash CS4 a couple of days ago. Trying it out for the first time today. I went to import a video & got a message: "The required version of Adobe Media Encoder is not installed or the installation is damaged. Please reinstall."
I'm showing a Media Encoder CS4 folder under my Adobe folder, so I assume I've got the latest version installed, but it's a corrupt installation & I need to reinstall. My question is: do I need to redo the whole Flash CS4 installation? The reason I ask is that our IT provided me with multiple files for the install - there's ADBEFLPRCS4Win_LS1.exe. That's for the main install. But there's also a ADOBEFLPRCS4Win_Cont_LS1.exe. That's the added content file. I don't want to uninstall/reinstall Flash if I don't have to. Does anybody know if Media Encoder installs from the main Flash installation file, or from the added content installation file?
View 1 Replies
May 22, 2010
i m using adobe flash cs3 with AS3 . I have updated my flash player in version 10 and it's activeX. But while I gonna publishing it , I do not get option of version Flash Version 10 in Flash Tab of File>Publish Settings. How, can I have option of Flash Player 10 ?
View 1 Replies
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
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
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
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
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
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
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
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
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
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
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
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
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
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