I am using remote object in flex to call a method in amfphp. I have project setup properly with a services-config.xml in d src, d end point uri pointing to the gateway.php. After testing on my localhost everything works fine but when I copied my files to a remote server repoint the uri in d servies-config and then recompiling the application gives a sending failed error.
I have a Flex and Java application and i am using BlazeDS between flex and java. Generally my application works fine. I observed when ever i try fetch data little faster(not giving gap between two fetch commands) then i am getting the error "Server error :faultCode:Channel.Call.Failed faultString:'error' faultDetail:'NetConnection.Call.Failed: HTTP: Failed'"
I guess when ever load is increasing on BlazeDs, i am getting the error. I am calling the java service using following code
How would I send variables to php when I use AMFPHP? I'm trying to send mediaID and voteValue to my php file, but nothing seems to happen. I guess there's something wrong here..
I have struggled with this a while now, but I can't understand it. I want to send values from my flashfile to amfphp which will then update my database. This is the as3 code I use for sending:
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
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.
I am trying to dispatch a custom event from one flex module to another.The code which dispatch the event is as below Application.application.Destination.child.dispatchEvent( new AlgoEvent(AlgoEvent.GETFROMPARENT_LOCAL_EVENT));
here AlgoEvent is a custom event.on the other side the module which catches and handles the event has this code:
public function sendParametersToChild(e:AlgoEvent):void {[ code]...
but when the statement Application.application.Destination.child.dispatchEvent(new AlgoEvent(AlgoEvent.GETFROMPARENT_LOCAL_EVENT)); is executed the debugger give the following run time exception:
TypeError: Error #1034: Type Coercion failed: cannot convert resources.events:: AlgoEvent@4182239 to resources.events.AlgoEvent.at flash.events::EventDispatcher/dispatchEventFunction()[code]...........
when i do this locally on tomcat server on local development machine it works fine when i brought it over to linux im getting this error.i dont know what to do anymore it should be straight forward but i'm having no luck. i do have a web.xml and i see a broker for my remote access so i just dont know what it could possibly be
Im trying to connect a Flash client to BlazeDS. There has been some success with this from others using the vanilla BlazeDS setup. However I'm using the new Spring BlazeDS Integration from springsource and running aground. The flash client actually seems to be working in that I can see the correct data in the body of the returned object, but for some reason unknown it fails casting as an IMessage. It fails in PollingChannel.as on this line with the subject line error
var messageList:Array = msg.body as Array; for each (var message:IMessage in messageList) <--
On application load I register a whole bunch of classes like so
var channelSet:mx.messaging.ChannelSet = new mx.messaging.ChannelSet(); var channel:mx.messaging.channels.AMFChannel = new AMFChannel("my-amf", "http://localhost:8400/SpringA/messagebroker/amf"); channelSet.addChannel(channel);
[code]....
I have a flex client which works 100% with same destination/channel.
Within my movieclip WinLose I'm getting an error for a movieclip on stage called mcRestart. When it's pressed it's suppose to trigger function Restart. But for some reason, it's giving me the: "TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@4f4ff99 to flash.display.MovieClip. at WinLose/frame1()"
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/";
ActionScript Code: function start_load_actual_image(e:Event):void { *[code].........
all the above are within 1 single frame and at start of the movie when load.my intended actions are working fine but at runtime, I kept hitting error: TypeError: Error #1009: Cannot access a property or method of a null object reference.at Function/<anonymous>() at flash.utils::Timer/_timerDispatch()
2nd issue: my last working attempt to send mail through AS3 via PHP works, but somehow, now my movie when loaded in actual site; email submission failed and always stuck with text = "sending.."i tried ensuring all URL re-direction are correct.and I somehow lost track of what I last modified:
I am trying to send data from Flash to .Net through POST. When I send a normal String variable, it works fine. But when I try to send an XML as string, it shows me: Error #2032: Stream Error, error.
when working with actionscript 3.0 i try to drag and drop a Flv file that i created with the adobe flash media encoder, to the stage, and setting the source as rtmp://localhost/vod/YourFLVName i get the error failed to load FLV: rtmp://localhost/vod/yourflvname when i try it with the sample file in the the vod folder ex "rtmp://localhost/vod/sample" it works. this leads me to beleave that the flv file i am creating is not encoded correctly.
I'll try to focus on the problem which takes place in a whole system.To sum up, I have 2 entities (MySQL) :
create table AAA ( id_AAA int not null auto_increment, id_BBB int,
[code]....
I retrieve all my BBB, they are mapped from PHP classes (generated by Propel) to AS3 classes on the Flex side.But when I create a AAA row in the database.I retrieve all my BBB, and all objects are mapped EXCEPT the BBB whose id corresponds to the foreign key in the inserted AAA row.
if you know anything about how AMFPHP / Propel / Flex are dealing with Foreign Keys and why class mapping is failing right here.The weird thing is that it seems to happen only for this specific case ...
I have an application running on flex and php, connected using amfphp, i added a secure channel to services.conf of amfphp [code]how do i know if flex is actually using this secure channel? i tried [code]from the php side and they are both false ... but if i remove these checks it works fine, I'm using wamp, with mod_ssl, and working from localhost
I'm trying to connect to AMFPHP over SSL (self-signed) from a Flex 4.5 application.Will this work? Or do I need an authority-signed certificate?Will it silently fail or prompt user like it does in browser?How do I need to edit the services-config.xml file for this to work?
I'm looking for a way to catch an Exception thrown by PHP in Flex using HTTPService. Is it possible to do it without using AMFPHP?
In my current implementation, if an Exception is thrown in PHP, a FaultEvent.FAULT is indeed dispatched on Flex side. The only problem is that the exception's message string is nowhere to be found in FaultEvent.[code]...
UPDATE: Now I've moved the AMFConnection var declaration to outside the functions in Main, and commented out some trace() commands, and now it gives new errors:
Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.BadVersion at AMFConnection/init()[/Users/Jan/Downloads/amfphp1/AMFConnection.as:32] at AMFConnection()[/Users/Jan/Downloads/amfphp1/AMFConnection.as:23]
[code]...
I'm trying to connect to AMFPHP on a server (with Flash AS3), and the swf borks when it reaches the .connect() stage. To make things easier (?) and more reusable (?), I've put all the NetConnection mechanics into a separate class, AMFConnection, which I call from the Main document class like this (details changed):
public function testConnection(e:*=null):void { var conn:AMFConnection = new AMFConnection(); conn.table = "some_table";
[code]...
AMFConnection actually starts the connection and calls the AMFPHP service with the function gogogo(), and here's where the connect() NetConnection function just won't work. Here's the main section of the AMFConncection class
private var _netConnection:NetConnection; private var _responder:Responder; function AMFConnection()
[code]...
It also fails to display the stage, instead showing the loading dots. Now, eventually I'm going to move this application to the same server as the AMFPHP service, but even when I try it there with a relative url, instead of an absolute one, it still breaks down at connect(). I've tried changing the publish settings from local only to network only, to no avail.
I should say that this is for a multi touch table so I am using gestureworks library but someone may be able to tell where I went wrong just from the code.I am getting this error and it's really confusing.Error #1034: Type Coercion failed: cannot convert album@2d2e5ee9 to id.core.TouchSprite. at Main().I have a movieclip in my library named "album" the base class is set to id.core.TouchMovieClip (code from gestureworks) and below is my actionscript in the Document Class.[code]
I am using ActionScript 3.0.Here I want to setFocus on a DisplayObject(flash.display.DisplayObject).[code]But I am getting: Error #1034: Type Coercion failed: cannot convert mx.managers::FocusManager@3881e41 to mx.managers.FocusManager.This is at line:var focusManager1:FocusManager = dispObject["focusManager"];The same code would work if I use mx.core.UIComponent instead of DisplayObject, I guess.But I am not able to convert DisplayObject to UIComponent (invalid cast).
I have a flex file I am trying to load into a game. the projected .swf file works perfect on its own however when I load it into the main file i get:[code]......
I have my main timeline/scene we can call it A and then Scene B is exclusively for the gallery component. When I switch to Scene B, the gallery component functions as expected. I place a button on that scene that takes the user back to the Scene A (main timeline). I use the