ActionScript 3.0 :: Uploading/emailing/deleting Files?

Sep 10, 2011

I wish users to be able to email me files. I know AS3 you can upload files (PDFs up to 25Mb). Is the best way to:1. Upload the file in flash, and get PHP to then directly email it to me2. Upload the file in flash, get PHP to save the file on a server, then email it to me3. Upload the file in flash, get PHP to save the file on a server, then email a link to me for me to download If it saves the file on the server (options 2 and 3), what happens about deleting the files as after a while they will take up lots of space.

View 4 Replies


Similar Posts:


ActionScript 3.0 :: Uploading Local Files Without Requiring User To Select Files?

Feb 3, 2009

My users upload a certain kind of text file that sometimeshas references to images stored locally on their hard drive. I needto check this file either on the server or within a flash app tosee if it has these references and then grab those images in aflash app to upload to my server.So I can use FileReference easily enough to have users uploadlocal images. But FileReference requires users to select their files with a dialog box. I can't have that. Myusers wouldn't know where to look and there are typically way toomany files, sometimes with the same name but in differentdirectories.

I can also just use URLLoader with a local URL, I guess I canprobably just use Loader too? That works great. The problem here isI can't communicate with both the server and the local filesystemin the same flash application due to Flash's security sandboxrestrictions. So I can get out of those security restrictions byplacing or editing a trust file in designated locations on variousOSes. I then need to install this trust file which is more invasiveand confusing to users then I want to be...Java's method of accessing local files from a web applet bysimply signing the applet with a certificate and having a dialogbox popup where the users grants access is ideal. Is there anything

View 4 Replies

ActionScript 3.0 :: Deleting/freeing Memory Of Sound/Audio Files?

Jul 27, 2010

I am trying to create a .dispose method for my Sound files, however it seems I am unable to deallocate/free memory for Sound files, no matter what I do!this doesnt work:

ActionScript Code:
var mySound:MySound= new MySound();
mySound = null;

and neither does this: (the 'delete' dynamic variable was suggested somewhere)

ActionScript Code:
var playerObject:Object = new Object(); 
playerObject.sound =new MySound();
playerObject.sound = null;
delete playerObject.sound;
playerObject = null;

it seems if there was a reference to the SoundFile in the code, the Memory cannot be re-allocated.however If I am loading an external file, interestingly, this does work:

ActionScript Code:
var mySound:Sound= new Sound(newURLRequest("sound.mp3"));
mySound= null;

it looks like you cannot Free memory of Sound Files that are Loaded from the Library, but you can free it if its external.

View 5 Replies

Media Server :: Can't Republish To The Same Live Event After Deleting The Existing Stream Files?

Dec 22, 2011

Say I got a live event called game in "C:FMSHOMEapplicationslivepkgrevents\_definst_game" and push a MBR stream for awhile and see the ".stream" files being created, everything works good.
 
However whenever I stop the stream, delete the contents and try to republish another stream to this event name never recreates the '.stream' files or stream directories.

1. Delete the files "C:FMSHOMEapplicationslivepkgrevents\_definst_gameMsadsaasa.str eam","C:FMSHOMEapplicationslivepkgrevents\_definst_gameMsadsaasa .stream".

2. Delete all the stream directories - "C:FMSHOMEapplicationslivepkgrstreams\_definst_game1", "C:FMSHOMEapplicationslivepkgrstreams\_definst_game2".
 
Is this normal behavior or is there a default waiting peroid before reusing an event name? Should I only publish to a liveevent name once?

View 2 Replies

ActionScript 3.0 :: Uploading Files To PHP?

Oct 8, 2011

Flash Builder 4.5
SDK 4.5.1

The PHP (the // Test part is to check if a script actually reached the php file):

Code:
<?php
$uploaddir = 'C:/Users/XXX/Desktop/UploadTest/';
$uploadfilename = basename($_FILES['userfile']['name']);
$uploadfile = $uploaddir . $uploadfilename;

[Code]....

When I upload a file to "Up_Test.php" via a regular HTTP form, the image ends up in the destination folder and the test file wasHere.txt is created as well.

When uploading with the AS3 function above, only the wasHere.txt file is created, i. e. the AS3 connected to the PHP script, but it did not send the file.

View 3 Replies

Actionscript 3.0 :: Uploading Files From A Mac?

Aug 25, 2009

I made my own Flash CMS where I can upload files to a server via a php-script.It works fine on PC, but stalls on Mac. Well, on Mac it actually upload the file, but somehow don't tell Flash that it's finished uploading the file so the complete-listener never gets the message.

View 2 Replies

.net :: Uploading Large Files With ASP.NET: What Are The Best Practices

Jul 18, 2010

What are, nowadays, the best practices for uploading a large file (which may cause a timeout) with ASP.NET Web Forms and/or MVC? Increase Server.ScriptTimeout (only for the specific POST request); Use some flash client-side uploader like swfupload ([URL]) or plupload ([URL]), but Flash uploads have some issues with proxies; Use some gmail-like javascript (like [URL]

View 2 Replies

Php :: Uploading A Folder Which May Contain Sub Folders Along With Files

May 9, 2011

I'm working on an application where client may upload any folder which may contain sub folders along with files. Is it possible to upload a folder instead of a file?

View 1 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

Uploading Files In Flash 10 On A Facebook Profile?

Feb 16, 2010

I am developing a facebook application which sits in an application tab.The app is developed in flash and as such must use fb:swf to embed the swf.Therefore it sets allowScriptAccess = never on the swf.There are 3 things that I will need to do, and I am not sure if it will be possible.1) Load external SWF files into the parent swf2) Load dynamic XML from the server3) Upload files to the serverI am using flash 10.

View 1 Replies

Actionscript :: Uploading Multiple Files Via Flash?

Jun 19, 2010

As known, each subsequent time that the FileReferenceList.browse() method is called, the FileReferenceList.fileList property is reset to the file(s) that the user selects in the dialog box. And my question is:

How to manage to "remember" all previously selected files, each subsequent time that the FileReferenceList.browse() method is called? so that to append new ones and upload them all later on.

View 1 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 3.0 :: Uploading Files Without Using Browse Function?

Jan 11, 2009

IS there a way to upload files using the FileReference Class without using the browse() function? I would like to just tell Flash what classes to upload without the browse box popping up.

View 10 Replies

ActionScript 2.0 :: Uploading Files Using FileReference Tutorial?

Feb 6, 2007

I've done the tutorial "Uploading Files using FileReference" he actionscript is this:

import flash.net.FileReference;
var progressBar:MovieClip;
var reference:FileReference = new FileReference();

[code].....

View 5 Replies

ActionScript 3.0 :: FileReference.upload Freeze While Uploading Big Files

Aug 26, 2008

I'm writing a webbased flash application to upload big files (up to 750MB) on a server using PHP (Version 4). For small files it will work, but for large one the upload process seems to freeze. The upload "freeze" at different times and loaded MegaBytes.

[Code]...

View 1 Replies

Flex :: Flash - Uploading Multiple Files Simultaneously?

Feb 3, 2010

I have been working on a flex uploader, where the user can select multiple files.It works fine when the files are uploaded in a queue (one at a time), however as soon as I try to have it upload 2 files at once I run into issues.

It seems that files will often lock up, and either stay at 1% until every other file is uploaded, or just not complete at all. There is never more than one file uploading at a time.Is there some issue with calling .upload on multiple files at once in Flex?

View 7 Replies

Compress Files Using Flash Or HTML5/JS Or Java Before Uploading?

Feb 1, 2012

Using an unobtrusive technology (HTML5, Flash, Java Applet) which runs in the browser, is it possible to handle compressing of files before being uploaded to the server? I'm building software which will be consumed by a lot of slow connections and by non-computer-savvy users and circumventing an application install would be very beneficial for them.

View 1 Replies

ActionScript 3.0 :: Uploading Multiple Large Image Files Times Out?

Jun 28, 2010

I coded a multiple file uploader using the FileReferenceList and PHP. It works great for me all the time on my Fios internet connection, which is by far faster then DSL, etc... So my issue kinda went unnoticed until I got on a DSL connection. Now, many of the files I was uploading seem to be timing out, but there is no indication of this. No errors, etc... just stops its progress and NEVER finishes. Tried bumping up the script execution time on the server

View 6 Replies

Flex :: Read Content Of The Uploading Files Without Using FileReference.load() Method ?

Nov 24, 2011

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?

View 1 Replies

Actionscript 2 :: Flash - IO Error While Uploading Photo With Low Uploading Internet Speed?

Mar 1, 2010

Actionscript:
System.security.allowDomain("http://" + _root.tdomain + "/");
import flash.net.FileReferenceList;

[code].....

View 2 Replies

IDE :: Emailing A Flash Form?

Apr 6, 2009

I've created a form in Flash 8. I want the form to be emailed to a certain address after the user completes the form. I was hoping to use a submit button to send it. However I'm not figuring it out. I've made the form but when I select submit I just get a blank email form with the TO address I want and none of the data.I don't want this data recorded in a database just sent plain to a group mailbox.

View 2 Replies

ActionScript 3.0 :: Emailing A MovieClip As A Bitmap?

Jun 12, 2008

I am building a design your own jewelry, program for a jewelry company. what I want to do in theory is..

after the user finishes, convert the jewelry_mc into a Bitmap, send the bitmapdata byte array to PHP, then on the php side turn the Byte array back into an actual image and mail it in the confirmation page to the user.

I am sure im not the first to want to email an image dynamically created in flash before?

View 1 Replies

ActionScript 2.0 :: Free Emailing Program?

Mar 17, 2004

i am going to launch a corporate site in a coupe of weeks that will have everyting nder the sun about the co.. i was thinking of gathering a info on visitors for the site but have a place where you can leave yor email information on the site now! is there any free emailing programs out there that i can use for the time being...

View 2 Replies

ActionScript 2.0 :: Opening Your Browser And Emailing?

Mar 20, 2007

Ok, basically so when you click my movieclip button called "Email" it opens ur browser, and emails the message you put in the input box called "email_text", with the title you put in the input box called "email_title".I know php, and html, and other languages, is there a way to use PHP in flash? or have the php in a document and call a function in that php document and email it?

IE

function phpemail(msg, title)
{
mailto(msg, title)
}

etc...

thats not proper php code, but an example and in flash open that php file and call it?

View 1 Replies

Flash :: Emailing Invite Created In Doesn't Work?

Feb 3, 2010

I created a flash invite for a client and cannot get it to deliver correctly through email. I've tried everything that I have found here and it won't show up in some of the emails that I have tested. (mine is the only one that works). I then tried exporting the flash to a gif but the quality is really poor. Any way to correct that?? I can't believe that this so complicated. Is there a piece of code that I am missing? Can this even be done successfully? The last animated invite I did was in photoshop and was nearly as complicated as this one and didn't want to mess with it.

View 1 Replies

Professional :: Emailing A .swf File Of A Banner Ad With An Embeded Video?

Oct 7, 2010

New to flash and building banner ads.My problem is that I have made a banner ad that works when I preview it but when I try sending it to someone else via email all that shows up are 5 white circles in the middle that rotate flashing.I thought it might have been something with the video so I tried sending the ad without the video and it still did the same thing.

View 8 Replies

IDE :: Dynamic Text Variabes To A Form PHP Script For Emailing?

Oct 10, 2009

If a user makes a number of selections from visual indicators on frame 1 of a Flash 8 file and textual descriptions of those selections are then actionscripted into dynamic text boxes as text values in a form on frame 2, can the text values of the dynamic text boxes be given variable names that can be sent to and processed by a server-side PHP script as regular input type text box variables would be processed?

Example: User selects 3 images on frame 1 via a mouse on(release) event.

the actionscript being:
on(release) {
form.dynamicTextBox1.text == "Image 1";[code]....

On the form frame (frame 2) would be a movie clip (form_mc with instance name form) with the normal Name, Email, Message input type text boxes along with dynamic text boxes dynamicTextBox1, 2 and 3.On the form Submit button the actionscript would be:

on(release) {
var sendVar = new LoadVars ();
var receiveVar = new LoadVars ();[code]....

If the input text boxes are give variable names (i.e. var userName, var userEmail and var userMessage) can the dynamic text boxes be given variable names also that can be passed to the server-side PHP script (i.e. var dynamicText1, var dynamicText2 and var dynamicText3)
where the PHP might look like:

<?php
$to = "me@mywebsite.com"
$subject = "email enquiry"
$name = $POST['userName'};[code].....

Would this work? All indications I have seen through many Flash/PHP email tutorials indicate not using dynamic text boxes but components like combo boxes etc use variables and not input boxes.

View 2 Replies

Data Integration :: Flash Contact Form - Emailing Data Without PHP?

Jun 12, 2009

make a Flash contact form and send the data in an email without using a PHP script? My server does not support PHP... How would I go about sending an email from flash using a different language?

View 5 Replies

Actionscript 3.0 :: Deleting The Array Value?

Jan 3, 2011

I'm trying to figure out if this is possible?lets say I'm trying to remove the value "3"

Code: Select allvar myArray:Array = new Array("1","2","3","4","5");
myArray.pop();  // removes the last value "5"
myArray.shift(); // removes the first value "1"

How do you remove the value 3 and still have the correct lenght?

View 7 Replies

Deleting Images From Library

Jul 24, 2009

i have an image and it is a large sheet with series of poses for a character (like a sprite sheet), and wanted to take them out to be animated and make them into individual movie clips.I did successfully, but I went to delete the original image, however, the movie clips became red fills.Is there a way I can get rid of the original without affecting the movie clip?-If not-I wanted to do this because I thought it may save memory but i am not really sure if it will affect the memory since the sheet itself is not going on the stage, is there a chance that this full sprite sheet in the library won't effect the file size of .swf?And if it does, if I turn it into a graphic, or movie clip, will that compress it?I use Flash CS3!

View 3 Replies







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