I have a piece of code that i created that worked perfectly when used in the Flash timeline, but in order to reuse it in multiple files I want to save it as an external AS file. I haven't really done that before and now I get this error: 1046: Type was not found or was not a compile-time constant: Event.
Even though there are plenty introductions to TDD (even in PHP, my primary programming language now),My friend introduced me TDD a while ago, but I wasn't actually able to understand it - what's the point in writing tests to everything first - even the simplest tasks - when in the end, it looks it's more efficient to test only if something doesn't work, although it might be much harder to locate the bug (this could be solved through VCS, no?).So is there any introduction, with dead-simple examples and arguments behind "pros"?Something like "yeah, it's better, because you have better design - look at this example..."I understand that you create "test" and then the function, that should pass the test. But how you say to language, what results should it have? To me it looks that you do some function... debug it (the same way as you debug in no test driven dev.) and call it test and do it again..Also, is this applicable to MVC approach? Or rather, CodeIgniter Newbie MVC?Read a bunch of posted and googled advices, plans, ways and tutorials. I am still not entirely into TDD - I mostly have pretty good visualisation and I think (hope?) I write pretty maintable code, so i still see it as an extra work...
I've worked with AMFPHP for a while, but with Adobe supporting ZendAMF, I was wondering if I should migrate.
One of the major disadvantages for AMFPHP is that class mappings need to be public, so not only does that mean public members on the PHP side, but also on the Flex side. I was wondering if it is the same case for ZendAMF.
I am using ZendAMP php and Flex (Flash Builder 4). It works great, but I noticed when I am looking at the traffic going between my flex application and ZendAMF, there packets moving even though I am not requesting communications in my code.For example, this is what my service looks like in flex:
var activityLogService:RemoteObject = new RemoteObject("zend"); activityLogService.showBusyCursor=true; activityLogService.endpoint="http://myserver:80/amf/";[code].........
Are these just some kind of 'keep alive' messages?If so, is there a way to turn them off? Also, if so, is there a way I can use them to keep some kind of session alive on the server side maybe (maybe that's what they are for)?
Whats the scoop?I watched Lee's tutorial on Zend and also the older ones for AMFPHP.Is one 'better' than the other? Doubt that since as I understand both are written by the same author, only Adobe 'officially' supports Zend.
My application is composed of 3 parts
1-an image editing tool allowing users to upload images, edit them, then post them to a server.
2-a publicly viewable gallery
3-a private 'admin' tool allowing the user to change their login settings and delete any uploaded images.
Are both Zend and AMFPHP equally robust and easy to implement when it comes to session registration and login?
I am using ZendAmf with an example Tutorials of Lee and files downloaded from this forum.
This is the client actionscript code : Code: Select allvar nc:NetConnection = new NetConnection(); nc.connect("http://localhost/myfiles/zendTest.php"); var res:Responder = new Responder(onResult,onError);
I've installed FLASH MEDIA DEVELOPMENT SERVER 4 for testing. I wonder if there is a way to disable Stratus/Cirrus peer introduction services included in this version of FMS, because I need to simulate Flash Media Interactive Server 4 (not the Enterprise version) to adjust my application properly for cheaper solution.I am using NetStream.DIRECT_CONNECTIONS and I want to test, what are the differences of usage and how to do it right, even implement a fallback, when no peer introduction services are working on the server.
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] .....
I've written an application that deals with multiple languages, English, French, etc, I'm using Zendamf to retrieve multi-language data from a database, however, I'm running into a problem using Zendamf, and it could kill this project fast:
There seems to be an issue passing special character values via Zendamf. While querying a database that returns data including French-text characters (ie: Québec), the result returned from Zendamf is not handling the special characters (ie: instead of Québec, we receive Qu�c).
I've checked the output of the data via Php: the issue is not with the database result - the characters are returned correctly from the database to the Php result-set - I am able to print these characters correctly before they are sent through Zendamf, either by rendering them in HTML or by writing them to a log file.
However, once I plug the SQL result into an object and pass it to Zendamf, the special characters get mangled. Using Charles Web Debugging Proxy, I can see that the result values are mangled before they are passed back to my AS3 application.
I'm writing an audio recorder in AS3.In AS2, when I loaded up the swf object, the "Camera and Microphone Access" window would pop up immediately. ("Requesting access to your camera and microphone .. allow").However, in AS3, it still works, but there is a noticeable 2-3 second delay before that window pops up.
I'm trying to send some variables to a php script, and I don't know how to figure out if I'm successful or not. Here's the AS 3 code I have now (the code snippet assumes that myArray was defined earlier)[code]...
I've had great success with loadMovie and loadMovieNum, but occasionally I see something in the posts about attachMovie. Is there a difference between attach and load, or is one left over from a previous verion of Flash?
I've been working with LoadVars a lot recently and like it very much so. However, I have encountered a new problem. I have this array that already works in my Flash project:
just wondering if there is a way to reset the LoadVars() success variable to false or undefined. i need to do this b/c i'm repeatedly fetching data from a asp file using the same LoadVars() Obj to store the data sent from the asp page.
There has been many threads on horizontal parallax effect but I'm trying to build a vertical one with minimal success. I need the effect at a very subtle scale and with easing if possible.
My Current Code (got it from a user here): // an array with 3 movieClips on stage ... named respectivly // make sure all these movies go beyond your stage
This is my script in trying to send data to the server side PHP [code]How do I write a SUCCESS and FAILED confirmation using gotoAndPlay to interact with the PHP?}}
I found similar issues in previous posts, but not this one. I publish a Flash CS3 .swf file,creating the html page and the javascript file too. If I click the html page locally, the sendAndLoad POST will succeed. If I upload the 3 files to the server, the sendAndLoad will fail. If I delete "AndLoad," the Send function will succeed. Url is fully qualified. I think I made a change in a configuration in Flash, because previous packages of this same file worked.
I'm trying to consume Google Finance API on a Flex Project but with no success. I want to use the ClienLogin mode, am able to get the auth token, but then I can't seem to get information from any of the feeds!
I've tried some of the few examples I found by Googling but still can't get it to work...
I've followed the contact form tutorial and believe I've updated the php to php5. The email sends but I never get a success or failed page. It just stays there. I'm being hosted by Go Daddy and I am on a Linux server.
I've followed the contact form tutorial and believe I've updated the php to php5. The email sends but I never get a success or failed page. It just stays there. I'm being hosted by Go Daddy and I am on a Linux server.
find a script that allows for bookmarking but everything is outdated, plus the many incompatibilities across all the browsers.use a bookmark script in 2010 that has had success with majority of browsers?