Solved

Questions about System.security.allowDomain

Posted on 2007-03-20
1
183 Views
Last Modified: 2008-02-01
we have a flash 6 swf that uses System.security.allowDomain

currently we are getting the value dynamically

var mydomain = "www.mydomain.com";

so System.security.allowDomain (_root.mydomain);

we are expecting an upgrade to flash 7 very soon and do not want to
have to change the javascript

now version 7 does not accept www.mydomain.com as the same as pics.mydomain.com

and so we must explicitly pass the correct and full domain from
javascript once we upgrade

the question is this

does flash 7 read www.mydomain.com the same as mydomain.com?

we know that www.mydomain.com is not the same as pics.mydomain.com
but we need to know if www.mydomain.com is the same as mydomain.com?
0
Comment
Question by:ray-solomon
1 Comment
 
LVL 23

Accepted Solution

by:
Zeffer earned 500 total points
ID: 18761372
No..the strings defining the domain must be identical..but you could define both together..

var mydomain = "www.mydomain.com";
var mydomain1 = "mydomain.com";
System.security.allowDomain (_root.mydomain, _root.mydomain1);

Z
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question