Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




FILE UPLOAD Check It Out Source File Too



upload anything stupid an I'll have to pull it...http://actualpixel.com/demo/upload.swf what do ya think? still a work in progress...keen for feedbackadditions etc... luigie PIRATE!



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 08-02-2006, 12:06 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Flash 8 File Upload Help.. Source Posted
I got this source below from (http://www.flash-db.com/Tutorials/upload/), what I need is to add a file size checker on it. I want to be able to control the size of files users can upload.
Thanks for your help, my first time using Flash 8.

************************************************** ******

//Allow this domain
System.security.allowDomain("http://localhost/");
import flash.net.FileReference;
// The listener object listens for FileReference events.
var listener:Object = new Object();

// When the user selects a file, the onSelect() method is called, and
// passed a reference to the FileReference object.
listener.onSelect = function(selectedFile:FileReference):Void {
//clean statusArea and details area
statusArea.text = details.text = ""
// Flash is attempting to upload the image.
statusArea.text += "Attempting to upload " + selectedFile.name + "
";
// Upload the file to the PHP script on the server.
selectedFile.upload("upload.php");
};

// the file is starting to upload.
listener.onOpen = function(selectedFile:FileReference):Void {
statusArea.text += "Uploading " + selectedFile.name + "
";
};
//Possible file upload errors
listener.onHTTPError = function(file:FileReference, httpError:Number):Void {
imagePane.contentPath = "error";
imagePane.content.errorMSG.text = "HTTPError number: "+httpError +"
File: "+ file.name;
}

listener.onIOError = function(file:FileReference):Void {
imagePane.contentPath = "error";
imagePane.content.errorMSG.text = "IOError: "+ file.name;
}

listener.onSecurityError = function(file:FileReference, errorString:String):Void {
imagePane.contentPath = "error";
imagePane.content.errorMSG.text = "SecurityError: "+SecurityError+"
File: "+ file.name;
}

// the file has uploaded
listener.onComplete = function(selectedFile:FileReference):Void {
// Notify the user that Flash is starting to download the image.
statusArea.text += "Upload finished.
Now downloading " + selectedFile.name + " to player
";
//Show file details
details.text = ""
for(i in selectedFile) details.text +="<b>"+i+":</b> "+selectedFile[i]+"
"
// Call the custom downloadImage() function.
downloadImage(selectedFile.name);
};

var imageFile:FileReference = new FileReference();
imageFile.addListener(listener);

uploadBtn.onPress = uploadImage;
imagePane.addEventListener("complete", imageDownloaded);

// Call the uploadImage() function, opens a file browser dialog.
function uploadImage(event:Object):Void {
imageFile.browse([{description: "Media Files", extension: "*.jpg;*.gif;*.png;*.mov;*.rm;*.wmv;*.swf"}]);

}

// If the image does not download, the event object's total property
// will equal -1. In that case, display am error message
function imageDownloaded(event:Object):Void {
if(event.total == -1) {
imagePane.contentPath = "error";
}
}

// show uploaded image in scrollPane
function downloadImage(file:Object):Void {
imagePane.contentPath = "./files/" + file;
}

stop()

************************************************** ****

Changing The Frame Rate Of Shockwave File Without Having Source File (FLA)
how can i change the frame rate of a shockwave movie without having the source (Fla) file?? please help sooon.......

Audio File In Flash-file Upload Problem
sir/mam,
i am doing web designing usingflash and no have to embed audio file into it. both mp3 and avi are too large for a flash file to upload.I have sound forge and have even reduced the size of the mp3 or avi to the correct frame rate.
is there any other audio fomat suitable for flashmx2004 with lesser bytes.

Audio File In Flash-file Upload Problem
sir/mam,
i am doing web designing usingflash and no have to embed audio file into it. both mp3 and avi are too large for a flash file to upload.I have sound forge and have even reduced the size of the mp3 or avi to the correct frame rate.
is there any other audio fomat suitable for flashmx2004 with lesser bytes.

Flash 8 File Upload (file Types)
Hi,

I am usin ghte macromedia eg up upload files to a server, at the moment I can only upload images / docs as these are the specified file extensions, does any1 know how i can modify the following to allow for all files?


Code:
function uploadImage(event:Object):Void {
imageFile.browse([{description: "Image Files", extension: "*.doc;*.gif;*.png"}]);
}
thanks you

Single File Upload, From File Path (f8)
[Don't know if this is the right place to post for flash 8 help, don't see anywhere else to right now]

I just got flash 8 and I have seen a lot of file upload examples, but most are for multiple files and I think all use the file-browse to get a file in flash. What I need to to is just give flash a local file path like "C:Some FolderA_File.zip" and have flash upload that. Is this possible? I'm kind of thinking with how flash 8 handles files its not, but I'm not sure.

Compare File And Check Progress Of File Download Y Using Flash
Hi there,

       Can anyone tell me how to compare a file (by date or size) on a web server against local machine? How do I download a file and check the progress of the download.

Regards
Daniel

Upload Form...upload .jpg From File System Into Flash
anybody have a clue how to do this and then email it to someone?

many, many thanks!
~fitchic77

How To Check File Name In Local C Drive And Run Exe File
Hi All,

I'm newbie user in action script. How can i check sepecific file name in local c: drive and if file doesn't exist in local drive download from server and run and if exist go to frame ..... .

Please help to me.

Thanks,

Help Looking For A Source File.......
Hi guys this is my first post, and i hope i make sense in what im looking for.

Here goes....... ok basically i want an image slider (not sure if that the correct name) Imagine you have a strip of 10 images and a masc so only a few at a time show, when you move the mouse left the picture strip scrolls left and the same with right.
Ive found a few but id like one with buttons, so that rather than moving mouse to the left you have to mouse over the left arrow so that the pictures scroll. As the ones ive seen without buttons just scroll uncontrolably with every mouse movement.

I hope you can help, and if you need any clarification in what im looking for please ask!

Superb site by the way guys!

Help Looking For A Source File......
Hi guys this is my first post, and i hope i make sense in what im looking for.

Here goes....... ok basically i want an image slider (not sure if that the correct name) Imagine you have a strip of 10 images and a masc so only a few at a time show, when you move the mouse left the picture strip scrolls left and the same with right.
Ive found a few but id like one with buttons, so that rather than moving mouse to the left you have to mouse over the left arrow so that the pictures scroll. As the ones ive seen without buttons just scroll uncontrolably with every mouse movement.

I hope you can help, and if you need any clarification in what im looking for please ask!

Superb site by the way guys!

Help With A Source File
Can anyone tell me why this effect does not work when publish settings are set up for flash player 8? im looking over the code and just cant find why it wont work. Any help would be amazing
http://www.flashkit.com/movies/Effec...6578/index.php

Fla Source File
Hi! I wonder is there any fla source file which I can find from the internet. I hope I can learn from fla source file to create special effect. I will happy to hear from everyone. Thanks.

yann

Fla Source File
Hi! I wonder is there any fla source file which I can find from the internet. I hope I can learn from fla source file to create special effect. I will happy to hear from everyone. Thanks.

yann

Fla Source File
Hi! I wonder is there any fla source file which I can find from the internet. I hope I can learn from fla source file to create special effect. I am happy to hear from everyone. Thanks

Yann

Source File Problem Please Help
Hi all

Problem with source file, that i made graphic adjustments, i have changed the layout and made the buttons smaller and made them closer together, because the space available to me is limited the only changes i made to the actionscript was to change the text from (german - i think to english).....the source file that i changed is

Calender- andreas- 6136 - it is a kind of schedule calender in the movies section

Problem is that in making changes to the layout the alligment of the date buttons with the days is now all skew wiff ( not in allignment) .......i cannot seem to find how to fix this, i found the mcs in the library, and made changes to teh button - primarily to make it smaller .......what i cannot find though is how to fix the alligment to what i have now got...
can anyone out there help me pleasee..........
I don't know whether it is a hidden clip of some sort or actionscript related

Please help

Thanks

J

The Price Of A Source File?
He people!

I've got a sticky situation here.

I have customer, who I have previously done work for (Flash presentations), who have just asked me for the source files of the work so they can send them to another company that specialises in Voice-Overs to go in the files.

However, there was never an agreement that I would release the source files ever.

This Voice-Over company is also a design agency - so I'm sure yuo can imagine my dilemma - don't want to annoy my customer and loose any possible future work, but also don't want my source files going to another design agency, when I could put the sound files in myself.

But....

What if the customer was to ask to buy the source files?

What kind of a percentage on the original price do I charge him?

Cheers

Deadhands

Source File List
Hi All,

I am trying to find a thread that contains a list of game resoucre site (open files etc) there used to be one on here somewhere but I can't find it anywhere and I've run out of search options as far as keywords go!

I know this is a shot in the dark - but hopefully one of you will know the thread I mean!

FLA Source File Website HELP
OK calling all people interested in being part of a website dedicated to fla's!

What we want to do is start up a web site with a huge stock pile of fla's all under dedicated descriptions for example Pre-Loaders, Tweening, Action Script ect ect ect.

Anybody interested in helping with the design of the site or donating some fla's please post here.

Please Help Me Unpack This Source File
Hello,

I have downloaded this .fla file as I would like to create a similar effect. However, I'm a bit confused as to what exactly is going on.

I'd be really grateful if someone could just explain the basic principles and I'll take it from there.

Many thanks

How Do I Link A Txt File As A Source
say i have a fla, and in that i want one scene to have a block of text that is displayed based on a seperate txt file, from notepad or simpletext or whatever.

how do i go about making something like this?

Help.. How To Source From Text File?
From like notepad or soemthing.. using flash MX ? thanks

Source .fla File For An Mp3 Player?
I've been using a primative player in past versions of my site, but I'd like to have a player that has a loading indicator before a song begins to stream, and also << and >> buttons. A text field displaying the current track would be good too. And a list to choose from.

Uhh, sounds like a lot, but I've frustrated myself for two days working on one, so I decided to ask here if there was an fla I could examine...

Basically what I want is a player similar to 2A's. (http://2advanced.com)

Any help is greatly appreciated.

[MX04] Looking For A Source File
Hiya,

I've seen an effect used on a few different sites where an image is placed underneath a masked area and when a button is selected the image moves UNDERNEATH the masked area to the selected part of the picture. Its a nice but simple effect and i used to have a source file for this but i can't seem to find it anywhere in the movies section of flashkit since i don't know what to search under...

I've seen it used within menus for websites or even image galleries...

anyone have any ideas where i can find this... or what to search for it as?!

Thanks in advance

Help I Can't Open My .fla Source File.
Hi,

For some reason i cannot open my source file! Gulp!
Can someone please try and open it for me?
On my PC or Mac Flash 8 just freezes.........

The file can be downloaded from:

http://www.gqtestsite.co.uk/Andy/warley_plans_final.zip

Andy

Using A Loaded SWF For Which I Don't Have The Source File
Hi everyone,

Hopefully this is an easy one for you... I have a loaded SWF that plays through and stops at the end. Once it ends, I'd like the main timeline to proceed to the next scene, to continue with the demo.

Is there a way to do this without having to have access to the FLA for the loaded movie?

Thanks!

I Cant Get The Source File To Work
Here is a source file i got from this site
http://www.senocular.com/flash/source.php?id=0.107

i have tried to recreate it by copying everyting in it, it still isn't working
if anyone can look at this and help me out that would be great!

My File

Save My Source File
The swf files download to temporary internet folder before showing up. I want to know is there any way , a script or technique in flash that the swf file does not download into the temproray internet folder so that my source file is safe from any person using decompilers.

Swf Resolution Is 3/4 Than In The Fla Source File
say if I use milimeters as unit, and draw a line 4cm long, and export, then in the swf , the size will be only 3 cm if you measure it on the screen with a ruler.
Is there any way, you can make the swf play as the same size in fla design interface?

Source AS File For NetConnection?
I've been reading the source code for the Flash Remoting classes. Connection.as extends NetConnection.as which appears to be a class native to Flash. I can't find the source for it. I searched my entire hard drive and found two classes that appear to be just interfaces -- they don't do anything (see below). Where is the source for the NetConnection class?

I also found a file called NetConnection.aso which appears to be some kind of compiled binary file. I'm guessing the functionality is inside it.







Attach Code

// C:Program FilesMacromediaFlash MX 2004enFirst RunClassesNetConnection.as
intrinsic class NetConnection extends Object {
var isConnected:Boolean;
var uri:String;

function getDebugConfig( id ):NetDebugConfig;
function getDebugID();
function getService( serviceAddress, responder ):Object;
function setCredentials( principal:String, password: String ):Void;
function setDebugID( id ):Void;
function trace( obj ):Void;

function connect(targetURI:String):Boolean;
function close():Void;
function call(remoteMethod:String, resultObject:Object):Void;
function addHeader();

function onStatus(infoObject:Object):Void;
function onResult(infoObject:Object):Void;
}




//C:Documents and SettingsJaitheLocal SettingsApplication DataMacromediaFlash MX 2004enConfigurationClassesNetConnection.as

//****************************************************************************
// ActionScript Standard Library
// NetConnection object
//****************************************************************************

dynamic intrinsic class NetConnection
{
var isConnected:Boolean;
var uri:String;

function NetConnection();

function addHeader();
function call(remoteMethod:String, resultObject:Object):Void;
function close():Void;
function connect(targetURI:String):Boolean;

function onResult(infoObject:Object):Void;
function onStatus(infoObject:Object):Void;
}

Videoplayer.swf Source Fla File?
Hi,

Is it possible to get hold of the .FLA source file of the videoplayer.swf in FMS 3.5 please?

I would like to be able to theme the colors for our players to the corporate themes if possible.

How To Modify Swf Without Source File?
I will append a button to a Swf file,but the button wasnt inside the SWF file and I wasn't have the SWF file's source file?

Please tell me which software can do it ?

List the name or URL,Thankyou!

-----
Sorry,I have a little English.

Using The FLA Source File Components
How do I put those examples to good use? The one I got (this one) uses only one instance for all the buttons...

...anyway I can change that?

Source File Instructions?
Sorry, new guy... Are there instructions on how to use (customize) the downloadable fla source files?

Weeds Fla Source File
i was wondering if someone could explain a few things about the code in this fla. it's found under the experimental actionscript, last page of the fla source files section.

i've been studying it for a couple days nows and i still cannot figure out how the position of the weeds are being set. i've been trying to change it so that the line_x is at the top of the stage and the weeds point downward, but i'm having no such luck.

i'm guessing the position has maybe something to do with this section of code:

ActionScript Code:
_root.attachMovie("line", "line" + _root.level, _root.level);
    myLine = _root["line" + _root.level];
    _root.level++;
    var line_x = random(_root.myBounds.xMax - _root.myBounds.xMin);


if someone could just break it down what's happening that'd be great! it's been driving me crazy that i'm not figuring it out.

here is the code on the 1st frame:

ActionScript Code:
fscommand ("allowscale", false);
var total_num = 12;
var level = total_num+1;
var myBounds = boundbox.getBounds(_root);
for (i=0; i<=total_num; i++) {
    attachMovie("dot", "dot"+i, i);
    myDot = _root["dot"+i];
    myDot._x = random(myBounds.xMax-myBounds.xMin-50)+26;
    myDot._y = random((myBounds.yMax-myBounds.yMin)-60)+31;
}
stop ();


and this is the rest on the dot:

ActionScript Code:
onClipEvent (load) {
    var follow = false;
    var min_dist = 10;
    var max_move = 20;
    var force = 1.4;
    var a = 3;
    var d = 1.6;
    var newX = _parent._x;
    var newY = _parent._y;
    var myXspeed = 0;
    var myYspeed = 0;
    _root.attachMovie("line", "line"+_root.level, _root.level);
    myLine = _root["line"+_root.level];
    _root.level++;
    var line_x = random(_root.myBounds.xMax - _root.myBounds.xMin);
}
onClipEvent (enterFrame) {
    myXspeed = ((_parent._x-newX)/a+myXspeed)/d;
    myYspeed = ((_parent._y-newY)/a+myYspeed)/d;
    // check mouse distance
    if (Math.abs(_parent._x-_root._xmouse)<min_dist && Math.abs(_parent._y-_root._ymouse)<min_dist) {
        follow = true;
        this.gotoAndStop(2);
    } else if (Math.abs(_parent._x-newX)>max_move || Math.abs(_parent._y-newY)>max_move) {
        follow = false;
        this.gotoAndStop(1);
    }
    if (follow) {
        myXSpeed += (_parent._x-_root._xmouse)/force;
        myYSpeed += (_parent._y-_root._ymouse)/force;
    }
    _parent._x -= myXspeed;
    _parent._y -= myYspeed;
    // adjust line
    myLine._x = _parent._x;
    myLine._y = _parent._y;
    myLine._xscale = line_x - _parent._x;
    myLine._yscale = (_root.myBounds.yMax-_root.myBounds.yMin)-_parent._y;
    myLine._alpha = 20;
}
onClipEvent(mouseDown) {
    newX = random(_root.myBounds.xMax-_root.myBounds.xMin-50)+26;
    newY = random(_root.myBounds.yMax-_root.myBounds.yMin-60)+31;
}

File Upload
Is it possible to upload a file using a Flash form like <input type=file...> in HTML? I'm using CFMX and FlashMX to do some Flash Remoting stuff and need to be able to give my users the ability to upload a file. I have the CFC built and it works fine with an HTML form.

CFDaddy

File To Upload To Big
hi,

the file was to big to upload; chech herre http://olenz.nl/chatbox/
file name vuur.zip.

No i did not call it up in a mc but with the loadmovienumber

Hope you can find something. when you need the php/txt files for the chatbox they are also there.

Upload File
is there a way to have a button in a flash movie to upload a file. it would have to open the local dir information. can this be done?

Upload File
Is it possible to create a button that would show the files on pc to choose the file to upload, or to send the path to another script that will upload the file?

Mx To Js - Upload A File
i want to upload an image from a flash interface

here are the steps i am thinking of:
1. flash calls local js
2. local js loads a small popup
3. small popup has a form and script that brings up browse dialog
4. script senses when file is selected and calls forms submit
5. image processed and returns small nugget of info to flash

what do you think, am i close
or complex-ing it up

Swf File Won't Upload All The Way
hey all - for some reason i just exported my movie which is 193kb large - when i go to upload it to my webserver it only puts up 192kb and won't play in browser.. Any suggestions on how to fix this? (using flashfxp - uploading in asci mode

Thanks in advance,
Bill

File Upload
Hi!

Does anyone know of a file upload component in flash?

//Johan

File Upload
other than popping up an html window, can this be done in Flash MX2004

Thanks

File Upload
can anyone tell me how to do file upload with flash, php and whatever else I need for my site? thanks



http://flashmailforms.com

File Upload - Who Wants It?
Ok...I have a file that I have been developing for my shop and would like to have the user click a link...add a file of any type and then have the file sent to my server.

I would like the flash to hold a variable with the location of the file that will be included in the email that is sent to me with all the other contact info that was entered in the form. The text fields will be sent to a php file using post and the php file sends me a email with all the info.

Can anyone out there help me? I can send you the file if you are able to help me get this set up. I have posted this issue before and have had some great advice from other FK members leading me in the right direction but I still have been unable to get this feature to work. Anyone out there willing to share some code...I am willing to give you a hand with some graphics or something along those lines if you can help me get this damn thing working before I toss my computer out the door in frustration.
Mike

Upload A File
Hey guys i am attemping to upload a file and here is the code i am using, it seems like it works fine and the progress bar gets to 100, the onComplete action works and says the video is done uploading but the video isn't in the file here is the code any idea why it isn't working?


PHP Code:



var allVidTypes:Array = new Array();
var vidTypes:Object = new Object();
vidTypes.description = "Videos (*.avi, *.wmv, *.mpeg, *.mov, *.mp4)";
vidTypes.extension = "*.avi; *.wmv; *.mpeg; *.mov; *.mp4;";
allVidTypes.push(vidTypes);

var listener:Object = new Object();

listener.onSelect = function(file:FileReference):Void {
    uploadBtn.enabled = true;
    videoPath.text = file.name;
}

listener.onProgress = function(file:FileReference, bytesLoaded:Number, bytesTotal:Number):Void {
    _global.uploadProgress = Math.round(bytesLoaded/bytesTotal*100);
}

listener.onComplete = function(file:FileReference) {
    _root.resultText.text = "Video Upload Completed";
}
uploadBtn.onRelease = function() {
    if(!vidRef.upload("uploadhandler.php")) {
        _root.popUp(2);
    }else{
        _root.popUp(1);
        _root.up.progressBar.bar._xscale = 0;
    }
    this.enabled = false;
}
videoBrowse.onRelease = function() {
    vidRef.browse(allVidTypes);
}

vidRef = new FileReference();
vidRef.addListener(listener);




here is php

PHP Code:



<?php

$MAXIMUM_FILESIZE = 1024*1024*100; // 100MB
if ($_FILES['Filedata']['size'] <= $MAXIMUM_FILESIZE) {
  move_uploaded_file($_FILES['Filedata']['tmp_name'], "files/".$_FILES['Filedata']['name']);
}

?>




thanks guys!

Upload File?
Is there any way to have a button on a flash web site that will allow you to select a file to upload to a cgi script?

How Can I Upload File
Hello everyone, Im trying to add a feature to my site that makes it posible to upload a picture. The site is for a canvas transfer service, they take any picture and transfer it onto a canvas. So I need to be able to have the client upload a picture with the order form, then when submitted emailed over to me. Any suggestions?

File Upload
I've done tutorials all over the net with this and took the example from the flash as3 bible. I test them on my testing server which is running on my local system and works with everything else, but for some reason when i click on upload the file doesn't upload to the server.

Any ideas? Because i get no errors with this, it just says the file was uploaded, but it doesn't ever show on the server.



PHP Code:



<?php
move_uploaded_file($_FILES['Filedata']['tmp_name'], i
'./'.time().$_FILES['Filedata']['name']);
?>





Code:
package {
import flash.display.Sprite;
import flash.text.TextField;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.events.IOErrorEvent;
import flash.events.ProgressEvent;
import flash.events.SecurityErrorEvent;
import flash.net.FileReference;
import flash.net.URLRequest;
public class FileUpload extends Sprite {
private var _browse:TextField;
private var _upload:TextField;
private var _output:TextField;
private var _fileReference:FileReference;
public function FileUpload() {
_browse = new TextField();
_browse.htmlText = "<u>click to browse file</u>";
_browse.addEventListener(MouseEvent.CLICK, browseHandler);
addChild(_browse);
_upload = new TextField();
_upload.htmlText = "<u>click to upload file</u>";
_upload.addEventListener(MouseEvent.CLICK, uploadHandler);
_upload.x = 200;
_upload.visible = false;
addChild(_upload);
_output = new TextField();
_output.width = 400;
_output.height = 400;
_output.y = 50;
addChild(_output);
_fileReference = new FileReference();
_fileReference.addEventListener(Event.SELECT, selectHandler);
_fileReference.addEventListener(Event.CANCEL, cancelHandler);
_fileReference.addEventListener(ProgressEvent.PROGRESS, progressHandler);
_fileReference.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
_fileReference.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityHandler);
_fileReference.addEventListener(Event.COMPLETE, completeHandler);
}
private function browseHandler(event:MouseEvent):void {
_fileReference.browse();
}
private function selectHandler(event:Event):void {
_output.text = "Selected File";
_output.appendText("
Name: " + _fileReference.name);
_output.appendText("
Size: " + _fileReference.size);
_output.appendText("
Created On: " + _fileReference.creationDate);
_output.appendText("
Modified On: " + _fileReference.modificationDate);
_upload.visible = true;
}
private function cancelHandler(event:Event):void {
_output.text = "Canceled";
}
private function uploadHandler(event:MouseEvent):void {
_fileReference.upload(new URLRequest("http://localhost/simpleFileUpload.php"));
}
private function progressHandler(event:ProgressEvent):void {
_output.text = "file uploading
oprogress (bytes): " + event.bytesLoaded + " / " + event.bytesTotal;
}
private function ioErrorHandler(event:IOErrorEvent):void {
_output.text = "an IO error occurred";
}
private function securityHandler(event:SecurityErrorEvent):void {
_output.text = "a security error occurred";
}
private function completeHandler(event:Event):void {
_output.text = "the file has uploaded";
}
}
}

Copyright © 2005-08 www.BigResource.com, All rights reserved