Old Articles - 6 years, 3 months ago - 0 Comments
System.security.allowDomain
This undocumented method grants permission for the specified domain(s) to access objects and variables in the flash movie that calls the allowDomain method. This property had to be implemented because of the changes made to the Security Sandbox in the Flash 6 Player…
I have two movies, ‘a.swf’ and ‘b.swf’, ‘a.swf’ is located on www.flashguru.co.uk server and ‘b.swf’ is located on www.macromedia.com server, for ‘a.swf’ to be able to access the contents of ‘b.swf’, ‘b.swf’ has to make a call to the allowDomain method as follows:
System.security.allowDomain('http://www.flashguru.co.uk');
The domain can be formatted in numerous ways, the same different formats that the loadVariables, loadVariablesNum, XML.load and LoadVars.load methods accept:
- http://www.domain.com
- http://domain.com
- domain.com
- http://IpAddress
You can pass multiple domains to the method as arguments.
This method has been documented in the Macromedia Flash MX Actionscript Dictionary Errata.
Note: This is an old article!
Please be aware that the content of this article may no longer be accurate and the links contained within could be broken.
Update Notifications
You can add our RSS feed to your favorite feed reader or recieve an email when a new article is posted by entering your email address below.
FLASH EXPERTS
- Andre Michelle
- Aral Balkan
- Big Spaceship
- Chafic Kazoun
- Colin Moock
- Craig Swann
- Erik Natzke
- Grant Skinner
- Jesse Warden
- John Grden
- Keith Peters
- Lee Brimelow
- Lord Alex
- Mario Kingemann
- Matt Voermn
- Ralph Hauwert
- Richard Leggett
- Trevor McCauley
FLASH COMPONENTS
- AFComponents
- Components Network
- Extend Studio
- Flash Relief
- Flash Store
- Flashden
- Flashloaded
- Ghostwire
- Image Vue
- Jumpeye
- Page Flip Component
- Slideshowpro
FLASH VIDEO
- Akamai
- FFMPEG
- FlashComGuru
- Flashstreamworks
- FLV Player
- FLVMDI
- flvPlayerPro
- FLVTool2
- Influxis
- JW FLV Player
- Vital Stream
FLASH RESOURCES
- Actionscript.org
- Adobe Labs
- Developer Center
- Flash Interface
- Flash Player Statistics
- Flashkit
- Kirupa
- MDM Zinc
- OSFlash
- PaperVision3D
- SWXFormat
- Tweener
SPONSORS
More In Actionscript
- Adobe MAKE SOME NOISE
- Undocumented Actionscript 3
- BitmapData.loadBitmap gone in AS3
- Actionscript 3 - New Capabilities
- Flash 8 - setTimeout

