kingyiren / efflex

Automatically exported from code.google.com/p/efflex
0 stars 0 forks source link

Effect fails with non-embedded background images loaded cross-domain #22

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Receiving attached error when using Slide for the show/hide effects of the 
children of a viewstack.  One of the children has a non-embedded background 
image, set via backgroundImage style.  There is 
no security sandbox error when setting the background image, and no error when 
the show effect is first played (presumably because the background image is not 
loaded at that point).  The error occurs 
when the hide effect is played.  There is a policy file located on the domain 
from which the image is loaded that allows access from any domain.

What version of the product are you using? On what operating system?
- OS X 10.6.2
- Flash Player 10,0,42,34
- Chrome 5.0.307.7 beta
- Efflex_v0.03_fx3_fp9.swc

Stack trace attached.

Original issue reported on code.google.com by RyanWils...@gmail.com on 15 Feb 2010 at 1:12

Attachments:

GoogleCodeExporter commented 8 years ago
This describes my problem exactly but I'm going swf->swf and not swf->image. 
The sub-application swf I'm using at siteB has many dynamically loaded 
ImageLoaders that create a slideshow.

SecurityError: Error #2121: Security sandbox violation: BitmapData.draw: 
http://siteA/my.swf cannot access https://siteB/mysecond.swf. This may be 
worked around by calling Security.allowDomain.
    at flash.display::BitmapData/draw()
    at org.efflex.mx.viewStackEffects.effectClasses::ViewStackTweenEffectInstance/takeSnapShot()
    at org.efflex.mx.viewStackEffects.effectClasses::ViewStackTweenEffectInstance/play()
    at mx.effects::EffectInstance/startEffect()
    at org.efflex.mx.viewStackEffects.effectClasses::ViewStackTweenEffectInstance/startEffect()
    at mx.effects::Effect/play()
    at mx.effects::EffectManager$/createAndPlayEffect()
    at mx.effects::EffectManager$/http://www.adobe.com/2006/flex/mx/internal::eventHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()
    at mx.core::UIComponent/setVisible()
    at mx.containers::ViewStack/commitSelectedIndex()
    at mx.containers::ViewStack/commitProperties()
    at mx.core::UIComponent/validateProperties()
    at mx.managers::LayoutManager/validateProperties()
    at mx.managers::LayoutManager/doPhasedInstantiation()
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/callLaterDispatcher2()
    at mx.core::UIComponent/callLaterDispatcher()

Original comment by buddyp...@gmail.com on 20 Mar 2013 at 5:24