Simulate input field? Why don't you just use the dynamic text field - check the borders.
set it's property to dtsVars.myfile - so it pops in "c:\test.txt" so it looks like you are actually submitting the form.... perhaps I am missing what you intend. Also on teh SendAndLoad - you don't need both urls.... it would look like dtsVars.sendAndLoad("http://192.168.0.2/upload.cfm",dtsVars,"POST"); Lastly - to check it the send and load was a success you would do - dtsVars.onLoad = function(success){ if(success){ // whatever you want flash to do if send and load was successful like goToAndPlay("My Scene",1); } Hope I actually answered your question :) jason miller Joshua Miller wrote: >Anyone know if something like this is possible with FlashMX ? > >function respond(){ > goToAndPlay("My Scene",1); > stop(); >} > >function upload(){ > dtsVars = new LoadVars(); > dtsVars.myfile="c:\test.txt"; > dtsVars.onLoad = respond; > dtsVars.contentType = "multipart/form-data"; > dtsVars.sendAndLoad("http://192.168.0.2/upload.cfm",dtsVars,"POST ><http://192.168.0.2/upload.cfm> "); >} > >upload(); >stop(); > >It shure would be nice to have the ability to simulate the <input >type="file"> field within Flash. > >Is there another way to send file uploads from Flash? Can I embed an >HTML form in Flash??? > >Joshua Miller >Head Programmer / IT Manager >Garrison Enterprises Inc. >www.garrisonenterprises.net <http://www.garrisonenterprises.net/> >[EMAIL PROTECTED] >(704) 569-9044 ext. 254 > >************************************************************************ >************* >Any views expressed in this message are those of the individual sender, >except where the sender states them to be the views of >Garrison Enterprises Inc. > >This e-mail is intended only for the individual or entity to which it is >addressed and contains information that is private and confidential. If >you are not the intended recipient you are hereby notified that any >dissemination, distribution or copying is strictly prohibited. If you >have received this e-mail in error please delete it immediately and >advise us by return e-mail to ><mailto:[EMAIL PROTECTED]> >[EMAIL PROTECTED] >************************************************************************ >************* > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4