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
Similar Posts:
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
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
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
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
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
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
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
Apr 30, 2010
I've upgraded a FlexBuilder3 project to FlashBuilder4, and I am seeing many compilation errors regarding unsupported tag attributes:
The style 'backgroundDisabledColor' is only supported by type 'mx.controls.TextInput' with the theme(s) 'halo'
Here is the offending mxml element:
<mx:TextInput x="245" y="86" id="code1" maxChars="15" change="enableButton(event)" cornerRadius="9" borderStyle="solid" backgroundDisabledColor="#7977b6" />
what is the best workaround for this particular error? I was able to easily resolve a similar error with the "backgroundColor" attribute by changing it to "contentBackgroundColor", and was hoping there was a simple workaround for backgroundDisabledColor as well. I realize I can apply a css style, but I'd rather have a simpler solution as there are many many other attribute errors similar to this one.
View 1 Replies
Dec 6, 2010
I'm migrating a FlashBuilder project (actually a project I'm working on with FlexBuilder eclipse plugin on Linux) to use FDT. I managed to import the project, and make it aware of other projects it depends on.
However I get lots of compile errors for things that seem harmless (and used to compile). At least, for example :
<mx:SomeClass initialize="{this.init()}" ... >
<mx:Script>
<![CDATA[
[code]....
So, I get "unresolved function" for all the calls of the form someAttribute="{this.someFunction()}", even though the function is described in the same block file. Is it that I've been abusing AS3 / FlashBuilder for all this time ?
Also, generic components have problem. Assume I have a class with a deferred 'content' attribute, and I want to instanciate this class and "fill the blank" : I define a custom component in a CustomComponent.mxml file, with a deferred content
<mx:VBox>
<mx:Script>
<![CDATA[
public var content : IDeferredInstance;
[code]....
I'm using FDT 4.0, under Linux, with a (valid) eval key I'm using a custom Flex 3.5 SDK (not one shipped with FDT, but not a too strange one either)
View 1 Replies
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
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
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
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
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
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
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
Jul 26, 2011
In flex (flash builder 4) I have a Date() property that I am passing to Zend AMF (php) and I want to store that (as well as other data) in mongoDB. Mongodb is complaining about the date because it comes across as a Zend_Date object, which appears to be an object containing several properties and Mongodb is saying that it can not accept blank properties. So, I take that to mean it needs to be converted to something else before I can store it? If so, how do I do that?
At the moment I have taken the approach of converting the Zend_Date object in to a date string to store it (in php):
$object->readyDT=date("m/d/Y H:i", strtotime($object->readyDT)); //convert to string
That works fine, and I have a string in mongodb of that date. Now, when I load the date from MongoDB, I need to convert it back to a Zend_Date so it properly converts back in to a Date() object in flex (I have to check that it's not blank or it throws errors in php):
if (isset($object->readyDT) && $object->readyDT!=="") $object->readyDT = new Zend_Date($object->readyDT, 'MM/dd/yyyy hh:mm');
This all works, but it seems like there should be a much easier way to take a Date() from flex and get it stored in MongoDB via Zend AMF/PHP. ?
View 1 Replies
Sep 1, 2011
I followed the instructions in this tutorial to set up Zend AMF as a way of passing data from my flash app to my PHP app:So I have the directory structure and everything as described there. This is my gateway controller:
class Gateway extends CI_Controller
{
function __construct()
[code]......
View 1 Replies