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 575609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:57:32+00:00 2026-05-13T13:57:32+00:00

I wonder how you can put a fullsize background image to a website using

  • 0

I wonder how you can put a fullsize background image to a website using Flash, similar to how http://www.zugspitze.de does.

I can copy the HTML code but what does the flash document looks like?

Thanks for your help. 🙂

  • 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-13T13:57:32+00:00Added an answer on May 13, 2026 at 1:57 pm

    Something like this should work. Basically, you want to listen for the when the stage is resized, then change the width/height of your image so that it matches in at least one dimension.

    package {
    
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.geom.Rectangle;
    
        public class BackgroundImage extends Sprite {        
            private var _imageHolder:Sprite = new Sprite();
    
            public function BackgroundImage() {
                addChild(_imageHolder);
                // load or attach image to _imageHolder.
                // if image is loaded externally, use the event for it's completion to call startResize, otherwise use the ADDED_TO_STAGE event.
                addEventListener(Event.ADDED_TO_STAGE, startResize, false, 0, true);
            }
    
            private function _startResize($evt:Event):void {
                removeEventListener(Event.ADDED_TO_STAGE, startResize);
                stage.addEventListener(Event.RESIZE, _setScale, false, 0, true);
                setScale(null);
            }
    
            private function setScale($evt:Event):void {
                var _stageRectangle:Rectangle = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
                if (_imageHolder.width / _stageRectangle.width > _imageHolder.height / _stageRectangle.height) {
                    _imageHolder.height = _stageRectangle.height;
                    _imageHolder.scaleX = _imageHolder.scaleY;
                } else {
                    _imageHolder.width = _stageRectangle.width;
                    _imageHolder.scaleY = _imageHolder.scaleX;
                }
    
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wonder how can I create a shadow similar to the one found in
I wonder if I can execute some programs for different cmd's using .bat file.
I wonder if I can put mc:Ignorable=d d:DesignWidth=640 d:DesignHeight=480 in StaticResource , is that
I wonder how I can put a unit of Google AdSense under the article
I wonder whether someone can help me please. I've put together this page, which
I wonder whether someone can help me please. I'm trying to put together a
I wonder whether someone can help me please. I've put together this page which
I wonder whether someone can help me please. I've put together the script below
How can I put an <img> next to a <div> so the image vertically
I wonder whether someone can help me please. I'm trying to put together a

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.