Resizing .swf files

Hello,
I recently published two seperate Captivate projects. You can see the work below:
http://extmedia.kaplan.edu/legal/global/images/Legal_Studies1/Legal_Studies1.swf
http://extmedia.kaplan.edu/legal/global/images/LSplaybook3/LSplaybook3.swf
My problem is that one of the files will resize when you drag the browser window, but the other file will not.
Is there a publishing setting somewhere that i missed?
Any help is greatly appreaciated!
Thanks,
Tom

Thank you for your quick response.
I still don't understand why only one of my published projects will resize  . I need both projects to resize because they are being featured in a lightbox and I will need them to stay in a defined size.
Click on the links. One can scale, the other cannot.
Thank you,
Tom

Similar Messages

  • Can we resize swf file created with AIR API in AIR application?

    Hi,
    I created a .swf file with AIR API.
    I want to open and resize it in AIR application. This .swf file taking dimensions as default in which it opens.
    I want to change its width and height.
    Is there any way to change its dimensions?
    Please suggest me the solution.
    thank you

    Loading a Flex WindowedApplication into another is not supported.  However,
    you might be able to access the WindowedApplication and size it.  Sub-Apps
    in AIR should be based on Application, not WindowedApplication.

  • How to resize a SWF file to fit on stage

    Hi everyone,
    I'm fairly new to Flash so please bear with me. I'm trying to resize a SWF file made in InDesign. My Flash application is set at 1920x1080 and the SWF file was made at the same size. I need it to be resized to 1700x956. This is the section of script that relates to the SWF file.
    break;
    case 'fact_btn':
    eventAction = ".../FactSheet.aspx";
    eventLog(eventAction);
    factLoader.load(new URLRequest("FactSheet/HABFactSheet.swf")); //fact.swf
    factLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderCompleteHandler);
    break;
    factLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, loaderCompleteHandler);
    spotlightStageRect.addChild(factLoader);
    spotlightStageRect.visible = true;
    spotlightStageRect.addChild(close_btn);
    close_btn.addEventListener(MouseEvent.CLICK, removeSpotlight);
    I've tried adding in the code below but the stage comes up blank when I run it in Flash. Anyone have suggestions? Also let me know if you need to see more of the script.
    factLoader.width = 1700
    factLoader.height = 956

    you need to execute that resize factLoader code in loaderCompleteHandler

  • Need to resize a SWF file

    i need to resize a swf file thats 800 x 300 down to 600 x 226
    how can i do this without having to set the new parameters in
    the embed tag like this <embed src="banner.swf" height="226"
    width="600"> ..??
    is there a way to resize the whole project when i export the
    swf file or something.
    i made my project a lil to bigger than i needed and have
    already imported a few other swf files into this main banner swf
    project so i need to resize everything down now..
    How can i do this..??

    What format is the file in before you export to SWF?
    What program are you using to convert your file from its
    current form to SWF?

  • Resizing imported swf files...

    I have a movie clip that I want to import a swf file into,
    but the swf is larger than the movie clip's area. I tried using a
    resizing code for importing images that I found, but it makes the
    swf very small. Is there a way to control the size of the imported
    swf?

    I did this recently where I had a backdrop clip that I wanted
    to serve as a 'screen' for jpgs I loaded in. I wanted them to
    resize to the full extent of the background clip and maintain their
    aspect ratio. The backdrop clip could have different dimensions at
    different points in time as well... anyhow this should work with
    swfs same as jpegs.
    So I'll explain it in my context as I don't know exactly
    yours (sorry this might sound a bit complicated because of that).
    #1 If your holderclip is called
    imageHolder and it contains a single clip inside at location
    0,0 called
    imageBackdrop
    #2 You create an emptyMovieClip inside imageHolder and use it
    to load your swf into using a Loader with a listener
    #3 you have some code similar to this in your onLoadInit
    event for the Loader (onLoadInit lets you initialise things like
    size location etc before it displays)
    If you can do something like that then I think you should be
    on the right track for what I think you want to do.

  • Not resizing my file flash.swf

    Hi,
    I would like to know how I can do
    to not resizing my file flash.swf as you can see on the link below
    (I don t want the audi car to become smaller and smaller
    when you make the window smaller it is why I would like
    my file flash.swf always at the same size (same height and same width)
    and the audi car always at the center of the flash file)
    http://s371298467.onlinehome.fr/jc/
    Thanks in advance

    thanks ned
    but if I use fixed size (width:920px and height:350px)
    we can see that the grey ground under the car is no longer going on each both side of the screen.
    http://s371298467.onlinehome.fr/jc/
    I am trying to be more clear lol:
    I would like to have my flash.swf  with a height of 350 px but I would
    like to have my flash.swf always occupying all the space in the width
    between the left side and the right side of the window whatever is the
    size of the window and in the same time I would like to have
    my car always at the width-center of my flash.swf so at the width-center of the window and always at the same size(my car).
    thanks in advance

  • Resize the .swf file

    I've finished my flash site using a resolution of 1024x768: my professor wasn't so happy of a resolution so "high" (even if today is something like standard) since somebody might still have an old monitor with low res.
    Since I really don't want to get a bad vote I wanted to change the resolution to 1000x550 because with that res a 1024x768 monitor still can see everything: then I've exported my .swf file and then into the .HTML file I've changed the width and height fields.
    Is this a "correct" operation? There could be any problem??
    All tips are welcome!

    Select everything on every layer and with the "edit multiple frames" option turned on, scale your content proportionately to 800x600. Don't forget to select everything on the scene before scaling, just checking "edit multiple frames" wouldn't be enough
    Emil Georgiev - Flash & Web Design

  • Swf files appearing in preview (D8) but not n browser after uploading - frustrated!

    Hello,
    I have worked with Flash and Dreamweaver on the side for a
    number of years. We all know that after the recent changes, the way
    it handles object and embed tags has changed to favor Java
    actionscripts instead.
    This code I am about to paste was created using Dreamweaver
    8.02, with transitional (x) html. Now mind you, this is not the
    prettiest piece of code you've ever seen. I now am learning to use
    CSS layouts instead of layers/tables, with php and flash
    integrated. This one example is not the only time I have had this
    problem however.
    I made a silly flash banner (its actually a placeholder for a
    better one I have to develop) for testing purposes and sizing. It
    appears fine in Firefox, and IE6 in the preview mode via
    Dreamweaver. When I upload it all to the site, the flash banner
    does not appear.
    I have tried copying the FLA and SWF files to the root folder
    (the fla, swf, and html files generated are all present), and tried
    a number of variations in the code and parameters to no avail. The
    darn thing just won't appear now. Similarly older pages I have
    created that Dreamweaver now prompts you to "fix the object tag
    that may not work in IE7...etc" have the same issue. If I select
    "go ahead and fix them for me", they are visible in production, but
    gone after uploading.
    Now to remove the possibility that this was a layering or
    parent tag issue of visibility, I created a blank HTML page and
    "insert/media/flash" and stuck the banner in there, then uploaded
    it to my server. It doesn't appear.
    I need help. I have been scouring the web for a few days now
    to no avail and have become quite frustrated with what used to be a
    really easy integration of Flash and html.
    Here is the top chunk of code from the page in question: (the
    page is live with the missing banner here:
    http://www.aeonsolutions.net/shirtworks/Shrtwrks_Homepage.html)
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Shirtworks custom T shirts, silk screening,
    inkjet printing, embroidery, event, club, sport, organization,
    holiday, humor, clothing</title>
    <script src="Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    <style type="text/css">
    <!--
    #Layer1 {
    position:absolute;
    width:999px;
    height:690px;
    z-index:1;
    left: 4px;
    top: 3px;
    margin: 0 auto;
    overflow: hidden;
    background-image: url(Shrtwrks_bkgrnd5.jpg);
    visibility: visible;
    -->
    </style>
    <script type="text/javascript">
    <!--
    function MM_reloadPage(init) { //reloads the window if Nav4
    resized
    if (init==true) with (navigator) {if
    ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
    onresize=MM_reloadPage; }}
    else if (innerWidth!=document.MM_pgW ||
    innerHeight!=document.MM_pgH) location.reload();
    MM_reloadPage(true);
    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr;
    for(i=0;a&&i<a.length&&(x=a
    )&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
    Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
    i<a.length; i++)
    if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
    d.MM_p[j++].src=a
    function MM_findObj(n, d) { //v4.01
    var p,i,x; if(!d) d=document;
    if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for
    (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++)
    x=MM_findObj(n,d.layers
    .document);
    if(!x && d.getElementById) x=d.getElementById(n);
    return x;
    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new
    Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x;
    if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    <link href="CSS/shirtworks.css" rel="stylesheet"
    type="text/css" media="all" />
    <style type="text/css">
    <!--
    #Layer2 {
    position:absolute;
    width:128px;
    height:309px;
    z-index:2;
    left: 8px;
    top: 197px;
    visibility: visible;
    #Layer3 {
    position:absolute;
    width:804px;
    height:457px;
    z-index:3;
    left: 179px;
    top: 215px;
    visibility: visible;
    #Layer4 {
    position:absolute;
    width:1000px;
    height:27px;
    z-index:4;
    left: 4px;
    top: 697px;
    visibility: visible;
    #Layer5 {
    position:absolute;
    width:528px;
    height:150px;
    z-index:5;
    left: 214px;
    top: 11px;
    visibility: visible;
    -->
    </style>
    </head>
    <body
    onload="MM_preloadImages('MenuText/HomePage_over.jpg','MenuText/Artwork_over.jpg','MenuTe xt/Apparel_over.jpg','MenuText/Embroidery_over.jpg','MenuText/Custom_over.jpg','MenuText/D irections_over.jpg','MenuText/AboutUs_over.jpg','MenuText/Contact_over.jpg')">
    <div id="Layer5">
    <table width="533" height="141" border="0">
    <tr>
    <td><script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','dat a','Banner1.html','width','525','height','143','hspace','0','vspace','0','align','middle', 'border','0','title','Banner1','src','Banner1','pluginspage','http://www.macromedia.com/go /getflashplayer','scale','noborder','movie','Banner1'
    ); //end AC code
    </script><noscript><object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
    data="Banner1.html" width="525" height="143" hspace="0" vspace="0"
    align="middle" border="0" title="Banner1">
    <param name="movie" value="Banner1.swf" />
    <param name="SCALE" value="noborder" />
    <embed src="Banner1.swf" width="525" height="143"
    hspace="0" vspace="0" align="middle" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash"
    scale="noborder"></embed>
    </object></noscript></td>
    </tr>
    </table>
    Understanding this change is fundamental in my developing
    process as a designer, and will save my sanity. I appreciate any
    help.
    Mike

    Did you upload this folder?
    <script src="Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "MalikyeMoon" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hello,
    >
    > I have worked with Flash and Dreamweaver on the side for
    a number of
    > years.
    > We all know that after the recent changes, the way it
    handles object and
    > embed
    > tags has changed to favor Java actionscripts instead.
    >
    > This code I am about to paste was created using
    Dreamweaver 8.02, with
    > transitional (x) html. Now mind you, this is not the
    prettiest piece of
    > code
    > you've ever seen. I now am learning to use CSS layouts
    instead of
    > layers/tables, with php and flash integrated. This one
    example is not the
    > only
    > time I have had this problem however.
    >
    > I made a silly flash banner (its actually a placeholder
    for a better one I
    > have to develop) for testing purposes and sizing. It
    appears fine in
    > Firefox,
    > and IE6 in the preview mode via Dreamweaver. When I
    upload it all to the
    > site,
    > the flash banner does not appear.
    >
    > I have tried copying the FLA and SWF files to the root
    folder (the fla,
    > swf,
    > and html files generated are all present), and tried a
    number of
    > variations in
    > the code and parameters to no avail. The darn thing just
    won't appear
    > now.
    > Similarly older pages I have created that Dreamweaver
    now prompts you to
    > "fix
    > the object tag that may not work in IE7...etc" have the
    same issue. If I
    > select "go ahead and fix them for me", they are visible
    in production, but
    > gone
    > after uploading.
    >
    > Now to remove the possibility that this was a layering
    or parent tag issue
    > of
    > visibility, I created a blank HTML page and
    "insert/media/flash" and stuck
    > the
    > banner in there, then uploaded it to my server. It
    doesn't appear.
    >
    > I need help. I have been scouring the web for a few days
    now to no avail
    > and
    > have become quite frustrated with what used to be a
    really easy
    > integration of
    > Flash and html.
    >
    > Here is the top chunk of code from the page in question:
    (the page is
    > live
    > with the missing banner here:
    >
    http://www.aeonsolutions.net/shirtworks/Shrtwrks_Homepage.html)
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    > <title>Shirtworks custom T shirts, silk screening,
    inkjet printing,
    > embroidery, event, club, sport, organization, holiday,
    humor,
    > clothing</title>
    > <script src="Scripts/AC_RunActiveContent.js"
    > type="text/javascript"></script>
    > <style type="text/css">
    > <!--
    > #Layer1 {
    > position:absolute;
    > width:999px;
    > height:690px;
    > z-index:1;
    > left: 4px;
    > top: 3px;
    > margin: 0 auto;
    > overflow: hidden;
    > background-image: url(Shrtwrks_bkgrnd5.jpg);
    > visibility: visible;
    > }
    > -->
    > </style>
    > <script type="text/javascript">
    > <!--
    > function MM_reloadPage(init) { //reloads the window if
    Nav4 resized
    > if (init==true) with (navigator) {if
    >
    ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    > document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
    > onresize=MM_reloadPage; }}
    > else if (innerWidth!=document.MM_pgW ||
    innerHeight!=document.MM_pgH)
    > location.reload();
    > }
    > MM_reloadPage(true);
    >
    > function MM_swapImgRestore() { //v3.0
    > var i,x,a=document.MM_sr;
    for(i=0;a&&i<a.length&&(x=a
    )&&x.oSrc;i++)
    > x.src=x.oSrc;
    > }
    >
    > function MM_preloadImages() { //v3.0
    > var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
    Array();
    > var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
    for(i=0;
    > i<a.length;
    > i++)
    > if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
    > d.MM_p[j++].src=a
    > }
    >
    > function MM_findObj(n, d) { //v4.01
    > var p,i,x; if(!d) d=document;
    >
    if((p=n.indexOf("?"))>0&&parent.frames.length) {
    > d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);}
    > if(!(x=d[n])&&d.all) x=d.all[n]; for
    (i=0;!x&&i<d.forms.length;i++)
    > x=d.forms[n];
    >
    for(i=0;!x&&d.layers&&i<d.layers.length;i++)
    > x=MM_findObj(n,d.layers
    .document);
    > if(!x && d.getElementById)
    x=d.getElementById(n); return x;
    > }
    >
    > function MM_swapImage() { //v3.0
    > var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new
    Array;
    > for(i=0;i<(a.length-2);i+=3)
    > if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x;
    if(!x.oSrc)
    > x.oSrc=x.src; x.src=a[i+2];}
    > }
    > //-->
    > </script>
    > <link href="CSS/shirtworks.css" rel="stylesheet"
    type="text/css"
    > media="all" />
    > <style type="text/css">
    > <!--
    > #Layer2 {
    > position:absolute;
    > width:128px;
    > height:309px;
    > z-index:2;
    > left: 8px;
    > top: 197px;
    > visibility: visible;
    > }
    > #Layer3 {
    > position:absolute;
    > width:804px;
    > height:457px;
    > z-index:3;
    > left: 179px;
    > top: 215px;
    > visibility: visible;
    > }
    > #Layer4 {
    > position:absolute;
    > width:1000px;
    > height:27px;
    > z-index:4;
    > left: 4px;
    > top: 697px;
    > visibility: visible;
    > }
    > #Layer5 {
    > position:absolute;
    > width:528px;
    > height:150px;
    > z-index:5;
    > left: 214px;
    > top: 11px;
    > visibility: visible;
    > }
    > -->
    > </style>
    >
    > </head>
    >
    > <body
    >
    onload="MM_preloadImages('MenuText/HomePage_over.jpg','MenuText/Artwork_over.jpg
    >
    ','MenuText/Apparel_over.jpg','MenuText/Embroidery_over.jpg','MenuText/Custom_ov
    >
    er.jpg','MenuText/Directions_over.jpg','MenuText/AboutUs_over.jpg','MenuText/Con
    > tact_over.jpg')">
    > <div id="Layer5">
    > <table width="533" height="141" border="0">
    > <tr>
    > <td><script type="text/javascript">
    > AC_FL_RunContent(
    > 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    >
    version=7,0,19,0','data','Banner1.html','width','525','height','143','hspace','0
    >
    ','vspace','0','align','middle','border','0','title','Banner1','src','Banner1','
    > pluginspage','
    http://www.macromedia.com/go/getflashplayer','scale','noborder','m
    > ovie','Banner1' ); //end AC code
    > </script><noscript><object
    > classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=7,0,19,0" data="Banner1.html" width="525"
    height="143" hspace="0"
    > vspace="0" align="middle" border="0" title="Banner1">
    > <param name="movie" value="Banner1.swf" />
    > <param name="SCALE" value="noborder" />
    > <embed src="Banner1.swf" width="525" height="143"
    hspace="0"
    > vspace="0" align="middle"
    > pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    > type="application/x-shockwave-flash"
    scale="noborder"></embed>
    > </object></noscript></td>
    > </tr>
    > </table>
    >
    > Understanding this change is fundamental in my
    developing process as a
    > designer, and will save my sanity. I appreciate any
    help.
    >
    > Mike
    >

  • BitmapData draw method doesn't work when the project is published as the .swf file of the web applic

    Hi,
            I am totally confused by this strange error. When I tried using the draw method of BitmapData to draw a movieclip symbol of my project, it seems to work fine locally. However, as I uploaded the published .swf file to my web server and launched it as the plugin of my web application, it failed. The source codes as follows,
    function printscreenClicked():void
         //ExternalInterface.call calls a javascript function to print message1
        var bd:BitmapData = new BitmapData(stage.width,stage.height);
        //ExternalInterface.call calls a javascript function to print message2
      bd.draw(stage);
        //ExternalInterface.call calls a javascript function to print message3
    message3 didn't show at all. Instead, the browser console shows "Uncaught Error: Error calling method on NPObject.". My understanding of this error message is that the .swf is calling something crashing, and I believe that bd.draw(stage)is the crashng method call.
    Also, here is my html embed tag:
        <embed src="/tests/videoplayer.swf" id="flash" quality="high" height="510" width="990" scale="exactfit" name="squambido" align="middle" allowscriptaccess="always" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" style="margin: 0px auto;clear:both;position:relative;"/>
    Can someone help me?

    Thank you for your reply.
    I tried stageWidth and stageHeight, but it still doesn't work.
    The draw() methid is triggered when I clicked a screenshot button in my application as follows,
    ExternalInterface.addCallback("printscreenClicked", printscreenClicked);
    function printscreenClicked():void
         //ExternalInterface.call calls a javascript function to print message1
        var bd:BitmapData = new BitmapData(stage.width,stage.height);
        //ExternalInterface.call calls a javascript function to print message2
      bd.draw(stage);
        //ExternalInterface.call calls a javascript function to print message3
    Would you please give me an example of "waiting for Event.RESIZE is good, or just at least Event.ENTER_FRAME"?
    My real purpose in this application is to capture a snapshot of a streaming video. The video is contained in a movieclip object. I tried stage first since BirmapData.draw() doesn't work when drawing the movieclip on the web site. Do you have any suggestion for this situation? Also, is there any good method to find out what happened if the browser have "Uncaught Error: Error calling method on NPObject."?

  • 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...

  • Is it possible to play a swf file over html, but still be able to click on the html site below?

    I have a website built in html, with normal clickable content - a few buttons scattered around the centre.
    An absolute positioned div sits on top of the site and plays a swf file which moves out of view and stops. I have set everything to transparent and the user can see the site below as it is revealed.
    But once the swf file has moved off screen, none of the content is clickable (as I suppose the flash object is still there).
    I've no idea if this is normal, or if there is a work around so that the user can reach the html content below after the anim has moved out of the way... ?

    I'm sorry I wasn't very clear. When I just try to open the SWF file by double clicking it, it opens in FireFox and it is resized to fit the screen.  When I open the html file that flash provides it looks great, it is the perfect dimensions.  There is probably no way to make the swf file limit it's size when it is opened by itself, I just wanted to hear someone say it.

  • Remove / unload external swf file(s) from the main flash file and load a new swf file and garbage collection from memory.

    I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?
    This is the error message(s) I am receiving: "TypeError: Error #2007: Parameter child must be non-null.
    at flash.display::DisplayObjectContainer/removeChild()
    at index_fla::MainTimeline/Down3()"
    import nl.demonsters.debugger.MonsterDebugger;
    var d:MonsterDebugger=new MonsterDebugger(this);
    stage.scaleMode=StageScaleMode.NO_SCALE;
    stage.align=StageAlign.TOP_LEFT;
    stage.addEventListener(Event.RESIZE, resizeHandler);
    // loader is the loader for portfolio page swf
    var loader:Loader;
    var loader2:Loader;
    var loader3:Loader;
    var loader1:Loader;
    //  resize content
    function resizeHandler(event:Event):void {
        // resizes portfolio page to center
    loader.x = (stage.stageWidth - loader.width) * .5;
    loader.y = (stage.stageHeight - loader.height) * .5;
    // resizes about page to center
    loader3.x = (stage.stageWidth - 482) * .5 - 260;
    loader3.y = (stage.stageHeight - 492) * .5 - 140;
    /*loader2.x = (stage.stageWidth - 658.65) * .5;
    loader2.y = (stage.stageHeight - 551.45) * .5;*/
    addEventListener(Event.ENTER_FRAME, onEnterFrame,false, 0, true);
    function onEnterFrame(ev:Event):void {
    var requesterb:URLRequest=new URLRequest("carouselLoader.swf");
    loader = null;
    loader = new Loader();
    loader.name ="carousel1"
    //adds gallery.swf to stage at begining of movie
    loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
    function ioError(event:IOErrorEvent):void {
    trace(event);
    try {
    loader.load(requesterb);
    } catch (error:SecurityError) {
    trace(error);
    addChild(loader);
    loader.x = (stage.stageWidth - 739) * .5;
    loader.y = (stage.stageHeight - 500) * .5;
    // stop gallery.swf from duplication over and over again on enter frame
    removeEventListener(Event.ENTER_FRAME, onEnterFrame);
    //PORTFOLIO BUTTON
    //adds eventlistner so that gallery.swf can be loaded
    MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
    function Down(event:MouseEvent):void {
    // re adds listener for contact.swf and about.swf
    MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
    MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
    //unloads gallery.swf from enter frame if users presses portfolio button in nav
    var requester:URLRequest=new URLRequest("carouselLoader.swf");
        loader = null;
    loader = new Loader();
    loader.name ="carousel"
    loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
    function ioError(event:IOErrorEvent):void {
    trace(event);
    try {
    loader.load(requester);
    } catch (error:SecurityError) {
    trace(error);
    addChild(loader);
    loader.x = (stage.stageWidth - 739) * .5;
    loader.y = (stage.stageHeight - 500) * .5;
    removeChild( getChildByName("about") );
    removeChild( getChildByName("carousel1") );
    // remove eventlistner and prevents duplication of gallery.swf
    MovieClip(root).nav.portfolio.removeEventListener(MouseEvent.MOUSE_DOWN, Down);
    //INFORMATION BUTTON
    //adds eventlistner so that info.swf can be loaded
    MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
    function Down1(event:MouseEvent):void {
    //this re-adds the EventListener for portfolio so that end user can view again if they wish.
    MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
    MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
    var requester:URLRequest=new URLRequest("contactLoader.swf");
    loader2 = null;
    loader2 = new Loader();
    loader2.name ="contact"
    loader2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
    function ioError(event:IOErrorEvent):void {
    trace(event);
    try {
    loader2.load(requester);
    } catch (error:SecurityError) {
    trace(error);
    addChild(loader2);
    loader2.x = (stage.stageWidth - 658.65) * .5;
    loader2.y = (stage.stageHeight - 551.45) * .5;
    // remove eventlistner and prevents duplication of info.swf
    MovieClip(root).nav.info.removeEventListener(MouseEvent.MOUSE_DOWN, Down1);
    //ABOUT BUTTON
    //adds eventlistner so that info.swf can be loaded
    MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
    function Down3(event:MouseEvent):void {
    //this re-adds the EventListener for portfolio so that end user can view again if they wish.
    MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
    MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
    var requester:URLRequest=new URLRequest("aboutLoader.swf");
    loader3 = null;
    loader3 = new Loader();
    loader3.name ="about"
    loader3.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
    function ioError(event:IOErrorEvent):void {
    trace(event);
    try {
    loader3.load(requester);
    } catch (error:SecurityError) {
    trace(error);
    addChild(loader3);
    loader3.x = (stage.stageWidth - 482) * .5 - 260;
    loader3.y = (stage.stageHeight - 492) * .5 - 140;
    removeChild( getChildByName("carousel") );
    removeChild( getChildByName("carousel1") );
    // remove eventlistner and prevents duplication of info.swf
    MovieClip(root).nav.about.removeEventListener(MouseEvent.MOUSE_DOWN, Down3);
    stop();

    Andrei1,
    Thank you for the helpful advice. I made the changes as you suggested but I am receiving a #1009 error message even though my site is working the way I wan it to work. I would still like to fix the errors so that my site runs and error free. This is the error I am receiving:
    "TypeError: Error #1009: Cannot access a property or method of a null object reference."
    I'm sure this is not the best method to unload loaders and I am guessing this is why I am receiving the following error message.
         loader.unload();
         loader2.unload();
         loader3.unload();
    I also tried creating a function to unload the loader but received the same error message and my portfolio swf was not showing at all.
         function killLoad():void{
         try { loader.close(); loader2.close; loader3.close;} catch (e:*) {}
         loader.unload(); loader2.unload(); loader3.unload();
    I have a question regarding suggestion you made to set Mouse Event to "null". What does this do setting the MouseEvent do exactly?  Also, since I've set the MouseEvent to null do I also have to set the loader to null? e.g.
    ---- Here is my updated code ----
    // variable for external loaders
    var loader:Loader;
    var loader1:Loader;
    var loader2:Loader;
    var loader3:Loader;
    // makes borders resize with browser size
    function resizeHandler(event:Event):void {
    // resizes portfolio page to center
         loader.x = (stage.stageWidth - loader.width) * .5;
         loader.y = (stage.stageHeight - loader.height) * .5;
    // resizes about page to center
         loader3.x = (stage.stageWidth - 482) * .5 - 260;
         loader3.y = (stage.stageHeight - 492) * .5 - 140;
    //adds gallery.swf to stage at begining of moviie
         Down();
    //PORTFOLIO BUTTON
    //adds eventlistner so that gallery.swf can be loaded
         MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
    function Down(event:MouseEvent = null):void {
    // re adds listener for contact.swf and about.swf
         MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
         MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
    //unloads gallery.swf from enter frame if users presses portfolio button in nav
         var requester:URLRequest=new URLRequest("carouselLoader.swf");
         loader = new Loader();
         loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
         function ioError(event:IOErrorEvent):void {
         trace(event);
         try {
         loader.load(requester);
         } catch (error:SecurityError) {
         trace(error);
         this.addChild(loader);
         loader.x = (stage.stageWidth - 739) * .5;
         loader.y = (stage.stageHeight - 500) * .5;
    // sure this is not the best way to do this - but it is unload external swfs
         loader.unload();
         loader2.unload();
         loader3.unload();
    // remove eventlistner and prevents duplication of gallery.swf
         MovieClip(root).nav.portfolio.removeEventListener(MouseEvent.MOUSE_DOWN, Down);
    //INFORMATION BUTTON
         //adds eventlistner so that info.swf can be loaded
         MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
         function Down1(event:MouseEvent = null):void {
         //this re-adds the EventListener for portfolio so that end user can view again if they wish.
         MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
         MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
         var requester:URLRequest=new URLRequest("contactLoader.swf");
         loader2 = null;
         loader2 = new Loader();
         loader2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);    
         function ioError(event:IOErrorEvent):void {
         trace(event);
         try {
         loader2.load(requester);
    }      catch (error:SecurityError) {
         trace(error);
         addChild(loader2);
         loader2.x = (stage.stageWidth - 658.65) * .5;
         loader2.y = (stage.stageHeight - 551.45) * .5;
    loader.unload();
    loader2.unload();
    loader3.unload();
         // remove eventlistner and prevents duplication of info.swf
         MovieClip(root).nav.info.removeEventListener(MouseEvent.MOUSE_DOWN, Down1);
    //ABOUT BUTTON
         //adds eventlistner so that info.swf can be loaded
         MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
         function Down3(event:MouseEvent = null):void {
         //this re-adds the EventListener for portfolio so that end user can view again if they wish.
         MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
         MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
         var requester:URLRequest=new URLRequest("aboutLoader.swf");
         loader3 = null;
         loader3 = new Loader();
         loader3.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
         function ioError(event:IOErrorEvent):void {
         trace(event);
         try {
         loader3.load(requester);
    }      catch (error:SecurityError) {
         trace(error);
         addChild(loader3);
         loader3.x = (stage.stageWidth - 482) * .5 - 260;
         loader3.y = (stage.stageHeight - 492) * .5 - 140;
         loader.unload();
         loader2.unload();
         loader3.unload();
         // remove eventlistner and prevents duplication of info.swf
         MovieClip(root).nav.about.removeEventListener(MouseEvent.MOUSE_DOWN, Down3);
         stop();

  • No sound in swf file

    I need to resize an flv file. I opened it in Flash and embedded it as a movie clip in the timeline. I also embedded into the timeline frame sequence. I was able to resize the file successfully. When I preview publish it as a swf file, it plays with sound in Flash. When I export the clip to a flv file, it doesn't play with sound. I have also tried to convert the flash from swf back to flv using After Effects, but there is no sound either in AE and when I play the converted file in Adobe Media Player. I am stumped on how to get any sounds from this file and appreciate any help I could get.

    Have you asked Maps Marker Pro for support for their product?
    https://www.mapsmarker.com/support/
    Chances are you need specific code for Gecko based browsers, which might need different code than Trident, WebKit, and Blink based browsers use.

  • Importing another swf file into the flash-homepage (swf is a gallery)

    hi there!
    have a problem that i cant resolve myself ..
    i downloaded a free of use gallery from juliuswebdesign.com (this gallery) and i'm trying to load it in my flash site ..
    now, the gallery works if i open it directly (i open the swf file)
    BUT
    when i try to load the external swf file into my site
    loadMovie("image_gallery.swf", box);
    then the movie loads .. the gallery is displayed the message "loading xml file" displays and then when the xml is loaded the message "loading image 1/7" displays and only the first image loads.
    once the first image is loaded it will not be displayed (it remains outside of my swf file .. i can see it when i resize the window) and no other images will be loaded.
    if i open the gallery.sfw file again everything works fine .. the problem is only if i try to load the gallery.swf in another swf ..
    something must be wrong ..
    i tryed to opern the gallery.fla file and copt everything directly in my site and the problem remains the same .. only 1 image loaded and not displayed in the gallery ..
    i'ts like something in my site "blocks" the gallery beeing loaded..
    any suggestions?

    to the gallery's fla add the following and retest:
    this._lockroot = true;

  • How to get the correct size of the loaded swf file?

    final public class main extends Sprite
      public function main()
       loaderInfo.addEventListener(Event.COMPLETE, _onLoadCompleted);
      private function _onLoadCompleted(event: Event): void
       var tw: int = stage.width;
       var th: int = stage.height;
       var tsw: int = stage.stageWidth;
       var tsh: int = stage.stageHeight;   
    Above is my simple as3 project in flex builder 3.
    My screen resolution is 1920*1080, when debugging, the swf is stretched to the full client area of the IE, but the stage.stageWidth is 500 and the stage.stageHeight is 375, both the stage.widht and stage.height are 0, who can tell me why and how to get the right size of the swf file, named the client area size of the IE in this situation?
    Thanks very much!

    The HTML wrapper might resize the SWF later, so wait a frame and check stageWidth/stageHeight again.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

Maybe you are looking for