I am using an embedded PNG as the background for my app:
<mx:Application ....
backgroundImage="@Embed('c:/we/assets/skins/design-empty1.png')"
..>
I have my Flash Global Security Setting set to:
Always trust files from these locations: 'c:\'
When I run the app it tells me 'SecurityError: Error #2147: Forbidden
protocol in URL @Embed('c:/we/assets/skins/design-empty1.png')' - See below
for full details.
Additionally, this error was not present yesterday, and to the best of my
knowledge I have not made any changes to anything.
I have other PNGs embedded for button skins, and they are now throwing
errors.
How do I fix this?
thanks
tom
SecurityError: Error #2147: Forbidden protocol in URL
@Embed('c:/we/assets/skins/design-empty1.png').
at flash.display::Loader/_load()
at flash.display::Loader/load()
at
mx.preloaders::DownloadProgressBar/loadBackgroundImage()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\preloaders\DownloadProgressBar.as:1274]
at
mx.preloaders::DownloadProgressBar/createChildren()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\preloaders\DownloadProgressBar.as:876]
at
mx.preloaders::DownloadProgressBar/calcScale()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\preloaders\DownloadProgressBar.as:1185]
at
mx.preloaders::DownloadProgressBar/show()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\preloaders\DownloadProgressBar.as:1134]
at
mx.preloaders::DownloadProgressBar/initProgressHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\preloaders\DownloadProgressBar.as:1470]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.preloaders::Preloader/appProgressHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\preloaders\Preloader.as:450]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.core::UIComponent/dispatchEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9156]
at
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:646]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8565]
at
mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8508]