Flex :: Working With Images When Uploading In Adobe?
Oct 27, 2009
What I have to do is upload some images to a server, which is OK, but before uploading I must downsize this images by reducing their quality and width/height. I've found many information about the class JPGEncoder, but I couldn't make it work.
View 2 Replies
Similar Posts:
Feb 10, 2010
I've created a fileUpload.mxml component in flex 3 which basically uploads m4a's to a designated server. The general code is below:
private var uploadURL:URLRequest;
private var file:FileReference;
file=new FileReference();[code].....
Everything works fine on a windows pc, but not on a mac pc. It stops at file. upload (uploadURL)(and thus doesn't trigger Event.COMPLETE).
View 1 Replies
Feb 8, 2010
I'm looking for a way to upload images that were created in my flex app to rails. I've tried to use paperclip, but it don't seem to work. I've got this tutorial here: [URL] The problem is, that they are using a FileReference to browse for files on the clients computer. They call the .upload(...) function and send the data to the upload controller. But I'm using a URLLoader to upload a image, that is modified in my Flex-App. First, here is the code from the tutorial:
[Code]...
View 1 Replies
Jan 12, 2011
I need to upload a picture to the server. I found from Adobe's website a PHP script that will receive the POST data. I tried to put the link to the script but this forum won't allow due to my limited amount of posts. You can find the web site by putting these exact keywords in Google: "Adobe Flash Platform * Using the FileReference class".It will be too messy to post the entire code but the most essential code should be this one:
Code:
var fileTest:FileReference = new FileReference;
fileTest.addEventListener(Event.SELECT, fileSelect);
[code]....
View 3 Replies
Jan 29, 2010
How to add images into Adobe Flex RichTextEditor control? I mean using a button =)
So we have some text editor with RTE a-la
We want to get into its content images using some button. How to do such thing?
BTW: I found this [URL] but I really do not understand how to make it work so if any one can publish simple project with simple (DIRTY IS OK) source it would be grate!)))
View 1 Replies
Nov 5, 2009
i have a short swf that has two movie clips that act as holders for thumbnails to get loaded in a random fashion. it works fine when i test my movie, and even when i export the swf. the images load in the placeholder - no problems.when i upload the swf to the website, the thumbnails dont load and the holders stay blank.i experimented locally and moved my .swf file into a folder that didn't contain a folder containing all the thumbnails. this gave the same result as the website (blank holders).when i move the folder containing all the images into this new folder with the swf, the images load in the movie and no blank holders are seen.
easy solution i though, i upload the folder to the website in the same directory as the swf file. did that but the images still dont load. is it that the swf is attempting to read the folder that would be on the local drive and not go for the copy in the same containing folder on the remote area?here is my code,
Code:
MovieClip.prototype.setRandom = function() {
HIGH = 100;
[code].....
View 5 Replies
Jun 7, 2010
What is the fastest way for a Adobe AIR program program to index all images on a users' computer? Using Open Source ActionScript-3, MXML Libs and classes.
Fastest - Same pc configuration, different time (seconds) To index - get a list of absolute links (like c://bla-bla/file ) and save them into file (index.txt) All images (like JPEGs, PNGs)
View 1 Replies
Sep 21, 2011
We use a custom Air Install badge to install / launch an Air application directly from the website simillar to
TweetDeck
This normally handles the install of air if the user doesn't have it already installed.
However, after doing some cross broswer testing, it appears that when a user, (using OSX Lion and Safari or Firefox) tries to click yes when prompted to download the required Air they are unable to click either of the yes or no buttons.
I initially thought that it may have had something to do with the positioning so ensured that the z-index in the css was appropriately set but to no avail.
I beleive it may have something to do with the installer itself rather than my implementation as the same thing appears to happen on TweetDeck too.
View 2 Replies
Jul 13, 2009
As for Adobe is concern, We can upload the files up to 10MB But for my application i am facing problem while uploading the image or video more the 2MB size.I don't have any restriction in my coding part both AS and PHP.
ActionScript Code:
uploadMsg.visible = false;
var URLrequest:URLRequest = new URLRequest("http://localhost/udip/File_Upload/uploader_script.php");
[code]....
View 3 Replies
Jul 22, 2010
i have this code for uploading images. I always get an error of "Type was not found or was not compile-time constant: Void" in line 20, 24, 27,50,54 and 67. I think it's all about the functions.
import flash.net.FileReference;
var progressBar:MovieClip;
var reference:FileReference = new FileReference();
var referenceListener:Object = {};
[Code]....
View 1 Replies
Feb 4, 2011
I'm uploading files to my server using File.upload();. My php file looks like this:
[Code].....
View 2 Replies
Mar 30, 2011
I'm developing a drawing application in flash and I want that when a user has finished his drawing, he can upload the file to a server I found a code on the web that does what I need, but when I upload the image to the server, there open another window and I don't want it does that, I want that simply upload the file to the server without opening another window.
[Code]...
View 0 Replies
Sep 18, 2010
I am trying to embed a flv with a custom skin from Flash CS4 on my web page. I have embedded FLV's before using Dreamweaver CS4 by going to Insert/Media/FLV and it worked fine. However, I do not like any of the skins available in DW.
So I created a FLA in Flash with a skin that I prefer. The file previews fine in Flash. I published it and Flash create the flv, swf and skin.swf. I then went to DW and choose Insert/Media/SWF and inserted on the html page. I previewed it in the browser and it worked fine.
I uploaded the .swf, flv, skin, and html to my server. The skin appears but the flv video does not.
Is there somewhere in Flash that I need to specify "Progressive Download" as in DW? Or am I missing a file? Or.....
Here is a link to the page: [URL]
View 4 Replies
Mar 31, 2011
Im very new to Adobe Flex/Actionscript and am trying to create a person search application. So far I have my results showing as a horizontal list, but Id like to include an image above each name as my wonderful paint skills show:
/* listOfPeople is a list of arrays with a["name"] a["sex"] a["dob"] and
a["image"] which is just a URI to the image */
<s:List width="100%" height="100%" id="results" dataProvider="{listOfPeople}" change="clickPerson(event)">[code]....
View 1 Replies
May 16, 2010
I would like to ask if it is possible using flash to upload multiple images to particular positions. For example, I have a target that is called "people" and when someone uploads an image that is called "people" the image will be placed on that target.
View 1 Replies
Jan 24, 2011
I'm trying to upload a picture through the Graph API, but somehow it doesn't get through. Correct me if I'm wrong, but if I don't give an album ID, it should create an album by itself right? I'm a quite confused by that. Right now, I'm using
[Code]...
View 1 Replies
Jul 1, 2008
I am trying to upload an image on my server using Flash and PHP. The following code works fine on 1 server but doesn't work on other 2 servers where i have to implement it. Please check it and see where am i going wrong.
[Code]....
View 1 Replies
May 19, 2011
I'm developing a drawing application in flash and I want that when a user has finished his drawing, he can upload the file to a server. I found a code on the web that does what I need, but when I upload the image to the server, there open another window and I don't want it does that, I want simply upload the file to the server without opening another window.
This is the AS code:
Code:
import com.adobe.images.JPGEncoder;
save_btn.addEventListener(MouseEvent.CLICK, guardarImg);
function guardarImg(e:MouseEvent):void
[Code].....
View 3 Replies
May 14, 2010
its got a bunch of .fla, .swf and .html files which i just have to edit with my information. pretty easy.I uploaded all the files to my server and everything works great.so ive been editing the .fla files, inserting my pictures and information then publishing the .swf files and putting them back on the server and everthing looks great.
* The problem is that after uploading my last .swf file my webpage stopped working... i can see the front page put it doesnt load and when i click on my links it doesnt go to them.When i open the .swf file i get this ERROR:
Error opening URL 'file:///Macintosh%20HD/Users/thumper%5Fjeep/Library/Caches/Cleanup%20At%20Startup/Transmit/3704291E%2D0BE0%2D4A1F%2DB379%2D3F80743EE79B/xml/menu.xml'
It looks like the .swf file is looking xml/menu.xml on the server but for some reason the path is all wrong and the path appears to be to my Mac and not the server.
View 1 Replies
Jun 23, 2009
is it possible to upload an image from local computer to online flash application, but without actual uploading it to a server, just in memory. Need to load picture, make some manipulations, print it from flash and forget.thrashing the server with loads of photos is worst scenario.
View 5 Replies
Dec 8, 2011
Ive been trying to create this code for some time now and just wondered if someone out there who may read code better than me may work out why the image doesnt end up on my server as i seem to have brain freeze on this :(
var fileRef:FileReference = new FileReference();
fileRef.addEventListener(Event.SELECT, selectHandler);
fileRef.addEventListener(Event.COMPLETE, completeHandler);
[code]......
View 1 Replies
Jul 10, 2009
I am a designer with some knowledge of actionscript 2.0, but have never tried to do anything like this. Does anyone know of a good resource to see how this is done, or maybe have Fla to look at?
View 0 Replies
Oct 14, 2005
I'm in trouble, because i need to build a site for a customer who needs an uploading file system, but i can't handle it. He wants to have the possibility to upload images and text that will be visible in another page of the site. These are the offers of his shop, that will be shown as a list in another mc. This console should be invisible for visitors (i'll use a password system to prevent accesses).
I know there are many examples and tutorials for this ("flash upload file" in google), but im a newbee in programming and i really can't figure out how to solve this problem. It could be even a php system. I don't care about graphics cause it would be invisible for visitors. What i care is that those images and text are reported in that "offer list" mc. Finally, is possible to have an auto resize (pixels and kbs) of the images?
View 3 Replies
Jun 29, 2007
I have a big problem : My gallery ( with xml) was working perfect until yesterday . I uploaded my files to my server to test them. This morning I reopened the fla to make modif and big surprise : only the big image appears but no thumbs anymore in the scroller. I tried to trace the xml nodes but thay are now undefined. WHY? Everything is in the same folder.Nothing changed. I turned everything upside down but nothing. Does a uploading can affect some configuration ? Are the xml modified modified after being uploaded ?
View 3 Replies
May 10, 2010
I tried on Flex 3, facing issue with uploading JPG/PNG image, trace readUTFBytes would return correct bytes length but tmpFileContent is trucated, it would only appear to have upload just 3 characters of data to the server through PHP script which made image unusable.I have no issue for non-images format. What is wrong here?
View 3 Replies
Apr 4, 2011
So I made a drag and drop app where I can drop in an image, it get's resized and saved automatically on the desktop.
But now I want to do the same when there are multiple images dragged in. This is where I'm stuck...
private function onDrop(e:NativeDragEvent):void
{
trace("Dropped!");
var dropfiles:Array = e.clipboard.getData(ClipboardFormats.FILE_LIST_FORMAT) as Array;
[Code]....
The problem is that I want the completeHandler() to run after every ldr.load() but in my code it only runs once right after the for each loop.
View 1 Replies
Jan 28, 2012
I'm having a task in which I have to read and save images in the database.I'm using C#.net Webservice and SQlserver2008 database and I'm saving image as varbinary format.How I can read images from local system and convert it into byte array in Flex ?How to show images in Flex that are recieved in type Bytearray?
View 2 Replies
Feb 25, 2011
I have been programming using flex 4 on adobe flesh builder 4 in order to create a website. The site require a connection to java and hence I decided on using blazeDS, in order to do so I updated the flex project's properties and set the flex server from "noneother" to "j2ee" as is required for the use of blazeDs. Ever since this change the site no longer runs as it should, as all the images are not being displayed and all action listeners are no longer working.(The problem is due to the flex server as when I changed it back to none the site worked fine)I need the j2ee server, and cant go by without it.
View 1 Replies
Mar 21, 2011
Multiple axis creation via MXML works fine:
http:[url]...
But when I'm trying dynamically create horizontal and vertical axis then I'm getting extra axes. I believe this is Adobe bug. How I can fix this behavior?
<?xml version="1.0" encoding="utf-8"?>
<s:Application
minHeight="600"[code].....
View 2 Replies
Mar 1, 2010
Actionscript:
System.security.allowDomain("http://" + _root.tdomain + "/");
import flash.net.FileReferenceList;
[code].....
View 2 Replies