Skip to main content
Participant
January 31, 2011
Question

BitmapDraw error on transition to navigator.pushView(XXXX)

  • January 31, 2011
  • 1 reply
  • 955 views

This has been a puzzle for a  number of days now and I have tried virtually all of the suggestions on these forums with respect to Security Sandbox violation Error #2123 (checkPolicyFile; sampleVideoAccess)

The problem is not that I want to take an image of anything at all it is that I am exiting a view in Flash Builder 4 mobile application after disconnecting from the incoming stream but I get this error

It looks like the slideview transition is taking a bitmap image of the "View" before leaving for an alternative "View". I use local

SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: app:/epand1.swf cannot access rtmfp://p2p.rtmfp.net/{====my developer API code====). No policy files granted access.

at flash.display::BitmapData/draw()

at spark.effects::SlideViewTransition/generateBitmap()

at spark.effects::SlideViewTransition/captureStartValues()

at spark.components::ViewNavigator/viewAdded()

at spark.components::ViewNavigator/commitViewChange()

at spark.components::ViewNavigator/commitProperties()

at mx.core::UIComponent/validateProperties()

at mx.managers::LayoutManager/validateClient()

at mx.core::UIComponent/validateNow()

at spark.components::ViewNavigator/executeDelayedActions()

Anyone else come across this issue?

Gerry

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    February 1, 2011

    I think you might be missing loading of crossdomain.xml & it might be the issue

    Can you check below links - might be helpful:

    http://www.actionscript.org/forums/showthread.php3?t=157329

    http://www.actionscript.org/forums/showthread.php3?t=117772

    Also you need to grant access to clients for doing snapshots when its connected to FMS

    http://help.adobe.com/en_US/flashmediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7ec3.html#WS5b3ccc516d4fbf351e63e3d11a11afc95e-7fcb

    eplixo1Author
    Participant
    March 29, 2011

    Thanks for those suggestions. However I can understand the problem if I am seeking to capture a Bitmap Image and have tried all the suggestions. But the problem arises out of a requirement to leave a dynamic video source between two video callers.

    The connection is over P2P and not through the FMS once the P2P connection has been made. So when the View is being terminated the source in fact is no longer through the originator RTMFP and so it is looking for the cross domain file on the RTMFP server

    In this case it is the p2p.rtmfp.net server. I have FMS 4 but have not loaded it onto any server just yet. Obviously that is the last resort but this is still not in full production.

    So if anyone in Adobe has an idea of how to workaround this issue I would be extremely grateful. Currently my workaround is to terminate the application and restart but that is not entirely satisfactory in the long term