ActionScript 3.0 :: Once On Server - Can't Call Web Service
Jan 3, 2011
Flash is calling a web-service on frame 1. It works fine within Flash IDE, but not otherwise..... such as running the .swf locally or on a server. I receive the error about flash player stopping a potentially unsafe operation. I've tried Security.allowDomain, Security.allowInsecureDomain, as well as changing some parameters in the html object embed code. (None of which worked obviously)
With further research, it seems like I'm going to need loadPolicyFile(); however, would someone tell me if I'm heading down the right path or just wasting even more time trying to solve this?
My flex 3.5 application has an audio player whose content is accessed by calling an AMF service to get the mp3 data. As far as I can tell, flash.media.Sound is initialized with a URLRequest, so it's not clear to me how I can provide it with data using my RemoteObject.
I want to do one of the following things:
Provide data to the Sound object's load method from a RemoteObject service call. Create a URLRequest object that will perform the requisite AMF wrapping so that my service implementation will look exactly like any other service call if at all possible. Any alternative that allows me to invoke a PHP4 AMF service and play the audio it returns in a Flash audio player.
I have some problem with calling web service from flex. I have service with name UserService with one method string GetData(int i). I want to call this method from flex and get data. My code is here:
protected function application1_creationCompleteHandler(event:FlexEvent):void uService = new UserService(); uService.addEventListener("hello", echoResultHandler); uService.GetData(1);
I want to call web service which has basic authentication.once url get authenticated then want to call particular service example xyz() which takes 2 parameter and return a flag .
Below is a link to an example web service that I'm hoping you guys can tell me what I'm doing wrong. I have this dictionary app that works great when I'm in flash and preview it, but when I publish it and view it on the web, it simply doesn't work. I'm not sure what I'm missing. The link below has links to the project in CS5 and CS4.
Is it possible to call a web service from within Flash (using AS3)? Or is the best idea to put the flash movieclip in a Flex container and use the Flex Libraries?
To be clear, when I say within Flash, I mean within the Flash CS4, AS3 programming environment.
I'm trying to find the IP address of a client when they make a particular LCDS service call. Understanding all the issues of getting a "real" IP address and privacy concerns and so on, it is possible to find the client's IP address?
I'm using Flash Builder 4 Beta 2. I have it connecting to a PHP service. The way I set this up was using the wizard, so I didn't actually write the code to connect to it.[code]...
One of the functions that I'm calling fetches users from a MySQL database. There are about 30,000 users right now. The service seems to timeout when fetching more than around 22,000 rows, I get the "Channel Disconnected before an acknowledgement was received" error. If I call the PHP script from a browser, it fetches them all with no problems at all, however. I have tried increasing the timeout in the PHP script (which didn't work), but obviously this isn't the problem since the browser is able to pull them up with no problems.
I am trying to learn the new services method in flex 4. but i cant get it work. A test oparation near the service in flash builder 4 works. But when i run the code i get NetConnection.Call.Failed: HTTP: Failed.
CODE: PHP
<?php class AuthService { public function login($username, $password) {[code].......
I'm making a call to an API function on a server through my swf file. The service is supposed to return an XML.
In Firefox, this works perfectly fine, when I print it out, I get the XML string.
But in IE or in Chrome, I get nothing back. Well, when I print out what comes back it prints out as UNKNOWN. Unfortunately I don't have access to the api so I don't know if that's actually a string that is sent back, or if that is something that flash is printing out.
Has anyone had problems with calling services from different browsers not working?
I can't really provide the code as it's proprietary... But, more info, the urlRequest is also sending header requests along with it.
I wrote an app using adobe flash builder that makes an http data service call to a website.
When I build and launch the app it loads in my browser (the address in the broswer is C:Userspath omyapp.html) and works perfectly. However, when I upload the app to my website or even launch it from outside the project build directory, the HTTP service call fails with the popup
Of course I googled this error and realized it may have something to do with a 'crossdomain.xml' in my web root directory. I tried this and it continued to fail. Below was my crossite domain file
I built an advertising website for one of my clients. Hewould like the website members (advertisers) to be able to uploadvideos and have them automatically appear on the website(Sort oflike how YouTube works, but he doesn't want to use YouTube).
There is a number of posts but no solution to this issue. I am using alducente web service class to make SOAP calls to a WS from flash and it works perfect in the Flash IDE. When I publish to my server it just hangs.
I have a crossdomain file allowing all headers and domains etc. no luck.
I have Flash Media Server installed on Windows Server 2007. I configured the Flash Media Server service to Automatic (Delayed Start), using a network logon instead of the local system account. In case you are curious, I use the network logon for the service because I need Flash Media Server to be able to access media stored on a network share. My problem is that, despite the Automatic start, the service does not seem to start automatically. Also, if I log out of that network account, the service seems to stop. what I can do to make sure that Flash Media Server will always start, as well as keep it running even if no accounts are logged in?
I know that we are an entire version behind the current, but this is due to problems with a failed upgrade due to a bug in FMS with streaming our (3TB) collection of .mp4's with the new version... that being said, onto our current trouble...
I have Flash media server 3.5 and it is working fine but now a days Apache service is automatically stoped so all streaming services is stopd then i restart the Flash Media Server after restart FMS goes smothly and all streaming services goes smothly.ut this issue, below are the event viewer detail wehere the appache service stop detail is mentioned.
here is the event viewer details for FMS Event Type: InformationEvent Source: FMS (Master)Event Category: (258)Event ID: 1413Description:C:Program FilesAdobeFlash Media Server
I'm starting a Flex app on a pretty big reporting engine and want to know how best to connect to a Postgres Database. I'd like to create a REST API architecture so I can use the service for more than just the Flex app(mobile possibly).These are my options I've found:
My server network bandwidth is too small to provide service for many people.so I cached my app. - App. size is 4mb, I *try* to reduce size but app. have many embeded resources. - It's working good on my test & dev. and most browsers. but some browsers have problem already known. I read many articles and blog.
The Apache service named reported the following error: >>>[Thu Feb 16 17:07:10 2012] [info] mod_jithttp - FMS installation path: "C:/Program Files/Adobe/Flash Media Server 4.5/"I installing FMS 4.5 in windows 2008 r2 X64 ,but apache error ,pls help me? why?
I am developing (well, trying to anyway) a service where a member can record themselves on our website using their webcam. We need to be able to record that entire webcam session they had on our website for judges to determine whether they've cheated or not (it's a competition-based service). But, I can find no documentation, articles or even a sign that this is possible (other than knowing I've seen it in use many times). And I'm not sure what kind of hosting would be most appropriate for this type of service, and what steps would be required for me to get started on this.
I have written a flash application and was unsuccessful in consuming the web service from Amazon. The error that I got was "SOAP Response Version Mismatch" while making a call to:
URL: http:url].....
However, we were able to call the following successfully.
I have a flex client connecting to a web service that needs an authentication token added as a header, named "Identity". An example of the expected message is[code]...
Somebody I know can't watch because they have a proxy server.The nc.connect() call to get the live stream fails because it goes direct from AS3 to FMS and doesn't go through the proxy server.
I have a question... Can I use the same server side function to send to all lients 3 different swfURL depending on which button pressed from one of them? If the answer is positive...how can I do it?
I m working in flex3.0 and i just want to know that how can i call a function from fms server to my AS3.0 (Client Side) code.i tried the syntax client.call(methodname,null,null); but my flex code throw exception unable to call the method.here can i use clientobject.call (methodname,null,null) and is there some special way to declare that method at client side.
I am experiencing a strange problem when I want to bind a service to a button or something else:
[Code]...
I can add the services to the Data Services panel but I have two strange things:
1) when I want to configure the return type he doesn't let me create a new ValueObject type, I only get the bottom datagrid which states: Properties returned by the operation: Property: country_Id, provence_Id, city_Id, id_cdpc, district_Id with the related values on the right side. Why can't I create a new data type on the top?
2) When I accept this and want to add the service call to a button (drag&drop) I get the following error: Error occurred while generating code. Make sure that there are no compiler eroors and try again after reopening the file. Componentn type services.cdpc.CDPC not found... (ps: When I perform a Test Operation everything seems to be ok, I get the expected output values)
I am using the FMS Connector C++ to do some publishing work. And I am required to call a server side method. I have tried to use the INetConnection::call() method, but it don't seems successful.
The FMS server spec told me to do,
1.call server method, nc.call("FCPublish" null, streamname);
2. implement a callback function onFCPublsih nc.onFCPublish = function (info ) {...}
How can I implement these with FMS Connector C++?
The FMS Connector document include too few topic on calling server side method.
I understand that the Flash Interactiver Server has this feature called 'Adobe Media Player Tracking Service' which the free version dosen't have. Any idea what ' Adobe Media Player Tracking Service' is and what it does