Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6635923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:07:05+00:00 2026-05-25T23:07:05+00:00

I have two SWFs: a Loader SWF, and a Loaded SWF. I need to

  • 0

I have two SWFs: a Loader SWF, and a Loaded SWF. I need to add the Loaded SWF to the display hierarchy, but I don’t want to give it free access to the stage. It may, for instance, attempt to change the scaleMode, and I don’t want that to happen.

What are some good methods for restricting loaded content’s access to the stage? I may, for instance, want to allow it to access the stageWidth and stageHeight, but not the scaleMode or align. Suggestions?

EDIT: Additional Constraints

I can’t change anything about the Loaded SWF. Both SWFs are in the local-with-file-system sandbox. These SWFs are both Flash Player 10, ActionScript 3, made in Flash Professional. Not AIR, not Flex.

I’d love to be able to implement a proxy class or a getter to somehow intercept calls to the stage, but I don’t believe there is any way to. I don’t believe, for example, that you can subclass the Stage class and use that subclass in place of the normal Stage object referenced by the stage property in all MovieClips. The stage property is read-only, so it can’t be cross-scripted by the Loader to point to something different.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T23:07:06+00:00Added an answer on May 25, 2026 at 11:07 pm

    By default, Flash will not allow a child SWF to access its parent’s properties and methods, so you don’t need to do anything.

    Should you ever want to allow access you need to explicitly allow it using Security.allowDomain()

    If you want the child SWF to access some properties but not others, you can use a sandbox bridge (complicated). Or you can have the child SWF “declare” what it wants to do. For example, add a property such as “requiredStageWidth” to the child. Then have the parent check for the existence of this property – if it’s there, set the stage width, otherwise do nothing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two swfs: application swf p2p client swf that allows to load data
I have two inputs with the same date, but i want to separate the
I have two external .swf's. I need to have the first one played on
Lets say I have two swfs A and B, and at runtime, swf A
I have two arrays of System.Data.DataRow objects which I want to compare. The rows
I have two identical tables and need to copy rows from table to another.
I have two classes, and want to include a static instance of one class
I have five SWF files that are loaded into a main SWF. All five
I have two classes Order and Items I want a method like this class
Have two events: $('body').mouseup(function(e){} and $('.toggle').click(function(e){} I only want one of these to trigger.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.