users@glassfish.java.net

RE: crossdomain issue on embedding flex into a portlet

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Thu, 9 Jul 2009 10:44:16 -0400

http://livedocs.adobe.com/flex/gumbo/html/WS2db454920e96a9e51e63e3d11c0bf69084-7ea6.html

in shockwave test harness page change allowScriptAccess of "sameDomain" to "always"
    AC_FL_RunContent(
        "allowScriptAccess","sameDomain",
     ..............
    )
to
    AC_FL_RunContent(

        "allowScriptAccess","always",
..........
   )


if you use embed change the allowScriptAccess of 'sameDomain' to 'always' e.g.
<embed name='SendComplexDataTypes.mxml.swf'
    src='NameOfShockwave.mxml.swf'
    allowScriptAccess='sameDomain'
height='100%' width='100%' flashvars=''/>

to:
<embed name='SendComplexDataTypes.mxml.swf'

    src='NameOfShockwave.mxml.swf'

    allowScriptAccess='always'

height='100%' width='100%' flashvars=''/>


Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Thu, 9 Jul 2009 06:39:30 -0700
> From: glassfish_at_javadesktop.org
> To: users_at_glassfish.dev.java.net
> Subject: crossdomain issue on embedding flex into a portlet
>
> I am embedding a flex swf object on my portlet. And my swf tries to invoke a service on my glassfish server. So I have set crossdomain policy as well by putting a crossdomain.xml in docroot of my domain. But still when my swf tries to access the service I see "Security error accessing url" error. My swf is working fine when embedded in an html outside the application. It is invoking the service perfectly. Please help.
> [Message sent by forum member 'jpgmr' (jpgmr)]
>
> http://forums.java.net/jive/thread.jspa?messageID=354886
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>

_________________________________________________________________
Insert movie times and more without leaving Hotmail®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009