Search the Community
Showing results for tags 'securityerror'.
-
Hi, I am striking a security error when trying to draw bitmapdata from a videoloader. This might be more a Flashplayer question but would like to know how to fix when using VideoLoader. Any help appreciated! Crossdomain policy file: <cross-domain-policy> <site-control permitted-cross-domain-policies="all"/> <allow-access-from domain="*" secure="false"/> <allow-http-request-headers-from domain="*" headers="*" secure="false"/> </cross-domain-policy> Loader: masterLoader.append( new VideoLoader(aryStringPath, {name:aryStringPath, container:videocontainer.videos, width:VIDEO_HI_WIDTH, height:VIDEO_HI_HEIGHT, autoPlay:false, visible:false, scaleMode:"proportionalOutside", checkPolicyFile:true}) ); Complete: I then wait for the complete event. VideoLoader.VIDEO_COMPLETE Bitmap Draw: I then attempt to draw from the parent container. bmDataLeft.draw(videocontainer, new Matrix(1, 0, 0, 1, 0, 0)); Security Error: SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: www.domain.com/swf.swf cannot access unknown URL. No policy files granted access. at flash.display::BitmapData/draw() at com.packagename::WaterRippler/drawBitmaps() at com.packagename::WaterRippler/setupRipples() at com.packagename::VideoContainer/onVideoComplete() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.greensock.loading::VideoLoader/_statusHandler() Things I have tried/checked: - policy file - completely open as above and in the root. Using a dedbugging proxy I can tell it loads correctly on page load. - added checkPolicyFile:true to loader params - video file is an FLV pulling from a static server (not streaming) - there is no DRM on the FLV's, they are produced by ourselves and hosted on our own server If you have any ideas please let me know! Thanks for your help.
- 2 replies
-
- videoloader
- bitmapdata.draw
-
(and 1 more)
Tagged with: