External SWF gets resized

I'm using the code below in a movieclip in Flash CS3 to
import an external swf into my project. However, every time I
upload the site to the server (
http://www.kimandbrett.com),
when I click on Gallery, the Gallery.swf is stretched out & the
image is too big. I tried uploading the same exact thing to
http://www.personal.kent.edu/~nglase/FlashSite/index.html
& it works just fine. The site that is not working is hosted by
GoDaddy. Are there any server settings that might be causing it to
behave differently?
Thanks,
Natalie

stage.StageScaleMode.NO_SCALE;
/* put this line in all your code */
The entire Flash application is fixed, so that it remains
unchanged even as the size of the player window changes. Cropping
might occur if the player window is smaller than the content.

Similar Messages

  • Loaded external SWF gets blurry fonts/bitmaps

    Hi all
    When i load an external swf file it looses quality and
    renders blurry. But the swf itself (the external one) looks
    perfectly fine standalone. Now i ask myself, is this really a
    flashbug or what the heck is it?
    Because i wrote an elearning player wich references hundreds
    of this files, its not very funny to see the quality dropping. To
    get some meat for you, i created a small site, wich should make the
    problem much clearer:
    Click here and
    explore the strange bug
    If anybody has some useful information about it, i am more
    than glad to hear it!
    tks for all the fish and goodbye
    roger

    How was the swf generated? If you were using Camtasia Studio,
    there are
    issues with using Flash 8 player.
    Lon Hosford
    www.lonhosford.com
    Flash, Actionscript and Flash Media Server examples:
    http://flashexamples.hosfordusa.com
    May many happy bits flow your way!
    "StevenMcQueen" <[email protected]> wrote in
    message
    news:e5mu9e$dmd$[email protected]..
    Hi all
    When i load an external swf file it looses quality and
    renders blurry. But
    the
    swf itself (the external one) looks perfectly fine
    standalone. Now i ask
    myself, is this really a flashbug or what the heck is it?
    Because i wrote an elearning player wich refences hundert of
    this files,
    its
    not very funny to see the quality dropping. To get some meat
    for you, i
    created a small site, wich should make the problem much
    clearer:
    <a target=_blank class=ftalternatingbarlinklarge
    href="
    http://lux.to/tests/ppt2swf/index.html">Click
    here and explore the
    strange bug</a>
    If anybody has some useful information about it, i am more
    than glad to
    hear
    it!
    tks for all the fish and goodbye
    roger

  • Get external swf width height

    Hi,
    I'm am trying to load an external swf file using a different swf that is on a different domain. I have noticed that it is possible to use addChild on the external swf, but when I try to get its contents width and height using contentLoaderInfo I get a security sandbox error.
    It seems it is possible to fix it by using  Security.allowDomain("*") and Security.allowInsecureDomain("*") in the external file.
    And now it's get tricky, the external swf file is a file that users upload to my site so I don't have control on the code so I can't add the "allowDomain" part.
    The second swf (the host file that loads the external file) is a file that I let others to embed on their site.
    The intresting thing is that when I share the host swf on facebook there is no problem, and I don't even need to add the code for "allowDomain" on the external file.
    I it makes a different, I use HTTPS protocol to access to the external swf.
    I tried to load the crossdomain.xml file, but it didn't help.
    What can I do? the only data I need to get on the external swf is its width and height to scale it to the host file.
    Thank you

    Thank you.
    Now it looks i am getting close but not exacly there.
    Everytime I get near something else doesn't work properly.
    Now I get the dimension after two things:
    I added 'secure="false"' to the https' crossdomain and added LoaderContext to when I load the external event:
    context.securityDomain = SecurityDomain.currentDomain;
    context.checkPolicyFile = true;
    Now you probably ask what's the problem.
    well I have no idea why, but it looks like the external swf file I load (which is as2, but I still didn't check if it matters) keeps on jumping between its first frame and second frame ( The swf has two frames). If you having hard time to imaging what I mean, lets  say this jumping between frames is really not recommended for people with Epilepsy.
    It has a stop() action, but sadly the player doesn't care.
    let me remind you that if I only addChild the Loader (without the context)  it looks fine, but I need the width and height to resize the swf.
    anyone knows what can cause this?
    and thx again martinjamesroberts1 for the link, it put me on the right track.

  • Loading external swf / resizing

    Hi,
    I'm loading external swf into my main project for sub sections to keep size down.  My main project is 1280 x 700px in size.
    In those sub-section I have some content with a scroller.
    When I load the swf and check the size its ok. But as soon as the scrollbars is initialized scroll bar is initialized the size of the external includes the text that goes off-stage for the sroller.
    I can resize it propotionaly when after its loader because i have the correct values. But if the user resizes his browser I get the wrong values and my resize code doesnt work because it's height is now incorrect.
    So is there a way to not include the off-stage elements to count as the height ?

    either hard-code that loaded swf's stage size or use code to determine that size in a frame before any off-stage content is added.

  • How can I get a preloader to launch a main (external) swf file, and have the main file remove the preloader once it's fully loaded?

    Using Flash MX, ActionScript 2:
    I’ve been struggling for several weeks, trying to get a preloader to work on a large (~80 MB) photo portfolio file (using the method where the preloader is on frame 1 of the file, and when loading is completed, it jumps to the content).  I’ve done countless tutorials, and none seem to work on my presentation.  I even tried downloading a trial version of CS4 so I could export every one of the file’s library movie clips and images so that they load on Frame 2 (a feature MX doesn’t have).  It takes about 20 seconds for the .exe to load from a CD, and no matter which preloader construction I use, it always seems to appear in the last few seconds before the movie loads completely.  During the initial wait time, there’s no indication that anything is happening:  no hourglass on the mouse, and not even a blank screen. This is only true for the first time that the file is loaded from the CD; on subsequent loads, the file must already be in RAM, because it loads within a few seconds. 
    I decided that I’m going to try and make the file which the user clicks on (one named Windows_Portfolio.exe or another called Mac_Portfolio.hqx) the preloader so that it would be tiny, and would load instantly.  I want that file to launch the external huge portfolio file (renamed files.swf), keep track of its loading progress, and cycle through a slideshow (10 thumbnail images that transition into each other over 100 frames) proportionally, based upon the percentage of files.swf that had been loaded.
    I assume that there should be a loadMovie() or a loadMovieNum() command on the preloader’s timeline to launch files.swf, and that the initial code of files.swf should have some sort of this._parent._visible=false or other way of deleting the preloader on level0.  Can anyone explain the steps to me, or direct me to a good Flash MX tutorial that explains how to launch another external swf from a preloader .exe, keep track of its load progress, and delete the preloader .exe once the external swf had been loaded?
    Also, I’ve read that, using this construction on a CD, every file has to be in the same place, and that I can’t nest files.swf in a folder named “files,” and reference it with files/files.swf.  Is this true?
    Thanks for any assistance you can offer.

    If you know JavaScript (ECMA Script) then you might be able to get it done applying a for loop and a random function
    to the for loop if you know how to get a page-loaded request into JavaScript.
    But an easier solution, if you know ActionScript 3.0, and if your SWF's don't need to be recoded and can load into a "container" SWF would be to create a master FLA file that loads your SWF's in a random fashion using Math.random() as a multiplier, though you won't see much variation if you only have 2-3 SWF's to load--if you had more than that then you would begin to benefit from the random function's capabilities.  In ActionScript 3.0 use the load() method along with addChild() to load the SWF and add it to the stage.  You will be able to search for specifics on how to code the FLA properly by using Flash's Adobe Help tool and also using an internet search.
    -markerline
    P.S. Once you have the master FLA coded you can Publish it to an SWF and an HTML and if the container/master SWF needs to be in a page with other content you can simply copy and paste the object and embed tags for the container SWF from the published HTML into any place on your master HTML that you need it to reside.  You can then use CSS to control placement of the SWF object if it is in a div tag.

  • Loading external SWF with masked content - get size of masked area

    I am loading an external swf using the SWFLoader component. The swf that is being loaded is masked so that only a portion is being shown. However, when it's loaded the actual size of the swf (loader.content.width && loader.content.height) is the complete swf including the masked area. Therefore, the loaded swf does not display properly in the itemrenderer Is there a way to to grab the size of the just the masked area as opposed to getting the size of the entire swf's contents (area not masked)?
    One item to note that is complicating the issue, is that these are swf files that have already been created and there are many of them. In some instances, the size of the stage matches up with the size of the masked area. In other instances, the stage is larger (or possibly smaller) than the masked area movieclip as well as possibly the actual size of the movieclip (w/o the mask).
    I am currently loading the external swf in using a Loader. Once loaded, I make a copy (screen shot) of the swf by creating a bmp of the loader.content.This is done as I don't want to have any animations being shown on screen at this moment. I am setting the size of the bmp using using loader.content.width & loader.content.height. I then set the SWFLoader.source to the bitmap.

    Here's the code I am using to load the swf:
         <fx:Script>
                <![CDATA[
            protected  function application1_applicationCompleteHandler(event:FlexEvent):void {
                 loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onSWFLoaded);
                 loader.load(new URLRequest("c:\\Flex Testing\\FA warns Mr. Jones.swf"),  context);
            private function  onSWFLoaded(event:Event):void {
                bmData=new  BitmapData(loader.content.width, loader.content.height, true, 0x990000);
                 bmData.draw(loader.content, new Matrix());
                bmp=new  Bitmap(bmData);
                swfLoader.source=bmp;
                 addElement(swfLoader);
                with (swfLoader)
                    setStyle('verticalAlign', "middle");
                     setStyle('horizontalAlign', 'center');
                     verticalCenter=0;
                    horizontalCenter=0
                     scaleContent=true;
                    maintainAspectRatio=true;
                     addEventListener(MouseEvent.CLICK,onClick,false,0,true)
                     useHandCursor = true;
                    buttonMode = true;
                     width=200;
                    height=200;
                 loader.unload()
                loader=null;
               ]]>
    </fx:Script>

  • External SWF Disappears on Browser resize

    I am loading external swf's inside content_2 and when i resize my browser the external content OR content_2 disappears. Can someone help me as to what I need to do to stop this. I've tried adding an onresize function but that does not work. Here my as3 code:
    scroll_sb2.scrolling("content_2", "area_2", 0.18); // Range from 0.00 to 1.00
    stage.addEventListener(Event.RESIZE, resizeHandler);
    function resizeHandler(e:Event):void
    scroll_sb2.x = stage.stageWidth - scroll_sb2.width - 2;
    scroll_sb2.y = 0;
    scroll_sb2.height = stage.stageHeight;
    area_2.x = stage.stageWidth/2 - area_2.width/2;
    area_2.y = stage.stageHeight/2 - area_2.height/2;
    area_2.y = 0;
    area_2.height = stage.stageHeight;
    content_2.x = stage.stageWidth/2 - content_2.width/2;
    content_2.y = stage.stageHeight - content_2.height;  // comment this line if you whant to remove the carrusel affect on resize browser
    backgroundMC.x=0;
    backgroundMC.y=0;
    backgroundMC.width=stage.stageWidth;
    backgroundMC.height=stage.stageHeight;
    downbg_mc.x = 0;
    downbg_mc.y = 0;
    downbg_mc.width = stage.stageWidth;
    stage.align = StageAlign.TOP_LEFT;     
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.dispatchEvent(new Event(Event.RESIZE));
    var mem:String = Number ( System.totalMemory / 2048 / 2048 ).toFixed ( 2 ) + 'Mb';
    trace ( mem ); 

    Guys can you PLZZZ Help me out with this. I've been researching this ALL day with no solution, I'v
    e posted this in THREE forums and I havent gotten ONE response. Plz assist me!
    ALSO..This is the action script that's in my scrollbar movie:
    var sd:Number;
    var sr:Number;
    var cd:Number;
    var cr:Number;
    var new_y:Number;
    var drag_area:Rectangle;
    var scroll_content:MovieClip;
    var scroll_content_area:MovieClip;
    var scrolling_speed:Number; // 0.00 to 1.00
    //.............. SCROLL BUTTON .............//
    scroll_scroller.buttonMode = true;
    addEventListener ( MouseEvent.MOUSE_OVER, mouse_over );
    addEventListener ( MouseEvent.MOUSE_OUT, mouse_out );
    function mouse_over ( event:MouseEvent ) {
      scroll_scroller.alpha = 0.7;
    function mouse_out ( event:MouseEvent ) {
      scroll_scroller.alpha = 1;
    //.............. END scroll button...........//
    function scrolling( ct:String, ct_area:String, speed:Number ):void
    scrolling_speed = speed;
    if( scrolling_speed < 0 || scrolling_speed > 1 ) scrolling_speed = 0.50;
    scroll_content = parent[ct];
    scroll_content_area = parent[ct_area];
    scroll_content.mask = scroll_content_area;
    scroll_content.x = scroll_content_area.x;
    scroll_content.y = scroll_content_area.y;
    scroll_scroller.x = scroll_scrollable_area.x;
    scroll_scroller.y = scroll_scrollable_area.y;
    sr = scroll_content_area.height / scroll_content.height;
    scroll_scroller.height = scroll_scrollable_area.height * sr;
    sd = scroll_scrollable_area.height - scroll_scroller.height;
    cd = scroll_content.height - scroll_content_area.height;
    cr = cd / sd * 1.01;
    drag_area = new Rectangle( 0, 0, 0,scroll_scrollable_area.height -  scroll_scroller.height );
    if ( scroll_content.height <= scroll_content_area.height )
      scroll_scroller.visible = scroll_scrollable_area.visible = false;
    scroll_scroller.addEventListener( MouseEvent.MOUSE_DOWN, scroller_drag );
    scroll_scroller.addEventListener( MouseEvent.MOUSE_UP, scroller_drop );
    this.addEventListener( Event.ENTER_FRAME, on_scroll );
    function scroller_drag( me:MouseEvent ):void
    me.target.startDrag(false, drag_area);
    stage.addEventListener(MouseEvent.MOUSE_UP, up);
    function scroller_drop( me:MouseEvent ):void
    me.target.stopDrag();
    stage.removeEventListener(MouseEvent.MOUSE_UP, up);
    function up( me:MouseEvent ):void
    scroll_scroller.stopDrag();
    function on_scroll( e:Event ):void
    new_y = scroll_content_area.y + scroll_scrollable_area.y * cr - scroll_scroller.y  * cr;
    scroll_content.y += ( new_y - scroll_content.y ) * scrolling_speed;
    // END

  • Getting external swf to stay visible?

    Hi
    I have an external swf that contains a button that controls my main swf's timeline.
    I can get it to navigate fine, but as soon as it navigates, my external swf disappears, because my main swf is no longer on the frame my external swf was imported on.
    How do I get the external swf to stay visible along all the frames of my main swf's timeline?
    Here's the code I use to import the external swf:
    var external_swf:MovieClip;
    var loader:Loader = new Loader();
    var import_me_SWF:URLRequest = new URLRequest("external_mc.swf");
    loader.load(import_me_SWF);
    loader.x = 0;
    loader.y = 0;
    addChild(loader);
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, dataOnLoad);
    function dataOnLoad(evt:Event): void {
    external_swf = MovieClip(evt.target.content);
    Thanks guys.
    Shaun

    SOLUTION:
    Ok - here's a solution I experimented with for anyone that needs a similar fix:
    1. Create a new layer where you would like the external swf to go (in my case, the layer is on the top).
    2. Draw a rectangle (doesn't matter what it is really), convert it to a movieclip symbol, and give it a color effect APLHA of 0 so it's invisible.  Give it an instance name - I named mine 'external_swf_holder'
    3. Adapt the external loader code like this...add 'external_swf_holder' to the beginning of the external clip name, with a dot in between:
    var external_swf:MovieClip;
    var loader:Loader = new Loader();
    var  import_me_SWF:URLRequest = new URLRequest("external_mc.swf");
    loader.load(import_me_SWF);
    loader.x  = 0;
    loader.y = 0;
    addChild(loader);
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,  dataOnLoad);
    function  dataOnLoad(evt:Event): void {
    external_swf_holder.external_swf =  MovieClip(evt.target.content);
    4. That's it.  Now Flash should always keep your swf on the layer that 'external_swf_holder' is on.
    Cheers
    Shaun

  • Stage Resizing on "Clicked" External SWFs

    Hello everyone!
    Thanks for checking this out.
    This has been bugging me for almost a week now. I hope I may find some assistance here. I've Googled for this and everytime I encounter an article with the solution and people saying it worked great for them, I thought it's going to help me too, but didn't. I'm pretty sure I did exactly what was instructed but mine is just weird.
    I hope you can try to look at my files and see what's wrong, anyway this is just a simulation of my real project (which has the same problem) at a very small scale so it should be very easy to look at. I believe it's so easy to solve but I just couldn't nail it. Here's a brief description:
    There's this main.swf that loads two external swfs in a UILoader upon click of the corresponding button. By the way, the code inside the external swfs listens for a stage resize... So, when user clicks on button 1 (named "LOAD 1"), it loads "content1.swf". User decides to resize the window, and layout resizes accordingly (in this case, they all center horizontally). User clicks on button 2 (named "LOAD 2"), it loads "content2.swf". Everything looks fine, apparently. But when user tries to resize the window again, an error pops up in the Output panel...
    Honestly, I've built a new one here at my desktop using var loader:Loader = new Loader(); concept instead of the UILoader Flash component but still no luck. Please, hear me out. I don't think I want to give up.
    Thanks!

    Try this:
    Rename setComp() and resizeComp() in content1 to setComp1() and resizeComp1()
    Rename setComp() and resizeComp() in content2 to setComp2() and resizeComp2()
    Now try resizing and you'll see the error being thrown with the new function names.
    I think your problem deals with unloading your content. You should maybe try to properly unload content1 before loading content2 and vs. versa and see if that fixes your problem. I suspect that the resizeComp2 is still trying to resize an object that doesn't exist on the stage anymore, but the function is still loaded into memory and running. Unloading your swfs might clear this up.

  • Component Loader resizing external swfs

    Hi. Fairly new to Flash. I'm putting together my first full
    Flash site. The tutorial I'm following along with for some
    assistance is written for Flash8, but I'm using CS3. To try to
    minimize differences, I'm doing my files in Actionscript 2.
    I've used an instance of the component Loader to load
    external swfs (my pages) into the content portion of my main swf.
    The problem I've run into is the loaded swfs are showing up at
    different sizes. For ease of layout, the document sizes of the
    external swfs are exactly the same as the mx.controls.Loader
    instance on my main swf. But when they load, one is coming in
    slightly larger than the original size, one nearly a quarter of the
    size it should be. Everything else works.
    In playing around to try to troubleshoot, I made one change
    to my home swf (the external that loads immediately with a
    Loader.contentPath command. This one had been loading slightly
    enlarged), I changed a guide layer so it was a regular layer, no
    longer a guide, then it loaded at the right size. When I changed
    the layer back to a guide, it loaded somewhat enlarged again. I
    tried turning off the guide layer on the other swf that was loading
    small, it didn't help. I'm going nuts trying to figure it out.
    I thought maybe it might have to do with the fact that some
    elements start outside the document frame of the external swfs and
    slide in, so I masked all layers to the size of the document. That
    didn't help. Is there some scale setting for the Loader component
    that I'm not aware of? That would cause the external swf to scale
    up or down to fit the size of the Loader instance?
    Any help would be appreciated. Thanks

    Thanks. I tried a few more searches in Flash's Help for
    Loader scaling and resize and found the scaleContent property, was
    just coming back here to say nevermind and saw your response.
    Sometimes it takes writing out the problem to spark more
    troubleshooting inspiration.
    BTW, changing Loader.scaleContent to false did solve my
    problem. :)

  • Get access instances after load an external swf (bulkLoader)

    The problem: how can I get access to instance items after an external swf  loaded?
    My  code:
    var  containerMC:MovieClip;
    var _bulkLoader:BulkLoader=new  BulkLoader("loader");
    _bulkLoader.add("external.swf");
    _bulkLoader.add("image.jpg");
    _bulkLoader.addEventListener(BulkProgressEvent.COMPLETE,
    _onDesignLoadComplete);
    _bulkLoader.start();
    function  _onDesignLoadComplete(event:BulkProgressEvent):void  {
         containerMC=_bulkLoader.getMovieClip("external.swf");
         addChild(containerMC);
        containerMC.sgMC.addChild(_bulkLoader.getBitmap("image.jpg"));  //<--- here it's working, I understand,  why.
    containerMC.sgMC.addChild(_bulkLoader.getBitmap("image.jpg"));  //<--- here it doesn't works....why?

    Hi,
    I use AS project. I wanted to reach instances out of the function, but it seems there is no solution to do that.
    So I have to put the other codes in an another function called from the handler function. But in this case it will be difficult, but not impossible.
    The solution is:
    var  containerMC:MovieClip;
    var _bulkLoader:BulkLoader=new   BulkLoader("loader");
    _bulkLoader.add("external.swf");
    _bulkLoader.add("image.jpg");
    _bulkLoader.addEventListener(BulkProgressEvent.COMPLETE,
    _onDesignLoadComplete);
    _bulkLoader.start();
    function   _onDesignLoadComplete(event:BulkProgressEvent):void  { //in project this is private function
          containerMC=_bulkLoader.getMovieClip("external.swf");
          addChild(containerMC);
        baseFunc(); //call the other function
    function baseFunc():void {//in project this is private function
        containerMC.sgMC.addChild(_bulkLoader.getBitmap("image.jpg"));  //<--- here it will work

  • How do I get my external swf to load in the release build?

    My external swf loads in the debug build, but not in the release build.  How can this be fixed?
    Thanks,
    Doug

    After exporting the Flex project on my Macintosh, then importing it on my PC, then rebuilding the relase
    build, it works.  Probably some "path" issues between Mac and PC.
    Doug

  • FAQ: How do I load an external SWF file into a parent SWF file?

    A ton of Flash users visit Adobe’s we site every month wondering  about how to load an external SWF file from within another SWF.
    Adobe's own TechNote on the subject attempts to answer the basic question, along with some common follow-up questions, including:
    How do I load more than one SWF?
    How do I load a SWF into a specific location in the display list?
    How do I resize the loaded SWF?
    How do I set its X and Y location?
    Here are some additional resources that elaborate on loading content and on working with the display list:
    Sample files for the above TechNote. A set of 3 FLA and 3 corresponding SWF files, including a parent SWF and 2 SWFs that the parent loads.
    Help > AS3 Developer’s Guide > Loading an external SWF file
    Help > AS3 Developer’s Guide > Loading display content dynamically
    Loading multiple external SWFs within a main SWF – CreativeCow.net forums
    Video tutorial: ActionScript 101 – Episode 6: Adding named objects to the Stage. By Doug Winnie. An example of how to add the loaded external asset to the Stage and modify its location or other properties.
    Video tutorial: Preloading in ActionScript 3.0.  By Lee Brimelow. A slightly more complicated example, showing how to  make the parent SWF display information about the progress of loading  the external SWF.
    Tutorial: Loading and unloading SWFs - FlashAndMath.com
    This article provides several examples of how to communicate between a parent SWF file and the loaded SWF:
    SWF to SWF Communcation via ActionScript 3.0 (by kglad)

    quote:
    Originally posted by:
    NedWebs
    You now seem to want to get rid of the swf once it has loaded
    and played itself thru. To do that you would need to have something
    in the swf itself that triggers its removal in its last frame. The
    following might work...
    MovieClip(this.parent).removeChild(this);
    Unfortunately I couldn't get this to work. I placed it on the
    last frame of the SWF to be called - is that right?
    I am not sure I am doing it correctly...

  • [HELP] Centering External SWF

    I've read dozens of post on this forum as to how to do this, But I cannot get my own to work. I am loading an external swf file into an empty movieclip. I would like the external swf to be centered initially, and after page resize. Can someone PLZ assist me with this!!????
    import flash.ui.Mouse;
    import flash.events.Event;
    import caurina.transitions.Tweener;
    import gs.TweenLite;
    import gs.*;
    import gs.easing.*;
    import net.stevensacks.preloaders.CircleSlicePreloader;  //Steven Sacks preloader
    var preloader:CircleSlicePreloader = new CircleSlicePreloader(); //Steven Sacks preloader
    //////////////////// STAGE ALIGN ALL MC /////////////////////
    stage.align = StageAlign.TOP_LEFT;     
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.addEventListener(Event.RESIZE, onResize);
    function onResize (evt:Event = null) {
    downbg_mc.x = 0;
    downbg_mc.y = stage.stageHeight;
    downbg_mc.width = stage.stageWidth;
    copyright_mc.x = stage.stageWidth/2;
    copyright_mc.y = stage.stageHeight - downbg_mc.height/2 + copyright_mc.height/2;
    preloader.x = stage.stageWidth * 0.5;
    preloader.y = stage.stageHeight * 0.5;
    loaderMC.x = (stage.stageWidth - loaderMC.width) * 0.5;
    loaderMC.y = (stage.stageHeight - loaderMC.height) * 0.5;
    backgroundMC.x = 0;
    backgroundMC.y = 0;
    backgroundMC.width = stage.stageWidth;
    backgroundMC.height = stage.stageHeight;
    btn1_mc.y = btn2_mc.y = btn3_mc.y = btn4_mc.y = 7;
    }  // END onResize
    onResize(new Event(Event.RESIZE));
    ///////////////// END stage align ////////////////////
    addChild(loaderMC);
    function onComplete(event:Event):void {
       if(contains(preloader))removeChild(preloader);          
                TweenLite.to(loaderMC, 1.5, {alpha:1.0, delay:0.0, onCompleteParams:[1.0, loaderMC]});
            loaderMC.x = (stage.stageWidth - loaderMC.content.width) * 0.5;
                loaderMC.y = (stage.stageHeight - loaderMC.content.height) * 0.5;
       addChild(downbg_mc);
       addChild(copyright_mc);
       addChild(btn1_mc);
       addChild(btn2_mc);
       addChild(btn3_mc);
       addChild(btn4_mc);
       addChild(scroller);
       addChild(backgroundMC);
    } // END onComplete

    what's loaderMC?  and TweenLite isn't going to do anything with those oncompleteparams because there's no oncomplete function.

  • Loading External SWF - Problem

    Hi,
    Using MovieClipLoader I want to load external SWFs - and it
    is working fine
    if external swf doesn't have anything outside it's stage,
    otherwise it shows
    everything - that's the problem.
    For example, external swf's stage dimensions are 100x150, but
    it has some
    timeline animation (some objects scrolling through the stage,
    some bouncing
    text animation that sometimes goes off-stage, etc..).
    So when I load this external movie (banner.swf), I can see
    all these objects
    that were bouncing outside this 100x150 area (the stage of
    banner). Even
    more - the size of loaded movie is larger than 100x150px
    (because of these
    off-stage objects that are now visible). This way I'm getting
    positioning
    problems, too.
    var mcl:MovieClipLoader = new MovieClipLoader();
    mcl.loadClip("banner.swf", holder);
    mcl.addListener(listener);
    holder._x = Stage.width/2 - holder._width/2;
    holder._y = Stage.height/2 - holder._height/2;
    Thanks in advance,
    B.

    Hi kglad,
    Does doing that takes only into account width and height of the stage, or also considers off stage items (as in the initial question)?
    I am also looking at this issue and we can't have all the content providers modify their pre-existing flash applications to be displayed in the appropiate scale. We are looking to any of the following:
    find a way to get adobe air/flash to not consider the off stage elements on the width/height we set to the movie.
    find a way to get the stage size from the external movie and use that to auto calculate the resize needed.
    any other alternative that allows to have the same end result, which is loading up the external content at the size we specify and displaying well. We can actually hide content outside the stage, but we still need to know the appropiate scale / size to apply to the movie so what's visible matches the are where we want to show the content.

Maybe you are looking for

  • F150 Dunning creation without increase Dunning level for document Type

    Hellò everybody, I have this request , How I can  do a dunning Letter  and for a specific Document type  , must have always a Dunnng level 1 . I mean do not increase the Dunning Level every time. For istance : Every week we make one dunning run. This

  • Can members in a pool be on different subnets using CSM

    Hello. We have recently been investigating load balancing devices, and were almost set on F5. We then overhauled our core network, including replacing one 4507R with 2 6500's, outfitted with Sup720's and FWSM modules. Now, we are seriously thinking a

  • How do I create a first page?

    I am developping various forms with oracle 10g. I would like to create an entry page, like a home page? Thanks Tiago

  • MacBook Pro DVD Region Settings...

    Hi I have a new MacBook Pro and use the DVD drive quite frequently with different regions. Is there a way to make it so you can have all regions working at once with no limitations? It is so frustrating that there is only 5 times you can change it. I

  • Remove direct update of database table for VBUk and VBRK

    hello, we are updating  database table only for thse two single fields VBRK-FKDAT_RL and VBUK-RELIK using direct UPDATE statements. Could you please suggest some function modules or BAPI ? BDC is not possible as some fields are not editable. Awaiting