Resize window/Movie Clip

Hi All,
I have a movie clip that contains a swf file in my .FLA file . How can i enable the movie clip so that when the screen is resized either bigger or smaller, the movie clip enlarges/shrinks accordingly.
Any help would be greatly appreciated
Cheers
Sean

Think i have cracked it. If I change the settings in "Publish settings" to percent and specify 100% this works a treat!
Cheers

Similar Messages

  • Is this possible in flash CS3 or later to resize a movie clip but not its childern

    Hi
    I want to make a movie clip inside another on, and when I
    resize the outer one by code or manually, the inner on should keep
    it size as I created it first?
    If this possible please give me the code for that (AS2.0 and
    AS3.0)
    thanks a lot.

    Hi,
    I am not sure so I will just give some some "ideas" you can
    try:
    1) can you assign a "variable" to the size attribute? like
    mclip.size=myvariable;
    and then changing it?
    2) can you use something to "record" the current size of the
    "inside movie clip" like StoringVariable=this.size;
    and then call it again later?
    3)can you siply not "reassign" the size two times?
    like for one "button click:
    on (release)
    movieclipparent.size=something;
    movieclipinside.size=something else;
    I think its definitely possible...
    Have a look at the Keyword "_parent" or "this" for example...
    or "_root.moviclip.movieclip"

  • Resize a movie clip

    Hi,
    Here is the scenario:
    I have a document with the following dimentions:  1000x700 px. In Scene 1 I have a movie clip called mc_master. Inside mc_master I have all the other elements (buttons, movie clips, graphics, etc.)
    I need to resize the whole document vertically, so in Scene 1 I resized the document to 1000px x 850px. This created a 150px empty space in the bottom of the document. I wanted to resize mc_master to include this space (basically mc_master should cover the whole document). However, when I selected mc_master and modified its height property all elements inside stretched instead of just including the blank space at the bottom.
    To simplify the question: is there a way to enlarge a movie clip without distorting the element inside it? I am assuming that I can create a new movie clip with the new dimentions in Scene 1 and then copy all the elements from mc_master inside the new clip, but I wondered if there is a better method of handling this situation?
    Thank you,
    Daniel D.

    Thank you meqlomor,
    This is what I was looking for.
    Daniel D.

  • Resize attached movie clip

    Hi,
    I have a movie clip to which I attach several others always
    at the same depth so one replaces the other. I was trying to change
    the size of the attached movies by setting the ._width and ._height
    properties and also by using the xscale without any luck. I finally
    experimented with a tutorial example and got it to work and saw
    that the only difference between the code in the example and my own
    was the depth which I had set to 1 and the tutorial had set to 0. I
    changed my depth to 0 and it worked.
    I didn't see anything specifying that the depth had to be 0
    and believe I am still missing something. If anyone cna help me
    figure out what's going on I would appreciate it.
    Thanks
    Chris

    From the location of the code, the relative path to newSlide
    is
    full_mc.newSlide as newSlide is in full_mc.
    Thus you want:
    function updateStage() {
    full_mc.attachMovie(mySlide, "newSlide", 0);
    full_mc.newSlide._width = 561;
    full_mc.newSlide._height = 421;
    full_mc.newSlide._x = 0;
    full_mc.newSlide._y = 0;
    Also note that you can do:
    full_mc.attachMovie(mySlide, "newSlide",
    0,{_x:0,_y:0,_width:561,_height:421});
    Look up attachMovie for the optional initObect
    parameter.

  • How can I load an external SWF into a movie clip that's inside other movie clip?

    Hi.
    I creating my first flash (actionscript 3.0) website but I'm
    stuck with a visual effect I want to create.
    I have a window on my website called contentWindow. Every
    time you click a button this window is supposed to leave the stage,
    load the requested content and return to the stage.
    The sliding window is a movie clip with 83 frames, 21 to
    enter the stage, 21 to leave the stage again, 20 for nothing (its
    just to simulate the loading time) and 21 to return to the stage.
    Now my goal is, when the user clicks on a navigation button,
    the window exits the stage, loads an external SWF with the content,
    and then returns to the stage.
    I've the "window" movie clip with an instance name of
    "contentWindow". Inside there is another movie clip with an
    instance name of "contentLoader". The content that the user
    requested should appear inside the "contentLoader".
    Now, when the contentWindow leaves the stage, I get this
    error message:
    quote:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at rwd_fla::MainTimeline/trigger()
    If I switch
    "contentWindow.contentLoader.addChild(navLoader);" for
    "contentWindow.addChild(navLoader);" it works fine, but the
    external SWF doesn't move with the window.
    How can I load an external SWF into a movie clip that's
    inside other movie clip?

    Hi,
    Recently, I have been putting together a flash presentation.
    And I am just wondering if the following might help you, in your
    communication with the said swf file:
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    onComplete);
    function onComplete(event:Event):void
    event.target.content.thinggy_mc.y -= 100;
    Not the best example, but this allows you to target a mc
    within an external swf file. I think if you look up this code, you
    will have an answer ;)
    Kind Regards,
    Boxing Boom

  • Movie Clip / Browser Window Resize?

    Hello Everyone,
    I was wondering if anyone knew of a way that you could make a
    single movie clip in your .swf react to the current width of the
    browser window, when its loaded.
    I would like to use this specific piece of code to
    dynamically center an "enter" button on a website.
    Thank you in advance

    If you set the properties of your .swf to 100% width and
    height your movie will automatically fill the browser regardless of
    resolution. Note if your using a colored background for your web
    page you will see white striping down each side of your movie. just
    set the param for bgcolor to what ever you need it to be
    Kevin

  • Movie clip will not "resize"

    Hello Forum,
    I am baffled by something i "created". I have a swf file,
    that has 3 containers (aka movieclips).
    my first container (cleverly named "container") gets an
    attached movie clip beginning in frame 1 of the root timeline.
    I also have a clip on my stage (called "NavigationPane").
    This is a movie clip as well. This is dragged to the stage at the
    design mode.
    My clip NavigationPane has an instance name
    ("navigaionpane"). This also has a border that gets sized
    dynamically at run time.
    My stage size is 640x525, and my resize for the
    navigationpane is 640x480. so far so good. If I run the swf file
    from flash player all works fine (or so it seems).
    My challenge is when I embed the swf file in an html page,
    and set the swf file to a smaller size (512x420 for the "stage"),
    the clip plays ok and at my desired size. I am using code
    like this to "resize" the swf object:
    <script type="text/javascript">
    <!--
    writeDocument('<object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
    scale="exactfit" width="512" height="420" ID="Captivate1">'+
    '<param name="movie" value="Module1-4Buttons.swf">'+
    '<param name="quality" value="high">'+
    '<param name="loop" value="0">'+
    '<embed src="Module1-4Buttons.swf" width="512"
    height="420" loop="0" quality="high" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash"
    menu="false"></embed>'+
    '</object>');
    //-->
    </script>
    <noscript>
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
    width="512" height="420" ID="Captivate1">
    <param name="movie" value="Module1-4Buttons.swf">
    <param name="quality" value="high">
    <param name="loop" value="0">
    <embed src="Module1-4Buttons.swf" width="512"
    height="420" loop="0" quality="high" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" menu="false"></embed>
    </object>
    when the clip starts to play the size show as 512x420 (swf
    stage size is 640x525).
    I have code (actionscript) set at about 1/2 way thru clip to
    resize the nav pane to 640x480. when the code runs to resize the
    nav pane - the html sizing seems to be bypassed, and I get a piece
    of the stage in my 512x420 "window" in my html file.
    It seems that the resize overrides the html code. should I
    bite the bullet and just resize everything for my 512x420 size?
    thanks,
    eholz1

    ok I seem to have made some progress, but also stepped back
    at the same time. I exported it as flv in premiere 2.0, and
    imported to flash 8 as embedded video. bottom line quickly, it now
    plays two times and stops, so thats better. :) however all of my
    control buttons stopped working. I did instantiate the flv as
    -video-, but the scripts shown above no longer work. It also
    autoplays at load, so in publish settings I told it not to, but
    without the buttons working I cannot get it to play at all. Chuckle
    chuckle. So if autoplya, it plays twice, but my buttons do not work
    at all, if no autoplay, it can do nothing as the buttons do not
    work.
    I am surprised the buttons do not work as the instance is
    still video and I did not change anything. Ah so much I do not
    know. Can you nudge me along a little further. I sure appreciate
    yours and anybodys help as I try to get out of kindergarten.

  • How can I get my movie clip to resize according to screen size?

    I have a movie clip (startMenu); inside it there are buttons, text, and graphics. This is a game I am making, and it will be played on different screen sizes of Android. This is the code I have so far:
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT
    startMenu.addEventListener(Event.RESIZE, resizeLayout);
    function resizeLayout(e:Event):void
        setPosition();
    function setPosition():void
         startMenu.x = (stage.stageWidth - startMenu.width) / 2;
            startMenu.y = (stage.stageHeight - startMenu.height) /2;
    When I run it on different phones using debugging, it locks on the left hand corner, but does stretch out to fit the whole screen. What should I do?

    try changing
    stage.scaleMode = StageScaleMode.NO_SCALE;
    to
    stage.scaleMode = StageScaleMode.EXACT_FIT;
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/StageScal eMode.html

  • HOW TO CAPTURE DIGITAL VIDEO CLIPS, OPTIONALY WITH WINDOWS MOVIE MAKER

    I want to capture video clips and save them on disk, when a certain event occurs.If possible I prefer to do it with labview only. Optionaly to execute a record command on windows movie maker, save with arbitrary file name, and go back to standby mode for the next clip.

    Do you have a camera along with the IMAQ hardware? Then, the easiest way is probably using the IMAQ VIs to acquire frames and create avi files out of them. There is some example code on how to grab images using the imaq hardware.
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E1DB56A4E034080020E74861&p_node=DZ52490&p_source=external
    Generating the avi files is fairly straightforward once you know how to acquire images. Lookup the help on the "IMAQ AVI" VIs.
    If you have a camera hooked up through USB, you can try the documentation on the following link. I have never used labview with usb cameras though.
    http://digital.ni.com/public.nsf/allkb/274A74A901399D0486256F32007295F9
    Prakash K

  • Windows Movie Maker - no sound on QT video clips

    I'm trying to combine QuickTime video clips (downloaded from Casio camera) into one movie, using Windows Movie Maker (Vista). All the clips have sound when I open them in their folder but after importing the clips in to MovieMaker, there is no sound. How do I import these clips so that their sound is also there? I have no problem with other video clips, only those saved as QT.
    Thanks

    >Any advice?
    1st - post a link so others may check
    2nd - post a screenshot of your export settings so others may see what you are doing
    A screen shot works well to SHOW people what you are doing http://forums.adobe.com/thread/592070?tstart=30

  • My desktop IMac OSX 10.6.8 : IMovie '11: Trying to upload a home movie clip from my Panosonic camera model PV-DV203D. I've had this camera several years, and used it with Windows desktop. Now trying to work with my Mac. I have a USB cable, both ends fit,

    My desktop IMac OSX 10.6.8 : IMovie '11: Trying to upload a home movie clip from my Panosonic camera model PV-DV203D. I've had this camera several years, and used it with Windows desktop. Now trying to work with my Mac. I have a USB cable, both ends fit, but iMovie '11 does not recognize it. Is there a driver fix for this?

    What kind of Mac to you have?  This camera is a tape based DV one that connects best with firewire and I cannot tell if your Mac has firewire.  If your mac *does* have firewire, get a camcorder firewire cable and try again.
    ETA:  Oops, I am pretty sure that all the "desktop iMacs" have firewire, so you should be good to go.  You will probably need a cord that goes from FW800 to your camcorder.

  • Firefox hangs and will not allow me to access other programs running when I resize a pop up window, move a pop up window, accidentally right click flash content.

    Firefox hangs and will not allow me to access other programs running when I resize a pop up window, move a pop up window, accidentally right click flash content.
    == This happened ==
    A few times a week
    == Not sure when it statrted

    Hi.
    When this happens, please press CTRL+SHIFT+ESC and see how much RAM and CPU Firefox is using. If they're sky high, then... Well, that kind of issues are, unfortunately, more common and the we'd like. Thankfully, 99% of the cases are very easy to solve. However, you do need to diagnose what your exact problem is. Do this:
    #run Firefox in safe-mode to disable all extensions and plugins. If this fixes your issues, be them with RAM or CPU usage, then you know it's a problem with plugins or extensions. Proceed to number 2. If safe-mode doesn't fix the issues, then read bellow, after this list;
    #update all extensions and plugins in your Firefox. If this doesn't solve the issues, proceed to the following number;
    #disable all extensions and plugins in your Firefox (not running safe-mode). Being certain that, as in safe-mode, the problems you're having have gone away, enable one plugin at a time. You should be certain that you WANT that plugin to be enabled, so keep your overall number of plugins as low as possible. When you encounter the problems, you know you've found a problematic plugin, so disable it for good. Keep enabling all plugins (except problematic ones) until you've gone through them all.
    #enable one extension at a time. Again, be certain that you WANT that extension to be enabled, so keep your overall number of extensions as low as possible. When you encounter the problems, you know you've found a problematic extension, so disable it for good. Keep enabling all your extensions (except problematic ones) until you've gone through them all;
    #you're done! You've fixed your problems with problematic add-ons.
    Ok, if disabling all extensions and plugins through safe-mode didn't work to bring Firefox's CPU and RAM usage to good levels, then you have different issue. The most likely scenario is that you have a third party software running on your computer that is messing with Firefox. Do as follows:
    #do a virus/malware check on your computer. If this doesn't fix it, proceed;
    #disable all software running in the background that you don't want to have running in the background (in windows, this is done by pressing WINDOWS+R in your keyboard, typing "msconfig" (without the commas) and pressing enter. Now, under the "Startup" tab, you can uncheck the software you don't want, and reboot your system for changes to take effect. If you're unsure of what software you want running, ask someone with more experience). If this doesn't fix you issues with Firefox, proceed;
    #check your firewall/antivirus/security suite for enabled functions/features that you don't want and/or may be conflicting with Firefox. You'll find that these features are most likely tied to Internet Security features, such as link scanners or URL checkers and the like. If you're not sure they are conflicting with Firefox, simply try to disable to see whether or not that's true. As long as you don't browse the web with your antivirus completely off and your firewall completely turned off, there should be no problems. If this doesn't solve the issues, proceed to the following number;
    #check your operating system security options, mainly advanced options that are not configured by default. While it's very unlikely that this may be the cause of the problem (after all, it's the last item on the list), it's remotely possible. If this doesn't do it, I'm out of ideas. Except make sure you've followed my instructions correctly.

  • (bug?)Movie clip contains an object with a z value will not edit the object in place, it goes into a seperate window.

    When a movie clip contains an object with a z value, I can not edit the object in place, it goes into a seperate window.
    This changes the vanishing point relative to the movieclip instead of the stage (allong with everything else).
    This makes it very hard to keep track of where the movieclips will end up when actualy playing the animation.

    I should have explained my situation a little better. I have a machine that's made up of a number of parts, some of them are fairly large and some are quite small. When a user clicks on a part, I want to center that part on the screen and then move whole machine toward the screen until the selected part either fills the screen (for the larger parts) or the part bumps up against the front clip plane (for the smaller parts).
    I didn't think of checking for a collision with the ViewPlatform's TG, thanks for mentioning that. I wasn't sure how the ViewPlatform's location relates to the clipping plane, but I'll dig into it. I'm still learning how the ViewingPlatform, the image plate, and the clipping planes all relate to each other.

  • Movie clip resize not working when image is loaded

    Hello,
    I'm having some strange luck in building an image slide
    show. I load the image paths into an array from an XML
    page and then step through the array elements w/ forward and
    back buttons.
    I have an empty image clip on the stage where I create an
    empty movie clip inside each time a new image is loaded. I load the
    image into the second movie clip like this:
    [code]
    _root.picsPage_mc.mc_pic_loader.mc_individual_pic_loader.unloadMovie();
    _root.picsPage_mc.mc_pic_loader.createEmptyMovieClip(
    'mc_individual_pic_loader', 1 );
    _root.load_movie_and_stop(
    _root.picsPage_mc.mc_pic_loader.mc_individual_pic_loader,
    _root.photo_array[_root.photo_index].image,
    _root.picsPage_mc.mc_pbar, 'regular_load');
    [/code]
    The load_movie_and_stop function is as follows:
    [code]
    function load_movie_and_stop( target_mc:MovieClip,
    movie_clip_to_load:String, p_bar:MovieClip, action:String )
    mc_loader._width = 0;
    mc_slider_bar.mc_drag_pan._x = 0;
    if( action != 'simple_load' )
    p_bar._visible = true;
    p_bar.bar._width = 0;
    var mclListener:Object = new Object();
    mclListener.onLoadStart = function( target_mc )
    if( action != 'simple_load' && action !=
    'regular_load' ){ target_mc.stop(); }
    if( action == 'load_and_play' ){ target_mc.play(); }
    mclListener.onLoadInit = function( target_mc )
    _root.resize_movie_clip(target_mc, 160, 120, 250, 190);
    if( action == 'load_and_stop' ){ target_mc.stop(); }
    mclListener.onLoadProgress = function( target_mc )
    if( action != 'simple_load' )
    percentLoaded = Math.floor( (
    target_mc.getBytesLoaded()/target_mc.getBytesTotal() )*100);
    p_bar.bar._xscale = percentLoaded;
    p_bar.txt_percent = percentLoaded + "% loaded.";
    mclListener.onLoadComplete = function( target_mc ){
    p_bar._visible = false; }
    var my_mcl:MovieClipLoader = new MovieClipLoader();
    my_mcl.addListener(mclListener);
    my_mcl.loadClip( movie_clip_to_load, target_mc );
    }//___endFunc___
    [/code]
    After the image is loaded into the movie clip, I then resize
    the image to be a specific width.
    The image resizing is done w/ this function:
    [code]
    function resize_movie_clip(clip_loader_name:MovieClip,
    max_width:Number, max_height:Number )
    orig_width = clip_loader_name._width;
    orig_height = clip_loader_name._height;
    aspect_ratio = orig_width / orig_height;
    if( (orig_width > max_width) || ( orig_height >
    max_height ) ) // If either dimension is too big...
    if( orig_width > orig_height ) // For wide images...
    new_width = max_height;
    new_height = new_width / aspect_ratio;
    else if( orig_width < orig_height )
    new_height = max_height;
    new_width = new_height * aspect_ratio;
    else if( orig_width == test_height )
    new_width = max_width;
    new_height = max_width;
    else { trace( "Error reading image size."); return false; }
    else { new_width = orig_width; new_height = orig_height; }
    clip_loader_name._width = Math.round(new_width);
    clip_loader_name._height = Math.round(new_height);
    [/code]
    Now, 98% of the time this works perfectly, but there is some
    certain times where the image resizing is completely ignored and
    the image gets loaded as it's normal size.
    Can anyone see why the image sizing get's ignored in some
    instance?
    Thanks for any help,
    Clem

    Found the solution that worked (used ._xscale and ._yscale
    instead of ._width and ._height
    [code]
    function resize_movie_clip(clip_loader_name:MovieClip,
    max_width:Number, max_height:Number, center_offset:Number )
    if( (clip_loader_name._width > max_width) || (
    clip_loader_name._height > max_height ) ) // If either dimension
    is too big...
    if( clip_loader_name._width > max_width )
    _root.picsPage_mc.txt_test = "func if 1";
    clip_loader_name._width = max_width;
    clip_loader_name._yscale = clip_loader_name._xscale;
    if( clip_loader_name._height > max_height )
    _root.picsPage_mc.txt_test = "func if 2";
    clip_loader_name._height = max_height;
    clip_loader_name._xscale = clip_loader_name._yscale;
    else { new_width = orig_width; new_height = orig_height; }
    [/code]

  • Preventing a movie clip from resizing

    Hello:
    How can I prevent a movie clip from resizing while continuing
    to allow the main movie to resize.
    If this is impossible to do, knowing that would also be
    helpful information.
    Thank you in advance for any assistance offered,
    MyMorgaine

    Make an Album of the Photos and Videos and put them in the order you want. Then make a slideshow of that album.
    Regards
    TD

Maybe you are looking for

  • Why does my Mac Air when on the internet the window just freezes when loading?

    MacBook Air 13, 1.8 GHz Intel Core i5, 4 GB 1600 MHz DDR3, Macintosh HD, Intel HD Graphics 4000 1024 MB, OS X Yosemite 10.10.3 When connected to the internet things run pretty smoothly, then when I change sites or load another window it sometimes sta

  • Changing Host Name in OCS 10.1.2

    I have Installed OCS 10.1.2 on RedHat Linux AS 4.5 (x86) on HP-Proliant DL 180 G5 Server. I want to configure Apache Server in OCS to launch a web site. Can anybody guide me with the Apache Configuration, I have tried but as my site name and Host Nam

  • Gamers Club Unlocked membership cancelled one year early and without notice

    Hello.  I was a GCU member with the old program, and upgraded to the new with the 30 dollar two year extension to membership in November 2013.  My membership showed to be active until 6-5-2016, two years after my prior GCU membership expired.  Yester

  • Can I put a mobile viewer (for CCTV ) Into iphone ?

    I used Dopod PDA to open the mobile viewer software and view my house CCTV system. Now I change to use iphone. I want to know can I input the software into the iphone or not ? Or any app can support the mobile viewer software ?

  • Viewing the physical query in OBIEE

    In the NQQuery.log file the physical query executed on the database is not logged. I have changed the logging level of the user to "2" in the Administration Tool. What else is needed to view the physical query?