all groups > flash actionscript > january 2007 >
You're in the

flash actionscript

group:

URGENT! Cross domain SWF controll problem


URGENT! Cross domain SWF controll problem Philip C
1/2/2007 10:11:46 PM
flash actionscript:
Hi!
I need to deliver my stuff in a few hours so I realy realy need help!!!

I have one SWF on a domain, it loads different SWF animation files stored on
another domain.
They load fine, but Im not allowd to controll the SWF animations useing
gotoAndPlay etc.
It works when I run everything local on my machine or if I run the main SWF
localy and
load the animations from a domain online. I have checked so all frames are
loaded and Im using
"System.security.allowDomain" but I still cant controll them.

Please if anyone knows how to solve this. Please let me know!

/Philip
Re: URGENT! Cross domain SWF controll problem LuigiL
1/2/2007 10:14:59 PM
Re: URGENT! Cross domain SWF controll problem soupycafe
1/2/2007 10:48:38 PM
yes, include this crossdomain.xml on your server and you are fine.


<?xml version="1.0"?>
<!-- http://www.foo.com/crossdomain.xml -->
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
Re: URGENT! Cross domain SWF controll problem Philip C
1/2/2007 10:54:05 PM
Thanks for the reply, i have tried the Crossplatform file, but the problem
still remains. The problem does not seem to be actually loading the SWF, They
load but I cant controll them.

As soon as the animation is loaded it will wailt for a short while before it
is ment to start playing. But myLoadedSWF.gotoAndPlay(2); does not work. But it
does if I run the main SWF localy and have only the animations online. I can
get information about the SWF though, such as how many frames it has got etc.
Re: URGENT! Cross domain SWF controll problem LuigiL
1/2/2007 11:14:02 PM
[quoted text, click to view]
Then scripting between the swf's still isn't allowed. Take a look at:
http://www.adobe.com/devnet/flashplayer/articles/flash_player_8_security.pdf
and specifically the part 'Developer Controls' on page 30.
Re: URGENT! Cross domain SWF controll problem Philip C
1/2/2007 11:41:44 PM
Thanks a million times LuigiL, that solved the Problem and saved my Skin.
Re: URGENT! Cross domain SWF controll problem LuigiL
1/3/2007 9:48:28 AM
AddThis Social Bookmark Button