ActionScript 3.0 :: Working With Image Without Uploading It To Server

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


Similar Posts:


Java - Upload Image Thumbnail To Server Without Uploading Whole Image?

Aug 27, 2009

As far as I know, what I ask here isn't possible, but I thought I'd ask anyway in case I'm missing something.

Suppose you want to let users upload JPG images, and these images are scaled into smaller icons and the original images are always discarded and never required again. Is there any way that would commonly work in most modern browsers that would let the user select a single image on their hard drive, have that LOCALLY turned into a thumbnail and upload the created thumbnail to a server?

In a case where the server just needs a small image, it would be wasteful both in user time and server resources to proceed uploading the whole image, only to immediately discard it. It would be much better to just scale it on the client.

I can imagine three options. Just plain HTML/Javascript, using Flash or using Java. If this were possible with Flash, that would seem like the best option. But reading flash.net.FileReference documentation, it seems that you can upload a file from the HD yes, but you cannot look inside the file you are uploading. On the other hand, if you enable "can access local files" in Flash publishing options, it seems that you can then no longer access the net, so that doesn't work.

With HTML/Javascript, it is possible to load images and display them on a <canvas>, but if you try to access the pixels of these images, you get security violations, so that doesn't seem to work.

Java I hesitate to use, because only 96.52% of my users have it installed, and the file upload dialogs I have seen implemented in Java (at Facebook for example) have not worked well (unresponsive interface). I wonder though if Java is the only thing allowing resizing images from local HD?

View 5 Replies

ActionScript 2.0 :: Path To Xml Not Working Anymore After Uploading To Server

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

Php :: Uploading Image To Server Using Byte Array To Upload In Flex 4.5 Air?

Jun 13, 2011

I'm using Flex 4.5 in a Mobile air for android application. So, Using the Camera/Camera roll [URL]I want to do a simple upload using amfphp Note: Since this is how you get pictures on devices, i cant use the filreference because it wants you to get the pictures using "browse" which cant be done on android or ios My plan is, after I select a picture or capture one with the camera, in the event I can get the local url to the picture that was taken like this:

[URL]

I'm putting this in the imageURL var (i'm assuming i should make it into a byte array to transfer it, im not exactly sure this is my first time making something like this)Here's how i'm taking that image, making it into a byte array, and using amfphp to send the upload to the server:

