# 100% flash background stretch

**URL:** <https://forum.kirupa.com/t/100-flash-background-stretch/329110>\
**Category:** flash\
**Created:** [July 21, 2012, 5:42pm UTC](https://forum.kirupa.com/t/100-flash-background-stretch/329110 "2012-07-21T17:42:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![umbbberto](https://avatars.discourse-cdn.com/v4/letter/u/eada6e/32.png) [@umbbberto](https://forum.kirupa.com/u/umbbberto)\
**Post date:** [July 21, 2012, 5:42pm UTC](https://forum.kirupa.com/t/100-flash-background-stretch/329110/1 "2012-07-21T17:42:20Z")

</div>

hi folks, thanks all in advance for the help (new to the forums!)

I made a 100% flash background stretch, the file main.swf, as sitemap for my site…I used flash cs5 (as3.0)+AC\_RunActiveContent.js…so I have these files: main.fla, main.html, main.swf and Main.as.  
This is Main.as’s code:

```auto

package

{
    import flash.display.MovieClip;
    import flash.text.TextField;
    import flash.events.Event;
    
    public class Main extends MovieClip
    {
        public function Main()
        {
            init();
            
            checkResize();
        }
        
        private function init():void
        {
            stage.frameRate=31;
            
            bg_mc.x=0;
            bg_mc.y=0;
            bg_mc.width=stage.stageWidth;
            bg_mc.height=stage.stageHeight;
            
            clip_mc.x=stage.stageWidth/3.5;
            clip_mc.y=stage.stageHeight/2.9;
            
            clip_amministra.x=stage.stageWidth/1.6;
            clip_amministra.y=stage.stageHeight/2;
                        
        }
        
        private function checkResize():void
        {
            stage.addEventListener(Event.RESIZE, resizeStage);
        }
        
        private function resizeStage(event:Event):void 
        {
            init();
        }
        
    }
}

```

what I’m not able to do: I need to turn the instances clip\_mc and clip\_amministra, in the file main.fla they are MovieClip symbols, into links to my site’s pages.

Hope you can help me!
