Do you have crossdomain.xml?  There in fact might be a cross-scripting
issue.  Check out the security whitepapers on www.adobe.com.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Bjorn Schultheiss
Sent: Wednesday, March 14, 2007 5:35 PM
To: [email protected]
Subject: Re: [flexcoders] Remote AVM1 swfs not able to execute code?

 

Hey Alex,

 

I don't want to bother you too much,

but i am working o this now and appreciate your time.

 

I've read everything.

 

no code is executed on the proxy running on the remote domain.

 

The behavior displayed suggested flex prevents any code on the swf from
the remote domain executing.

 

 

example

 

flex (domainA) loads flash (domainB)

flash has a textfield id=displayText, with its text set to 'foo' and
some code in frame1 with

 

 

function init() {

            displayText.text = 'bar'

}

init()

 

if proxy is running on domainA displayText displays 'bar', if on domainB
displays 'foo'.

 

 

 

go figure.

 

 

Bjorn

 

 

On 15/03/2007, at 10:39 AM, Alex Harui wrote:





 

Did you make the right allowDomain call?  Read up on LocalConnection
security in the doc on flash.net.LocalConnection.

 

-Alex

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Bjorn Schultheiss
Sent: Wednesday, March 14, 2007 4:09 PM
To: [email protected]
Subject: Re: [flexcoders] Remote AVM1 swfs not able to execute code?

 

Essentially thats what i have.

 

In a nutshell the flexria(domainA) > localcon > flashproxy(domainB) >
loadClip > flashasset (domainB)

 

The problem is flashproxy when on domainB does not execute any code.

 

when flashproxy is on domainA it runs fine.

 

 

 

do i need a second flashproxy, 1 on domainA and 1 on domainB.

 

 

Bjorn

 

 

 

 

 

On 15/03/2007, at 8:07 AM, Alex Harui wrote:






 

Don't have time to look at the code, but AVM1 swfs are always sandboxed,
so you can't access them from Flex2.  Other folks have created proxy
swfs in Flash 8 that listen to the Flex2 swf via local connection and
call the original swf's code.

 

________________________________

From: [email protected] [mailto:flexcoders <mailto:flexcoders>
@yahoogroups.com] On Behalf Of Bjorn Schultheiss
Sent: Tuesday, March 13, 2007 11:59 PM
To: [email protected]
Subject: [flexcoders] Remote AVM1 swfs not able to execute code?

 

Hi,

I have a flex app that loads in avm1 swf assets and displays them as 
thumbnails.
In these thumbnails we also wish to be able to control their 
timeline, ie, stop and start.

The current setup is this.
"domainA"
Flex 2 RIA

"domainB"
Flash 8 player

"domainB"
Flash 8< assets

we load in the "flash 8 player" into the "flex 2 ria" via Loader,
and then pass a reference to the "flash 8< assets" url from the "flex 
2 ria" to the "flash 8 player" via localconnection.
The "flash 8 player" then loads the "flash 8< assets" in through 
MovieClipLoader.

(disclaimer, This actually works, when everything is on domainA).

When "domainA flex 2 RIA" loads in "domainB flash 8 player" i get 
Sandbox errors.
If i set the Loader's.loaderContext.securityDomain to currentDomain i 
do not get the errors,
Except NONE OF THE CODE ON "FLASH 8 PLAYER" EXECUTES.

I need to get the "flash 8 player" init code to execute.

please help.

I have supplied example code.

http://jupiter. <http://jupiter.qdc.net.au/domainstest/main.html>
qdc.net.au/domainstest/main.html
right click for view source

regards,

Bjorn

 

 

 

 

 

 

 

Reply via email to