flash actionscript2 as2 and sandbox fix getURL

Post Reply
darknkreepy3#
Site Admin
Posts: 247
Joined: Tue Oct 27, 2009 9:33 pm

flash actionscript2 as2 and sandbox fix getURL

Post by darknkreepy3# »

So, you might have something like I made

top_menu.fla(swf) that loads
menu.fla(swf)

the top_menu.swf loads the child swf and then the child tries to:
getURL("aboutUs.php");

no way. wait? didn't you put:

Code: Select all

System.security.allowDomain("*");
in menu.fla and render to menu.swf? yes? still doesn't work?

menu.swf is a child loaded into top_menu.swf, so while you can:

1. (flash IDE) run menu.swf and a page pops up
2. (flash IDE) run top_menu.swf and then menu.swf still pops up a page by loading your browser
3. load top_menu.swf right in the browser http://127.0.0.1/htdocs/site1/top_menu.swf it works fine NOT in HTML (embed)

you cannot:
1. embed into HMTL your top_menu.swf and then load child menu.swf, and ask menu.swf to 'getURL('aboutUs.php');

You need this in your main timeline for each *.fla file:

Code: Select all

System.security.allowDomain("*");
voila. now, do it in AS3 and stop using AS2 :)
Post Reply