I am trying to save myself a lot of time by trying to get this code to work.
Is it possible to link to a local file?
For example simply link to a locally stored mpeg video that I would like to open over the top of my swf (so it would open in its default player as if you just clicked on it.) I know it may be a security issue but it has got to be possible surely!!
My code I have tried so far doesn’t really work, It came up with a sandbox security error in debug but here is what I tried…
Security.allowDomain("C://");
var loader:Loader = new Loader( );
var loaderContext:LoaderContext = new LoaderContext( );
loaderContext.applicationDomain = ApplicationDomain.currentDomain;
loaderContext.securityDomain = SecurityDomain.currentDomain;
loader.load(new URLRequest("C:\Videos\Clip04.mpg"), loaderContext);
}
Please could someone help me out, If I get this working I will dance on my desk!!
Cheers!