Flex :: Upload Image Then Share Without Saving The File Using SharedObject Or Anything?

Jun 10, 2011

I'm currently working on a chat with uploading an image and sharing it. The problem is I can upload and display the image but I can't share it to the other side. Here is some code:

[Code]...

View 1 Replies


Similar Posts:


Flex - Upload Or Share Images On Flicker Through Php?

May 24, 2011

i am developing an application in which user have the option to share images on different social sites like Facebook, twitter and Flicker.

I have done with Face book and twitter, i upload image to my server and share the link on Face book and Twitter.

[Code]...

View 1 Replies

ActionScript 3.0 :: Upload Image And Saving It To The Local Map?

Mar 2, 2011

how do you upload the image for temporary savings and then save it down to the local map?

My Situation: Making an flash website for my father in law and we got a server/domain which has got no database... Which make it impossible to basicly just save it to a database.

so I will make a admin place where he can go on and save the image to a map specified. and then it will upload the images by it self...

So how do I move the image from the local computer to the server where the website is. He wount have access to the server so he can't manually go in and put the images into the folder he needs an admin way of the website to save the images into the folder by remote access.

View 4 Replies

PHP :: Best Way To Upload Image File By Using Flex?

Jun 26, 2010

Any best way to upload the image file by using Flex 4 and PHP. I have searched online but most of them are using Flex 2 or older version. I am just curious if there are any new ways to do it. I just found a good one here... [URL]

View 1 Replies

ActionScript 2.0 :: SharedObject Not Saving?

Jan 21, 2007

got my code working, and all information i enter in to my sharedObjects is working correctly as it should but isn't saving so when I close and then re-open the flash file the data isn't there? Admittedly I'm new to sharedObjects I'm using the [.data.] when entering info and then [.flush()] at the end of the function - is there anything I've missed?

View 5 Replies

ActionScript 3.0 :: SharedObject Not Saving Data?

Aug 29, 2009

I'm working with AS3 with timeline code. I would like to save date and time a user took a quiz. This information will help check when a user took a quiz. I can see the date and time as I want, but it isn't saved. SharedObject is not saving date and time. Here is my code. How can I do this?

var mySharedObject:SharedObject = SharedObject.getLocal("sampleCode", "/");
var today_date:Date = new Date();var thismonth:uint = today_date.getMonth();var thishour:uint = today_date.getHours();var thisminute:uint =

[Code].....

View 1 Replies

ActionScript 3.0 :: SharedObject Not Saving Data

Aug 30, 2009

I'm working with AS3 with timeline code. I would like to save date and time a user took a quiz. This information will help check when a user took a quiz. I can see the date and time as I want, but it isn't saved.[code]...

View 1 Replies

ActionScript 3.0 :: Stopping SharedObject From Saving?

May 25, 2010

Is there a way to stop SharedObject from saving automatically when closing the window?

I'd like to have it only save when clicking a button.

View 3 Replies

Php :: Flash - Saving Variable Imported From SQL Using PHP Into SharedObject?

Feb 14, 2010

I am creating a game which uses the sharedObject to save each players progress locally. It also connects to a central database to create an online scoreboard. When a user inserts a score for the first time a unique ID is sent out of the database to the swf and saved as part of the sharedObject data.Absolutely everything works and the ID is saved to the sharedObject, however when the swf is restarted the ID does not load (even though the other variables saved in the sharedObject do load).I think it may be to do with the way it is formatted, perhaps to do with the XML but I'm not sure.

