loadClip onLoadInit will not resize image

Hi all

I'm trying to tweak an application that helps the user to create business cards using Flash.
Workplaces used for the Web of business cards are generally 72 dpi, but my client wants to use images 300 dpi.

So I try to load a 300 dpi image and resize it down to fit into the canvas. Everything seems easy?

Watch: http://www.pickleprint.com/tabid/77/default.aspx?ciID=0 & ProdCode = BC & tf = 54_F & tb = 54_B & rx = 128 0 & uID = & txID = 54

If you click zoom out, you can see the background is larger than the intended area. Alerts show the dimensions of the image before and after the attempt to resize, but the image is not resized on the screen.

Here is the code snippet: (for the record, was to publish in Flash Player 7 issue 9 had no effect.)

myListener.onLoadInit = function (target_mc)
{

w = _root. MasterWidth; the height of the desired model
h = _root. MasterHeight; the width of the desired model

_root.command ('alert', target_mc._width); trace the origin of background 300 dpi width
_root.command ('alert', target_mc._height); trace the original height of the background 300 dpi

target_mc._width = w; resize the attempt
target_mc._height = h; resize the attempt

_root.command ('alert', target_mc._width); dimensions of the track after resizing
_root.command ('alert', target_mc._height);
}

my_mcl. AddListener (MyListener);

my_mcl.loadClip (_root. ServerPath + "Images/LowRes_Front /" + _root. FrontTemplateName + "_LR.jpg", _root. FTL);

The image of the charges, but will not resize itself to the bottom. I tried several variations and functions outside to force a resize, and she ignores me. _root. FTL is the name of the target movieclip.

You know of any bugs in this regard?

EU: had to put an empty movieclip inside the movieclip FTL.

thumbHolder = _root. FTL.createEmptyMovieClip ("Front", 0);

my_mcl.loadClip (_root. ServerPath + "Images/LowRes_Front /" + _root. FrontTemplateName + "_LR.jpg", thumbHolder);

Don't know why it works, but it works.

Tags: Adobe Animate

