11 Replies Latest reply on Nov 2, 2007 3:20 PM by bitwyse

    In panic - Flex Builder 3 Beta 2 sandbox violation error

    msabljic Level 1
      Until today, i've been using FB 3 Beta 1 but now i am forced to use Beta 2 since Beta 1 release expired today. I was working on the project which consists of HorizontalList in which i load images from remore url. Today i opened project in Flex 3 Beta 2 and got following error:


      Main Thread (Suspended: SecurityError: Error #2122: Security sandbox violation: Loader.content: http://localhost/Diplomski/bin/smile_on.swf cannot access http://www.sabljic-apartment.com/Smil/Shared/copyright.gif. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded.)
      flash.display::Loader/get content [no source]
      mx.controls::SWFLoader/get content
      mx.controls::SWFLoader/notifyStyleChangeInChildren
      mx.core::UIComponent/notifyStyleChangeInChildren
      mx.core::UIComponent/notifyStyleChangeInChildren
      mx.core::UIComponent/setStyle
      mx.states::SetStyle/apply
      mx.core::UIComponent/mx.core:UIComponent::applyState
      mx.core::UIComponent/mx.core:UIComponent::commitCurrentState
      mx.core::UIComponent/setCurrentState
      mx.core::UIComponent/set currentState
      smile_on/menuCreatorItemClicked
      smile_on/__imageList_itemClick
      flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction [no source]
      flash.events::EventDispatcher/dispatchEvent [no source]
      mx.core::UIComponent/dispatchEvent
      mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::mouseClickHandler


      'smile_on.swf' is my application and 'sabljic-apartment.com/Smil/Shared/copyright.gif' is remote image that is loading in HorizontalList control. Image is loaded and displayed fine but i get above error after i click on it.

      This application worked without any problems while i was using Flex Builder Beta 1 so i am in big trouble now and starting to panic. Can anyone help me with this error, how can i get rid of it?

      thanks in advance