Jump to content
Search Community

murd

Members
  • Posts

    5
  • Joined

  • Last visited

murd's Achievements

0

Reputation

  1. Thanks for your response. Turns out it is very buggy and inconsistent. I can draw from the video during first play, but if it pauses, stops or basically anything happens then it stops allowing me to draw. Then once the video is cached in the browser it actually allows it. My solution for now is putting both the swf and videos on the same domain and in my test environment just populating the bitmapdata with transparent pixels so nothing breaks. Using a try, catch for when the security error fires on draw. Not a real solution to the problem but means I can get on with my work and use my test environment!
  2. 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.
  3. RESOLVED: Issue was Facebook blocked http://localhost.com/ and everything works fine and no more crashes. So I guess now the question is where and what was causing the flashplayer crash. Anyways, I can carry on and get this job finished now. Thanks for the push to sort out what was causing the crash.
  4. Hi, thanks for your quick response. I have setup a FLA standalone test. I managed to get it working in the FLA fine, on a webserver fine, but crashes on localhost which is my test environment. So looks like an issue with my localhost, nothing to do with LoaderMax. Attached is the FLA and files I used to test. My Setup: Latest download of greensock AS3 files Windows Firefox 5.0 Flashplayer 10.3 Then browse to http://localhost/test/index.html and flashplayer crashes. Is there a way to get it setup so I can test on localhost rather than a webserver? Do you think this is just my localhost settings?
  5. Hi, what was the resolution for this? I am having the same issue. This code is inside a child.swf pulled into a parent. Simply replace "id" with a valid facebook user id. //WORKS var loader:ImageLoader = new ImageLoader("http://graph.facebook.com/" + id + "/picture", {container:this}); loader.load(); //DOESN'T WORK -- crashes flashplayer var queue:LoaderMax = new LoaderMax(); queue.append( new ImageLoader("http://graph.facebook.com/" + id + "/picture", {container:this}) ); queue.load(); The ImageLoader works perfectly and doesn't crash flashplayer but LoaderMax crashes every time. I imagine this is to do with the graph.facebook.com call which returns a string of where the image is. But this doesn't explain why it works in ImageLoader and not inside a Queue. I have also tried a URLRequest in place of the String and doesn't make a difference. Do you get the same error or is this simply my Greensock version out of date? Any help appreciated. Thanks.
×
×
  • Create New...