Skip to main content
Participant
April 17, 2007
Answered

loading .swf files across domains

  • April 17, 2007
  • 1 reply
  • 254 views
i made web banners with the intent that the shell being the initial swf, could pull an external swf file from a remote site.

view here:

http://www.anthonythomas.com/duplicolorespn/

the main .swf file has to be under 30k, which it is. now the other .swf files load when you rollover the buttons. this method fulfills the 30k requirement on the advertisers side - also allows the creative to have higher res images/swf files hosted on our site/side.

in testing it locally, it all works great...

but when i moved the .swf file to

http://www.justinhale.com/test/

to test it -

the files hang up when you mouse over the buttons - is there a chance you could check out my source?

here:

http://www.justinhale.com/duplicolorbanner.fla

i'd really appreciate any help this forum could offer.

i checked out the security settings. security.allowDomain,
not sure if i'm using it correctly?

thank you,

jh.

additionally i've tried:

using a crossdomain.xml file with both listed domains, and wildcard settings:

seems not to be the issue: i placed a crossdomain.xml file at every level - the animation is still hanging up on the mouse rollouts - anyone else have any suggestions?

here is my crossdomain.xml file:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM " http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="www.espn.com" />
<allow-access-from domain="espn.com" />
<allow-access-from domain="justinhale.com" />
<allow-access-from domain="www.justinhale.com" />
</cross-domain-policy>

still confused as to why it's doing this...
This topic has been closed for replies.
Correct answer justinhale
the problem was fixed!

here is the solution:

loadPix(""); is unnecessary since it unloads automatically the previous movie when loading a new one.

the solution was provided by calwen over at flashvalley.com.

thanks for everyones time and effort on this one. :-)

1 reply

Participant
April 17, 2007
it seems when the file is not local, it hangs up on the unload/rollout button function, could someone take a look at my source perhaps?
justinhaleAuthorCorrect answer
Participant
April 18, 2007
the problem was fixed!

here is the solution:

loadPix(""); is unnecessary since it unloads automatically the previous movie when loading a new one.

the solution was provided by calwen over at flashvalley.com.

thanks for everyones time and effort on this one. :-)