Solved

Questions about System.security.allowDomain

Posted on 2007-03-20
1
192 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
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 how to record live broadcast.
Suggested Courses

636 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