Actionscript 3.0 :: Loading Images From Https?
Jul 30, 2010is it possible to load images from https and test locally in the flash IDE? i am getting a load error but not a security error.
View 2 Repliesis it possible to load images from https and test locally in the flash IDE? i am getting a load error but not a security error.
View 2 RepliesI'm having an epic amount of difficulty trying to get a result from a httprequest to a https address.I'm loading a policy file from the address but I'm still getting the 2048 security error.I load my policy file like so in my preinitilize handler.
private function preint(e:FlexEvent):void
{
Security.loadPolicyFile("https://api.soundcloud.com/crossdomain.xml");
[code]......
I have a html paga which loads a flash(flex) swf file. Using https it loads successfully with Chrome, Safari and Firefox, but not with Internet Explorer.Another page, a simple aspx page, does load in Internet Explorer using https (and no flash in it).Haven't found anything so far on the internet to solve this... Anyone?UPDATE: When I right click on the white screen, 'About Adobe Flash Player 10...' appears... so Flash is loaded. Also, in Charles (http sniffer tool) I can see that the swf is loaded over the network.
So, apparently, Flash Player is running inside my html page, the swf is loaded over the internet but the swf is not displayed in internet explorer browser... Very strange. How can I debug this further to see what the problem is?Meanwhile, in the left down corner, IE keeps on saying: 'Waiting for https://....In all other browsers it works like a charm.You can see that IE shows a Certificate Error, but that's also the case in other browsers. I already clicked on Certificate Error to install the Certificate, but with no success.
Explaination: MX 04' Pro Thumbnail Nav. loading images with XML Loader resizes and displays images when users click on Nav. reading XML Problem: Users click Thumbnail Nav. first image gets loaded and loader resizes to image. However the next choice by user on thumbnail click, the second image doesnt get resized in the loader. It goes beyond holder. Here is my code for Thumbnail and Loader:
[Code]....
Now the first image loads fine and the loader sizes to file from XML. However, when users click second choice from Thumbail the loader doesnt resize to new image size. It only gets resized on the first selction or if users click the next or prev. buttons then the images fade correctly but nothing fades back in. Now if they do hit next or prev and then hit a thumbnail option it loads and resizes.
im loading multiple images but how do I make sure the program will start once all images have dispatched a complete event. like make a universal loader for all the other "small loaders" if you understand.
View 1 RepliesI need to load dynamically a few images (4-6) so that by clicking on particular image user would invoke particular action. Embedding images solves the problem but at the expense of file size. If I load them dynamically, they lose their ID.
<comps:ExercisesScroller id="scroller" x="300" y="100"
ex1="@Embed(source='assets/Exerc_1.png')"
ex2="@Embed(source='assets/Exerc_2.png')"/>
and so forth this works. But instantiated in CDATA it does not work:
import components.ExercisesSCroller;
private var custScroller:ExercisesScroller;
private function init():void {
[Code].....
I have typical situation where big loop is loading lots of images and its done asynchronous which make browser to frees during loading and I want to make it synchronous but having big trouble doing it. I found this class synchronous loader and it work great but you cant add mouse event listener to loader. Here is sample code:
[Code]...
I want to have an AS3 app load images from url supplied by the user. But I don't want a malicious user to be able to load an SWF file in place of the image, such as with an altered extension "maliciousSwf.png". Well, not sure how big a security threat that is above and beyond the ability of the hacker to decompile swf, but I think that ideally such behavior should not be allowed.
So, is there any way to prevent this? When people allow users to load images in their Flash apps, do they somehow guard against loading of SWF? Or is this really absolutely no big deal?
How would you defer loading of other graphics on the page until after the images in a Flash gallery's images.xml file are finished loading?Is there any way to detect for this, or would I only be able to check if the flash swf object is finished loading? I'm pretty sure the swf object would be loaded/ready as with document.getElementById('flashobject').onload = function(){}; before the corresponding images have loaded though, instead of after.
View 1 RepliesI am loading images of different size and then images are scaled and border is drawn for each image as shown in below link,[URL]... I want that border of images to be of the same width and height and for that I need to find out the max width and height size image before loading all the images. Is there any way that I can know the width and height of an image before loading it completely?
View 1 RepliesI have a Flash movie written in Flash 8 with AS2 that is attempting to access a webservice on a server that is https.
I can't get the webserviceconnector to even load the WSDL file.
I have a crossdomain.xml file at the root of my http/https server that allows the domain the swf is being served from to get in and it has the secure attribute for that domain set to false, but it still can't get through.
Not sure what I am missing at this point.
I have a quick update. I figured that since my webserver is serving the secure site up under a different Website in IIS that I needed a crossdomain policy file at the home directory of the site. I have placed it there and when the movie loads I am using loadPolicyFile to get the crossdomain file which still loads into flash without issue but I still get a WebServiceFault when I try to load up the WSDL.
Can anyone point out a crossdomain example where a flash movie on an http domain is accessing a webservice on an https domain?
I export a swf/html direct from flash, very simple. I upload it and it works fine in all browsers. If I change http to https in all browsers, no problems.
All browsers except IE - when I change http to https, I just get nothing - if I right click I get "Movie not loaded..." (greyed out) and the usual about flash player.
I've reinstalled my flash player, read loads of tips and tried loads of other hacks but nothing seems to work.
I am using IE 9 (for testing only)
<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="562" height="300" id="banner" align="middle">
<param name="movie" value="banner.swf" />
[Code].....
Everything runs fine in Firefox, but when the SWF tries to make a request in IE, I get an IOError. I've read that it might have something to do with no-cache settings and that a possible solution is to use URLRequestHeaders.
View 0 RepliesI have Flash AIR application, that communicates with server via HTTPS protocol. On MAC I install requested certificate and it works fine, but unfortunently on Windows 7 and XP I have this error:
"[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032" errorID=2032]"
I aasume its something wrong with system configuration, but anyone know how to fix this?
I have a SWF hosted on a https enabled domain and amfphp installation on the same domain. Now when i let user embed the swf on his on http page, i intend to send some data to amfphp without user seeing it. However i see that firefox with firebug plugin catches the post data easily. How is this happening ? Adobe documents say that if a swf is hosted in https and destination is also under https, its suppose to be secure?
View 4 RepliesI have trouble uploading files with SWFUpload when target servlet is listening on HTTPS. On HTTP it works fine.The issue is only when using FireFox or Opera. On IE it works fine - not tried other browsers.
EDIT:Error message as provided from SWFUpload when in debug mode:
*SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0 SWF DEBUG: Event: uploadError : IO Error : File ID: SWFUpload_0_0. IO Error: Error #2038
SWF DEBUG: Event: uploadComplete : Upload cycle complete.*
Is it possible to use the flash.net.NetConnection object to connect to my Flash remoting enabled web application over HTTPS within Tomcat or any other servlet container?
I am using the SpiceFactory cinnamon project for amf remoting and have searched for examples of using HTTPS but see only the reference to a proxy type in the NetConnection object.
If someone could provide a reference or example that would be awesome. Or if it is not possible using the flash.net.NetConnection object are there any recommendations of how to configure HTTPS for the spicefactory cinnamon library.
I am using the google maps API with regular key (not premier).When connecting to my server with http, everything works fine, but when connecting with https i receive the following instead of map: initialization failed please check the API key swf location, version and network availability.Is that because it is not premier key? can I force the google maps API to use http instead of https so that I will receive the maps?
View 2 RepliesI've changed the protocol for my flex app from https to http and flashplayer still wants to download the crossdomain.xml using https though with the port for http. [URL]..
View 3 Replieswe are trying to use our player over https. I am detecting the protocol and then setting the secureConnections to true if it is https however it is still throwing a SecurityError, here is the setup code.
[Code]...
I'm having a very strange problem around a few services I developed for AMFPHP that worked fine over HTTP but once over HTTPS gone completely wrong. When testing right on export flash IDE the connection goes fine but when online and on the browser it doesn't. On connecting, Flash returns a security sandbox violation like this:
"Error #2048: Security sandbox violation:[URL] cannot load data from [URL]. I know that I'm missing the "www" subdomain on the gateway secure address but this is has another purpose for domain configuration. What's most weird is that even the Service Browser went completely wrong since it tries to open the gateway through the HTTP version of the address instead of the HTTPS one. Upon opening the browser I get a "NetConnection.Call.Failed: HTTP: Failed" error. It also tells me that it's trying to connect to [URL] instead of [URL].
What is curious is that it works properly for HTTP, so at a basic level all the things that are necessary to make anything work seem to be in place. I don't believe now that crossdomain.xml is an issue because 1) it worked fine without one with HTTP and 2) from tailing policyfiles.txt, calls are never made to the xml file in either scenario. The wrapper html file allows networking.
The error received is SecurityError: Error #2000: No active security context.
Given that it works in HTTP, should this be as simple as adding the following:
receiverLC.allowInsecureDomain("localhost");
where receiverLC is the localConnection object in the swf, to make this work for HTTPS?
I am having problems with loadVars over https. What I am trying to do is sending credit card information from a flash store to a PHP-script on a server over https, and the PHP-script should return a reply. (So I am using the LoadVars sendAndLoad command). The problem is that the reply I get from the script is empty. If I try the same over http, it works fine.
View 4 RepliesMy webapp with flash files (fusioncharts that reads XML data)works well in Firefox, but not in Internet Explorer. The problem
isn't that I can't get the XML data (the Pragma and Chach-Control header, when you get a "Error in loading data") because I can load a Excel file with html data. I get a Movie not loaded error instead, like if that IE can't load the swf file.I tested the application on another computer with https on IE and that didn't work, but it do work on regular http in IE.
I have a standalone flash application which needs to access a [url]... for authentication purpose. BUt I am not able to connect to the URL.
View 5 RepliesDoes flash web services allows https:// over http ?
View 5 RepliesWeeks back I faced a wierd issue in the behaviour of flashplayer running on IE7 which is invoking parallel https calls. I have two SSL enabled servers one is listening on port 443 and the other is listening on port 8443 but both running in the same domain. I developed a flex client (using httpservice class) which sends parallel https requests to these two servers. When the number of parallel requests increases say more than 5 requests to each server, the fault handler was encountered with the error message:[code]After breaking my head for a long days, I got one solution which would work. This issue is happening only if we are sending https requests to different ports in the same domain. So rather than moving one among the two servers to a new domain, I got a new DNS name for the same destination. So presently I got two DNS names pointing to the same machine in which both the servers are mounted.Now that I am using a separate DNS name for the server listening on port 8443 and the old DNS name is used to hit the server listening on 443.
View 1 RepliesI have one swf banner which I want it into .aspx page. The website runs ok under http and the banner plays correctly. After we set the website to run under https, the banner stopped to load. I've tried to load this banner via http link from inside https running page. Nothing happened as well.
Example: Page: [URL]
Script inside:
<script src="http://www.mywebsite.com.br/AC_RunActiveContent.js" language="javascript"></script>
<noscript>
[Code]....
I am building a FLEX web application that also has a payment module where the user needs to enter his credit card details.
The whole Flex application runs on HTTP. However, whenever the user lands on a page where we ask for credit card details, we want these details to be sent over HTTPS.In this page we need information from the model of the application, because it holds certain selection the user did, the state the application is in, etc.
Do I need to make this page a Module that runs on HTTPS?
Or can I just configure the specific 'credit card' services (we have a JAVA back end) so that these run on HTTPS?
Is there a way to inspect HTTPS traffic from Flex applications compiled to SWF files?I'm trying to use Fiddler for this, have added DO_NOT_TRUST_FiddlerRoot to my Trusted RootCertification Authorities so my IE now can access other HTML sites that would normally complain about untrusted certificate. However, the HTTPS traffic from the SWF file still doesn't appear in Fiddler and, in fact, the Flex app wouldn't work (HTTPS with a self-signed certificate is not supported by Flex apps I believe). Is there a way around it?Update: To be clear, I am interested in the traffic between the SWF file running under Flash Player and the server (typically, Flex components like HTTPService will be used for this). The SWF file itself can be served via HTTP or HTTPS, it doesn't really matter.Clarification 2: Don't assume that the source code is available for the SWF file. If it was, Flash Builder 4's Network Monitor could be used.
View 3 Replies