the image fit more into the window.

Hi all

I tried to display an image and adjustment in the window but the image is displayed in the window of the half111.jpg.

Can someone give me a hand please?

Here is my code.

stage.scaleMode = StageScaleMode.SHOW_ALL;

internship. Align = StageAlign.TOP_LEFT;

var myImageLocation:URLRequest = new URLRequest("..) ("/ image/iconWithTextDT.png");

myImageLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, onImageLoaded);

myImageLoader.load (myImageLocation);

addChild (myImageLoader);

private void onImageLoaded(e:Event):void {}

var scale: Number = stage.stageWidth / myImageLoader.width;

If (myImageLoader.height * scale > stage.stageHeight) {}

Scale = stage.stageHeight / myImageLoader.height;

}

apply the image scale

myImageLoader.scaleX = myImageLoader.scaleY = scale;

}

You can try this code

var myImageLocation:URLRequest = new URLRequest("..) ("/ image/iconWithTextDT.png");

myImageLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, onImageLoaded);

myImageLoader.load (myImageLocation);

private void onImageLoaded(e:Event):void {}

var bm:Bimtap = myImageLoader.contenet

var appwidth:Number = stage.stageWidth;

var appheight:Number = stage.stageHeight;

var imageWidth:Number = bm.width

var imageHeight:Number = bm.height

if(ImageWidth>ImageHeight)

{

BM. Width = appwidth

BM. Height = appwidth * (imageHeighr / imageWidth)

}

on the other

{

BM. Height = appheight

BM. Width = appheight * (imageWidth/imageHeight)

}

addChild (bm);

}

Tags: Adobe Animate

Similar Questions

  • My screen of photoshop is more remains entrenched, so that when I open an image, sometimes, it will cover the tools on the left.  How can I get photoshop to open the window anchored and not mobile?

    My screen of photoshop is more remains entrenched, so that when I open an image, sometimes, it will cover the tools on the left.  How can I get Photoshop CS 6 to open the window anchored and not mobile?

    Reset your workspaces in an embedded design.

    Mylenium

  • How to import only SOME images from my digital camera to the windows live photo gallery.

    Whenever I try to import new photos on my digital camera with a player... he tries to import the other 112 photos already imported.

    Hello

    You can not in Windows Photo Gallery. Some camera manufacturer provide utilities for importing images that can
    have more features. There are also a few 3rd party utlities that can help - use Bing or Google.

    ---------------------------------------------------------------------------------

    How can I get pictures from my camera to my computer? (Vista)
    http://Windows.Microsoft.com/en-us/Windows-Vista/how-do-I-get-pictures-from-my-camera-to-my-computer

    "Why I can't choose the pictures to import? ."

    Because Windows detects your newest pictures and doesn't matter the duplicate versions of the old photos that you've already copied to your computer, it is now easy to import your photos into the folder of photos in a single step. In addition, we recommend that you consult your pictures in Photo Gallery, where large previews make it easy to decide which newly imported imported pictures to delete from your computer. »

    How can I get pictures from my camera to my computer? (Windows 7)
    http://Windows.Microsoft.com/en-us/Windows7/how-do-I-get-pictures-from-my-camera-to-my-computer

    "Why I can't choose which photos or videos to import? ."

    Windows detects your images and your most recent videos and is not a duplicate of the old photos or video versions that you have already copied to your computer, so you can import your pictures and videos in a single step. You can then view and organize your photos in the photo library. For more information on the management and organization of photos in the photo library, see Managing your photos. You can also view your images imported into the Windows Photo Viewer, where the large preview format makes it easier to decide which newly imported pictures to delete from your computer. For more information on the display of your pictures in Windows Photo Viewer, see view and use your pictures in Windows Photo Viewer. »

    Working with digital images (Vista)
    http://Windows.Microsoft.com/en-us/Windows-Vista/working-with-digital-pictures

    Working with digital images (Windows 7)
    http://Windows.Microsoft.com/en-us/Windows7/working-with-digital-pictures

    Change the settings for importing pictures and videos
    http://Windows.Microsoft.com/en-us/Windows7/change-settings-for-importing-pictures-and-videos

    Windows Photo Gallery: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/Windows-Photo-Gallery-frequently-asked-questions

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

    Windows Live Essentials: Photo Gallery
    http://explore.live.com/Windows-Live-Essentials-Photo-Gallery-get-started?T1=T1

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • I'm a window that has the windows displayed in yahoo mail and hadou and I can click on one of the images of a window and it will restore the window how?

    I am in yahoo mail and there is a window that has the windows displayed and I can click on one of the images of a window and it will restore the window how to access this window (size full one who possesses a collection of previous windows in a complete graph/no format)?
    The window that I write the topic is a collection of previous windows images in a smaller size.

    Firefox has a feature to view all your open tabs in one or more groups of tabs. You can show and hide this screen by pressing Ctrl + Shift + e. Is this the one you see, or something different?

    If you ended up with more than a group of tabs and you want to consolidate them, you can drag the thumbnail images all in one group.

    More information: use tab groups to organize a large number of tabs.

  • Updated for Firefox 18.0 and now windows wrap incorrectly, with more and more of the right part of the window appears on the left when you get off.

    Update Firefox 18,0 on a MacBook running Mac OS 10.6. Non-static moment of window display areas (squares url & search, main area of window, etc.) incorrectly, similar to what happens when a program thinks that the image (for example) is 500 pixels wide, when its actually 512 pixels wide. Each line after the first begins with what is "still" line above, resulting in an image that appears tilted, with what should be the right of the image progressively more appearing on the left side of the image. No other programs (including Safari) do seem to be having this problem, and it appeared immediately after the upgrade. Minimize the window in the Dock, and then reopen temporarily solves the problem. As soon as I scroll the window, the problem reappears.

    Have you tried disabling hardware acceleration?

  • Automatic image resizing - small for the size of the window

    When you view a stand-alone image too large to fit in the window, Firefox it is automatically resized.

    That is fine, but I'm on small images most of the time. Have to zoom in manually the image each time to get around window size is very tedious, and I would avoid the rigmarole.

    Expansion Image Autosizer for Opera has the function I'm looking for, but I couldn't find an equivalent for Firefox.

    I wrote a user script (for use with Scriptish).

    • It automatically zooms in small images.
    • Left click the image, it returns to its original size.
    • Left click again of will zoom in again (useful for example if you maximize the window to get a better view, after the image has already been automatically zoomed in).
    • By default, this script does not on URLs without an extension of image (like this comic) file. These URLS can be added manually in Scriptish preferences for the script.
    // ==UserScript==
    // @id             dc989f0a-f9e6-4507-ba5f-a0730a614553@http://forums.mozillazine.org/memberlist.php?mode=viewprofile&u=261941
    // @name           Auto zoom lone images
    // @version        2.5
    // @namespace      http://forums.mozillazine.org/memberlist.php?mode=viewprofile&u=261941
    // @author         Gingerbread Man
    // @description    Automatically zoom small standalone images
    // @include        http://*.jpg
    // @include        https://*.jpg
    // @include        http://*.gif
    // @include        https://*.gif
    // @include        http://*.png
    // @include        https://*.png
    // @run-at         window-load
    // ==/UserScript==
    
    var img = document.images[0];
    var iw = img.width;
    var ih = img.height;
    var ir = iw / ih;
    
    function togglezoom() {
    	if (img.width>iw||img.height>ih) {
    		img.width = iw;
    		img.height = ih;
    		img.setAttribute("style","cursor:-moz-zoom-in");
    	}
    	else zoomin();
    }
    
    function zoomin() {
    	var ww = window.innerWidth;
    	var wh = window.innerHeight;
    
    	if (iw<ww&&ih<wh) {
    		img.addEventListener("click", togglezoom, false);
    		var zohw = wh * ir;
    
    		if (zohw<=ww) {
    			img.height = wh;
    			img.width = img.height * ir;
    			img.setAttribute("style","cursor:-moz-zoom-out");
    		}
    
    		else {
    			img.width = ww;
    			img.height = img.width / ir;
    			img.setAttribute("style","cursor:-moz-zoom-out");
    		}
    
    	}
    
    }
    
    zoomin();
    
    //.user.js

    I guess since I have not received all the suggestions, I'll mark this as the solution.

  • The windows XP boot image

    Hi, I just got a computer from a vendor who shows a picture to start windows using the "Microsoft office picture manager. The problem is that the operating system stops until I close the 'Microsoft office picture manager' loading. It is annoying to be able to close this image every time I start the computer.

    Question:

    How can I get rid of this image to load at startup of windows?

    Kind regards

    kikeman

    That will probably be controlled by one of the services or startup programs.  You can selectively disable the, or all of them at a time to see if that gets rid of them.  Also try to boot into safe mode and see if it still shows this image.  You can also search for viruses and malware.
     
    Steve
     

    I recognized some of the application that started with the computer, but it seems they are responsible when the windows that display the office already.

    The image I want to talk to is loaded before showing the desktop and windows to stop loading (desktop computer will not appear) until I close the image (shown in 'Microsoft office picture manager')

  • When the computer is turned on, it goes into the Windows Boot Manager and it says File\Boot\BCD status: 0x00001c.

    Original title: 0x000014c File: \Boot\BCD

    I have a Dell Latitude E5400 running Vista Basic. Just replaced disc and ran all the diagnosis is good. When I turn on it goes into the Windows Boot Manager and it says File\Boot\BCD status: 0x00001c Info: an error occurred trying to read the boot configuration data. After I ran the diagnostics, he said that all tests passed but and if I wanted to continue with more, I said no and we say "Error" "SYSTEM_ERROR this system is not recognized as a Dell PC support. These diagnostics cannot be run on unsupported systems. "Then there's an OK box. How can I possibly fix. It is laptop of my child and I would like to fix it for him for the school. I have restore Dell custom factory integration CD that came with his laptop. It is said that "it is the Dell CD of CFI restore disc. I really don't want to ruin it. I don't want to run this disk and then was not the driver for it and she will not be able to surf the net or something like that. If anyone has an idea please let me know. Thank you!

    Hi Maddy,

    This problem may occur if the Windows startup files are damaged or missing.

    If your computer has integrated system recovery options, you can try to perform the Startup Repair and check if it helps.

    If it fails, you must have a Windows Vista installation disc and try to parade Startup Repair boot from the disc.

    If the problem persists, try the steps in the article to rebuild BCD, boot from the installation disc.

    Use the Bootrec.exe tool in the Windows recovery environment to troubleshoot and repair startup issues in Windows

    Because you replaced the hard drive, you can also get in contact with the Dell helpdesk for assistance.

    Hope the helps of information.

  • An image can be added to a signature in the mail in the window?

    I have a business e-mail address, and the regulation for my profession requires a signature added to each outgoing email that I send. What is a way to add an image to the Windows mail signature? I know that one can be added to Live Mail but I don't like this program so I would continue to use the mail of the window if possible. Thanks in advance.

    Linda

    Note: The HTML Signatures must be less than 4 KB.

    Open a new Message window and create your signature. (Insert the graphic & text). Click on the Source tab (view |) Source Edit if not already checked). Highlight the complete source code and copy / paste into Notepad. File | Save under and in the file name field, save as htm, (i.e. Sig1.htm). It will be saved in My Documents by default. Go to tools | Options | Signatures. Click: File | Browse and insert your saved signature | Apply. You can now rename it if you wish.

    Of course, if the recipient reads in plain text, they don't see the it.

  • latest updates to the windows photo gallery. I try to watch video ang a few images and I get a mess. could not load... update example need to lates. I find nothing in the updates. Help!

    picture messaging and video

    Hi kstormu812,

    Welcome to Microsoft answers forums!

    I would like to know the following information to help focus in the right direction.

    a. don't you make changes to the computer before this problem?

    b. don't you make changes to the windows photo gallery settings?

    c. What is the exact error message and error code?

    d. you are able to see other images saved on the computer with no problems?

    e. What is the file format of the photos or videos?

    If you have a third party photo editing software, try removing it and see if that will help.

    Note: Please try this step only if you can recover the program.

    Gallery Photo will show images with any of these file types:

    ·         BMP, JPEG, JFIF, TIFF, PNG, WDP

    If Windows Movie Maker is installed, photo library will also play videos in these types of files:

    ·         ASF, AVI, MPEG, WMV.

    If you view files, that are other than the files listed above, you will need to convert them to the format mentioned above.

    For more information

    Windows Photo Gallery

    http://Windows.Microsoft.com/en-us/Windows-Vista/Windows-Photo-Gallery-frequently-asked-questions

    You can check the link, which addresses the issue of windows photo gallery.

    http://social.answers.Microsoft.com/forums/en-us/vistamedia/thread/9f6bf1f8-50EC-4baa-b2c5-212c823ded68/

    correct your problem.

    Thank you, and in what concerns:
    Ajay K
    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • We have added images to the Windows Photo Gallery and they will not come with other photos in our screensaver. What should we do?

    We put family photos in Windows Photo Gallery and then transfer them to a disc for recording.  We leave some in the Windows Photo Gallery and then click on the photos in the section of the control panel of the computer screen saver.  Old photos still come on t he screen saver, but the new ones that do not.  In addition, any image that we place it anywhere on the computer in a file or something else happens now in the photo gallery, and they did not have it before.  We need to stop that as well.

    We want to use all the photos in the photo gallery for the screen savers.

    We would like to stop pictures in other parts of the computer to be placed automatically in the photo gallery.  We want only to directly uploaded photos.

    Hello

    Try to make the clean boot and see if it makes any difference.

    To the clean boot you start Windows by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.
    For more information you can check the link below:

    http://support.Microsoft.com/kb/929135

    Let us know if it helps.

  • can see is more jpg / gif in the Windows Photo Gallery

    Hello.

    Windows Photo Gallery, internet explore and windows Explorer no longer open photos as they did.

    Windows Photo Gallery gives this error when you open a jpg or gif file.
    "" Cannot open Photo theis photo gallery or video. The file appears to be damaged or corrupted. ""

    Internet Explorer appears only the infamous red "X" for one pic and all files associated with.  While browsing the web pictures show only 'X '.

    Windows Explorer only shows the icon not the thumbnail for any display pictures, I chose.

    Questions above should be bound.  What is a registry problem?  Y at - it a jpg codec that can be downloaded and installed?

    I CAN see the pictures with MS Paint, Paint Shop Pro and Quicktime.

    I tried to install the windows live photo gallery, windows update.  Nothing.

    OS - Windows Vista Edition Home Premium.

    Thank you.

    A little more possibilities:

    Windows Vista - Double click on an image opens
    Without the image preview Windows Photo Gallery
    http://www.Winhelponline.com/blog/double-clicking-an-image-opens-Windows-Photo-Gallery-without-previewing-the-image/

    For Windows Vista file association problems
    http://www.Winhelponline.com/articles/105/1/file-association-fixes-for-Windows-Vista.html

    I wonder if completely empty your Temporary Internet Files
    file would make a difference.

    Windows Vista-
    Delete temporary Internet files
    http://Windows.Microsoft.com/en-us/Windows-Vista/delete-temporary-Internet-files

    How to view the temporary Internet files of Internet Explorer and settings in Vista
    http://www.Vistax64.com/tutorials/94239-Internet-Explorer-temporary-Internet-files-settings.html

    Also may be worth a try to clear the cache of thumbnails:

    How to clear the Cache of thumbnails in Windows 7 and Windows Vista
    http://www.Winhelponline.com/blog/clear-thumbnail-cache-Windows-7-Vista/

  • Replace the Windows 8 of HPs recovery image with windows 8.1

    Hello

    Is after going through the upgrade process to windows 8.1 on my HP Envy X 2, now possible to replace the recovery image by default on my partition recovery with one for version 8.1?  I don't want to have to re - update if I do a "refresh your PC without affecting your files' or 'remove all and reinstall Windows.

    Is it possible and supported by HP to change the recovery image in the recovery partition?

    If so, is there any procedure for support to do?

    Concerning

    Anthony

    Sorry, but no.... the Windows 8 by default on the HP Recovery partition recovery image is the only one available. It's the image of origin provided by HP and there is no procedure or the option to change or replace this image with a newer version.

    Please see HP Forun thread titled "8.1 recovery disks" for more information on this topic. My suggestion is to use Windows "Backup of System Image" utility to create a picture of the partition Windows 8.1 as it is currently, on an external hard drive. If your computer develops questions or you need to replace the hard drive, all you have to do is to "restore" the image on the computer. Please see Windows 8.1 Tip: use System Image backup for instructions on creating and restoring a 'Windows - System Image backup.'

    If you have any other questions, feel free to ask.

    Please click the White Star of KUDOS to show your appreciation

  • How can I share network between the computer laptop windows 7 into a window of 8 tab?

    How can I share network between the computer laptop windows 7 into a window of 8 tab?

    Hi HollyMcColl,

    Thanks for posting your query in the Microsoft Community Forums.

    I understand from the description of the issue you are trying to share the computer network between Windows 7 and Windows 8. I will certainly help you in this regard.

    I appreciate if you could help me with more information.

    -Using Windows 8 Surface RT?

    Note: You can create a Windows RT PC home group, but you can join one.

    I suggest you to consult the help articles and check if it helps.

    A Wi - Fi & networking

    http://Windows.Microsoft.com/en-in/Windows-8/HomeGroup#1TC=T1

    Share files on a home network or your Surface

    http://www.Microsoft.com/surface/en-us/support/storage-files-and-folders/share-files-on-a-home-network?LC=1033

    Share files and folders on a network or shared PC

    http://Windows.Microsoft.com/en-us/Windows-8/share-files-folders

    Get back to us if you need further assistance on Windows 8. We will be happy to help you.

  • Windows Media Center has stopped to display images. I am running windows 7 64 bit and the photo folders are visible but empty.

    I am running windows 7 64 bit and just recently I cannot see my photos in media center. Show folders that contain pictures, but they are empty. Also, I went to the folders in my computer and tried to open some of my pictures with media center, and they will not open. This is something new because I've always been able to see my photos in Media center. Everything in Media center works great.  Help

    Hello

    1 have you ever done any recent hardware or change the software on the computer before this problem?

    2. the functions of Windows Media Center are intact?

     

    Method 1:

    First upward, to try and perform a System Restore to a State previous when the Windows Media Center worked very well.

    What is system restore?

    http://Windows.Microsoft.com/en-us/Windows7/what-is-system-restore

    Note: When you perform the system restore to restore the computer to a previous state, programs and updates that you have installed are removed. System Restore helps you restore system files from your computer to an earlier point in time.

    Method 2:

    Turn off the feature and reactivate it:

    a. click Start, type appwiz.cpl and press ENTER.

    b. in the programs and features window, click enable or disable the functionality of Windows in the left navigation pane.

    c. find the Windows Media Center and uncheck the option.

    d. restart the computer.

    e. navigate back to the same location and activate the option back.

    Method 3:

    Refer to this link to learn more about,

    See the photos and videos in Windows Media Center:

    http://Windows.Microsoft.com/en-us/Windows7/view-pictures-and-videos-in-Windows-Media-Center

    To troubleshoot issues with images and videos in Media Center show,

    Working with pictures in Windows Media Center: frequently asked questions:

    http://Windows.Microsoft.com/en-us/Windows7/working-with-pictures-in-Windows-Media-Center-frequently-asked-questions

    Method 4:

    Reregister the following files.

    a. close Windows Media Center.

    b. click the Start menu, type cmd.

    c. right-click on the cmd option in the start menu and select run as administrator.

    d. type in the commands one by one by and press ENTER after each one.

    Regsvr32.exe atl.dll

    C:\WINDOWS\eHome\ehSched /unregServer

    C:\WINDOWS\eHome\ehSched/service

    C:\WINDOWS\eHome\ehRecvr /unregServer

    C:\WINDOWS\eHome\ehRecvr/service

    C:\WINDOWS\eHome\ehRec.exe /unregServer

    C:\WINDOWS\eHome\ehRec.exe/regserver

    C:\WINDOWS\eHome\ehmsas.exe /unregServer

    C:\WINDOWS\eHome\ehmsas.exe/regserver

    e. restart the computer.

    f. restart Windows Media Player and see if the problem persists.

    I hope this helps!

Maybe you are looking for

  • The case of smart battery overload my 6s

    When my 6s is connected and fully charged to 100% in the case of smart, there is always a logo brightening. This means that the case is permanently supported my 6 s? Or using the battery of the case? Could adversely affect the battery of my iPhone?

  • Desktop API

    Hello I know that you have retired from the API on the desk and I also read that you reversed this decision for some aspects of the API, which is good news at least for our society. However, we must Access the API documentation to really do something

  • Satellite A200 - need some XP drivers

    Hello I just installed Windows Xp on my Sat A200 and I installed all the drivers, but some how I can t detect drivers for Bluetooth, webcam, modem device on high definition audio bus USB controllers bus. Can someone help me... Thank you

  • Stopping the engine Service Variable OR in Windows 7 64 bit

    Operating system: Windows 7 (64-bit) Version 9 of Labivew. I configured puts some Boolean and Out entries and an analog input (Double) for monitoring purposes. I use a server OPC Mitsubishi with Labview 2009. (It worked great for over a year) When I

  • I can't load my pictures on my card of camer via my computer. The usual menu disappeared

    When I put my card in my computer, the normal menu to upload photos or videos does not appear and there is nowhere that I can find.