Resizing a movie loaded with loadMovie()

I'm looking to resize a movie that was loaded with
loadMovie() into a movie clip. Once it's finished playing I want it
to reduce down in size. Any ideas?
loadMovie("test.swf",main_Movie);
main_Movie is the empty movie clip, its a simple rectangle
that is 550 x 400 so it fills the whole stage.
Any ideas, or if you need more info please let me know.
Rob

Rob-
You can scale movie clips by a percentage or resize by
directly manipulating the width and height values.
main_Movie._xscale = 50; //scale width by 50%
-or-
main_Movie._width = 20; //set width to 20 pixels
For more information check:
http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001570.html
I hope that helps.
Sean

Similar Messages

  • Inconsistent loading with loadmovie, whats a trick for this?

    loadMovie(imagePath,"loadImage");
    the imagePath value is dynamically set to an image on the
    server based on the users interaction.
    loadImage is an empty movie clip sitting on that timeline
    that receives the loadMovie command.
    one frame after the loadMovie command I set the width and
    height. four frames after that I have a stop();
    the user does a few things, and the timeline that contains
    the loadmovie reruns itself using the new imagePath to pull in a
    new movie. This has about a 25% failure rate when it first starts
    up. Even if im reloading the same image, or if i flip back and
    forth between loading different images, eventually one image will
    not load up anymore, and then the other image wont either, and
    eventually none of the images load. If i close the whole thing down
    and relaunch it, im good to go again for a few times but then
    eventually nothing loads up again. Theres possibly a timing issue
    here. Anyone dealt with this before and know what the general rules
    are for getting this type of setup to work with loadMovie?

    Don't use loadMovie. Use the MovieClipLoader class, and its
    associated
    onLoadInit. You can't simply set the width, or anything else
    for that
    matter, a frame later - as likely the clip is not yet loaded.
    Dave -
    Adobe Community Expert
    www.blurredistinction.com
    http://www.adobe.com/communities/experts/

  • 9 slice scaling on swf loaded with loadmovie

    If you load a swf into another swf that has a MC on the stage with 9 slice scaling setup, should 9 slice scaling work within that loaded SWF and MC? I've tried it and it doesn't in my case but wanted to be sure that this isn't a bug or limitation?
    Thanks,
    Paul.

    Because realtime non-bitmap rendering is far slower on iPad1 I ended up just bitmapping everything possible. I only draw what's absolutely necessary now. I gave up on 9-slice, there is no way to outline it in any way that's performance friendly on ipad1.
    Chalk it up to a bug.

  • Control size with loadMovie

    Can you specify the size of the movie you're loading with
    loadMovie? I have a swf that is much larger than it should be that
    I need to display within another swf at a much smaller size. Here's
    what I have so far:
    randomNum = Math.ceil(Math.random()*2);
    MainFlashMovie = "media/swf/ft-homepage" + randomNum +
    ".swf";
    loadMovie(MainFlashMovie, "smashGrab");
    stop();
    Thanks!

    Hi San,
    I’m writing to just check in to see if the suggestions were helpful. If you need further help, please feel free to reply this post directly so we will be notified to follow it up.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support

  • Remove loaded movie after new loadMovie has been loaded

    i need to unload a movie once the new loadMovie is fully
    loaded because once i click on my button to do so, my current
    loaded movie goes away & the screen is white until the new
    loaded movie is loaded. (i hope that made sense)

    well I've done it a few ways successfully.
    The most recent, I dynamically create new movie clips.
    see ---
    http://www.13studios.com/erin
    --- Its a figurative painter's portoflio, so while its oil paint it
    is perhaps a bit [NSFW].
    Anyway, the panning effect kinda killed my normal process, so
    when you click a new button, it goes like this...
    PSEudoCODE
    //tickerVariable is defined on frame 1
    holder.create a new movie clip with name "something +
    tickerVariable"
    play preloader(tickerVariable);
    on completion of preloader {
    holder[something+(tickerVariable-1)].unloadMovie();
    //do anything else you need to do
    tickerVariable++
    I hope I didn't just make that more confusing.

  • Help! (please :) I have a 1GB iPod that's loaded with music for which my computer can no longer find the original files-due to external mass storage crash during recent move. Is there a way to import iPod music back into my iTunes library on computer???

    Help! (please I have a 1GB iPod that's loaded with music for which my computer can no longer find the original files-due to external mass storage crash during recent move. Is there a way to import iPod music back into my iTunes library on computer???

    Or If there is any purchased music then you can try to transfer purchases
    http://support.apple.com/kb/ht1848
    If you're in the US you can reload purchased music
    http://support.apple.com/kb/ht2519

  • What type of movie clips are handled by the ipad? I have shot a movie clip with my canon camera and the file is .AVI.  will this load onto ipad?

    what type of movie clips are handled by the ipad? I have shot a movie clip with my canon camera and the file is .AVI.  will this load onto ipad?

    Per http://www.apple.com/ipad/specs/
    AirPlay Mirroring to Apple TV (2nd and 3rd generation) at 720p
    AirPlay video streaming to Apple TV (3rd generation) at up to 1080p and Apple TV (2nd generation) at up to 720p
    Video mirroring and video out support: Up to 1080p with Apple Digital AV Adapter or Apple VGA Adapter (adapters sold separately)
    Video out support at 576i and 480i with Apple Composite AV Cable (cable sold separately)
    Video formats supported: H.264 video up to 1080p, 30 frames per second, High Profile level 4.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format

  • Help with menu button and movie load

    Hello everyone....I am very new to flash and actionscripting
    and am self taught using mostly web research.
    I am building a site with a menu and a banner that is
    controlled by the menu (two swf files). I have managed to get them
    to communicate however, I am stuck at this point.
    When "bt_1" is hit I would like a "mv_1" to load in the
    banner.swf with is respected intro animation...this I figured out
    how to do...however now when "bt_2" is clicked I would like play
    the remainder of the animation of "mv_1" to unload the movie before
    "mv_2" loads with its respected enterance animation....this I would
    like to do for several buttons. The method I am using for my local
    connection is this....
    Sending script
    mySender = new LocalConnection();
    on (release) {
    \\ each button has a different param...1,2,3,4,5,6
    _root.mySender.send("menuconnect", "action", 1);
    \\ this is the best way I could figure out to disable the
    appropriate buttons..there might be a better way??
    home.enabled = false;
    couple.enabled = true;
    events.enabled = true;
    bridal.enabled = true;
    media.enabled = true;
    rsvp.enabled = true;
    Recieving script
    myReceiver = new LocalConnection();
    myReceiver.action = function(doThis) {
    if (doThis == 1)
    gotoAndPlay(2);
    if (doThis == 2)
    gotoAndPlay(3);
    //and so and soforth for all six buttons
    myReceiver.connect("menuconnect");
    If all this makes no sense I'm sorry...I tried my best...
    If some pro out there can understand what I'm trying to do
    and can help me I would greatly appreciate it....thank-you all
    sjs

    KGlad...I'm stuck again....:-(. I guess I'm not understanding
    this linkage thing well enought...
    if you don't mind tell me what you had in mind when you
    helped me with that code...this is my situation again....
    here is the actual website....www.beckyandsangeeth.com
    the menu on the left of course has the buttons and I want the
    animation pertaining to each button to load in the apparent banner
    region, (which I am still working on the indivual animations).
    I guess I'm not understanding where the movies are loaded and
    how they are linked...and so and soforth...thanks again
    Also I don't mean to be specifically speaking to
    kGlad...anyone out there I am open for ideas.
    thanks
    sjsamuel

  • Help with loadMovie function

    Hello,
    I have a flash file with a movieclip on the stage - instance name "hold_mc". Currently I am loading an external swf file (named tester.swf) into this movie clip with the following actionScript:
    loadMovie("tester.swf", "hold_mc");
    This works fine and once loaded, 'tester.swf' begins playing from frame 1.
    However... I would like to add some code that lets me specify a frame or better still - a frame label - that "tester.swf" will begin to play from once it is loaded into "hold_mc". It sounds like it should be relatively straight forward, but after trawling the web for an age I cant seem to find a solution that actually works.
    Any help would be greatly appreciated!
    John

    I too recommend the MovieClipLoader class. I think for AS2 that you might want to use the onLoadInit event (this will all make more sense when you check out the help files) though instead of onLoadComplete. I know that certain properties are not available at onLoadComplete. I'm not sure if that includes frame labels, but I'm sure they will be available at onLoadInit.

  • Scoping Question when one movie loads a second movie

    I have a movie that is just a preloader for the main movie.
    This preloader movie has the loader and progress bar components so
    that I can show the process of the main movie loading. When I load
    a sound file in frame 1 of the main movie to be used later in the
    movie and run the main movie (with out being called from the
    preloader movie) the sound will play when it is called (told to
    play). However if I call the main movie from the preloader movie,
    the sound will not play. To make the sound play I have to load the
    sound in the preloader movie.
    I am sure that this is a scoping problem and I am not correctly
    coding for the location of the sound.
    The code for loading the sound is :
    if(_global.Behaviors == null)_global.Behaviors = {};
    if(_global.Behaviors.Sound == null)_global.Behaviors.Sound =
    if(typeof this.createEmptyMovieClip == 'undefined'){
    this._parent.createEmptyMovieClip('BS_sndErrorMsg',new
    Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000)
    _global.Behaviors.Sound.sndErrorMsg = new
    Sound(this._parent.BS_sndErrorMsg);
    } else {
    this.createEmptyMovieClip('_sndErrorMsg_',new
    Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000)
    _global.Behaviors.Sound.sndErrorMsg = new
    Sound(this.BS_sndErrorMsg);
    _global.Behaviors.Sound.sndErrorMsg.attachSound("ErrorMsgSound");
    if (false) {
    _global.Behaviors.Sound.sndErrorMsg.start(0,1);
    The code to play the sound is:
    _global.Behaviors.Sound.sndErrorMsg.start(0,1);
    I would like to keep the preloader movie as small as possible
    and don’t want to load any sound files in it.
    How do I load the sound files in the main movie and play them
    when needed (using actionscripts) from the main movie when the main
    movie is loaded from the preloader movie?
    Thank you,
    Steve

    Putting the following code on frame one in the movie being
    loaded by the preloader corrected the problem.
    this._lockroot=true;
    The following is what Flash 8 help file says about
    _lockroot
    _lockroot (MovieClip._lockroot property)
    public _lockroot : Boolean
    A Boolean value that specifies what _root refers to when a
    SWF file is loaded into a movie clip. The _lockroot property is
    undefined by default. You can set this property within the SWF file
    that is being loaded or in the handler that is loading the movie
    clip.
    For example, suppose you have a document called Games.fla
    that lets a user choose a game to play, and loads the game (for
    example, Chess.swf) into the game_mc movie clip. Make sure that,
    after being loaded into Games.swf, any use of _root in Chess.swf
    refers to _root in Chess.swf (not _root in Games.swf). If you have
    access to Chess.fla and publish it to Flash Player 7 or later, you
    can add this statement to Chess.fla on the main Timeline:
    this._lockroot = true;
    If you don't have access to Chess.fla (for example, if you
    are loading Chess.swf from someone else's site into chess_mc), you
    can set the Chess.swf _lockroot property when you load it. Place
    the following ActionScript on the main Timeline of Games.fla:
    chess_mc._lockroot = true;
    In this case, Chess.swf can be published for any version of
    Flash Player, as long as Games.swf is published for Flash Player 7
    or later.
    When calling loadMovie(), set the MovieClip._lockroot
    property to true in the loader movie, as the following code shows.
    If you don't set _lockroot to true in the loader movie, any
    references to _root in the loaded movie point to the _root of the
    loader instead of the _root of the loaded movie:
    myMovieClip._lockroot = true;
    Availability: ActionScript 1.0; Flash Player 7

  • How can I link 1 movie file with several logic projects?

    Hi all,
    I've been  working on the music for a film with a colleague of mine and are sharing logic files via dropbox. 72 cues had to be altered for logisitical reason to work in someone else's studio for the final mix. Since I had a copy of the movie on my machine and my colleague had a copy on his we thought that if we put our movie into the root directory of our logic project's folder then the movie would automatically load up with the projects after we shared them via dropbox. We checked to make sure that both movies had the same filename. Unfortunately this did not work and we had to then reassociate 72 cues individually with each logic project. With such limited time to prepare the cues for the final mix this really took too much time.
    Is there any way in logic (9.1.8) to associate 1 movie file with a number of logic projects quickly, without having to open up the project and select open movie?
    kind regards
    /mischa

    Seems to me that if you both had the movie file in the same location on both of your drives (eg on Macintosh HD at root level, in no other folder) then all the project files would search for this common path and find the file.
    The problem arises when there is even a small difference between path names.
    Unfortunately, this won't help you at this point as all the project files already are associated with unique file paths for the movie. By now, you've probably already done it one by one - but maybe for next time....?
    There's no bulk or quick way to do this.

  • Poster Frame QT Movie linked to standard QT Movie loads in Firefox not I.E.

    Ok, this may be a rare question here. Here's what I've done following a small blurb of directions in iMovie6/iDVD the Missing Manual by David Pogue. (awesome book)
    I've created a "poster frame movie" in QT. This is a one -frame movie I use as the picture on the page.
    This poster frame movie, when clicked, is linked to a full version of the same movie that opens in the same place. The reason for this poster frame movie is to start the QT plug-in download as soon as someone reaches my page so there is no wait time when they click to watch the movie, it should be instantaneous.
    I tested this last night on my Mac with Firefox, and after clicking the poster frame movie (i.e.) the picture; the linked movie loaded right away. This worked on PC with Firefox as well.
    However, when this is page is loaded in Internet Explorer, on Mac or PC, the poster frame movie is there, but when clicked, the full movies do not load.
    Can anyone think of why or what setting I.E. may have that doesn't allow my QT movies to load when other browsers allow it?

    Yup, that's your problem.
    Before the <embed> you should add:
    <param name="href" value="http://blip.tv/file/get/Awarner20-AnniversarySecondTry745.mov">
    <param name="target" value="myself">
    As predicted, your problem is that while the QuickTime plug-in has the HREF and TARGET parameters, they are missing from your OBJECT code, meaning that the QuickTime ActiveX Control will never see them. You need to include all parameters in both places (unless you want different behavior in IE).
    Also, TECHNICALLY, you should also add a </embed> just before the </object>. The <embed> tag, like, for instance, the <p> tag is self-closing, but the most recent XML standard (HTML is a subset of XML) says, "Thou shalt close all of thy tags". So it won't make a bit of difference in function, but it is good practice. And yes, you should also close your <p> tags and use <br /> or <br></br>, too.
    (although technically we're not supposed to use EMBED at all anymore, as it isn't in the HTML spec, but it works with all browsers except IE while OBJECT doesn't always...)
    --Dave Althoff, Jr.

  • Why Won't This Digital Camera Movie Load Into iPhoto

    I shot 186 photos and 12 movies with my Canon digital camera this past week while my wife and I were on vacation. The photos and 11 movies (all about one minute or less) loaded just fine but my longest one (3 minutes which is the maximum for my digital camera) will not load. Is there a maximum time limit for digital camera movies that I have exceeded with iPhoto?

    Hi David,
    when you say "will not load" do you meant it won't open in Quicktime or it didn't download into iPhoto?
    This is what I do;
    When iPhoto 5 first came out I really think it was programmed to import the smaller 30 sec video clips that cameras were taking at the time. Since then, digital cameras, at least my Canon S2 can take clips as large as your memory card can hold. The first time I tried to download my images and movie clips with my new camera, iPhoto stalled at the movie clips. I wasn't going to take any chances messing up my iPhoto Library so I started using Image Capture to download all my images and Movie clips. I actually like doing it this way a lot better. My movie clips are downloaded into my Movies folder where I then put them in a dated folder.
    My photos are downloaded into my Pictures folder, where I then put them in a dated folder. I import the dated folder into iPhoto. I also keep all dated folders from photo downloads in the Pictures folder till I get enough Movie folders and Photo folders to fill a DVD. I burn them and then delete them from the hard drive.
    This way I have the photos in iPhoto and I also have just the photos backed up to DVD.
    The Movies I keep on the hard drive in their dated folders until I use all the clips for my iMovie projects for the Year. I then make sure they are all burned to DVD, then I delete those from my hard drive.
    Using Image Capture to download images and video clips:
    Open up Image Capture which is found in the Applications folder.
    When it is opened, go to Image Capture/Preferences
    Under the General button choose
    Camera: When a camera is connected, open Image Capture.
    The next time you connect your camera Image Capture will open.
    In the window that opens you will see an Options button. Click on that button to set your options.
    To find out more about Image Capture (it can do a lot more) Click on Help in the menu bar when Image Capture is open.
    iPhoto: How to Change the "Open Automatically" Preference
    If you find you can't change any of Image Captures preferences or can't access any drop down menus or they are greyed out, check to make sure Image Capture is loose in the Applications folder and not within a sub folder.

  • Copying movie clip with flv

    Hi, I am trying to copy a movie clip with an flv in it from
    one project to another. Everything works fine except the flv just
    keeps trying to load and never plays. I am not sure what to do. Any
    suggestions?

    It sounds like you are using the FLVPlayback component to
    display the FLV, in which case, the FLV is a separate file and
    likely needs to be in the folder next to the new project. Go back
    to the old project and copy the FLV from its location there to the
    new projects folder.

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

Maybe you are looking for

  • How do I find out a file's particular size?

    Good Evening, I am looking for assistance with figuring out a file's particular size within a group of files. If I have one large directory and I am looking to find out what the smallest file in that directory is, how would I go about doing it? Also,

  • Is there an antspert in da house?

    Hi, I'm trying to compile & jar a simple java project using ant 1.7 and java 1.6 on windows XP. The problem appears to be the ant is not finding my *.java files... atleast it's not producing a jar file, and no class files either. the build says it wo

  • Save a frame using saveAs dialog box.

    Hi, I am implementing an application wherein I am displaying certain error messages in a frame. On the lower frame I have have the buttons to print the contents of the upper frame. But I want to include the option to save the contents of the Upper Fr

  • Custom icon in application builder

    I am trying to create an executable with custom icon using Application Builder in LabVIEW. I converted a .png image to .ico for the icon, but when I select that .ico file as a custom icon, I get the following message: "The selected file doesn't conta

  • IDOC Segment field change

    Hi, Can anyone tell about how to change the field VALUE of IDOC type QALITY02,segment E1ADRM1,field PARTNER_ID? Currently the system is pulling the value from system address table, where as I need to pull from KNKK-KRAUS. Can the transaction code BD6