[Flashcoders] RE: Flashcoders Digest, Vol 9, Issue 57

2005-10-22 Thread Simon Barber
Hey Jens,

C# code:

string saveToFolder = savedFiles
private void Page_Load(object sender, System.EventArgs e)
{
   
HttpFileCollection uploadedFiles =  Request.Files;
string Path = Server.MapPath(saveToFolder);
for(int i = 0 ; i  uploadedFiles.Count ; i++)
{
HttpPostedFile F = uploadedFiles[i];

if(uploadedFiles[i] != null  F.ContentLength  0)
{
string newName =
F.FileName.Substring(F.FileName.LastIndexOf(\\) + 1);
F.SaveAs(Path + / + newName);
}
}
}

Cheers,
Simon Barber


Message: 9
Date: Fri, 21 Oct 2005 11:11:26 +1300
From: Campbell Anderson [EMAIL PROTECTED]
Subject: Re: [Flashcoders] Flash 8 upload with c#
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=iso-8859-1

Yeah dude, does your existing c# website have upload already built in or
do you need a page from scratch?

Campbell

 
 I need to use the Flash 8 upload functionality with a c# ASP.NET
serverside 
 script - I know how to do it with php, but c# seems complex. Does anybody 
 have scripts or experience with that?
 
 Please contact me offlist:
 [EMAIL PROTECTED]
 
 Thanks!
 Jens
 
 
 ___
 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


Re: [Flashcoders] Cyclic dependencies and strong typing - bug?

2005-10-22 Thread Robert Tweed

Robert Edgar wrote:

Use events


I'm not sure I follow you on this one. My understanding is that buttons 
and movieclips can generate events that are handled slightly differently 
to normal function calls, but other events, particularly inter-object 
messages, are just standard function calls. Is there a special type of 
event that I've missed?


BTW, is this compiler bug documented anywhere? I couldn't find any 
information on Google and was thinking about doing a write-up for anyone 
else that runs into the same problem.


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