Solved

Questions about System.security.allowDomain

Posted on 2007-03-20
1
176 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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

772 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

9 Experts available now in Live!

Get 1:1 Help Now