Solved

Questions about System.security.allowDomain

Posted on 2007-03-20
1
180 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do I convert a CS4 FLA file to CS6? 1 864
Download slideshow or picture elements 16 424
blocked plugin flash 5 111
Install adobe flash plugin for Firefox win 7 9 68
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
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…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

910 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now