Flex :: Allow User To Download An Image Without Making Server Call?
May 11, 2011I have a flex application showing a chart. I want to give user the functionality to download this chart as image. How can i do it?
View 2 RepliesI have a flex application showing a chart. I want to give user the functionality to download this chart as image. How can i do it?
View 2 RepliesI want to download files from the server side to client side without prompting a window to the user to download when any updates happen at server side.Right now I am using urlstream class but first file is downloading completely rest of the files contents downloading partially.
editCode sample taken from other post. Warning: it's a huuuge chunk o'code.
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:MyComp="client.components.*" layout="absolute" height="554" width="817"
[code]....
The code flow is as follows: user clicks 'download details' button on the page -> on button click handler a call to a RPC method is made using s:CallResponder -> RPC method generates and returns a URL from where to download the file -> the success event handler of the CallResponder gets the url where FileRefrence.download() is used to download the file but throws following error:-
Error: Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press.
[Code]...
I am writing an app that track data/stats on multi FMS servers and that is working fine for my own custom server side functions. What I do is loop thru a list of IP of my FMS servers, call each IP and I also pass the IP to the server side function that get return and I can have my Responder object plug the returning data into an associate arrays (using IP as index) for reporting. Now my problem is when I used the Admin API. Here I was doing the same thing except I don't know the IP of the respnding FMS and I need to capture the data (into arrays etc). I had tried extending the Responder class so I can plug in the IP of the calling server but so far no good. I guess I need a way to know who is calling back
View 3 RepliesI need to implement some sort of data locking in a Flex application I'm developing. A user clicks a specific button to "check out" the data set, and other users must wait until they are finished before they can make edits. After a period of inactivity, the application will release the lock to someone else.What I'm after is an easy way to determine if the user is still interacting with the application so they don't have to manually keep clicking "yes I want to continue editing". For example, I could handle all mouse clicks for the entire application and add 5 minutes to the timeout every time they click something. Are there any better options for doing something like this? Is there something built in to check for last interaction time?
View 2 RepliesI'd like to have Flex trigger the browser to download a PDF file from a server, but if anything goes wrong with the script that generates the file I want to be able to throw a meaningful error from Flex. Is it at all possible to try to open the URL in Flex first and check the response's HTTP status or Content-Type, then if it's a PDF file and not an error pass it up to the browser to display the "Save File..." dialog?
View 1 Repliesi try to load file from remote server and open the file with default application.
private function getRemoteCourr(PathFichier:String, FileName:String):void {
urlStream = new URLStream();
fileData = new ByteArray();
var urlRemoteCourr:String = new urlManager().urlCourriersPat();
[code]...
Instead of a word document with image and text.
I have a datagrid w/ a custom item renderer, as follows:
[Code]...
So, if I have the actual file on my server, I want to display download.png image ...however, when I compile & run the code above, the .png image appears randomly..regardless of if "file" exists.
Basically im building a flash based drum head designer for users to upload their own image, resize, add text etc, then it be uploaded to a web server when they complete the purchase.
I have all the server side part working, able to send a 2800px square image and compress it into a 1.5MBish jpg.
the problem im having is for the user to upload an image into flash. I've seen prototypes where it uploads the image to the server, then flash loads that image, then upoads the completed one, but this uses alot of transfers.
What I hoped to achieve is something similar to the system on the [URL] website where the image is stored in the cache first. I have spent hours looking for resources on importing user images into flash without uploading first.
Is there an actionscript class that can call an image that has just been uploaded onto the server and place it into a movieclip? Struggling to find a code as each image will have a unique number. Is there a code that can link into a php session that starts as the users uploads the image?
I have found several tutorials for loading data/text into flash using either the 'filereference class' or the 'moviecliploader' but these seem to need a string or a url for the data fro flash to get. Another option is to have the upload script in flash itself but i do not want this either.
I get following error occasionally while running my flex application. I dont know what is wrong as it works intermittently.
Error occured (mx.messaging.messages::ErrorMessage)#0
body = ""
clientId = "DirectHTTPChannel0"
[code].....
Recently I've found a nice on-line diagramming tool - LovelyCharts. I like the way UI is designed - you can view screenshot here. I wonder how to make an image that span across multiple components, like the LovelyCharts logo in the upper right corner of the screenshot.
View 2 RepliesCustomAppSkin Class
<?xml version="1.0" encoding="utf-8"?>
<s:Skin name="CustomApplicationSkin"
xmlns:fx="http://ns.adobe.com/mxml/2009"
[code].....
I can't find free version FCS distrib for Linux
View 3 RepliesI am using uploadify which uses a flash uploader. If the user doesn't have flash installed nothing shows except a blank white page.point me in the right direction of some code to prompt the user to download flash, similar to a <noscript> coding.
View 2 RepliesIn the following code ,onclick of fruits image how to make the fruits image drop in the box image with proper effect(i.e, dropping of the fruit image into the box image should be shown).
[Code]...
Another question, how or what do I do to enable a user to download a PDF file?
View 3 Repliesactionscript 2 code to enable the user to download a pdf from my site?
View 3 RepliesI want to download a file from the server and save it in a particular location of the disk without user interaction. All this I want to do it in Flex.
View 1 Repliesi can only find info on this using AS3.i, however, am still using AS2.i need to create a button that a user can click to download an MP3.the only thing i could think to do was use a getURL, but when i do that, it opens the MP3 file and starts playing it in the browser. i need it to open a "Save As" dialogue, instead. I'm totally stuck on this one.the MP3 for download is located in a folder called "music" (music/A.mp3)
View 6 RepliesI am trying to build a site where you can download music. Has anyone done this before in AS3?
View 1 RepliesIm making a Flash site for class and I have a button made for the user to download a jpeg. The site isn't online. How do I link the button to the jpeg so when the user clicks it they can download it? Is it possible to make sure the download button works before it is uploaded online?
View 1 RepliesI have an image that has call out bubbles in it (call out = comic book text bubbles - i didn't know they were called that). I need to find where each of these are in a given image and get the location and size of each of these.
AS3, Flex, Bitmap
I'm trying to find out how I can tell how many users are connected to the same FMS application in a flex application:
public function totalConnectedUsers():void{
lblText1.text = "There are a total of " + bindableUserVariable + " Users Connected to the Stream Now";
}
I have a Flex 3 app which I want to instrument to report errors generated by the app to a server via simple HTTPService call. My idea is to wrap all the methods in try. catch blocks which then pass the Error object to the reportError() function (which then fires off the HTTP request and pops up a dialog) but is there a better way?
View 3 RepliesWe have a custom flash video player. It uses streaming over a hosted FMS $50/month account.Some users are complaining that the video doesn't play at all.ith one of these users, we had them go to a speed test website and it was determined that they had a very slow connection which we are assuming is what is causing them to not be able view the video.So before we try to load the video we want to determine their connection speed. Then if they have a good enough connection we will play the video and if not then we will do something else like play a lower quality video or simply display a message and not play a video at all.
View 3 RepliesI have some question, Please check out this two site. [URL] My question is how this is done? Both in the front end and back end. How does the system recognize which music to play when the timeline hit in the front end. And how does the backend compile the DIY music file for the user to download. It just so dynamic.
View 3 Repliesi have a flash site im working on, with an image gallery. the way the site is designed, when you enter into a gallery, while it's loading the images (lets say 5-10 images), it draws 5-10 gray boxes in the exact spots the images will load into.
the trick is i need to know in advance how big the gray boxes should be (width/height) before the image is fully downloaded.
i found this site: [URL]
but the way he wrote this, as soon as the class determines the images dimensions, it cancels the download.
i'd rather have a fully complete image class that downloads images, dispatches events with the image dimensions as SOON as theyre detected, and fully downloads the images as well.
I want to create a custom video like the videos on jibjab, i.e allow a user to upload an image of their face and superimpose this onto a video of a character's face.
View 1 RepliesI am calling asp.net image handeler from flex application, now how can i display that image in to flex side, i also want height/width of image.
View 3 Replies