Flex :: Cross Domain - Error On Using HTTP Service

Dec 17, 2010

I'm trying a simple tutorial of retrieving RSS feeds from yahoo and keep getting this error: RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP" I've seen some articles that say I need a crossdomain.xml file, but I don't really know how to set this file up and how to use it from the Flex SDK compiler (mxmlc).

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Cross Domain SendAndLoad Via Cross Domain Script

Nov 5, 2010

My swf works fine when previewed locally but because of flash cross domain issues (link below) doesnt work live. [URL] Ive used a 'crossbrowser.php file to .load in xml but am not having success with the sendAndLoad command. [URL]

View 3 Replies

Flash :: Cross-domain Error - Uncaught Exception: Error Calling Method On NPObject ?

Oct 28, 2009

I am trying to emulate (in a limited way) the behavior of JavaScript's XMLHttpRequest object through Flash/ActionScript 3, in order to overcome the same-domain limitation. But I'm discovering that ActionScript has its own limitations in that regard. I admit that I might be mistaken, but from what I understand it is theoretically still possible to do this sort of cross-domain scripting using ActionScript, so long as you get all the permissions right. And that's where I'm running into trouble.

First, I borrowed some open-source code for a class called AjaxRequest, which I have saved as /ajax/AjaxRequest.as. I then created a Flash file called /jsajax.fla which exports to the final SWF file, /jsajax.swf. Now, here's the ActionScript code that comprises the first and only frame of the Flash file:

import ajax.AjaxRequest;
Security.allowDomain("domainone.com");
Security.allowDomain("domaintwo.com");[code]....

This is the only case I could not get working, and this is the case I need to get working. The first two were really just test scenarios to see if the script was working at all. When I try to run my jsAjax function here, I wind up with an error that shows up twice in Firebug:

uncaught exception: Error calling method on NPObject! [plugin exception: Error in Actionscript. Use a try/catch block to find error.].
uncaught exception: Error calling method on NPObject! [plugin exception: Error in Actionscript. Use a try/catch block to find error.].

View 1 Replies

ActionScript 3.0 :: Cross Domain Scripting: Error #2048?

May 13, 2009

This is my first entry in this forum but I already found a lot of answers by browsing it.However, altough many references seem to solve the problem I'm hurting on, it doesn't seem to work for me...Now, here's the case:I made a flash web site that will be hosted on an external web server (let's call it serverMy flash needs to get some info from my internal server don't have access to the root, only to the folder «myfolder» so my website reads like this

View 1 Replies

Flash :: AS3 Cross-domain Error - Image Resizing

Jun 17, 2011

I have a SWF file which is on suppose [URL] and I have an cross domain file

[Code]...

I dont know that happend. When I user Firebug, the swf is looking for [URL] it is present there. But [URL] is not there(I can't put any corssdomain file there, because I dont have any access). The issue is image from (SESSION 1) is resizing and image from (SESSION 2) is not resizing on the COMPLETE Event.

View 1 Replies

ActionScript 3.0 :: Cross Domain Policies - Getting The Error #2048?

Feb 11, 2009

I have the following:

PLAYER.SWF -- contains flv player and controls.
cross-domain-policy.xml -- that allows everything.
www.yoursite.com[code].....

If I have all the files on the same domain, everything works. The swf is designed to look for the prefs.xml file at whatever location where the html page is. I can have the swf in a location like[url]... and have everything else in some other funky location on that domain. If I try to have the html page and prefs and stuff on another domain, it can't read from the prefs.xml, and I get the Error #2048. From my research, this is a cross-domain issue, but I have cross-domain policies all over the place and it's still doing it.

View 1 Replies

Flash :: IE History Tracking / IFRAMES And Cross Domain Error

Jun 2, 2010

We have a Flash application that is running within an HTML file.For one page we call a legacy reporting system in ASP.NET that is within an IFRAME. This page then communicates back to the Flash application using cross-domain scripting (document.domain = "domain" is set in both pages. Now the kicker. Flash has history tracking enabled.This loads the history.js file that created a div tag to store page changes so the back and forward buttons work in the browser.Which works for Firefox and Chrome as they create a div tag.In Internet Explorer, history.js creates another IFRAME (instead of a DIV) called ie_historyFrame.When the ScriptResource.axd code attempts to access this with:[code]At my wit's end on this one.We have users who need to use IE to access this site. They are big clients who we cannot tell to just use Firefox.

View 2 Replies

ActionScript 3.0 :: Security Error While Flash File Accessing An Http Service

Jul 13, 2010

i'm trying to integrate with a plain http service which has both http/https flavors available for consumption. sadly they never thought of a flash client consuming these services and it will take another 6 months to roll a crossdomain xml policy file on their service (there security team has to approve the process, pm team has to include it in their roadmap and blah blah). i've already implemented the flash client which works fine from a flash ide security sandbox. is it possible to get around this crossdomain policy requirement.

my flash file will always be hosted as [URL] and i will be communicating with [URL]. i'm saying [URL] because they do some loadbalancing at the backend and allocate random servers on connection (which is fine from their server side design perspective). I tried putting following two lines in the constructor of my movie clip, but couldn't pass through the security sandbox error:

View 2 Replies

ActionScript 3.0 :: Post The Code For A Working Cross-domain Securityfile That Allows Access Only From The Same Domain?

Jun 1, 2010

post the code for a working cross-domain securityfile that allows access only from the same domain as all the flashfiles and xml files are in?used to be easy in as2 but i think i dont know what i need to know about it in as3..

View 3 Replies

Flex :: Using Proxy To Over Come Cross Domain Restriction?

Nov 7, 2010

After reading James Ward's post I'm considering using a proxy rather than a crossdomain.xml file. I have a java app, which includes a flex applet, on one tomcat instance and a java web service on another tomcat instance. Does it make sense to have a single (Apache httpd) proxy handle requests for both the app and the web service, thus eliminating the cross domain restriction?how to deal with the cross domain issue are welcome.

View 2 Replies

Flex :: Custom Event - Cross Domain Objects

Sep 14, 2011

I have an object being passed between flash and flex using the a custom event. I am importing a library in flex containing a copy of the object's class. The classes are identical. But when I attempt to access the object in flex I get this error:
TypeError: Error #1034: Type Coercion failed: cannot convert com.cackleberries.data.api::ApiObject$ to com.cackleberries.data.api.ApiObject.

This function is passed into flash as a callback from AIR / flex
public function airEventHandler(type:String, data:Object):void {
switch(type) {
case "air_api_call":
if(data) {
if(data.hasOwnProperty("apiObject"))
[Code] .....

I am getting the error when I pass the apiobject to serverApi.makeApiCall. That function takes a ApiObject as its parameter. Initially, the data object is created with with the apiObject key with a ApiObject as the value (done in flash).

View 1 Replies

Bypass The Cross-domain.xml Requirement For An Adobe AIR Application Built With Flex?

Apr 23, 2010

Is it possible for an Adobe AIR application to connect to a remove webservice that does not expose a cross-domain.xml file? If so, how do you configure the security sandbox within Air to allow this?

I have attempted a socket connection and received the following error:

[Code]...

View 1 Replies

Flex :: Filling Datagrid From Remote Http Service?

Jul 21, 2009

I am trying my first flex application. And have a problems adding data from xml http service to datagid.

My xml file looks like this:

<players>
<player>
<name>test</name>

[Code]....

The problem is that nothing is shown in the datagrid

View 1 Replies

ActionScript 3.0 :: Socket Connection Cross-domain - "Error #2048"

Feb 3, 2009

I made simple java server on one pc and tried to contact it from another pc on LAN from localhost, so far so good, it worked flawlesly. But when I want to contact the java server outside the security sandbox(from webpage), it will throw me an error:

[Code].....

View 1 Replies

Flex - Pass Authentication Headers Using Flex HTTP Service?

Sep 6, 2010

I am trying to access a .Net service which requires an authentication header. If WebService is used it works fine. But when it is accessed using HTTPService it throws error. The project is already done by somebody else using HTTPService. Now changing to webService requires some time since there needs to be modification in a lot of files.

Below is the SOAP envelop required by the service.

[Code]...

View 1 Replies

Java :: Flex Accessing Https Service Of The Same Domain That Swf Is Loaded

Aug 2, 2011

I am developing a flex application with flex 4.1 sdk and java backend (runs on Glassfish 3.1 via http). For security reasons I decided to move my authentication process to https until a session id is obtained. Therefore I changed the filter settings to use ssl for login and logout pages(just two pages due to performance reasons. The data-size sent to client is large and I do not want to slow down the system). Glassfish forwarded these pages to 8181 port (which is HTTPS port). Everything is ok for the java part. However flex defines the 8181 port as a different domain and then problems arise. Due to flash's same-origin policy it cannot load the secured content. Normally a crossdomain.xml is the solution but I am accessing content of the same domain through a different port. What will be the solution ?

View 1 Replies

Flex :: Builder - Create A 3 HTTP Service With Variable Arguments?

Aug 6, 2009

I need to call an HTTP service using Flex that has variable arguments. I'm using Flash Builder 4 (Gumbo) to create the service definition, but there's no UI for variable arguments, and the subclass of HTTPServiceWrapper that it creates doesn't seem to support it.

View 1 Replies

Php :: Actionscript 3 - Read Data Into Combo Box From Page Using Http Service For Flex Spark?

Mar 8, 2012

i am trying to put data in to combo box from php page using http service .there are 2 data records in the php page but instead of displaying data it displays [object object] [object object] in the combo box list

here is the mxml code

@namespace s
"library://ns.adobe.com/flex/spark"; @namespace mx
"library://ns.adobe.com/flex/mx";

[Code]....

View 1 Replies

IDE :: Cross Domain Policy?

Jun 16, 2008

any one have a snip of code to allow the flash player to acess a cross domain policy file. i have one but its for as2 i tried it in as3 and it throws me errors.

View 4 Replies

ActionScript 3.0 :: Cross Domain XML Not Loading

Aug 4, 2010

I created an XML gallery in as3 that will be loading images from a different domain.

I have a .swf (swf1) on serverA that loads an XML from serverB. The XML on serverB points to the image locations located on serverB (I need to host the images on serverB because server A doesn't have enough room).

The images load fine from swf1 locally in Flash, but when I publish swf1 to serverA, the images do not load. My guess is that the XML on serverB is not being loaded correctly because I can see that swf1 on the webpage.

Here is how my XML is set up:

<?xml version="1.0" encoding="UTF-8" ?>
<images>
<image src="http://serverB/media/images/image.jpg" title="This is image 1"/>
</images>

[Code].....

View 2 Replies

ActionScript 1/2 :: Cross Domain XML Not Working?

Apr 10, 2009

I recently obtained two different domains that point to a subdirectory of another domain server. The swf file I created does not show up when I use the domains that are pointing to the subdirectory of the original domain.I placed an xml file into the root directory that contains the following code:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">[code]....

Nothing shows up. Is there something else I need to do make this work? I created the swf file using CS3.

View 5 Replies

Professional :: Bypass The Cross Domain Xml?

May 1, 2011

What my swf (on mysite1.com) need to do, is that POSTing some php values from mysite1.com (paid hosting) to a file on mysite2.com (free hosting) and get the 100% of the html response. I've started this project in AS2 but I couldn't find a function that get the source of a website, so I recreate the project in AS3 with URLRequest and URLLoader. Everything went fine, I've finished the project, uploaded the file, and there comes the cross domain problem. I can't upload/modify any file on mysite2.com because I can only add pages/posts (like a blog).  I've read at least 20 forums about this, but can't find the solution.

I know (from the manual) that in later versions of flash and/or AS, the swf file asked the user for permission (like now for the webcam). Is there a way to do this in as3 or any way to bypass the need of the crossdomain xml file? If no, what is that older flash version that can do this permission request or that don't need that xml, (but still can post to php files and get the whole response).
 
I'm really upset, because I worked a lot of hour on this, and I was so happy that I could finish it, but I didn't know that there is such a big difference in security between local and online swf files.

View 4 Replies

Cross-domain File Access?

Nov 4, 2010

it's just not working for me I made a crossdomain.xml file that looks like this:

Code:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>

i put that in the folder with the php file i want to access[URL]..

View 1 Replies

Actionscript 3 :: Cross Domain In Flash

Dec 6, 2010

I have two swf files hosted on different domains [URL] and [URL]. a.swf is loading b.swf and trying to cast it to some interface. When both of these swf files are under the same domain everything works fine. But when they are under different domains I'm getting null after casting b.swf to the implemented interface IComponent. Both of these swfs are compiled with use-network=true and with the same IComponent.as.

[Code]...

View 5 Replies

ActionScript 2.0 :: Cross Domain XML Sockets?

Aug 11, 2009

I am currently building an XML Socket Server that I am running locally on my computer. My flash client I build as an executable that runs on your computer and connects to mine via port 9000. I want however, to be able to run the flash client as a .swf in a web page on my website. I have a security policy but I don't know if I am using it right. My server is extremely basic still, it has no admin controls or even authentication or anything, right now it just spits back what it is given essentially, while I test out things and stuff. I just don't know how to handle any cross browser stuff.

********************************************All my code works as is if the flash file is compiled as a .exe from any computer. I have tested that. It just doesn't work as a .swf in a web browser.********************************************The file currently is set to just have the user type in their name and then when they move their mouse, it shows up on all other clients with their names next it it. Basically testing a real time activity updates.Here is my code and other files:My config.xml file:

HTML Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<config>

[code]......

View 4 Replies

ActionScript 2.0 :: XML Cross-domain Loading

Dec 6, 2010

I'm making a flash-based website which would use some information from a separate domain to update its contents. The XML file (document.xml) rests under one domain (let's call it updater2.net), while the core site rests under another (e.g., coredommain.net). I looked at some literature and I picked the simpliest method utilizing this small .php file (called loadXML.php here) and the A/S excerpt:

[Code].....

View 4 Replies

ActionScript 3.0 :: Cross Domain Policy?

Dec 12, 2010

does the cross domain policy has to be in the root of the website or can it be in any subdirectoy from which we wish to load images form another domain?

View 0 Replies

ActionScript 3.0 :: Bypass The Cross Domain Xml?

May 1, 2011

What my swf (on [URL]) need to do, is that POSTing some php values from [URL] (paid hosting) to a file on [URL] (free hosting) and get the 100% of the html response. I've started this project in AS2 but I couldn't find a function that get the source of a website, so I recreate the project in AS3 with URLRequest and URLLoader. Everything went fine, I've finished the project, uploaded the file, and there comes the cross domain problem. I can't upload/modify any file on [URL] because I can only add pages/posts (like a blog). I've read at least 20 forums about this, but can't find the solution.

I know (from the manual) that in later versions of flash and/or AS, the swf file asked the user for permission (like now for the webcam). Is there a way to do this in as3 or any way to bypass the need of the crossdomain xml file? If no, what is that older flash version that can do this permission request or that don't need that xml, (but still can post to php files and get the whole response).

The other problem is that I cant use a php file on [URL] like a proxy between the sites, because this thing I want to access on mysite2 is IP address dependent, so each different user of the flash file has to be "tracked" different. (like a visitor counter - if each user of the swf access mysite2 through a php on th first site, they are tracked as 1 user (because they are tracked with mysite1 IP address))

View 0 Replies

ActionScript 2.0 :: Cross Domain Loading Of FLV's?

Oct 31, 2008

Alright, I was told that I need some sort of file on the domain hosting an FLV in order to load it from another domain. Is this true? If so, step by step, how would I go about loading this FLV if I were to say.... put it on newgrounds, and host the video myself. I've posted on the newgrounds forums, but that place is a joke.

View 1 Replies

Professional :: Cross Domain Retrieval Of Xml Data?

Jan 12, 2010

Question: How do I create the ability to load a xml file from another domain?
 
For example, I am creating an embeddable video player that will play on the domain which the xml file resides and also embedded on other sites. I am to the point where the video player completely works on the domain that the xml file resides and when I embed it on another domain, the .flv plays but the xml data will not pull.
 
FYI, I have complete access to the domain where the xml file resides.
 
Here are some snippets of security settings that I have been trying to get to work:
 
Code from Player:
System.security.loadPolicyFile(domain + "data/crossdomain.xml");
Code from "data/crossdomain.xml":
<?xml version="1.0"?>

[Code].....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved