RE: [Flashcoders] File upload in flash

2007-01-30 Thread Petro Bochan
Claudio M. E. Bastos Iorio
 Hi guys, I hope you can help me on this.
 I need to add an upload file control inside a flash form, like the
one
 in
 html. I'm working with php and MySql in the backend. But I don't
really
 know
 how to add such a feature in flash.  Any help/links examples will be
much
 appreciated.

Hi Claudio,

Check out the Loader class @
http://livedocs.macromedia.com/flex/2/langref/index.html, this will give
all the info that you need.

Cheers,
Petro

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] File upload in flash

2007-01-30 Thread Henry Cooke

Or FileReference, if you just want to save the file out on a server
somewhere..

h.

On 30/01/07, Petro Bochan [EMAIL PROTECTED] wrote:


Claudio M. E. Bastos Iorio
 Hi guys, I hope you can help me on this.
 I need to add an upload file control inside a flash form, like the
one
 in
 html. I'm working with php and MySql in the backend. But I don't
really
 know
 how to add such a feature in flash.  Any help/links examples will be
much
 appreciated.

Hi Claudio,

Check out the Loader class @
http://livedocs.macromedia.com/flex/2/langref/index.html, this will give
all the info that you need.

Cheers,
Petro

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] File upload in flash

2007-01-30 Thread Claudio M. E. Bastos Iorio
Thanks for your help Petro and Henry!
This class is for AS3 on Flex2, right?
I'm working with Flash 8 and AS2. The loader class that I found in AS2 seems
to allow me retrieve content from a remote location and pull it into a
Flash application (from help) Is the same class?.
And Henry, yes, I need to save the file in the server.
Looking for Filereference class I found this link:
http://www.flash-db.com/Tutorials/upload/upFiles.php . I think that's what I
needed. Thanks for your help!


___
Claudio M. E. Bastos Iorio 
http://www.13bit.com.ar
MSN:[EMAIL PROTECTED]
Icq:24094716

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Petro Bochan
Sent: Tuesday, January 30, 2007 8:09 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] File upload in flash

Claudio M. E. Bastos Iorio
 Hi guys, I hope you can help me on this.
 I need to add an upload file control inside a flash form, like the
one
 in
 html. I'm working with php and MySql in the backend. But I don't
really
 know
 how to add such a feature in flash.  Any help/links examples will be
much
 appreciated.

Hi Claudio,

Check out the Loader class @
http://livedocs.macromedia.com/flex/2/langref/index.html, this will give all
the info that you need.

Cheers,
Petro

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] File upload in flash

2007-01-30 Thread Henry Cooke

Hmm. I don't think you want a Loader if you just want to pass the file
through (as opposed to loading its content *into* Flash) - if you're just
duplicating the functionality of an HTML file upload form element then
FileReference is definitely what you need - you give it a form catcher to
POST to, exactly the same as an HTML form. It's Flash 8/AS2.

There's a bunch of stuff in Flash's online help on it, or Googling about
throws up loads of relevant stuff, including the one at the always-excellent
Kirupa:
http://www.kirupa.com/developer/flash8/uploading_fileReference_pg1.htm

h.

On 30/01/07, Claudio M. E. Bastos Iorio [EMAIL PROTECTED] wrote:


Thanks for your help Petro and Henry!
This class is for AS3 on Flex2, right?
I'm working with Flash 8 and AS2. The loader class that I found in AS2
seems
to allow me retrieve content from a remote location and pull it into a
Flash application (from help) Is the same class?.
And Henry, yes, I need to save the file in the server.
Looking for Filereference class I found this link:
http://www.flash-db.com/Tutorials/upload/upFiles.php . I think that's what
I
needed. Thanks for your help!


___
Claudio M. E. Bastos Iorio
http://www.13bit.com.ar
MSN:[EMAIL PROTECTED]
Icq:24094716

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Petro
Bochan
Sent: Tuesday, January 30, 2007 8:09 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] File upload in flash

Claudio M. E. Bastos Iorio
 Hi guys, I hope you can help me on this.
 I need to add an upload file control inside a flash form, like the
one
 in
 html. I'm working with php and MySql in the backend. But I don't
really
 know
 how to add such a feature in flash.  Any help/links examples will be
much
 appreciated.

Hi Claudio,

Check out the Loader class @
http://livedocs.macromedia.com/flex/2/langref/index.html, this will give
all
the info that you need.

Cheers,
Petro

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] File upload in flash

2007-01-30 Thread John Mueller

Cladio,

perhaps it is the FileReference class you need.. its in the Help file..used 
to upload/download files from the server...


x



From: Claudio M. E. Bastos Iorio [EMAIL PROTECTED]
Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] File upload in flash
Date: Tue, 30 Jan 2007 08:35:16 -0300

Thanks for your help Petro and Henry!
This class is for AS3 on Flex2, right?
I'm working with Flash 8 and AS2. The loader class that I found in AS2 
seems

to allow me retrieve content from a remote location and pull it into a
Flash application (from help) Is the same class?.
And Henry, yes, I need to save the file in the server.
Looking for Filereference class I found this link:
http://www.flash-db.com/Tutorials/upload/upFiles.php . I think that's what 
I

needed. Thanks for your help!


___
Claudio M. E. Bastos Iorio
http://www.13bit.com.ar
MSN:[EMAIL PROTECTED]
Icq:24094716

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Petro 
Bochan

Sent: Tuesday, January 30, 2007 8:09 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] File upload in flash

Claudio M. E. Bastos Iorio
 Hi guys, I hope you can help me on this.
 I need to add an upload file control inside a flash form, like the
one
 in
 html. I'm working with php and MySql in the backend. But I don't
really
 know
 how to add such a feature in flash.  Any help/links examples will be
much
 appreciated.

Hi Claudio,

Check out the Loader class @
http://livedocs.macromedia.com/flex/2/langref/index.html, this will give 
all

the info that you need.

Cheers,
Petro

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] File upload : getting Flash to know the new name

2006-08-29 Thread John VanHorn

what you can do is have a script or remoting method that you can call that
will generate a file name for you. you can then pass that string to the
upload script.

On 8/25/06, Serge Jespers [EMAIL PROTECTED] wrote:


Hey guys,

I'm doing a fileUpload in this project and in my PHP script, I rename
the file (make an MD5 from it).
I was just wondering how I can get Flash to understand this new
filename... Is this possible at all?

Thanks for your fast responses ;-)

Serge
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
John Van Horn
[EMAIL PROTECTED]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] File upload : getting Flash to know the new name

2006-08-29 Thread hank williams

The way that flash file upload works you really need to think about it
a little differently.

The way I do it is to send a command to the server *before* I do the
upload, and I create a record for the upload in my database. This new
ID comes back to flash, and when I do the upload, I add the id as a
parameter in my upload call. So when the upload begins the upload
function on the server side sees the ID of the file and associates it
with the file that is being uploaded. If the upload is not completed
successfuly within a certain amount of time I delete the ID.

This is a bit more work, but it is, as far as I know, the only way of
allowing flash to know what the file that it has uploaded is.

Regards
Hank

On 8/25/06, Serge Jespers [EMAIL PROTECTED] wrote:

Hey guys,

I'm doing a fileUpload in this project and in my PHP script, I rename
the file (make an MD5 from it).
I was just wondering how I can get Flash to understand this new
filename... Is this possible at all?

Thanks for your fast responses ;-)

Serge
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] File upload : getting Flash to know the new name

2006-08-29 Thread Bernard Visscher
If you create a MD5 of the filename, why not create a MD5 within flash of
the original name.
MD5 classes can be found, here is one:
http://www.meychi.com/archive/31.php
 

 -Oorspronkelijk bericht-
 Van: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Namens 
 Rich Rodecker
 Verzonden: zaterdag 26 augustus 2006 0:48
 Aan: Flashcoders mailing list
 Onderwerp: Re: [Flashcoders] File upload : getting Flash to 
 know the new name
 
 as far as I've seen there's no way to return any values from 
 a file upload.
 There was something I saw where you could return different 
 HTTP header codes back to flash to get some sort of control 
 over what was sent back, but even that still wouldnt send 
 back any data.
 
 jeroen's suggestion might work, or if you have a lot of data 
 maybe you can even save a text file to the server and read 
 that in after the onComplete.
 
 
 
 On 8/25/06, Serge Jespers [EMAIL PROTECTED] wrote:
 
  Yeah... I see where you're going with that... Can also read 
 the value 
  from my database but I thought it must have been possible 
 to have my 
  upload.php return that new name to Flash. That would have made more 
  sense, but I guess that's not possible then...?
 
  S
 
 
 
   Hi Serge,
  
   Maybe store the new name into the $_SESSION and request 
 it when the 
   onComplete event is dispatched?
   Or am I mis-understanding the situation?
  
   Greets,
   Jeroen
  
   Serge Jespers wrote:
   Hey guys,
  
   I'm doing a fileUpload in this project and in my PHP script, I 
   rename the file (make an MD5 from it).
   I was just wondering how I can get Flash to understand this new 
   filename... Is this possible at all?
  
   Thanks for your fast responses ;-)
  
   Serge
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software Premier Authorized Adobe 
   Consulting and Training http://www.figleaf.com 
   http://training.figleaf.com
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training 
   http://www.figleaf.com http://training.figleaf.com
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training 
  http://www.figleaf.com http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training 
 http://www.figleaf.com http://training.figleaf.com
 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] File upload : getting Flash to know the new name

