And actually, thet example is old, and there are some new requirements
for it:
>From an earlier post:

 

The latest version of the Flash Player, 9.0.124.0, contains security
changes that will break your WebService calls.  There is a lot of info
available about this, but here is a quick fix.  NOTE: This example is
insecure.  Consult with a security expert, or become one yourself,
before working with a production environment.

Add this to your crossdomain.xml file:

<allow-http-request-headers-from domain="*" headers="*" />

Again, the wildcards are not good for a production environment.  But if
you just need to get coding again, this will work.

An additional FYI: this change happened earlier than the current
version, don't know exactly when, but you will also need this (or a more
secure version) in your crossdomain.xml file:

        <site-control permitted-cross-domain-policies="master-only"/>

I do not know really what it means, but it lets me work.

If you need to understand this stuff, the information is available. Here
is a summary link:

http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_
update.html

And here is a link to the big whitepaper.  It was way over my head.

http://www.adobe.com/devnet/flashplayer/articles/flash_player_9_security
.pdf

-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of ekomaj
Sent: Friday, October 03, 2008 3:15 PM
To: [email protected]
Subject: [flexcomponents] Re: Error #2044:-Web Application

you need a crossdomain.xml file in the ROOT of your website.
basically, this is a way to make sure that your flash application is 
authorized to access the website.

here is a sample of what can be in this file.
this sample uses the * as a wildcard to say any domain can access.

if you want to restrict it, put in an actual domain in place of the *
<?xml version="1.0"?>
<cross-domain-policy>
    <allow-access-from domain="*"/>
</cross-domain-policy>


--- In [email protected], "saint_zodiac" 
<[EMAIL PROTECTED]> wrote:
>
> Well after a few weeks of coding and debugging and trying out some
> stuff I thought I do a website run and see where I am in how this
> looks and runs. Well to start off not so good.
> 
> Error #2044: Unhandled securityError:. text=Error #2048: Security
> sandbox violation:
> [L=http://saint-michael.trap17.com/flex/layout/Trap172.swf]
http://saint-michael.trap17.com/flex/layout/Trap172.swf[/L]
> cannot load data from
> [L=http://www.trap17.com/forums/index.php?act=rssout&id=6.]
http://www.trap17.com/forums/index.php?act=rssout&id=6.[/L]
> at Trap172/loadXML()[C:\Documents and Settings\Michael\My
> Documents\Flex Builder 3\Trap172\src\Feed1.as:9] at
> Trap172/___Trap172_Application1_initialize()[C:\Documents and
> Settings\Michael\My Documents\Flex Builder
> 3\Trap172\src\Trap172.mxml:3] 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.core::UIComponent/set
> processedDescriptors()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\
> core\UIComponent.as:1215] at
> mx.core::Container/createComponentsFromDescriptors()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\
> core\Container.as:3499] at
> mx.core::Container/createChildren()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\
> core\Container.as:2582] at
> mx.core::UIComponent/initialize()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\
> core\UIComponent.as:5341] at
> mx.core::Container/initialize()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\
> core\Container.as:2519] at
> mx.core::Application/initialize()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\
> core\Application.as:847] at Trap172/initialize()[C:\Documents and
> Settings\Michael\My Documents\Flex Builder
> 3\Trap172\src\Trap172.mxml:0] at
> mx.managers::SystemManager/
[L=http://www.adobe.com/2006/flex/mx/internal::childAdded()
[E:\dev\3.1.0\frameworks\projects\framework\src\mx\
> managers\SystemManager.as:1639]http://]
http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\
> managers\SystemManager.as:1639][/L] at
> mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\
> managers\SystemManager.as:2498] at
> mx.managers::SystemManager/
[L=http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()
[E:\dev\3.1.0\frameworks\projects\framework\src\mx\
> managers\SystemManager.as:2344]http://]
http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()
[E:\dev\3.1.0\frameworks\projects\framework\src\mx\
> managers\SystemManager.as:2344
> 
> so I know I am doing wrong in exporting this and so I want someone 
to
> look at my coding and seeing what I can do to first fix that error 
and
> two clean up any coding and what not. I know in Firefox it doesn't
> even display the iframes and the root of the problem is the RSS feed
> for some strange reason
> 
> Here is the link to the source code itself
> 
> http://saint-michael.trap17.com/flex/layout/srcview/
> 
> and the live version here
> 
> http://saint-michael.trap17.com/flex/layout/Trap172.html
> 
> Any help is appreciated free of charge of course if you want to
> contact me through IM archangel.michael.a[at]gmail.com or
> saint-michael[at]hotmail.com
>



------------------------------------

Yahoo! Groups Links





Reply via email to