How to  affect size of movies using loadMovie CS4, as3

I have loaded a .swf into my main timeline, but it's quite large. I am trying to get it to fit in the constraints of my current movie. I have read that by putting it into a movie clip, it will constrain to that dimension. How do I accomplish this?

If you know what scaleX and scaleY you will need you could just add it your code. Something like this:
loader.scaleX=loader.scaleY=50;
But if the content you will load is of different sizes and will maybe need different scales you could use code like below.
import flash.display.Loader;
import flash.events.Event;
import flash.display.MovieClip;
import flash.net.URLRequest;
var loader:Loader=new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleComplete)
loader.load(new URLRequest("banner.swf"));
addChild(loader);
function handleComplete(e:Event){
var target:Loader=Loader(e.currentTarget.loader);
     trace(target.width)
Depending upon what you need to do you could change that trace to some kind of measurement of the width and then use some arithmetic to scale the clip to a specific size.

Similar Messages

  • How to Load an external swf using loadmovie in AS3

    I need to create a button with script, on rollover load an external swf into movieclip in AS3.  This was able to create this in AS2, but I need to create this in AS3

    Thanks again Ned.
    Kenneth Russell
    graphic artist, Sr.
    Lockheed Martin - MS2
    2323 Eastern Blvd., Baltimore, MD 21220
    Phone 410.682.0554    Fax 410.682.0543
    From: Ned Murphy <[email protected]>
    Reply-To: [email protected]
    Date: Thu, 23 Jul 2009 19:08:25 -0600
    To: kenneth russell <[email protected]>
    Subject: How to Load an external swf using loadmovie in AS3
    In AS3 you use the Loader class to load external swf's and image files.  You
    should be able to find examples both in the Flash help files and these forums
    if you search.  If you aren't aware of how to code buttons in AS3, that can be
    found as well.  In AS3, just about any kind of interction involves the use of
    event listeners in combination event handler functions... in the case of a
    button rollover an example would be...
    btnName.addEventListener(MouseEvent.ROLL_OVER, overHandler);
    function overHandler(evt:MouseEvent):void {
         // your loading code or whatever
    >

  • How do I rent a movie using money in my iTunes account.  I had to enter at the iTunes gift card code to open the account, but now I can't figure out how to use this money to rent a movie; I opened the account several months ago but never used the money.

    How do I rent a move using moneyin my iTunes account.  I had to enter the iTunes gift ard code to open the account several months ago, but never purchased anything with it.  When I entered this code to rent a movie, the response was that it was redeemed.  What am I doing wrong?

    If you've already redeemed the card onto your account then its amount should be on your account - a card can only be redeemed once.
    To rent a film, find the film in the store and (if the film studio has made it available as a rental in your country) click on its Rent button. If you are beig prompted to review your account and enter credit card details then see if this post from mountaingoatgirl lets you do so without entering card details : https://discussions.apple.com/message/24303054 . If that doesn't work then you should be able to remove your card's details after entering them.
    As long as you account's balance covers the rental cost then only that should be charged. How purchases are billed : http://support.apple.com/kb/HT5582
    When making purchases, content credits are used first, followed by Gift Certificate, iTunes Card, or Allowance Account credits; your credit card or PayPal account is then charged for any remaining balance.

  • How do I tape a movie using my vcr

    I have a Toshiba s/N 32C120U
    I have played many vcr tapes on this tv.....I wanted to tape a movie tonight but do not know how to do that
    Does anyone know how I can tape a movie using my vcr

    You would need to first ensure your cable is connected through your VCR rather than directly to your TV. Your VCR manufacturer should have instructions on how to record.
    - Peter

  • How can you import AVCHD movies using iMovie '11?

    How can you import AVCHD movies using iMovie '11?

    H264 is one example of a codec used in MPEG-4 video encoding. Windows Media is a codec. Sorenson is a codec. DVPRO is ...etc....
    Play a source video file and do a get info on it and tell me what the audio and video details are.

  • When ordering a movie how many megabites does each movie use in my internet downloads

    when ordering a movie how many megabites does each movie use in my internet downloads

    Peter Hillman wrote:
    It doesn't really matter if an AppleTV2 has to re-download since using the same bandwidth twice doesn't effect the user.  There are no data caps on home internet like there are on 3G cellular service.
    Many home internet services do have caps, at least in the UK, and I suspect elsewhere to.  My current service is capped at 100GB/month for downloads, though I rarely use that much. 
    I recall a post from someone a few months ago who said that during the course of watching/rewatching a single HD rental they'd used over 20GB of their monthly usage allocation which is a significant chunk if you do have a cap.
    AC

  • How do you export your movie using idvd? I keep getting error messages and notices that I do not have enough space to transfer to a dvd.

    How do you export your movie using idvd? I keep getting error messages and notices that I do not have enough space to transfer to a dvd.

    Can you give us the steps to re-create the problem, and the exact wording of the error message you are getting please.

  • How do I export a movie using a different format (iMovie 2013)

    Title question. I can only seem to export my movie using .mp4 and I've seen on youtube using previous versions of iMovie being able to change the format...
    I use a Sony DSC-HX20V to capture my footage which formats the videos in AVCHD and it records in an image quality of 50p. I want to also know how to import these videos onto a 4th generation iPod Touch and which format will support the device better. Thank You.

    Although I don't use it myself, saving to Theater creates versions for all sorts of devices including iPod Touches.
    iMovie 10 help says:
    "When you add a movie, trailer, or clip to the Theater, iMovie creates versions of your movie tailored for local playback (1080p HD), playback on an iOS device (720p HD), and web streaming (480p SD)."
    Geoff.

  • How do you draw rectangular boarders using Photoshop CS4

    I want to draw rectangular boarders of different widths using Photoshop CS4. Can someone tell me the best method to use and how I change the boarder widths?
    Thank you,
    Jim

    we can create border using strok option. check out this link.
    http://www.myjanee.com/tuts/shapes/shapes.htm

  • How to hide layers or movies using Action Script

    Hi All,
    I am using a few layers and would like to hide a specific
    layer using action scripts - I guess I dont mind doing it as a
    movie clip too (hiding the movide clip).
    Also I am interested in controling the final *.swf via an
    external command to hide that layer or movie clip. How do I do
    that?
    Thanks in advance,
    Steven

    rsagi: Layers are only layers while you are editing the fla.
    When compiled, layers are merged. I think the best way would be to
    use movieclips as containers and hide the "container movieclips".
    jlucchesi: from fl8_as2lr.pdf:
    "The alpha transparency value of the movie clip. Valid values
    are 0 (fully transparent) to 100
    (fully opaque). The default value is 100. Objects in a movie
    clip with _alpha set to 0 are
    active, even though they are invisible. For example, you can
    still click a button in a movie clip
    whose _alpha property is set to 0. To disable the button
    completely, you can set the movie
    clip's _visible property to false."

  • How to combine several short movies using a single theme

    I have several completed short movies I'd like to combine with a single theme allowing the various movies to function as chapters. Some of the movies were completed totally in iMovie 6. Others were edited in iMovie 8 or 9, then transferred to iMovie 6 for music. My operation system is version 10.5.7. I also have the "Missing Manuals" for iMovie & DVD 6, 8 & 9, but can find no help in them for my question. Can this be done?
    Virg

    Unfortunately, iMovie doesn't allow concatenation of multiple projects into one (feature request for iM10!)... One workaround that I use, is to render the QT files using the Export option, and then use QT Pro to concatenate the individual movies. You can re-import the final movie back into iMovie (any version) to do any further edits.
    Here's a great demo on how to use QT to merge movies: http://web.me.com/jrwalker4/QuickNotes/QTPro/QTPro.html

  • How much space do iTunes movies use?

    my storage info for my hard drive says that more than 1/2 is taken up by movies.  I have 2 movies downloaded from iTunes, that's it.  I deleted all the quicktime movies that i didnt need and there was no change in the amount of space the "movies" took up.  i'm at a loss.  I would think 2 movies would take up so much space. 

    Empty the Trash.
    Read this:
    Where did my Disk Space go?  - http://pondini.org/OSX/DiskSpace.html
    in particular the part about other large files and fre apps you can use which provide more detailed information about space usage.

  • How to create a Quicktime movie using Cocoa QTKit

    I am trying to find some example code on how to create a short Quicktime movie in a Cocoa app. The sample code I've seen so far is all for capturing the frames from an external source (e.g. camera).
    Also, I am looking for how to control the compression engine to ensure that I can create a small Quicktime file if there is a lot of frames with small amounts of change in them.
    Any pointers would be greatly appreciated.
    Charlie

    I´m looking for a solution to protect QuickTime files with a pwd that one have to enter after a specific time. Is it possible?
    No.
    (52272)

  • How to listen (stereo) divx movies using all 5 speakers with x-fi and I-Trigue 5.

    Like Creative wrote on their web site:
    24-bit Crystalizer makes all audio sound better, including MP3/WMA, streaming audio and video, DIVX and DVD movies.
    So I suppose when playing divx movies I'd hear sound from all 5 speakers? Actually rear left and rear right are with really low volume (hard to hear).
    There is alo another question do I need to use CMSS on my speakers (I have Creative I-Trigue 5. and also option directly on souround system to use CMSS, or do I need to activate it on X-Fi Music? Which is the best combination to have stereo divx/xvid movies on all 5 speakers?)
    There is also the last question what player is the best for playing movies, because I use zoom player which use AC3 plugin trying to extrapolate from stereo movies to 5. so I suppose this have to be turned off to have it done by X-Fi card?
    Thanx a lot. hope you can help me.

    I own those speakers and as someone else pointed out they're not true 5. speakers, they are only true for movies, not for games, even with the adapter, the center channel will not pick it up. I opted for another manufacturer speakers. When that came out, it was top of the line, high tech etc. But only really for movies, I have it hooked up to my DVD player now and that's all it's good for. And when I had it hooked up to my computer all I was ever able to get out of it was 4. with the spdf adapter and connection.

  • How can I download videos/movies using idownload app?

    I bought the Idownload app for my iPad a few days back, but I can't download any video/movie. When I tap on a link, it gives me the following options: open or download. After choosing download video and specifying path and name for the file, it only downloads a file less than 200 kb. What should I do? I would also appreciate if someone can give me names of websites from which I can download full length American movies.
    I look forward to hearing from you.
    Thank you.
    Perdes

    We cannot help you to obtain illegal copies of feature films. Unless there is a legal download store selling such movies in your country, such as the iTunes Store or Amazon, you will need to purchase DVDs and watch them on your computer.

Maybe you are looking for