You may need a file path as follows:
file:
If not, you may need Filestream video in your application, for example:
private function init() : void { file = new File("\\myserver\myfolder\myvideofile.avi"); fileStream = new FileStream(); fileStream.addEventListener( Event.COMPLETE, fileComplete ); fileStream.openAsync( file, FileMode.READ ); } private function fileComplete( event : Event ):void { fileContents = fileStream.readMultiByte( fileStream.bytesAvailable, ISO_CS ); fileStream.close(); }
You may also need to refer to your โcross-domain policy policy fileโ if you are trying to access anything outside of your SWF sandbox. Loading remote assets can be complex (and a nightmare of security configuration) in FLEX.
<?xml version="1.0"?> <cross-domain-policy> <site-control permitted-cross-domain-policies="by-content-type"/> <allow-access-from domain="www.friendOfFoo.com"/> <allow-access-from domain="*.foo.com"/> <allow-access-from domain="105.216.0.40"/> </cross-domain-policy>
You may need to read about Adobe's cross-domain policy here.
source share