FLASH CODE
function saveGame(currID:Number) {
gameInfo.data["playername"+currID] = playername;

[code].....

View 2 Replies

ActionScript 2.0 :: Saving A Numeric Array To A SharedObject?

Apr 8, 2010

I'm saving several arrays into a SharedObject and I'm able to read them back fine from the SharedObject when the movie loads. However, one of these arrays contains numbers instead of strings, and the contents of this numeric array show up as 'undefined' when read back from the SharedObject.

View 0 Replies

Professional :: Location To Upload And Share SWF Files?

Aug 2, 2010

Is there a location to upload .SWF files to share similar to what youtube does for videos?

View 4 Replies

Flash :: Saving Bytecode Of A Class (to SharedObject Or Database)

Mar 11, 2011

NOTE: I want to save the actual bytecode for the AS3 class, NOT an instance of it! A class is being loaded in externally and extracted via a URLLoader and then Loader.loadBytes. A single Class is then extracted out of that Application Domain and used in the project. Now, rather than saving the entire Loader (either via SharedObject or other means of storage) is it possible to "extract out" the bytecode of the needed class and all dependencies, which can then be "injected" back into an empty shell or something to be reused when needed?

View 2 Replies

ActionScript 2.0 :: MovieClip Table - Saving Variable With SharedObject

Jun 24, 2011

I am using a movieclip "table" that is attached on the enter frame event at the main scene. I am trying to save variable "money" and I use this code inside the movieclip, when I test the movie it shows me money1 as undefined and I cant find why! I have used _root. and doesn't work.

PHP Code:
var svar = sharedobject.getLocal("MY VAR");
svar.data.moneynew = money;
svar.flush();
money1=svar.data.moneynew;

View 1 Replies

Actionscript 3 :: Saving Image File On Flash Without PHP

Jun 28, 2010

Is it posible to save a flash scene into an image and save it on client-side hard drive ? Without PHP. I dont care if user has to change flash security options.

View 1 Replies

Flash :: Saving An Image As A File On The Client Side?

Feb 1, 2011

I'm rather inexperienced with flash and as3, and I've been given a task of writing a program that downloads images from URLs that are provided, and saves them to a specified location on the user's computer.

The idea is to be able to download multiple images (user selects them) and download them all to a single directory (which the user selects first) so that he doesn't have to download them one by one. Also, putting them in an archive and downloading as one file wasn't an option.The only solution I found is using FileReference.save(), which won't work for me because it opens a save dialog.

View 1 Replies

Actionscript 3 :: Share .as File Bettween Two Applications In Same Project In Flex?

Apr 16, 2010

I have two applications in my project 'test' the applications are one.mxml and two.mxml and i want to use the same main.as file in both using

<script source='main.as'/>

Can I access the components of both applications from main.as when both are running simultaniously.

View 1 Replies

Actionscript :: Upload Image File In Mxml?

Jul 11, 2011

I was trying to upload image to server in mxml. I tried using FileReferences and as a byte array but nothing worked out. ka

View 1 Replies

ActionScript 3.0 :: Upload Image Into Flash File?

Aug 12, 2009

I'm trying to figure out how to upload an image from my computer into my flash file.

I want to create a button that opens up the computer director, you look for the file, then upload it as a graphic into the .fla file.

View 4 Replies

Flex :: Saving An Image Of A Component?

Oct 7, 2009

Im currently trying to work the imageSnapshot function in flex. Ive been looking hard but I cant seem to find a solution to my problem. I wish to take a screenshot of one of my components, to capture the final output of my program, since a plain "printscreen" cuts off some of the output due to it scrolling. My current code looks like -

<mx:ApplicationControlBar dock="true">
<mx:Button label="Take snapshot of Profile"
click="takeSnapshot();" />

[Code]....

Now i think this is taking the image of the viewstack which I want... But Im stumped on what to do from here! Is it not possible to now just copy the image to the clipboard, or produce a new window in my browser with the entire image inside?

View 3 Replies

Flex :: Saving Canvas And Dropped Image

Jun 10, 2011

I have an image loaded from an url and added to canvas as child. Then I am drag and dropping another image on it which also uses the senocular transform so the image can be transformed on the canvas. I have coded in such way that the transform handles shows up only after it's dropped on canvas. The image shows up correctly. But I am trying to save the result image (that is the main image and the dropped image on top of it), I only end up with the main image that was loaded earlier. The dropped image doesn't show up.

Below is the code for handleDrop() that is fired on dragDrop event and prepares the final image.

[Code].....

View 1 Replies

ActionScript 3.0 :: Upload Image File In Adobe Flash Builder 4?

Mar 23, 2011

We are trying to create a label maker. We have most of the functionally done but can't figure out how let a user upload a file.

View 0 Replies

Flex :: Actionscript 3 - Saving Mx:image With Applied Effects

Jan 5, 2011

I load image to control than I applie some effects, and when I save image it's saving without effects. What should i do?

Here is the code:

private var byteArr2:ByteArray;
private var fileRef:FileReference = new FileReference();
public function process():void

[Code].....

UPDATE Appears new problem as I am using var data:BitmapData = new BitmapData(currImg.width, currImg.width); saved image is small(size like image control) but I need to save image with original size. With var data:BitmapData = Bitmap(currImg.content).bitmapData; it worked

View 2 Replies

Javascript :: Image Dimensions = Client Side After File Upload Selection

Feb 8, 2011

I have an upload form for an image. The user clicks browse and selects a file. How can I get the image dimensions the moment the user selects the file (before the file is even uploaded to the server). It obviously has to be something client-side with maybe javascript/jquery or flash/flex (prefer js//jquery though), but can either of them do this? This is the code I'm using to tie into zozo's getImgSize() function, but it gives me 0*0 as size.

[Code]...

View 1 Replies

Php :: Linux - SWFUpload Image Upload Fails With 'Partial File Uploaded'?

Nov 4, 2011

I'm using SWFUpload to upload images without reloading the page (with a fancy progressbar too), this works fine when I'm on localhost (Wamp server), but it goes nuts when I try to do so on my real linux server (which is the only possible flag as far as I could see), it's running Apache2 and PHP5. As I said the front-end is fine (apart maybe from the fact it's flash).The back-end code is as follows:

SWFUpload_settings.js
var swfu_settings ={upload_url : "upload.php",
flash_url : "flash/swfupload.swf",
button_placeholder_id : "upload_flash",

[code]...

The only error that I get is from $_FILES['Filedata']['error'] = 3, 'Only part of the file was uploaded'. The destination directory does have 777 permission and you can see I made the required checks. It simply will not work, I have no idea why. Also, the files I tried uploading had no spaces in the filename, so that shouldn't fit under the issue 206 with SWFUpload.As far as I can tell it can be either due to the front-end SWFUpload or back-end server configuration.

P.S. no need to mention security, this is only allowed to be used by the server admin with external access anyhow, plus there's the front-end limitation on the files he can select (images). There was no point securing it further.

View 1 Replies

Flex :: Any Way To Upload Image Using Classic ASP?

Aug 21, 2009

Is there a way to upload an image using flex inbuild .browse() and classic asp? So in flex the user picks the image they want to upload, press a button to start sending it. A asp handler then gets the file, uploads it to a folder and then writes the filename in a database. Writing of the filename in the database is no problem.

View 1 Replies

Flex :: Upload - Adobe Flex Mobile Selecting Image From Camera Roll Or Taking Picture Restarts The Application

Jan 19, 2012

I have a flex mobile application that I am working on that I am having issues with selecting an image from roll/taking a picture. My application is not tabbed, however one part of it contains a Tabbed View Navigator with tabs across the bottom. Within one of those tabs, I have the ability to upload an image to a webservice that I have created. However, when I select an image or take the picture, it pops back out to the initial splash screen and the application restarts. If I use the component standalone (outside of the tabbed view navigator) it selects the image and uploads without any problem.

[Code]...

View 1 Replies

Flex :: Saving And Loading Image To Local SQLite BLOB ?

Sep 8, 2011

I need to be able to save and load images into an SQLite database using Flex 4.5 for a mobile application. The use case is this:

Inside the view there is a spark Image object with a URL as a source

When user clicks button, the Image is saved to an SQLite db inside a BLOB field.

In a separate Image, the source is set to the ByteArray stored in the db.

The biggest question so far is this: where do I get the ByteArray for a loaded Image? I've tried debugging and inspecting Image, BitmapImage, and BitMapData but there's no sign of the byte array.... perhaps it's inside the ContentLoader? But that's null unless I enable caching.

I've done some research and there are no complete examples for how to handle this. I've written a simple View that anyone can copy and paste into a new project. It will compile without errors and can be used for testing. I will update this code as I get the answers I need so that anyone can have a fully working example of this workflow.The only caveat: I used a synchronous connection to the DB to avoid complicating the code with event handlers, I wanted to keep it as simple as possible.I will only mark this question as answered once it is fully functioning both ways.

UPDATE SEPT. 09 2011: The code below is now fully functioning in both directions (save and load). Here are some of the things I've learned: It turns out that the ByteArray of a spark Image can be found inside the LoaderInfo of the image itself. Like this:

image.loaderInfo.bytes

However, trying to set this ByteArray as the source of another image ( image2.source = image1.loaderInfo.bytes) results in this security error: Error #3226: Cannot import a SWF file when LoaderContext.allowCodeImport is false.Which is too bad because it would save so much time and processing power.the workaround is to encode the ByteArray using either a JPEGEncoder or a PNGEncoder. I used the JPEGEncoder which produces much smaller files. Here's how:

var encoder:JPEGEncoder = new JPEGEncoder(75);
var imageByteArray:ByteArray = encoder.encode(imageToSave.bitmapData);

Now the problem is saving these bytes to the DB. Saving them as they are now will not work once we read them out, I'm not sure why. So the solution is to encode them into a base64 string like this:

var baseEncoder:Base64Encoder = new Base64Encoder();
baseEncoder.encodeBytes(imageByteArray);
var encodedBytes:String = baseEncoder.toString();

So now just save that string into the BLOB field and later read it out. However, you have to decode it from a base64 string to a ByteArray like this:

var encodedBytes:String = result.data[0].imagedata;
var baseDecoder:Base64Decoder = new Base64Decoder();
baseDecoder.decode(encodedBytes);
var byteArray:ByteArray = baseDecoder.toByteArray();

Now assign the bytearray as the source of your image and you're done. Simple right?if you find any optimizations or alternative ways to do this.I will respond and keep this code updated if need be.

View 2 Replies

Actionscript 3 :: Change Single-image Upload Into Batch Upload?

Feb 28, 2012

EDIT: Reworked my code a bit and decided to throw out URLLoader in favor of the ile.upload() method.Now I'm stuck again >_<Here's the code I currently have, stripped down to bare-bones:When I drag-drop image files onto my app, here is the trace log that gets returned to me:

[object Document] called.
doDragEnter() called.
doDragDrop() called.

[code]......

View 2 Replies

PHP :: Upload Photo To Facebook Album Without Saving On Server?

Mar 12, 2010

I'm using CURL to upload files to a service. Currently I'm getting the file content with $GLOBALS["HTTP_RAW_POST_DATA"] then save it on my server. After that, I'm using CURLOPT_POSTFIELDS with the file's full path. Is there a way to send the file content directly, without saving it on my server, as if I saved it? Or is there a way to upload a Photo from a flash app to facebook album, without saving it on the server?

View 1 Replies

Xml :: Saving And Loading File With Flex?

Aug 25, 2009

I want to have a xml file for my configuration and so i have to load it from the same directory the swf file lies in and save it afterwards. I saw articles about filestreams in flex but my compiler didn't allow me to use the filestream. I use the open source flex sdk

View 3 Replies







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