So basically all i have to do is place the code you gave me inside MYSWFLoader.as for example and use "include" in my main .mxml to include that code? I don't have to instanciate or smth included class from my main .mxml?
thanks once again for your help, i really appreciate it Alex Harui wrote: > > You create a new file called MYSWFLoader.as and place it next to the > main app's MXML > > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Mirko Sabljic > Sent: Wednesday, October 31, 2007 1:38 PM > To: flexcoders@yahoogroups.com > Subject: RE: [flexcoders] In panic - Flex Builder 3 Beta 2 sandbox > violation error > > > > > I guess i put this code with the rest of my code inside <mx:Script> tag > in my > .mxml file? Sorry for asking this but i am Flex newbie :) > > thank you very much > > Alex Harui wrote: >> >> package { >> >> import mx.controls.SWFLoader; >> >> public class MySWFLoader extends SWFLoader >> >> { >> >> override public function >> regenerateStyleCache((recursive:Boolean):void >> >> { >> >> } >> >> >> >> override public function >> notifyStyleChangeInChildren(styleProp:String, recursive:Boolean):void >> >> { >> >> } >> >> } >> >> } >> >> >> >> ________________________________ >> >> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > ] On >> Behalf Of Mirko Sabljic >> Sent: Wednesday, October 31, 2007 11:11 AM >> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> >> Subject: RE: [flexcoders] In panic - Flex Builder 3 Beta 2 sandbox >> violation error >> >> >> >> >> Can you Alex please be kind enough to explain a little bit more > detailed >> how >> to solve this since i am no Flex expert but would really like to solve >> this >> problem that just appeared from nowhere since everything worked just >> fine in >> previous release? >> >> thank you very much in advance, >> Mirko >> >> Alex Harui wrote: >>> >>> That's a bug in the beta. A workaround is to subclass SWFLoader, >>> override notifyStyleChangeInChildren and regenerateStyleCache and > have >>> them just return w/o doing anything. >>> >>> >>> >>> ________________________________ >>> >>> From: flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> >> [mailto:flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> >> ] On >>> Behalf Of Edward Yakop >>> Sent: Wednesday, October 31, 2007 7:01 AM >>> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> >>> Subject: Re: [flexcoders] In panic - Flex Builder 3 Beta 2 sandbox >>> violation error >>> >>> >>> >>> That's because your flash player is updated. >>> >>> U could reset the global security and set your URL to be a trusted >>> location. >>> >> > http://www.macromedia.com/support/documentation/en/flashplayer/help/sett > <http://www.macromedia.com/support/documentation/en/flashplayer/help/set > t> >> > <http://www.macromedia.com/support/documentation/en/flashplayer/help/set > <http://www.macromedia.com/support/documentation/en/flashplayer/help/set >> >> t> >>> ings_manager04.html >>> >> > <http://www.macromedia.com/support/documentation/en/flashplayer/help/set > <http://www.macromedia.com/support/documentation/en/flashplayer/help/set >> >> > <http://www.macromedia.com/support/documentation/en/flashplayer/help/set > <http://www.macromedia.com/support/documentation/en/flashplayer/help/set >> >>> >>> tings_manager04.html> >>> >>> Regards, >>> Edward Yakop >>> >>> Note: click on the third icon from the left and set the Always trust >>> location. >>> >>> On Oct 31, 2007 2:44 PM, <[EMAIL PROTECTED] > <mailto:msabljic%40gmail.com> >> <mailto:msabljic%40gmail.com> >>> <mailto:msabljic%40gmail.com> > wrote: >>>> Hello, >>>> >>>> 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 > <http://localhost/Diplomski/bin/smile_on.swf> >> <http://localhost/Diplomski/bin/smile_on.swf > <http://localhost/Diplomski/bin/smile_on.swf> > >>> <http://localhost/Diplomski/bin/smile_on.swf > <http://localhost/Diplomski/bin/smile_on.swf> >> <http://localhost/Diplomski/bin/smile_on.swf > <http://localhost/Diplomski/bin/smile_on.swf> > > cannot access >>> http://www.sabljic-apartment.com/Smil/Shared/copyright.gif. > <http://www.sabljic-apartment.com/Smil/Shared/copyright.gif.> >> <http://www.sabljic-apartment.com/Smil/Shared/copyright.gif. > <http://www.sabljic-apartment.com/Smil/Shared/copyright.gif.> > >>> <http://www.sabljic-apartment.com/Smil/Shared/copyright.gif. > <http://www.sabljic-apartment.com/Smil/Shared/copyright.gif.> >> <http://www.sabljic-apartment.com/Smil/Shared/copyright.gif. > <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::dispatchEven >>> tFunction [no source] >>>> flash.events::EventDispatcher/dispatchEvent [no source] >>>> mx.core::UIComponent/dispatchEvent >>>> >>> >> > mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::mous >>> eClickHandler >>>> ----------------------------------------- >>>> >>>> 'smile_on.swf' is my application and >>> 'http://www.sabljic-apartment.com/Smil/Shared/copyright.gif > <http://www.sabljic-apartment.com/Smil/Shared/copyright.gif> >> <http://www.sabljic-apartment.com/Smil/Shared/copyright.gif > <http://www.sabljic-apartment.com/Smil/Shared/copyright.gif> > >>> <http://www.sabljic-apartment.com/Smil/Shared/copyright.gif > <http://www.sabljic-apartment.com/Smil/Shared/copyright.gif> >> <http://www.sabljic-apartment.com/Smil/Shared/copyright.gif > <http://www.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 >>>> >>>> -- >>>> Best regards, >>>> Mirko mailto:msabljic[at]gmail.com >>>> >>>> >>>> >>>> >>>> -- >>>> Flexcoders Mailing List >>>> FAQ: > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> >> <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> > >>> <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> >> <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> > > >>>> Search Archives: >>> http://www.mail-archive.com/flexcoders%40yahoogroups.com > <http://www.mail-archive.com/flexcoders%40yahoogroups.com> >> <http://www.mail-archive.com/flexcoders%40yahoogroups.com > <http://www.mail-archive.com/flexcoders%40yahoogroups.com> > >>> <http://www.mail-archive.com/flexcoders%40yahoogroups.com > <http://www.mail-archive.com/flexcoders%40yahoogroups.com> >> <http://www.mail-archive.com/flexcoders%40yahoogroups.com > <http://www.mail-archive.com/flexcoders%40yahoogroups.com> > > >>>> Yahoo! Groups Links >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >> >> -- >> View this message in context: >> > http://www.nabble.com/In-panic---Flex-Builder-3-Beta-2-sandbox-violation > <http://www.nabble.com/In-panic---Flex-Builder-3-Beta-2-sandbox-violatio > n> >> -error-tf4725179.html#a13515401 >> > <http://www.nabble.com/In-panic---Flex-Builder-3-Beta-2-sandbox-violatio > <http://www.nabble.com/In-panic---Flex-Builder-3-Beta-2-sandbox-violatio >> >> n-error-tf4725179.html#a13515401> >> Sent from the FlexCoders mailing list archive at Nabble.com. >> >> >> >> >> > > -- > View this message in context: > http://www.nabble.com/In-panic---Flex-Builder-3-Beta-2-sandbox-violation > -error-tf4725179.html#a13518083 > <http://www.nabble.com/In-panic---Flex-Builder-3-Beta-2-sandbox-violatio > n-error-tf4725179.html#a13518083> > Sent from the FlexCoders mailing list archive at Nabble.com. > > > > > -- View this message in context: http://www.nabble.com/In-panic---Flex-Builder-3-Beta-2-sandbox-violation-error-tf4725179.html#a13526739 Sent from the FlexCoders mailing list archive at Nabble.com.