protected function upload_btn_clickHandler(event:MouseEvent):void
{
var request:URLRequest = new URLRequest(imageURL);
var urlLoader:URLLoader = new URLLoader(request);

[code]....

But i'm getting an error NetConnection.Call.BadVersion.This is the first time im trying something like this so im not even really sure if im going about it right. All the examples I find online go about using the fileReference class, but that seems to require me to use the "browse" method, and im on a mobile application that uses the camera and camera roll to grab pictures off the device, and im not sure how to incorporate that into the fileref class. I figured i could just get the byte array and send it to php myself and it should be just fine.

View 1 Replies

Actionscript 3 :: Display An Image In Flash Datagrid After Selecting An Image For Uploading?

Feb 27, 2010

After browsing for the images, and selecting them. How can I display a preview of the image in the datagrid? I am able to display the file name, file size, but was unable to display the image. Below are the codes I have written, it is not a complete code but just enough to make it understandable.

// variables used
var list:Array = new Array();
var listDP:Array = new Array();

[Code]....

View 1 Replies

Flex :: Image Scale Stopped Working After Deploy To Server?

Nov 18, 2009

I have some code to scale an image's width according to its height after the image is being loaded. It works fine on my development PC if I point to the wrapper html using local file system path. However, after I deploy the web application to JBoss AS 5.1, it stopped working - it always sets the image width to 0, causing it to disappear.

Code for scale image side:

private function scaleImage():void {
img.width = img.contentWidth;
}
<mx:Image id="img" updateComplete="callLater(scaleImage)" height="100%" />

View 1 Replies

Professional :: SWF/FLV Not Working After Uploading To Website

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

After Uploading My Last .swf File My Webpage Stopped Working?

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

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

IDE :: Uploading Video To Server?

Jan 21, 2010

I imported a video in flash cs4 and media encoder did it's thing. I saved the file as a swf flash file and uploaded to server.

View 1 Replies

Flex :: Get Flv Length Before Uploading To Server

Dec 10, 2009

I'm using the FileReference class to upload flvs to a server. Is it possible to check the flv length not size before allowing an upload?

View 2 Replies

ActionScript 3.0 :: Uploading Files To A Server Through PHP?

Jul 2, 2009

I want to upload my images to server,But i have no idea.pl share if u have any good sample.

View 1 Replies

ActionScript 2.0 :: Get New Name Of File After Uploading It To Server?

Oct 1, 2009

I want to upload multiple files. For this I used FileReference and it works fine. I m able to upload the files properly.

When i upload a file i change its file name from "pic1.jpg" to something like "asdfwer.jpg"

Now i want to get this new name of a file - so for that i set cookie using setcookie() in php. But the problem is "Cookie is not being set" I dont get the reason for that.[code]...

View 0 Replies

ActionScript 3.0 :: Uploading Images To Server?

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

IDE :: Animation Slowing After Uploading To Server?

Apr 29, 2009

I have a nice, small animation in a header I've made for a website that looks very crisp and clean in flash, but when I upload it onto my website or preview it in a browser the framerate is lower than how I designed it.

View 7 Replies

ActionScript 3.0 :: Uploading Multiple Files To Server

Feb 3, 2011

I'm building an app that needs to upload multiple files to my server. Ask of these files are in one folder. I was told I carnot directly tell a fileReference which files to upload, they would have to be selected manually through browse ().

View 2 Replies

ActionScript 2.0 :: FLASH PHP Uploading Images On Server

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

ActionScript 3.0 :: Uploading Images To Server From Flash?

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

Actionscript 3 :: Uploading An Image Via PHP?

Oct 1, 2011

That script below is for uploading an image via PHP. Now I'ld like to give the user the option to cancel the upload. How to cancel the PHP request once it got send?

package
{
import com.adobe.images.PNGEncoder;

[Code]....

View 1 Replies

ActionScript 2.0 :: Uploading Image To SWF?

Aug 23, 2010

I asked a similar question before but didnt get a definite answer! Basically I just want to know if its possible to have a standalone SWF file which allows the user to browse there computer and load an image into the SWF to view it (in AS2)? Ive researched this FileReference class but it seems that requires servers and what not. I only want to upload the image to the SWF, not to an external server?

View 2 Replies

Media Server :: Rtmp File Uploading Through Php Script?

Aug 5, 2009

We are using influxis fms connect, we need to upload videos and audios using php script, i dont know what to do exactly with this fms connecti need the answer for the following query, so that i can get into it, How to upload audio or video files to rtmp server using php script, since my php scripts is in one server and the fms is in another rtmp server?

View 1 Replies

Professional :: Video File (flv) Not Playing After Uploading To Server?

Apr 12, 2010

I did a bit of search without success to find if anything like this was answered before.Sorry for asking a silly question, I am a newbie and hence maybe missing something obvious.I used the Encoder to create the flv file and embedded the file in the timeline and the swf file plays the video just fine locally. For some reason, it's not playing after I uploaded it to the server. I did copy over all the files (swf)s) & flv). It's a very small video and I can't even see the video(just blank) while running the swf file after uploading the files on to the server. All other frames are working as expected.

View 1 Replies

Flex :: Uploading Data And Track Bytes Sent To Server

Nov 6, 2010

I want to upload data (not a local file) with Flex (4.1), and show what the progress is of the bytes sent. Now I use a URLLoader, but I know that URLLoader was designed to download data, I can connect a listener to ProgressEvent.PROGRESS but that has no effect. I also know there is a FileReference object which supports uploading. The problem here is, I do not want to browse for a file and upload it. I have a byte array which I want to send to the server, but the data property of FileReference is read-only. How can I send the byte array (which is actually a PNG encoded image) to the server and be able to track the progress of the bytes sent to server?

View 1 Replies

Flash :: Javascript - Uploadify Uploading To Remote Server?

Jan 31, 2011

I'm trying to use uploadify to upload images to a remote server. I've have done everything I can think of for the cross scripting issue or whatever. Here is what i've done. scriptAccess to 'Always' in the uploadify function. I have a crossdomain.xml on my ww2 server with uploadify.swf in the root as well. I have uploaded my javascript jquery lib file to the remote ww2 server and put it in the header I put the jquery.uploadify.js and the swfobject.js in the root directory as well.

If I try to click the X to cancel a file I get the error: Error calling method on NPObject Or uploads don't work either. If anyone can help with this that would be great. If there are any other good flash based or non flash based multi uploaders that will do remote files with no issue please let me know.

View 2 Replies

Actionscript 3 :: Uploading Images To Server From A Flash Website And PHP?

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

IDE :: File Uploading - Error 403 On MediaTemple Grid Server

Sep 15, 2009

I was using the script on the [URL] page to upload files and I get 403 on my mediatemple grid server. (It works fine on localhost). I tried adding the following to .htaccess:
SecFilterEngine Off
SecFilterScanPOST Off
But it gives me Internal Server Error - 500

View 1 Replies

Html :: Preview Image Before Uploading?

Aug 20, 2010

I'm looking for some flash based plug-in which allows me to display an image as soon as the user selects it in the file dialog.I looked at swfupload but couldn't find any way to display the image selected.. no handle on file path or contents as far as I could find.

View 1 Replies

Actionscript 3 :: Add A Watermark To Image Before Uploading?

Mar 11, 2012

For the past few hours I've been trying to figure out a way to add a watermark to an image file before uploading it using the FileReference.upload(); method. The uploading works already. I just have to figure out how to get a small watermark (PNG image with alpha-transparency) on the lower right of the image file. Another thing is, I don't want to modify the source file. I just want to add the watermark on upload.

What approach would you recommend for this type of setup? I also can't seem to find any pre-made classes already that I can use for this certain thing. Is this not a very common task? And no I can't use server-side (PHP) to do the watermarking because I'm communicating directly to a service's API, not through my server.

View 2 Replies

ActionScript 3.0 :: Corrupt Image When Uploading?

Aug 9, 2011

I am writing an app for android devices, it uses the CameraRoll class to retreive images from the gallery. It then catches the raw bytearray data and encodes it into a base64 string, then sends the string via httppost to a server that decodes the string and saves the file.Every part of this is fine except one detail, the images are corrupt when they are saved on the server. Except one thing that makes things weirder, when I load these corrupt jpg images into a flash app they work just fine.Previously I have made apps that uses the Camera class to take photos in the app, and this works fine, the reason I am using cameraroll is because I want to be able to get high quality images, which is not possible using the regular camera -> bitmapdata.draw -> jpegencode -> send method.The code is basically thi

ActionScript Code:
//mediaevent select is triggered
var loader:Loader = new Loader();

[code].....

View 1 Replies

IDE :: Text In Image Distorted When Uploading?

Mar 14, 2010

I have a psd that is the background image on a site im creating, when i test the movie it looks fine however when i upload it to the ftp the text looks jagged.

[URL]

If you look on the edges on the cost of love logo you'll see what i mean.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved