I have a client who wants to be able to offer peope the ability to download his VCard from his Flash website. Is this possible?
-M
Printable View
I have a client who wants to be able to offer peope the ability to download his VCard from his Flash website. Is this possible?
-M
Hi bluedawg65,
It is possible in 2 ways:
Just download through a web browser:Code:getURL("http://YoursWedsite.com/client.vcf", "_blank");
Advanced download:Code:import flash.net.FileReference;
var MyObject:Object = new Object ();
var MyFileReference:FileReference = new FileReference ();
var MyVCard:String = "http://YoursWedsite.com/client.vcf"
var VCardName:String = "client.vcf";
MyObject.onComplete = function (file:FileReference) : Void
{
trace ("onComplete: " + file.name);
};
MyObject.onIOError = function (file:FileReference) : Void
{
trace ("onIOError: " + file.name);
};
MyFileReference.addListener (MyObject);
MyFileReference.download (MyVCard, VCardName)
Thanks WPRS, Will give this a go!