Similar Questions

  • Windows Media Center will not show images

    My windows media game will not display images in the library.  They appear as being there but have no photo attached.   If I open them it says "cannot display the image.

    Videos seem to work very well.

    Help, please.

    Hi sjeri,

    If you want thumbnails to display in your library, you can do the following:

    1. click on the "Start" button, type options files and click on the link 'Options folders' that appears.

    2. when several tabs 'Folder Options' dialog box is displayed, click the "View" tab

    3 always check "show icons, never thumbnails" to disable the generation of thumbnails. Clear this check box to enable the generation of thumbnails.

    4. click 'OK' to close the dialog box.

    Please check if you get a symbol of locking for images icons in windows Explorer.

    You can also visit the link below:

    Change the thumbnail size details and file

    http://Windows.Microsoft.com/en-us/Windows7/change-thumbnail-size-and-file-details

    Hope this information is useful.

    Please let us know if you need further assistance.

    Concerning

    Rehman - Microsoft Support

  • I updated Photoshop CS6 yesterday 11/01/2016.  Tonight my mini-Bridge plugin will not load images... need branch here.

    I updated Photoshop CS6 yesterday 11/01/2016.  Tonight that my plugin mini-Bridge will not load images... direction need here.

    Hi scumbug,.

    Try to restore Photoshop preferences to default.

    Steps to follow:

    To re-create the Photoshop preferences files, start the application while pressing Ctrl + Alt + Shift (Windows) or command + Option + shift (Mac OS). Then, click Yes to the message, "Delete the Adobe Photoshop settings file?"

    Let us know if that helps.

    Kind regards

    ~ Mohit

  • the SEARCH button on my LIGHTROOM will not FIND images. Does not, did not work. Anyone?

    When I go to the option SEARCH and select "ANY SEARCHABLE FIELD" and "CONTAINS" I can put in the exact file name, and it will not always get this image to the top, although I'm looking right there.

    Try resetting the LR preferences file, as described here for LR 6 and CC: reset the lightroom preference file - updated | Lightroom Forums

    You can rename the current preferences file with a. Extension of OLD, that will quickly restore if the problem persists.

  • Resizing action is not resize images

    Hello

    I have a lot of images I would like to reduce.  I keep to the creation of a new action in Photoshop, but it is not working properly.

    Here's what I do:

    Create new action in Photoshop

    Image1 open directory (image is 3000 x 3000)

    Resize to 1500 x 1500

    Save

    Close image

    End action

    When I run the batch I have choose this action, specify start and destination files, and then run it.  I tried this time as 'save' the original image and 'Save for web' in a new directory.  With these two technical, I get the same end result, the lot seems fine, but when I put my cursor on the images, its properties always display as 3000 x 3000.  The lot ran, but the images are not a new size.


    I'm doing something wrong?  Need help please, I have tons of those!


    Thank you!!

    Do not save the "Open the file" action step

    As the same file will be processed.

    Open the file and the folder of the Image Resizing steps.

    Save the action once again and let us know.

    ~ Assani

  • Windows 7 photo viewer will not open images

    My laptop has just been reduced to factory settings and lost all my files, fortunately, most of them have been recovered by a technician and he burned them on a disc for me. There is a mixture of photos and documents, no open documents and only a few images opens with Photo Viewer, the rest goes to tell an error message "windows Photo Viewer cannot open this picture because a photo viewer does not support the file format or you do not have the latest updates for photo viewer." No idea how to solve this problem? Thank you.

    My laptop has just been reduced to factory settings and lost all my files, fortunately, most of them have been recovered by a technician and he burned them on a disc for me. There is a mixture of photos and documents, no open documents and only a few images opens with Photo Viewer, the rest goes to tell an error message "windows Photo Viewer cannot open this picture because a photo viewer does not support the file format or you do not have the latest updates for photo viewer." No idea how to solve this problem? Thank you.

    ======================================

    It is highly possible that files recovered
    were partially crushed. If the technology who have recovered
    files had success by viewing... maybe you
    could ask him what software he used.

    You can view the files in Windows Paint?

    If you have no success in the file display... the
    more info can be useful...

    There is software that can be able to
    Restore files. If you want to experiment...
    the following programs of detail may be worth a try.

    Good luck...

    The following programs are not free, but the demo
    versions will be preview files that can be recovered.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    PixRecovery
    http://www.OfficeRecovery.com/PixRecovery/

    Stellar Phoenix digital media recovery
    http://www.stellarinfo.com/digital-media-recovery.htm

  • Firefox opens in a tiny window and will not resize. Only the upper right corner displays a.

    I uninstalled and reinstalled the program, but I still get the same window that displays reduce, restore and exit buttons. Get out and minimize the work but the food is not available. Resizing does not work. I can't go to all the controls in the program to make changes or run a troubleshooter.

    The computer problem I worked who had the problem wouldn't me be enough window to reach all the controls in Firefox. I ran virus scans several times and does not solve the problem although I found a bunch of threats and malware. Finally, I've isolated a purchasing department that I was able to uninstall program. That solved the problem with Firefox. It was Shopz. Unpleasant things.

  • New version of Firefox will not show images jpg/slide show!

    I throw it here once again... From last Friday (Nov 11), my site loaded perfectly with Firefox, but the next... nada. Jpg images inside a frame graphical rotation are more, but they don't appeary with Safari and 3.6.24 version. I've checked all my plug-ins with the newer version (they are updated), until hell? Images to: www.CreedenceAgain.com/about.htm (at the top of each page)

    THANKS TO ALL WHO CAN HELP A NON-PROGRAMMER TO FIX MY SWEET SWEET SITE!

    It works very well with Firefox 8. It seems that your Firefox browser has a problem with javascript. Check if Javascript is enabled or not in your Firefox browser.

  • my photo files will not display images view thumbnails or icon. How can I get the image to appear agai

    Just reinstalled Vista. file picture does not display my images, only the image picturesque mountain/water windows. where are they going to turn on the real Lawrence? Thank you.

    Here's a possibility... go to... Start ORB / Control Panel.
    Folder options / tab / files and folders / uncheck
    "Always show icons, never thumbnails" / apply / OK.

  • Dell V305 scanner will not convert image to PDF without OCR

    Hello

    I have a Dell V305 scanner, and I would like to convert images to PDF without running the OCR software.  Is this possible?  When I try to convert an image to PDF, it gives me an error "OCR program missing.   My CD drive is broken so I can't install the OCR from the CD software.  I looked for a download from Dell, but could not find one.   Can you suggest a solution?  Thank you very much

    . - Sheila

    Hello

    I never tried to convert images into PDF without OCR. But I've only tried to convert PDFS into images using some PDF conversion tools. I wonder if there is some pluins can thus help with that? You can google it and give it a try. I wish you success. Good luck.

    Best regards

    Arron

  • Flash games will not resize in function display properly when expanded

    Hey everyone, hope you're all well today

    This really isn't a problem, it's just an annoyance for me when my daughter and I play flash games online-based.  I just got a HP Pavilion while a touchscreen.  So far, everything is ok with it, but this question:

    When I try to open the game after the login screen screen is just a little more big and not centered, but it opens in the upper left corner with the majority of the real game screen is the same small size he had before it was enlarged and ads being expanded outside on the right side to the place.  There is also a large area of the screen on the right side that has nothing more than a solid white color in it.

    I looked all over the internet trying to figure out how to solve this problem and I can't find a solution that works.  Any ideas?

    Well, who wasted no time. Got the answer, but it's not a big.

    It is a flash based game well but there was not a lot of expenses in the controls. There is in fact no parameters.

    It's like you see in your browser. She is supposed to have a fixed size.

    The only work around it to lower the resolution of the screen itself settings in Windows.

    In windows 8 or 8.1 if you use the Office of tiles, just start typing the Word set and a set of options will appear.

    Click on change display settings.

    If you have the desktop display, right-click on the screen and choose the resolution of the screen.

    Lower the resolution slider until it more low setting (or experience with sizes) and click OK.

    The game appears now larger or full screen according to the setting.

    Do not put the browser full screen. Use restore to the bottom and Center it.

    You will need to go back and again to restore the monitor to normal, such as it was.

    Your old monitor on the old XP machine was probably much more low resolution that your new one is now.

    This isn't a problem of windows 8 or a HP all in one problem, its a game scheduled at a great price.

    It will be useful.

    BTW, I joined this stupid game just to verify this.

    The Sacrifices I make... Sheesh!

  • Windows 7 toolbar icons will not resize

    First post on this forum!

    My quick launch icons are still important, even though I have a right click, properties, "use small icons" selected. Also tried with a costom toolbar. It worked in the past, but when I rebooted, I lost the custom bar, and when I added it again, the icons were large.

    Icons of tasks active resizing correctly with the above option, but the toolbars and the Quick Launch toolbar remain the same, great.

    Any ideas?

    see you soon



    SOLVED.

    Place the cursor over the toolbar does not matter if it's a custom toolbar or the Quick Launch bar), CLICK RIGHT, choose the VIEW command (no), then select 'SMALL ICONS '.

  • Taskbar Windows 7 will not display images

    Recently I had to reboot my laptop to an earlier date. When I did I noticed that my taskbar of Windows 7 Home Premium are not clear, does not show an image on the page when wriggling on the task and in the corner of the Office is not erased when twitch on the lower right. It looks like an old for windows but when I check my system it still says Windows 7. I tried right click and find real estate for the taskbar, but nothing has done that before. Those are the only things now that I see has changed on my HP laptop. Any suggestions? I also check "aleo" but who appeared no problem.

    Another thing to check,

    Right-click on your desktop and select Customize,

    Make sure first that your still using a theme win 7 aero, if so,

    Click the Windows colors on the Middle bottom.

    Check the box to enable transparency, record.

  • ERROR CODE 604, will not import images after the recent upgrade from trial version free of subscription.

    HI, I'm getting an error code 604 when I try to import images, it comes up with the following message, some import operations were not made, the following files were not imported because they could be read... items 1-100 etc.

    I import the raw files from my card, it's no different than when I imported on the free trial version, but now I've updated it wont let me import, everything else seems to work very well with the catalogue, export etc.  Please help me as soon as possible, if someone had this problem?

    Hi thank you 99jon, you're perfectly right, it's to do with permissions and thanks for putting me on the right track to fix, the destination had for some strange reason changed during the upgrade, so raw files went to a file on the hard drive which has permissions rather than the images where he used to go (until the upgrade).  If anyone has this error code 604, please look to see where the images are current, is not always easy to say right away, I saw he entered the hard drive and initially assumed that it would go into pictures where it is before the upgrade, it would be useful that adobe has this error code with an explanation of what this means on their list of troubleshooting , but could not find any information anywhere.  It caused me a lot of delays with hundreds of images that I work on different maturities, but thank God its fixed, very happy

  • 6 Lightroom will not import images from a canon 5 d cr2

    I have lightroom 6.  I also have a Canon 5 d classic.  I tried to attach, nope.  I tried directly from the card reader, nope.  I transferred from the card reader to the computer and tried to import, nope.  It's just not going to work.  What is going on?

    I watched my version of Lightroom 6 and it was 2.0, not upgraded

    completely so I just let it upgrade again and he allowed the images to

    import from the computer.  I have not tried the card reader and I

    already know that it does not support attaching to this camera.  So I think that I have

    have a way to get my pictures here now.  It was a frustrating trip,

    Lightroom 6 was bug out of the box, but for now, it seems to be in place and

    running.

    Thank you!

    Friday, October 9, 2015 at 12:20, Chetna Srivastava, [email protected]

Maybe you are looking for