Skip navigation
Usama Mushtaq
Currently Being Moderated

bitmapData.draw() SecurityError: Security sandbox violation

Aug 27, 2012 6:35 AM

Tags: #security #sandbox #securityerror: #access_violation #bitmapdata.draw()

i am loading and playing a local video file with appendBytes() and when i call a bitmapData.draw() function

below exception comes up.

 

SecurityError: Error #2123: Security sandbox violation: BitmapData.draw

cannot access null. No policy files granted access.

 

 

what should i do???....

 
Replies
  • kglad
    63,069 posts
    Jul 21, 2002
    Currently Being Moderated
    Aug 27, 2012 6:54 AM   in reply to Usama Mushtaq

    use a relative (not absolute) path to your video file.

     
    |
    Mark as:
  • kglad
    63,069 posts
    Jul 21, 2002
    Currently Being Moderated
    Aug 27, 2012 7:42 AM   in reply to Usama Mushtaq

    if the swf is local to the loaded file, change your security settings:  http://www.macromedia.com/support/documentation/en/flashplayer/help/se ttings_manager04.html

     

    if it's not, then you can use a server gateway file

     
    |
    Mark as:
  • kglad
    63,069 posts
    Jul 21, 2002
    Currently Being Moderated
    Sep 5, 2012 6:32 AM   in reply to Usama Mushtaq

    your cross-domain is incorrect.

     

    but if your loading from the same domain, you shouldn't need cross-domain permissions.  copy and paste your load statement.

     
    |
    Mark as:
  • kglad
    63,069 posts
    Jul 21, 2002
    Currently Being Moderated
    Sep 6, 2012 7:25 AM   in reply to Usama Mushtaq

    ok, back to my first message:  use a relative (not absolute) path to your video file.

     

    that's an absolute url.  use something like:


    urlLoader.load(new URLRequest("../user_data/uploads/cd7350282845 7d15655bbd7a63fb0bc8/v/1345023450-Action_.flv"));

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points