Flex :: Create Setup Crossdomain For Flash Project?
Aug 10, 2010I am trying to add a crossdomain file for my flash project...haven't done it before..and there are not too much information online.
View 2 RepliesI am trying to add a crossdomain file for my flash project...haven't done it before..and there are not too much information online.
View 2 RepliesI am trying to build a youtube player with flash and everytime I load a video, there is a runtime security sandbox error..I already put crossdomain.xml in my root serverbut I am still getting the errors...Do I miss something? Do I have to load it into my flex project?
<!-- <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
[code].....
How can i settings crossdomain.xml my flex project.* this is my crossdomain.xml.
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
[code].....
I've tried lots of different methods but my project send error message "Security error accessing url Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL [URL]"
put the file in different places
C:wampwwwMYPROJECTin-debugcrossdomain.xml
(my swf url : http://localhost/bin-debug/test.html checked http://localhost/bin-debug/crossdomain.xml its ok)
C:wampwwwcrossdomain.xml
I added the load line of the project
protected function application1_initializeHandler(event:FlexEvent):void
{
Security.loadPolicyFile("http://localhost/MYPROJECT/bin-debug/crossdomain.xml");
}
if flex server type select none everythings ok. but server type select PHP need crossdomain.xml how can i fix.
I would like to know how to proceed to set up a work environment in order to develop Spring BlazeDS applications. Those server applications are meant to be accessed via AMF remoting from some client Flex application.Actually I have Maven and m2eclipse set up and working, local JBoss v6.0M2 running, Flex 4 plugin installed.Ideally, I would like to know how to create an eclipse project in which I can have both server (Java) and client (Flex) code and be able to deploy everything in one click to JBoss. Maybe there is a special Maven archetype for this setup? If not, I will be happy if someone can provide step by step instructions to setup all this stuff.
View 1 RepliesI'm trying to set up the first page in my project so that I capture a person name.and I can use it again later on. I had discussed this in a previous thread with Ned
[Code]...
I want to create flash banner with XML content, and host it on my site with crossdomain.xml, and then share banner code with other sites for banner exchange.So, everything is on my server.Will loading banner, on other sites, load XML from my server, if both banner and XML resides on the same server, but banner is loaded on the other site?
View 1 RepliesI am trying to connect to a socket server from flex. I read, on adobe's documentation, the client automatically sends a "request-policy-file" xml element to the socket before allowing it to be opened, and should receive a policy file.
The client sends the xml element as expected, My server receives it (on the port I want to use, port 6104) and replies on the same port with:
[Code]...
How do I set the flash crossdomain.xml file to only allow https ssl secured connections? I have this but I think this will allow non secure connections too.
< cross-domain-policy >
< allow-access-from domain="*" secure="false" / >
< /cross-domain-policy >
I am trying to get the RequestToken with flex from
[Code]...
I have a Windows Server 2003, with a domain: "mydomain.com" and everything goes right until the Flash application tries to load de crossdomain.xml, because it tries to load it from "servername" and obviously the request fails. Currently I have read all about crossdomain.xml , what it is, where it goes although I can not find what I have to do so my flash application requests the crossdomain.xml from my domain "mydomain.com" and not from my server "servername".
- The domain is up and can be accessed from the internet
- The crossdomain is on the root folder and also can be accessed from the internet
How can I consume a webservice that hasn't explicitely created a crossdomain.xml? I understand it's for security and to prevent cross-site scripting, but it does seem like a major limitation to the Flex framework. For example, if I want to consume a webservice, which is suppose to be language agnostic, then I can't with Flex. The webservice/server has to be specifically prepared for Flex/Flash. If it's not, then it cannot be consumed.
View 3 RepliesI have a CodeIgniter project and I made a back-office in Flex. I was wondering how I can implement the Flex project in my CodeIgniter since I'm working with routing I can't route to any directory. So there isn't a way to display the back-office.
View 1 RepliesI'm trying out the FlasBuilder ide with ColdFusion 8 on OS X. When I try to create a new project, I get stuck at the server setup screen that forces you to validate your paths for your ColdFusion root folder and your webroot. Every combination I try says either "LiveCycle Data Services is not installed at the specified location" or "Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml." The flex-config.xml file is sitting in that directory. Is there some trick to getting this to work?
View 1 RepliesI've got a small client/server test application where I have a Flex app that makes an HTTP request of a server app. The server app is a script running on my local machine, listening on port 8001. The client is a swf that I am running locally, and uses mx.rpc.http.HTTPService to make the page request.
The HTTPService is being set up as per below:
_HttpService = new HTTPService();
_HttpService.url = "http://localhost:8001";
_HttpService.contentType = "text/xml";
When I make a basic page request, my server app is first receiving a "GET /crossdomain.xml HTTP/1.1" request, which is failing since I don't have a crossdomain.xml file in place. The reason I don't have one in place is because this is all happening on my local machine (for now) and I shouldn't need one (I don't think).
I definitely had this code working before without a crossdomain.xml when I was using Flex 3.x. I thought I had it working with Flex 4 as well. Now I'm using Flex 4.5. Is there an issue here, possibly due to security policy changes?With all of this happening on localhost, why is the Flash player requesting a crossdomain.xml file?
[code]...
I have 2 flex projects which were create in flash builder 4.5.....how can i call one project from second??? the best would execute to the same window.... I'm interesting about both possibility (in browser and air too).
View 1 RepliesI have been asked to create an interactive flash project where the user would be able to click on a main image and depending on what part of the image they click on, a movie clip plays, then goes back to the main image.
I am sure this is basic, but I have been researching, watching tutorials, etc for a week now and can't seem to get it to work. I am by no means a Flash expert and have really never worked in it. I do more Photoshop and Illustrator-type work. So Actionscript is new to me and really the whole interface is as well.
Would you all be kind enough to help me out? I am going to need some detailed explaination.
I have a situation where I have to a have a few different sized "cameras" to send over a netstream depending on if its a desktop or mobile connected. Here's how I have it setup:
protected var nearCam:Camera;
protected var nearCamForMobile:Camera;
nearCam = Camera.getCamera();
[Code].....
If i do JUST the nearCamForMobile and send that to the mobile versaion it looks great on the phone and it's not stretched. but then obviously its 480x800 resolution looks stretched on the desktop version which is a 385x240 video box. So if i do just the nearCam it looks great on the desktop but then it looks stretched on the mobile....
So what im curious is why Cant I do both vars the way I showed above, display the nearCam, and then have the nearCamForMobile waiting to be sent when i need it to?
Can you only have one camera mode setup at a time? On the mobile version its setup so the user is holding the phone in potrait and its 840x480. The desktop site looks best when its like a widescreen video.
In the end I'm basically trying to figure out how to have 2 camera vars with 2 resolutions. Display 1 on the near side and attach the other to the netstream in a situation where the far is a mobile client. (I know how to figure out if the far is mobile, im not worried about that part)
I just need to be able to transmit a resolution/aspect ratio that looks good for a mobile client. which happens to be in a different aspect ratio than the desktop cleint.
I am trying to create a flash presentation project, in which the keyboard arrows navigate between elements on the stage AND once an element (a button) is highlighted (with the stupid rect focus thing) I would like an event to be triggered. the user navigates between elements using the arrow keys and the act of landing on each element triggers an event (loads image, goes to a frame, etc.)
View 3 Repliesdoes anyone know the format for setting up classes in AS? Also I was wondering if anyone knows if there is "type." A type in some programming languages is exactly like a class but its much easier to call into a program. Okay right now I just need to find out the format for classes
View 5 RepliesI worked in flash cs3. Have "People.swf"- library MovieClips, they have export for actionscript and first frame. Names classes "Head1"..."Head2" and so on. How i make create object "Head1" in other flash project?
View 2 RepliesI have a flex mobile project and I want to convert it into web-based project. What is the best way to do it.
View 1 RepliesHere in Flash CS4 Explorer, I have shapes. It's intuitive that I be able to right-click on Scene1, and be able to Insert Shape. Can't. I go to the frame. Can't. I right-click everywhere. I see 'Create Shape', but everywhere I see it, it's grayed out - won't let me.
How do I create new shapes in the graphics folder in the library of a flash cs4 project?
In a rails project how would I create a picture slideshow? It could be generated as flash or use prototype or something else. I just want a series of images (as a sub-part of a web page, not be the whole page) to fade into each other, and to advance manually if clicked. It would be nice if I could do things like slowly zoom into the images. I imagine there must be a plugin or something to handle this?
View 1 RepliesIs there any simple way how to pack existing Flash8 project using AS2 and multiple files to to Adobe Air application?
View 2 RepliesMaven 2.2.1 unzipped,M2_HOME set and repository altered to point to different drive location in settings.xml Flex 4.0:
Installed Created a multi-modular webapp project using flexmojo:
mvn archetype:generate
-DarchetypeRepository=http://repository.sonatype.org/content/groups/flexgroup
-DarchetypeGroupId=org.sonatype.flexmojos
-DarchetypeArtifactId=flexmojos-archetypes-modular-webapp
-DarchetypeVersion=RELEASE
with following options
groupId=com.test
artifactId=test
version=1.0-snapshot
[code]....
Parent pom has swc, swf, war as modules.
Dependency is war->swf->swc.
With parent artifactId of swf, swc, war set to swf, swc, test respectively.On executing mvn on test folder(for that matter clean or anything) I get this following error.
G:Projects est>mvn -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/com/test/swc/1.0-snapshot/swc-1.0-snapshot.pom
[code]....
Looks like its trying to download the project from maven's central repository instead of building it.
How can I add a crossdomain.xml to the root of my Hudson server? I'm working on a Flex->Hudson bridge and I'd like to access it directly, instead of relying on a proxy to do it for me.
EDIT: This is standalone Hudson, not running on any application server.
where should I put the crossdomain.xml to my grails app? I need to use webservices from external domains in my flex client app. I put it into my web-app folder but it seems not working..
View 3 Repliesi'm a newbie using Flash CS4 and AS3. A retired social worker, I need to create a basic Flash drawing tool for an eLearning project to teach students how to draw their family tree.
The drawing tool would allow the students to add multiple circles and squares to symbolize their family members, plus text labels for names, ages, and they would need to be able to draw connecting lines between the circle and square symbols. Finally, in order to continue work on the drawing, over time, they would need to be able to save their drawings to be re-opened and edited (add new symbols, erase incorrect ones, etc.). Once the drawing is completed, they would need to be able to print a copy.
Being a newbie (but I have done some related scripting: JavaScripting-ECMA-262, HTML, CSS), I am not sure if this can be done in AS3, Flash CS4. But, if it is possible, I would like to learn how to create this.
I've long thought of Flash Lite as something similar to actionscript, for mobile browsers.
But today I tried to cs5 but found it seems to be some kind of Flash Player ?create a Flash Lite project in flash
Which is the case ? If it's the latter case, is actionscript for Flash Lite the same as actionscript for Flash Player or has some kind of difference?
I have started the vhost setup. I have cpanel on the server and I added the domain and it resolves to
the hosting account just fine pull up www.domain.com and goes to server.
I added the www.domain.com vhost. I pointed the application dir to /home/domain/public_html/applications/
I copied live over to applications dir. I setup user and pass for the virtual host login.