ActionScript 1/2 :: Create An UPLOAD Button?
Nov 24, 2009How do I create an UPLOAD button where the viewer coloud upload their own image to the stage (just for runtime purpose only). What are the functions used?
View 2 RepliesHow do I create an UPLOAD button where the viewer coloud upload their own image to the stage (just for runtime purpose only). What are the functions used?
View 2 RepliesI am trying to have my image uploader have a browse button and submit button (because the submit button will be sending information from a few text fields as well and they need to be sent at the same time).
I've been fiddling around with it and I can't seem to figure it out.. I tried just having the browse function on a separate button but im failing miserably..
Code:
System.security.allowDomain("http://dev3.webcanada.com/clients/starwood/GB-Historybook/pages/write.php");
import flash.net.FileReference;
// The listener object listens for FileReference events.
[Code]......
How would I go about setting up a situation where, I preferably create a motion graphics piece in After Effects and turn it into an swf. The piece will ,say, have a head shot photo of someone as the background in the movie. I want to create a situation where the user can upload a head shot photo and their uploaded photo will become the new background in the piece......is this possible? I've seen sights like jibjab and oddcast where the user can superimpose themselves into silly animations .....so I'm assuming it must be possible?
View 1 RepliesI have been following several tutorials on how to create a file upload tool, from: [URL] and best off all I have exhausted google and Adobe labs... and I magically have a tool [URL] (left button: browse, right button: upload). Maybe it's a security thing? but my images are just not uploading!? I have fed all information through the text box - which should give you an upload status when you click upload - at least it does on the computer, just not on line. How to check for security or how to interpret the results. Although most of the code I have used is from adobe labs, it has been copied and pasted but not in a lazy fashion, I have learned a lot about the upload tool as I've gone along... well I thought I did, but this is one heck of a brick wall!?
PHP Code:
<?php
$MAXIMUM_FILESIZE = 1024 * 200; // 200KB
$MAXIMUM_FILE_COUNT = 10; // keep maximum 10 files on server
echo exif_imagetype($_FILES['Filedata']);
if ($_FILES['Filedata']['size'] <= $MAXIMUM_FILESIZE)
[Code] .....
In the past I have created a flash contact form online which used PHP to send emails which worked perfectly.
My new project wants to be able to upload a file (PDF only) and then use PHP to email it to me as an attchment. I cannot do this yet but there seems to be enough resources online to figure it out.
My main question is that along with the attchment, I'd like flash to generate anothger attachment which would contain information the user had entered (many fileds including address and file info etc) - possibly in XML. When I get this attchment, I would like somehow to use a different flash program locally to import this xml file to its own database.
Is there a smart way of doing this other than manually dragging the xml file from the email into a folder and then locating it through flash to import it? Maybe running a BAT dos program to move/copy/launch things?
I was wondering if it's possible to create a php script that would upload swf files and not images. I found several examples that upload images but i want swf files to be uploaded through php in mysql database.
View 4 RepliesI need to create an image upload app for our company's facebook page. I've been able to successfully create the app on facebook and it pulls from a location on our web server. Right now it's just an index.cfm file with hello world in it.We're having a photo contest and what we need to do is provide a quick form (name, email, phone, photo to upload, and photo description).When a user fills out the form and uploads the image, the image shows on our app with the description and then we are notified that someone has uploaded and image.
View 1 RepliesI am trying to create a multiple file upload flash application to be called from an External Interface, but it isn't working.
AS3:
var fileRef:FileReferenceList;
ExternalInterface.addCallback('selectFiles', showDialog);
function showDialog()
[Code].....
When I run the script and comment out the fileRef parts and uncomment the alert call, it shows the alert, also when I comment out the ExternalInterface call, leaving only the fileRef parts, it shows the file upload dialog.
When I run it as intended, I get the following error:
Error calling method on NPObject
I'm looking to create a music player where one can upload songs from any computer on the web and play them back... is this possible and if so how would I go about creating it?
View 1 RepliesI was just wondering that is there a way to create a multiple file select like Facebook (using flash, I think.) and with a progress bar that show every photos progress in one progress bar. Have a clue or a script which can be customized and can be used easily?
View 2 RepliesI'm trying to create a resizing script for a client that is allowing users to upload photos through their site. SInce most of the photos will be huge this will help in performance. I've had some experience in the saving of a jpeg from Flash but I'm stuck with the scaling. I'm saving the uploaded file to the server. Reloading it into a movie clip, resizing it based on my desired sizes and then saving it back to the server in its new size. When I'm resizing I'm just using the scale properties to resize the loaded large image. When I get my bitmap data of the scale mc it's not taking the data from the scaled clip it's taking the data from the unscaled mc. So my data is basically the upper left hand corner of the original image instead of the whole image.
I've tried nesting the movie clips so that the top clip isn't scaled.I've tried duplicating the data from the scaled clip into a new non scaled clip and that doesn't work either.I've tried not using scale and just using width and height, doesn't work either.
I have created a photo sideshow with xml, when i am testing it locally it works fine, but when i upload it to server it wont show the images.
View 2 RepliesI am new to using flash and am working on small flash movie for a class assignment. I had to add a replay button at the end of my movie which I did according to my text and other tutorials I have read unfortunately my replay button is not working. Just realized I cannot upload my file as it is too large, can email them my file.
View 3 RepliesI want my file upload to be very simple, and what could be simpler than just a single button. The requirements are that you should be able to upload multiple files at once. It would definitely be an advantage if I could add file format filters as well, and design the button by myself (including the hover event).
I searched and found Plupload, which seemed to be awesome with the easy setup and functionality, but I can't quite figure out how to create my button; I've only found their Custom upload, which prints out the file names and requires at least one click on another button before it's done (and I can apparently not add any hover-attribute). I tried to edit the JavaScript to make the form be sent after all the files had been added, but failed.
hi I wanna know if there is a way to make the upload in flash (filereference) starts when I hit a buttom , for example the user select the file then fill the form when press the button ok the file that the user selected starts to upload.
View 1 RepliesCan you use the FileReference.upload() function to upload files to Sharepoint or do I have to use the SP web services? This is without adding your own ASP.NET Web Services, just using the built in SP Web Services.
View 1 RepliesI am creating flash uploader and want to start 10 uploadings at time.But flash upload only 2 files on domain at time, other references wait for something.In IE with ActiveX Player limitation is about 6 files at time.Is there any ideas how to change this limitation? For uploading I need to use FileReference.upload without creating URLRequest object from file data.
View 1 RepliesEDIT: 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]......
Okay, so I am calling my scripts from the folder "php/" Thus, my FileReference calls "php/upload.php" to upload. However, my uploads are in "uploads/" and not in "php/uploads". When the PHP script is called, it apparently ignores the caller (the SWF file) and looks for uploads in its own directory (the "php/" folder). It may be a PHP question, but how do I reference the uploads folder as being in the parent directory of the php files in my PHP script?
View 1 RepliesIn my website I need to create a facility for the viewer to upload 50pix X 50pix size images. Also after it's been uploaded, the uploaded image should appear on the stage.
View 4 RepliesI've been trying to configure uploading and I've been getting an error 500.I'm running a server on Apache2 with php5+ installed. I'm curious to why i keep getting an error.[code]I added those to my .htaccess file
View 1 RepliesI am using a PHP upload to upload files to server. I have a loop for the 5 files to upload....
ActionScript Code:
if (PDFFiles[i] != false){
PDFFiles[i].upload(uploadPHP);
}
As the loop runs quicker than PHP can upload, the success of....
ActionScript Code:
function fileUploaded(e:DataEvent):void {
trace "Success"}
....can get out of synch. It doesn't cause me any real problems but is this bad form? Or am I better to upload one file the wait for the PHP to return success before uploading the next one?
Is there any way to create a keyboard shortcut using a the control button plus a key button. For example, if I want to print the screen, I would press control + p.
View 5 RepliesI've got Wordpress 2.5 installed on my website. It works well, but I can't get the photo uploader to work. When I'm writing a post, I click on the "Add media" button. In the "Choose File" tab, I see the "Choose files to upload" button. When I click on it, nothing happens. I searched the net and found nothing helpful. One page vaguely mentioned having the latest Flash player. I verified and confirmed that I have the latest player.
View 2 RepliesI am having a problem where my buttons on main timeline are working fine. When I create a button within a movieclip layer (a page importeded from Photoshop as a movieclip) the button is not working once I leave. It doesn't show as a working button when I select Enable simple buttons, when I preview or publish as HTML. The thing is, it is a button, it has an instance name, is that weird blue color... and it works fine when I am double clicked into that movieclip layer. I also tried common library buttons and they work fine until I leave that layer as well, also tried it within other layers and creating a new file and doing it... all no success!
View 5 RepliesThis is an image rotator and I'm having trouble creating the previous button. My next buton works just fine but no way I can figure out how to make the previous button. I tried almost everything by duplicating etc ... Here is the class I'm using:
Actionscript Code:
class thumb{ var mcClip, listenerShowAuto, ref, intervalShowAuto, objXmlResult, dataXml, tabInfoToDisplay, tabItemToDisplay, marge, intervalAnim, target, href,
[Code].....
I am trying to create multiple buttons within a movie clip button I have already made. I can't figure out how to do it
View 3 Repliesmy listener.onComplete = function(selectedFile:FileReference) is fired without any file in the upload dir. if the file is small and I wait a bit I can see the file (through FTP) coming up on the server, but most of the times the "onComplete" if fired without any file being saved.
can I add something to this php code to make sure the file is uploaded?
[Code]...
create a rollover button that once hovered over would create the snow and once 'un-hovered over' (<---:s) the snow would stop falling. I tried creating the button but kept getting errors etc.... Im a total noob (been using flash for about 1 month) if you could give us a hand that would be great....
View 5 RepliesHow to create a mute button in flash so that when its clicked all sounds are muted, however, when clicked again all sounds resume but without starting again from the beginning.
View 4 Replies