Loading images with different horizontal sizes

I would like to load images with different horizontal
resolutions (vertical resolution to be the same) dymanically into
an empty movie clip. I would like them to load with the right hand
side of the image lined up with the right hand side of my site. I
have seen many tutorials about how to accomplish the loading of the
movies, but I cannot figure out how to make them open with the
right hand side always lined up on the right.
To be more specific, let's say I have three images of the
varying pixel resolutions (1200x600, 800x600, and 400x600 for
example). I would like the horizontal size to always extend away
from the right hand side of the site with the right hand edge of
the images always lined up.
Is this possible to do by loading them into an empty movie
clip?
thanks

When you load an image file into an empty movieClip, that
clip takes on the dimensions of the loaded content. The
registration point for the clip is set to the upper left corner.
So, once the new image is loaded, just set that clip's .x to the
stage width - the width of the clip.

Similar Messages

  • How to create a report with different page sizes

    Hi,
    I would like to create a report with different page sizes, it's possible to do it with diadem?
    When I change the layout parameters, changes afect to all sheets...
    Is there a way to change page size individually for each sheet?
    Thanks in advance.
    Marc

    Hi Marc,
    You can use the DocStart and DocEnd commands along with the PicPrint command to spool multiple print commands to the same output PDF file using the direct printer approach.  This should enable you to programmatically specify the page size differently for each sheet that you add to the print job.
    ' Print PDF Page by Page.VBS
    OPTION EXPLICIT
    Dim i, Path, OldPrintName
    Path = AutoActPath & "2D Stacked"
    Call DataDelAll
    Call DataFileLoad(Path & ".TDM")
    PDFFileName = Path & " Page by Page.pdf"
    IF FileExist(PDFFileName) THEN Call FileDelete(PDFFileName)
    OldPrintName = PrintName
    PrintName = "winspool,DIAdem PDF Export,LPT1:" ' Set to PDF printer
    PDFResolution = "72 DPI" ' "2400 DPI" , "default"
    PDFOptimization = TRUE
    PDFFontsEmbedded = FALSE
    PDFJPGCompressed = "high"
    PrintOrient = "landscape" ' orient paper
    Call PrintMaxScale("GRAPH") ' auto-max, see alternative margin setting variables below
    PrintLeftMarg = 0.181
    PrintTopMarg = 0.181
    PrintWidth = 10.67
    'PrintHeigth = 7 (read-only)
    Call WndShow("REPORT")
    Call DocStart ' Begin multi-page document/print job
    FOR i = 1 TO 4
    Call PicLoad(Path & ".TDR")
    Call GraphSheetNGet(1)
    Call GraphSheetRename(GraphSheetName, "Page " & i)
    Call PicUpdate
    Call PicPrint("WinPrint") ' Add a page to be printed
    NEXT ' i
    Call DocEnd ' End multi-page document/print job
    PrintName = OldPrintName
    Call ExtProgram(PDFFileName)
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Creating a document with different page sizes.

    I'm trying to produce a leaflet with different pages sizes. To try and explain what I mean I have included a picture of what I'd like the front cover to look like. When producing a booklet there doesn't seem to be a provision to individually alter each page size in the pages or document set up panel. Is there anyway around this or do I have to create each page seperately, export to pdf and then combine into the leaflet? Help gratefully received. tomas

    The build booklet feature is for very basic booklets, not something like this.
    Sorry, but you’ll need to make everything full size and then do the cutting.
    Bob

  • Creation of PDF with different page sizes

    I am generating PDF using Acrobat Distiller from my application from the .ps file. From one machine, the PDF is generated with different page sizes.one page with 8.5*12.99 and other pages with 8.5*11 in the same PDF. However the PDF is created with correct page sizes for all the pages in another machine. The only difference between the machines is the Internet Explorer version. I am using Internet explorere 11.0 and the other machine have a version of 8.0 installed.
    Why the difference in page size occured? Is there any dependency on the Internet explorer used while creating the PDF using Distiller? Any help for the issue with the discrepancy in the page sizes is really appreciated.
    Thanks!

    Acrobat Distiller uses the page size in the PS file. May be a problem of your application which create the PS file.

  • Loading images with transitions

    Hi,
    trying to have slideshowish thing, loading images with transitions.
    I have this code for first image, what I need to load next images...?
    import fl.transitions.Tween;
    import fl.transitions.TweenEvent;
    import fl.transitions.easing.*;
    import flash.events.*;
    var curTween:Tween = new Tween(1_mc, "alpha", Strong.easeOut, 100, 0, 3, true);
    curTween.addEventListener(TweenEvent.MOTION_FINISH, fadeBackIn);
    function fadeBackIn(event:TweenEvent) {
         var nxtTween:Tween = new Tween(1_mc, "alpha", Strong.easeIn, 0, 100, 3, true);

    i'm not sure that makes sense.  you're fading out 1_mc and then fading it back in.
    normally you would fade out a previous image and fade in the next image.

  • Tablespace creation with different block size

    OS - rhel 4.3
    kernel - 2.6.9
    Oracle - 10.2
    Hardware - IBM X series 346.
    Defined block size for the db - 8kb.
    Question: Can I create a tablespace with 16k?
    regards,
    Lily

    You can create a tablespace with 16k blocks if, as Daljit suggests, you create a 16k block buffer cache.
    I would, however, ask why you would want to create such a tablespace? The ability to have tablespaces with different block sizes in a single database was created primarily to allow the use of transportable tablespaces in situations where different databases had different block sizes. If you are trying to create a 16k block size for a different reason, there are a couple of things to be aware of
    - While there are theories out there that tablespaces with different block sizes can have dramatic effects on performance, I've never seen any solid evidence that backs up this theory.
    - Using different block sizes in the same database can significantly increase the complexity of managing a database. You'll have multiple buffer caches that you'll have to size, for example, automatic SGA management doesn't work with non-standard block size buffer caches, etc.
    Justin

  • Database Tablespaces with different block sizes...

    Hi ,
    What are the pros and cons of setting different block sizes to tablespaces, and where may be this useful???
    Thanks,
    Simon

    http://asktom.oracle.com/pls/ask/f?p=4950:8:101384681997409236::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:44779427427730
    generally speaking tablespaces with different block sizes than the db standard are for transportable tablespaces only.
    however,
    Burleson will tell you to micromanage your memory allocations with multiple block sized tablespaces and various keep/recycle caches.
    http://www.dbazine.com/oracle/or-articles/burleson2
    I think its overkill and you can most likely get performance improvements from looking at other things such as the SQL your applications are running against the db. My rule of thumb is that 70% of your performance improvements are going to come from sql tuning. You can focus on the other 30% when the vast majority of your queries use 5 LIO per row per join. (Milsap's ratio not mine)

  • How do I batch resize images with different aspect ratios?

    How do I batch resize images with different aspect ratios?

    poa66 wrote:
    Landscape: I want result to be 1960 x 1103 px and 72 ppi whether the original is 300 ppi or 220 ppi and wether it is 2Mb or 10 Mb. Cropped centered top and bottom.
    There will be a set of Landscapes that that have a narrower aspect ratio the 1960:1103 that would also need the top and bottom cropped like all Portraits would could be.  You need to realize that center cropping Landscape image that have aspect ratios near 1960:1103 will usually produce acceptable compositions.  However Cropping wide panoramas and portraits will only produce acceptable landscape  1960:1103 composition occasionally.
    Here you will see what happens when image have aspect ratio the do not fit the desired aspect ratio.  Where Landscape  are forced to portrait and portrait forced to Landscape.  Here are two Collage I populated with a mixture of image  with different  aspect ratios.   One collage has all 3:2 Landscape places and the other 2:3 Portrait places.
    I create a 1 image 1960x1103 collage 72dpi and create those too. Note the landscape boy foot is cropped off 3:2 is narrow compared to 1960:1103

  • Saving same png file gives me image with 10x smaller size

    Hi.
    I would appriciate if someone explained me what I'm doing wrong.
    I have a png image, of 256x128 size. It has 8bits per pixel for color. Now this image's size is 97kB. I open it in photoshop, I save it as different png file, and then... this image is 7kB of size.
    Can someone tell me what's wrong, or what I'm doing wrong?
    Lucas

    Ok guys, thanks a lot for patience. Below is the main cause why I started this topic, but I still can't figure it out. I thought the loss of size is the cause, but you say it's not :/
    I'm not that skilled as you guys, so that's the primary reason why I'm here. I will be really gratefull if someone could give me a hint here, or some small help.
    To cut to the chase, I'm trying to use a program that creates graphics for older games. This program edits particular files, that have different resolutions and different number of bits per pixel. The problem I have however is the transparency and color palette, as I never had dealings with that. The problem is, that someone created before a pictures that are very smooth, and this seems to be the cause of very smart using of transparency levels, for different colors in the palete. However, I have no idea how to achieve the same effect, I tried many things, but still can't figure this out. I will try to ilustrate the problem below.
    Below is a screenshot from this application
    [img]http://img21.imageshack.us/img21/5396/41135434.png[/img]
    On the right is the picture that is the root of my question here. It has to be in the format with palette of collors in amount of 16, although I have no idea where it stores the alpha channel information, as there are 4 bits for color per pixel. Well anyways, you can see on the right top corner the palette. It basicaly has only the shades of gray in this case. I can switch now to the alpha channel mask, and this is what I get:
    [img]http://img29.imageshack.us/img29/4089/69176653.png/img]
    You can see that each of the colors in the palette has different alpha values. Now what I tried is, I exported the image, I opened it with photoshop, saved it, imported it in the program, and guess what I found in the alpha channel mask:
    [img]http://img821.imageshack.us/img821/7104/51957014.png[/img]
    All the information of the alpha channel for each color is gone!
    Here are the examples with more colors(256):
    [img]http://img853.imageshack.us/img853/2108/84834785.png[/img]
    The alpha channel mask
    [img]http://img718.imageshack.us/img718/4944/25526459.png[/img]
    And now, I do the same as before, export it, save it in photoshop, and guess what, all the info is gone again:
    [img]http://img577.imageshack.us/img577/8991/50003321.png[/img]
    Now loosing this information is not a problem, as I will be inputting different pictures, but my question is, how I can achieve the same effect in photoshop for my images that I will try to import. I would love to have as smooth edges as they are seen on those examples above.

  • Loading image with loadMovie

    I am loading an image to a movie clip (name container) using
    loadMovie but when the image loads the movie clip is resized to the
    size of the loaded image, is there a way to prevent that from
    happening? I want the movie clip to retain its original size.
    Thank you for your help,

    Loaded images or swf's only inherit position, rotation and
    scale. They load
    at their original size though. If you want to resize them to
    fit a
    particular area, you'll need to do that with AS. First you
    will need to stop
    using loadMovie and use the MovieClipLoader class instead.
    You should be
    using it anyway, it's better.
    Simple example that loads an image from my C: drive into a
    clip named 'hold'
    var myLoader = new MovieClipLoader();
    var lis = new Object();
    lis.onLoadInit = function(targ:MovieClip){
    targ._width = 83;
    targ._height = 119;
    myLoader.addListener(lis);
    myLoader.loadClip("c:/dm_phillips_2005.jpg", hold);
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Material Cost Estimate with different lot size.

    What happens if the material cost estimate is run twice using different lot sizes each time  (all other parameters unchanged) for the same period?
    Will the cost estimate run later overwrites the results from cost estimate run earlier (though the lot size is different)? What is the role of lot size in a material cost estimate?

    The costing lot size impacts your cost estimate if you have lot size independent costs (i.e. setup cost).  Those fixed costs are spread over the costing lot sizee to give you a cost per unit..  Larger costing lot sizes can also help you minimize rounding issues.
    You can only have one marked cost estimate in a given period.  However, you can create and save a cost estimate as many times as you want as long as you have not marked it for release.  When you save the estimate it will overwrite an existing estimate.  You also have the option of creating multiple estimates under different versions or with different costing variants.

  • Loading images with properties in Forms6

    Hello !
    I would like to use Mmix32.ocx with Forms6 to have properties and
    methods of loaded images !
    But I don't know how , cause I imported Ole library interfaces MMix control without results !
    I need an exemple !
    thanks !

    Me too !
    I would like to use Mmix32.ocx with Forms6 to have properties of images !
    I imported Ole library interfaces MMix control !
    I have an error:
    FRM-41344:ole object not defined for <item name> in current record !

  • Material number for chemical with different packing sizes

    A same chemical that we purchase from supplier can be in 25Kg bag, 1000kg bag and 50 kg bag. When we receive the chemicals, the physical goods of the chemical are in 25 KG Bag, 1000kg Bag and 50Kg bag store in the warehouse.
    When we sell to customer, it can be in those 3 standard bag size or in KG depend the order quantity from customer.
    For the above Chemical what is the best way to catalogue the material number, should it be 3 material numbers for the 3 different pack size, or 1 material number only?

    you can have two solution for this with both pros & cons with one material master:
    1. You can have three different unit of measure for 25KG, 1000KG & 50KG bag and you can maintain the relationship in the material master. This will help you to get the total stock in KG in your company and you can sell to the customer. Only problem is you will not be able to determine how much of each type of packaging you have.
    2. You can define the material relevant for batch management. Create three batches 25KG,1000KG & 50KG, also create three different unit of measures as explained above. Now whenever you are doing the GR just put the material in correct batch, by doing this you can easily track you material along with the type of packaging. Also you can sell the material, while delivery you can use the functional of batch determination based on some log. Only problem is manual intervention which can be covered if you use some exit while doing GR so that correct batch is selected based on the Order Unit.
    Hope this will help you..
    Enjoyyyyyyyyyyyyy
    Akshit

  • Load images with some effects

    Hi, I wanted to load java images with some effects like we have in power point like blinds or appear in Java swing when user clicks on the image.
    I have these specific questions in mind:
    1.Is there a way to do this in Java?
    2.Also how will this behave when the image to load is huge like 25 Mega Pixel?
    3.If we are dealing with large images being switched, what mechanism should be used for incorporating images in the application?
    4. Can there be a provision of displaying an image over another one with the one on the top having some transparency?
    Thanks,
    Sandeep

    Kayaman wrote:
    835085 wrote:
    how can this be done? do you have any pointers. i have played with swing earlier but did not know about the effects thingy.Well I didn't mean that you'd have ready made powerpoint-like effects (unless someone has created a library for that kind of stuff). I mean Java is a programming language, Powerpoint is a crime against nature.
    You'd need to program those effects (or find a library that does).OK, i think i will have to try this out first.
    The point is that i wanted to confirm to go with java or choose python.
    I need to track user inputs and display really large images. Now the interaction is really on graphical side like have moving images in the application which are transparent. I know Java but havent played with images yet and was not sure whether it will be worth spending days on this and then switch to python.
    >
    well my scenario will be 2x2 matrix of screens. it will be a 25 MP screen. so wont this work now in this context?Sure, if you have the resolution.
    i was thinking in terms of response time. any inputs?And I was answering in terms of response time. The Fullscreen API. Of course you'll need to keep all the images in memory (or at least a certain range if you want to show them fast enough).
    4. Can there be a provision of displaying an image over another one with the one on the top having some transparency?Sure.any pointers?Well, Java does support transparency and alpha channel. But you'll need to go through the APIs to find ways to do those.
    Is there a reason why you want to do this in Java?I mentioned that I have worked on swing before but was not sure to do it in a totally new prog. language like python.

  • Loading Images with 1.3.1 Problem

    Hi!
    I've got a couple of swing applets that use Images. One uses the images for icons and one just draws the images. The images are loaded from jar files. Using version 1.3.0, everything works fine. When I load the applet using 1.3.1 or 1.4, however, the images do not appear on the screen. According to the Java Console, the images did load. I saw messages like:
    Loaded image: jar:file:/C:/rgajava/MKSLeak/jar/leak.htmlMKSLeak.jar!/images/audiooff.gif
    Loaded image: jar:file:/C:/rgajava/MKSLeak/jar/leak.htmlMKSLeak.jar!/images/audioon.gif
    that were displayed when I upped the trace level. The images still do not appear.
    Does anyone know how to fix this? I am loading the images using getImage(URL,String).
    Thanks,
    Derek

    As a partial answer to my own question, the Java tutorial declares that some browsers cannot load images from jar files. This appears to be the case with IE5.5 and Java 1.3.1, but it is strange that IE5.5 and Java 1.3.0 seem to have no problem. Nevertheless, the applet works well and images load if the images are accessed outside of the jar file.
    Derek

Maybe you are looking for