I have a SWFLoader in mxml of my flex app.[code]...
I get the alert popup (that is the loadComplete is called) but do not get any swf loaded, not able to view anything. What can be the problem, am I missing something or some security issue? I also tried the image control to load the swf. Moreover, the swf are pdf files converted to swf so can this be an issue of different frame rates between flash and flex ?
how to load files to a Flash site Dynamically from a remote server. The first part was showing how to load a .txt file.
I have created a dynamic test field and give it an instance name of myTextArea. Then I uploaded the .txt file to my server in a testing folder. At the beginning of the paragraph in the .txt file I put homeText= Then going back to Flash CS3 I made an Action Script layer and entered the following code there;
[Code]....
But when I go to test the movie I get a "undefined" error (I guess it is an error) where the text should load in the dynamic text field.
I have this situation (simplified): MC-A.swf opened from local computer (C:/) and loads MC-B.swf which is hosted on a server. When MC-B.swf is loaded, it tries to access file called "loader.swf" which is also on local computer (C:/).
When it tries to access the "loader.swf" I get the following error message: *** Security Sandbox Violation *** Connection to file:///C|/loading.swf halted - not permitted from [URL] -- Remote SWFs may not access local files.
I read discussions concerning this issue, and as I understood, I could use: System.security.allowDomain("[URL]"); to solve this problem, but it didn't work. I wouldn't like to change the loaded file to load it's resources also from the web, since it can find them on the local machine.
lod.load(new URLRequest(str2));how to unload the lod when second time i cal that function.how to over come this (*** Security Sandbox Violation ***SecurityDomain )
I have a problem when i try to access the internet from a swf that is run localy.I want to load other swf files from diffrent domains into my main file wich works fine when the swf is on some domain but when i download the file and run it localy it doesn't work.
Can i change the sandbox type from actionscript? Mochi Media does it after enctypting your swf but i don't know how.
If I have a flash file that I'd like to test locally (on my computer) but I have video files on a flash video server and photos on another server, is there an easy way to set up my flash file so I can do this?
I have a flash file located on a web server. When it's loaded, I want it to access the user's PC and display some data (such as file directories, files, etc)I know there are security rules about what a flash player can access, but so far all I can seem to find are rules regarding local flash players accessing the internet, but not much on the other way around, or how do go about doing that.
I have noticed that I have to put flv files in the same or sub-directories of the application file, for example myproject/bin-debug/flvs/1.flv, and use videodisplay.source="flvs/1.flv" to load.
If I put it in myproject/flvs/1.flv, I cannot load it in VideoDisplay, using videodisplay.source="../flvs/1.flv". However the metadata (duration for example) is retrieved, but play() cannot start it.
Can I develop a Flash AS3 download swf that will let a user select a location on their hard drive to download files to and then start the download of multiple files (in the same way I can do with upload)? Or should I zip all the multiple files first and download zipped files to local disk. My users will want to download potentially hundreds of images from a server to local disk so I dont want them to have to click save for each one. Will AS3 let me pass an array of filenames and store the location that the user originally chooses? I ask because this sounds like it would have been not allowed for security reasons.
I'm building an AIR application which will be used to edit slideshows for another app (also built by me, but not in AIR). The slideshows and other data are defined in several xml files which are in the other application's program folder. When trying to load these into my AIR app I get the following error:
fault(mx.messaging.messages::ErrorMessage)#0 body = "" clientId = "DirectHTTPChannel0"
As of now I am using cURL to load a remote favicon, but it outputs it as a .ICO, which AS3 will not load. I tried to convert the .ICO with imagepng, but that caused errors. Is there a way I can load a remote favicon and convert it to a png with PHP before loading it into AS3 without relying on Google's s2?
Some of the code: snip $imagestring = curl_exec($ch); $image = imagecreatefromstring($image); curl_close($ch); header("Content-Type: image/png"); imagepng($image); imagedestroy($image);
I'm going to implement a file uploading application using flex 3.5 and php. In the flex code I need to read the content of the uploaded file without calling the FileReference.load() method (Since it is a big issue when uploading large files). I checked many online articles and didn't find a way to do this in flex.access the content of this file without using FileReference.load() method?
Trying to load remote images into a flash sideshow local files work even if I use absolute path. I am updating existing gallery to dynamically pull images from Picasa.The php works fine and pulls the images from the API. But when I pass the XML to flash it wont load remote images. to ActionScript but it still wont work. The scrip for the sideshow is:
System.security.loadPolicyFile("http://photos.googleapis.com/data/crossdomain.xml"); System.security.allowDomain("*"); MovieClip.prototype.addProperty("onLoad", function () {
I have created an application where on button click it has to load an image to a movieclip.
It worked fine in my local system, but when I uploaded it to the server, the image loads late and thus the animation is missing and is causing problems.
how to load image from the library attached to the movie.
I know it can be done with attachMovie, but its not working for me.
the flash4 published set of files, with a variety of skins tried, works well on the local drive, even when moved to a different folder structure. when index.html is opened on the remote web site, the browser (firefox3 and ie7) displays the player conrols and a rotating horizontal barber pole, green and black, but no flash video.some of the skins i've used are: SkinOverPlaySeekFullscreen.swf, nOverPlayStopSeekCaptionVol.swf and SkinUnderPlay.swf. all work locally but do not play the .flv file on the web site. no problem playing flv movies on the remote web site if the file set is created by dreamweaver.
I have an Adobe AIR/FLEX app packaged as a native installer application running on the desktop. From there, I need to do the following:
a) stay in the "app:" application sandbox so I can load "file://" JPGs into my mx:HTML control
b) authenticate with my server (CAKEPHP) to get a valid CAKEPHP Session Cookie, and
c) securely GET/POST XHR requests from javascript.
Can I authenticate using something like OAUTH or Facebook Connect without losing the application sandbox? It seems if I redirect from my mx:HTML, I lose my local privileges.Can I authenticate with my server using a different sandbox (remote?) and safely pass the Session Cookie to my application sandbox? Are either of these methods safe against scripting attacks?
I'm having problems compiling applications with remote ant, something similar to this. However the flex compiler seems to have problems with this. When I run the same script on my local compiles everything without any problems but when I try the remote ant it fails without giving more information.
I must say that I am reaching the end of my tether with Flash Builder and Flex. Firstly, I have built this wonderful app that I want to start using but it is data driven meaning that when I built it, I created it on my localhost. The PHP scripts were generated from Flash Builder and I have edited them to make them more secure. I have all my services working 100% and I have this brilliant app, but I can only run it on localhost. I have done everything necessary and installed Zend Framework on both servers, I have configured Zend properly but I cannot work out how to change the mobile app to now read from my remote web server.To me this is useless as I want to be able to deploy this app to others to use when they are out and about. how to change it from looking at a localhost to looking to my remote web host?
We are creating a LinkButton programmatically and would like to set it's icon to an image retrieved from the remote server rather than something embedded within the SWF. The .icon property expects a Class but I can't figure out how to create one equivalent to an @Embed but from a dynamically generated URLRequest or URL String.[code]...
Our flex project, which works fine in its current environment with coldfusion 7 single server. We moved this project to Coldfusion 8 multi server, and updated the remoteobject paths relative to the web root.
The error we now receive is faultCode:Server.Processing faultString:'Unable to invoke CFC - Could not find the ColdFusion Component or Interface myProject.cf.main.' faultDetail:'For details, turn on Robust Exception Information in the ColdFusion Administrator' The path to the cfc's from the webroot is is myProject/cf/main.cfc ...
I have 2 questions about remote shared objects in Flex/ActionScript3:1) If I connect to a remote shared objects, but do not handle the SYNC event, will the shared object still receive data from the server? ie. will the server still broadcast data to this client ? This is what I expect
I have the following application in flex. I want to call two different remote objects in parallel.
[Code]...
Now what the methods do is to print sth. when they are called, then wait 8 secs and print sth. after that. When clicking each button seperatly, it works, both methods are started in parallel. However, calling both method the same time, leaves one service to wait with its call while until the other is executing. How can I avoid that?
In my flex application I am using httpService to connect to the server, for the response from server I wanted it to convert the http response to flex object, Is there any remote implementation availabe for the above purpose