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

  • SEARCH
  • Home
  • 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 8197979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:51:17+00:00 2026-06-07T05:51:17+00:00

Working in FlashBuilder, I build a mobile AS3 application that uses a Loader to

  • 0

Working in FlashBuilder, I build a mobile AS3 application that uses a Loader to display a local SWF file. It masks the loader so it only shows a 640×480 window. This worked fine using an old SWF file (a Flixel game, non-Stage3D).

I then tried it with a Stage3D-enabled SWF file. This failed to run, because the application was not set to run in the ‘direct’ renderMode (it had been in auto up until this point). This allowed the application to run, but the SWF file now ignores the Loader’s mask and displays across the entire stage.

Is it not possible to mask Stage3D SWFs when loaded in this way? The loading looks like so:

        public function FlixelTest()
    {
        super();

        stage.align = StageAlign.TOP_LEFT;
        stage.scaleMode = StageScaleMode.NO_SCALE;
        Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;

        myLoader.x = (stage.fullScreenWidth-640)/2;
        myLoader.y = (stage.fullScreenHeight-480)/2;

        var url:URLRequest = new URLRequest("stage3dswf.swf"); // in this case both SWFs are in the same folder
        myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadProdComplete);
        myLoader.load(url);    // load the SWF file

        addChild(myLoader);
    }

    private function loadProdComplete(e:Event):void{
        var gameMask : Shape = new Shape;
        gameMask.graphics.beginFill(0xffcc00);
        gameMask.graphics.drawRect(myLoader.x,myLoader.y,640,480);  
        gameMask.graphics.endFill();
        myLoader.content.mask = gameMask;
    }           
  • 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-06-07T05:51:18+00:00Added an answer on June 7, 2026 at 5:51 am

    As you can read in Adobe’s documentation on Stage3D, the special Stage3D layers are located “behind” the regular stage used for 2D content.

    Since any mask applied within the 2D stage exists in a different display list, there is no way to use 2D masks on Stage3D content. If at all possible, the only way to get similar results is to use 3D layers and alpha masks within the Stage3D context.

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

Sidebar

Related Questions

I'm working with FlashBuilder 4.6 to develop Android app. In the application there is
I'm working on a very graphic-heavy application which uses content from a bunch of
I'm working on my first ever AIR application with flashbuilder - just so you
Hi, I have been working on a Flex Mobile application using Flash Builder 4.6.
Working on a mobile app that needs to use a public API for accessing
Working with an undisclosed API, I found a function that can set the number
I'm working in flashbuilder 4 (flex4?), and am being asked to create the client-side
I'm working on a build script in the Flash Builder version of Eclipse. This
I am working on a full screen kiosk application in Flex 4/Air 2 using
HEllo, i try to do that in FlashBuilder (FlexProject) protected function btn_detail_view_clickHandler(event:MouseEvent):void { CurrentState=Statistiques

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.