2006-08-25 Thread Jeroen Beckers
Hi Serge,

Maybe store the new name into the $_SESSION and request it when the
onComplete event is dispatched?
Or am I mis-understanding the situation?

Greets,
Jeroen

Serge Jespers wrote:
 Hey guys,

 I'm doing a fileUpload in this project and in my PHP script, I rename
 the file (make an MD5 from it).
 I was just wondering how I can get Flash to understand this new
 filename... Is this possible at all?

 Thanks for your fast responses ;-)

 Serge
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] File upload : getting Flash to know the new name

2006-08-25 Thread Serge Jespers
Yeah... I see where you're going with that... Can also read the value  
from my database but I thought it must have been possible to have my  
upload.php return that new name to Flash. That would have made more  
sense, but I guess that's not possible then...?


S




Hi Serge,

Maybe store the new name into the $_SESSION and request it when the
onComplete event is dispatched?
Or am I mis-understanding the situation?

Greets,
Jeroen

Serge Jespers wrote:

Hey guys,

I'm doing a fileUpload in this project and in my PHP script, I rename
the file (make an MD5 from it).
I was just wondering how I can get Flash to understand this new
filename... Is this possible at all?

Thanks for your fast responses ;-)

Serge
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] File upload : getting Flash to know the new name

2006-08-25 Thread Rich Rodecker

as far as I've seen there's no way to return any values from a file upload.
There was something I saw where you could return different HTTP header codes
back to flash to get some sort of control over what was sent back, but even
that still wouldnt send back any data.

jeroen's suggestion might work, or if you have a lot of data maybe you can
even save a text file to the server and read that in after the onComplete.



On 8/25/06, Serge Jespers [EMAIL PROTECTED] wrote:


Yeah... I see where you're going with that... Can also read the value
from my database but I thought it must have been possible to have my
upload.php return that new name to Flash. That would have made more
sense, but I guess that's not possible then...?

S



 Hi Serge,

 Maybe store the new name into the $_SESSION and request it when the
 onComplete event is dispatched?
 Or am I mis-understanding the situation?

 Greets,
 Jeroen

 Serge Jespers wrote:
 Hey guys,

 I'm doing a fileUpload in this project and in my PHP script, I rename
 the file (make an MD5 from it).
 I was just wondering how I can get Flash to understand this new
 filename... Is this possible at all?

 Thanks for your fast responses ;-)

 Serge
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] file upload with flash 8 weirdness

2005-11-08 Thread Tom Rhodes

ah, ignore me, i panicked, no trailing slash on the directory.

*crawls back into dark place*

- Original Message - 
From: Tom Rhodes [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, November 08, 2005 5:09 PM
Subject: [Flashcoders] file upload with flash 8 weirdness


Hello all,

i think my prob is in my php, but i'm uploading a file to the server, 
everything goes aok as far as flash is concerned, onProgress and onComplete 
both fire away happily.


but the file he no end up on server :(

why would flash say everything is cool and the file not end up there?

the only slightly funky thing i'm doing is passing a filename to the upload 
php page for it to use when it moves the file from the browser temp to the 
server. like so


?php
if ($_FILES['Filedata']['name']) {
  $uploadDir = ../images/homepage;
  $uploadFile = $uploadDir . $_REQUEST['fileName'];
  $uploaded = move_uploaded_file($_FILES['Filedata']['tmp_name'], 
$uploadFile);

  echo $uploaded;
}
?

any ideas???

i have an urgent deadline approaching fast, and this is the last little 
thing i need to complete :(


tia,

tom.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders