1. Error description
Securityerror: Error #2148: SWF file: // D:/Adobe Flash Builder 4 installer/hvbox/bin-Debug/vhbox.swf cannot access local resources file: // D: /Adobe Flash Builder 4 installer/hvbox/bin-Debug/framework_4.0.0.14159.swf. Only the SWF files of the file system and trusted local SWF files can access local resources. At flash.net: urlstream/load () at flash.net: urlloader/load () at MX. core: crossdomainrslitem/load () [E: \ Dev \ 4.0.0 \ frameworks \ projects \ framework \ SRC \ MX \ core \ crossdomainrslitem. as: 240] At MX. core: rsllistloader/loadnext () [E: \ Dev \ 4.0.0 \ frameworks \ projects \ framework \ SRC \ MX \ core \ rsllistloader. as: 184] At MX. core: rsllistloader/load () [E: \ Dev \ 4.0.0 \ frameworks \ projects \ framework \ SRC \ MX \ core \ rsllistloader. as: 156] At MX. preloaders: preloader/initialize () [E: \ Dev \ 4.0.0 \ frameworks \ projects \ framework \ SRC \ MX \ preloaders \ preloader. as: 279] At MX. managers: systemmanager/http://www.adobe.com/2006/flex/mx/internal::initialize () [E: \ Dev \ 4.0.0 \ frameworks \ projects \ framework \ SRC \ MX \ managers \ systemmanager. as: 1925] At MX. managers: systemmanager/inithandler () [E: \ Dev \ 4.0.0 \ frameworks \ projects \ framework \ SRC \ MX \ managers \ systemmanager. as: 2419]
2. Error cause
<? XML version = "1.0" encoding = "UTF-8"?> <S: Application xmlns: FX = "http://ns.adobe.com/mxml/2009" xmlns: S = "Library: // ns.adobe.com/flex/spark" xmlns: MX = "Library: // ns.adobe.com/flex/mx "width =" 100% "Height =" 100% "fontfamily =" "fontsize =" 12 "> <s: layout> <s: basiclayout/> </S: layout> <FX: declarations> <! -- Place non-visual elements (such as services and value objects) Here --> </FX: declarations> <mx: hdividedbox width = "100%" Height = "50%"> <mx: hbox width = "50%" Height = "100%" bordervisible = "true" borderstyle = "solid"> </MX: hbox> <mx: hbox width = "50%" Height = "100%" bordervisible = "true" borderstyle = "solid"> </MX: hbox> </MX: hdividedbox> <mx: vdividedbox width = "100%" Height = "50%"> <mx: hbox width = "50%" Height = "100%" bordervisible = "true" borderstyle = "solid"> </MX: hbox> <mx: hbox width = "50%" Height = "100%" bordervisible = "true" borderstyle = "solid"> </MX: hbox> </MX: vdividedbox> </S: Application>
3. Solution
Flash builder4.0 running the application reports an error