Hey everyone!
i am working on a projector file, i would like to do some actionscripting
on download links that checks if it is a MAC or PC, and if there is internet
or not. If it is a mac i want to always download the file from the internet
(some pdf files) if it is a PC i want to download
Mac or PC? - it can be read from the System.capabilities.os property
Online or offline? - send a request to a remote server and if you get
the expected response, then you are online; otherwise (no response,
error, etc.) you are offline
Attila
BP i am working on a projector file, i would
var result_lv:LoadVars = new LoadVars();
result_lv.onLoad = function(success:Boolean)
{
if (success) {
trace(we got connection);
getURL(www.thefileyouwant);
}
else {
trace(no connection);
//no connection do stuff
}
};
var send_lv:LoadVars = new LoadVars();
I can't figure it out at all, but then i am a Flash Newbie...
Then this list might be a better fit:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie
regards,
Muzak
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options
4 matches
Mail list logo