resizing image in the center when the click on

I have a logo with is placed in the middle of the scene, and when I click it, the logo must be resized an amount x pixels in width and height. (see code below)

sym.$("Logo").animate({"width":"120","height":"40"}, 400); 

but I want this logo to resize and always stay centered. I feel like I need to add the code related to the center of the alignment, but I don't know how.

Thanks in advance.

You can calculate distances, I guess. You can get the position with left(), top() your object, and then the scene and do some math!

Tags: Edge Animate

Similar Questions

  • How to show the BLOB (file pdf, image) as pop up when you click on a link

    Hi all

    I have a requirement that, when, clicks on a commandlink in a page, I need to show the BLOB (pdf, image in my case) in the pop-up window.

    I am therefore able to get the BLOB when link clicks on command.

    Please help me on this aspect, how can I show this BLOB in pdf or image format in the pop-up window

    Thank you very much

    Krishna

    Hello

    Have you seen this? https://technology.AMIS.nl/2011/07/28/ADF-11g-show-PDF-in-a-popup/

    Concerning

  • How to change the image of a line when you click on it from the waterfall cookbook sample application

    Hi, I have a few sql data. And I'm showing them with qlistdatamodel. I used the ListItemProvider and implementing customControl for each line in the sample application cascade cookbook. Which can be found in here. I want to change an image of the line when it is selected. I modified the method 'select' of 'recipeItem.cpp'

    void RecipeItem::select(bool select)
    {
      // When an item is selected, show the colored highlight Container
      if (select)
      {
    
          mHighlighContainer->setOpacity(0.9f);
          mItemImage->setImage(Image(QString("app/native/assets/btn_a.png")));
    
      }
      else
      {
        mHighlighContainer->setOpacity(0.0f);
    
      }
    }
    

    It should have changed the image btn_a.png. But what it does is removes the image and the text remains. Thank you.

    I just found out another of my post that my uri of the image is incorrect. The format of the url I was using was valid only in a Beta SDK. It should be like "asset:///btn_a.png". Now it works perfectly

  • have toshiba LL850 want to resize image for the background but have tried most things and still does not

    I have a Toshiba L850 and try to mount an image for the background.  Have you tried the resolution of the screen to pull the lever, but still does not.  Can someone go through the steps for me please.

    Hi June,

    What version of Windows is installed on the computer?

    The articles below show you how to change the background image and set the Position of the image in the Center that it adjusts automatically on the screen.

    Items are for Windows 7 The steps are similar to Windows Vista and Windows 8. However please let me know what version of Windows is installed on the computer and I'll give you the steps for this operating system. When the computer restarts, you'd be able to see the name.

    http://Windows.Microsoft.com/en-us/Windows7/change-your-desktop-background-wallpaper

    http://Windows.Microsoft.com/en-us/Windows7/change-your-desktop-background

    I hope this helps. Get back to us if you need more help.

  • Fireworks CS5 'automatically' resizes images to the tiny dimensions

    I have a strange problem when working with Fireworks png of one of my experts in the field. So it's nothing new to us and it has been used in tens of thousands of images (we deliver eLearning to 70,000 people per year in 130 countries), we have been in Fireworks since about 2000. We have 10 users and have been used for a series of windows machines over the years.

    We use with Flash, Dreamweaver, and Fireworks CS5, and generally everything works fine. But a few months ago, I opened one of its PNGs (layer, etc.) and if I made any changes or not when I re - open it was resampled very small. For example, an image of 600 by 400 pixels display 16 x 15 pixels.

    That would happen with any of his images on several machines at work (* CS5) and my machine at home (CS5.5).

    We had remove IT and then reinstall Fireworks CS5 on his machine and everything was going well for two months. Now this weird thing happens once again. There are a few local configuration file that has changed. I am after my roll trying to solve this problem and the only solution I have is to open its files in Photoshop which works very well (but is not ideal, since only two MMDs PS and we must change the captions in Fireworks).

    To summarize - I open one of his images, close it and reopen it and it resamples to very small dimensions and unsuable.

    Has anyone ever seen this strange behavior?

    Is there a config file I can delete and let the system rebuild? (I remember some flash question, years, which was set like that).

    Thank you!

    Well, I think I found the issue although I don't understand why this happens only to the files of one person (don't forget that I've been using Firewworks since 1999).

    If I open the pictures they look very well. But when I export to PNG - 8, they get very small. It is happening now for a few years and it only happens with one or two of our SMEs.

    BUT... what I have done today, after facing this once again, was to use the Export Wizard. When I finally get to the Preview Image of the wizard dialog box and then click on the file tab, the scale is set at 15% and not a default value of 100%!

    So, indeed, all its images act as they are exported with a custom preset - only I don't have any presets like this!

    Other images of SMEs are fine, even when worked with less than a minute working with those giving problems. Exact same treatment from me, all look well in my preview, with the exception of those in question, once exported.

    Why they have some metadata hidden saying their scale is beyond me (and its images behave badly for an another MMD who is located in another State from me)!

    I dunno why, but now I can at least export them to normal size.

  • Windows "resize image" option box disappeared when we want to resize photos for email

    Hi I hope someone can help.  When I click on a photo in "my pictures" on my computer XP the option button 'windows can resize your image' is no longer hits the screen.  I have always had it and use all the time as I am a photographer.  I'm really, really bored, so if anyone can help me to get it back or turn on again, I would really appreciate...

    Thus, it is the usual method that I have to send him a smaller photo in an email - click the photo or photos I want to send - right click - to - mail recipient - then the box pop up asking if I want to resize the pictures (I have a choice of small, medium or full size) - after this, a blank e-mail opens with the pictures already in the section attachments - then I just move on as usual to send.

    If no box will now appear.  Any help is very appreciated with this.  I feel that my arm was cut as my photo files are much too large to email that they are...

    Thanx, Suz PS. As you can tell I'm not really good at the art of things so if you can word answers to "baby talk" that would be great, IE click on this, select that, press OK etc etc.  :)))

    Windows XP...

    Go to start / run... and type or copy / paste the following command:

    regsvr32 /i shimgvw.dll

    (Yes, the space after the 2 and space after that the i is necessary)

    Press on... Come in...

    You should see a dialog box stating:
    DllRegisterServer and DllInstall in successful shimgvw.dll

    Now try to send a picture via... Right-click / send to / mail recipient...

  • image and text change when you click sublink

    Dear Sir

    I would like to know how I can show a picture when I clicked sublink?

    I have 3 MCs: sub_bg, ImgMc and bg.

    sub_bg of the code is:

    function linkF(s:String):Void

    {

    _root. S = BG.txt.htmlText;

    }

    BG of the code is:

    Stop();

    var styles = new TextField.StyleSheet ();

    styles. Load("CSS/main.css");

    _root. BG.txt.html = true;

    _root. BG.txt.StyleSheet = styles;

    _root.sub_bg.subTXT.html = true;

    _root.sub_bg.subTXT.stylesheet = styles;

    var newsXML:XML = new XML();

    newsXML.ignoreWhite = true;

    newsXML.onLoad = {function (success)}

    If (success) {}

    var defaultp:String = newsXML.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [1] Sublst.ChildNodes(1).ChildNodes(0) [0].firstChild.nodeValue;

    _root. BG.txt.Text = defaultp;

    for (var i: Number = 0; i < newsXML.firstChild.childNodes [1].childNodes.length; i ++) {}

    var tlink:String = newsXML.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [1] .attributes. Name;

    var links: String = newsXML.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [1] Sublst.ChildNodes(1).ChildNodes(0) [i].attributes.name;

    imageS of the var: String = newsXML.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [1] Sublst.ChildNodes(1).ChildNodes(0) [i] .attributes. ImgUrl;

    The var text: String = newsXML.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [1] Sublst.ChildNodes(1).ChildNodes(0) [i] Sublst.ChildNodes(1).ChildNodes(0);

    _root.sub_bg.subTXT.htmlText += ' < a href = "asfunction:linkF," + text + "" > "+ links + '< /a > < br / >';".

    _root.sub_bg. LinkTitle.htmlText = tlink;

    }

    }

    }

    newsXML.load("xml/homes.xml");

    I'd appreciate your help.

    Kind regards

    MELAS

    Post edited by: melas076

    use:

    function linkF(s:String,s2:String):Void

    {

    _root. S = BG.txt.htmlText;

    _root. ImgMC.loadMovie(s2');

    }

    Stop();

    var styles = new TextField.StyleSheet ();

    styles. Load("CSS/main.css");

    _root. BG.txt.html = true;

    _root. BG.txt.StyleSheet = styles;

    _root.sub_bg.subTXT.html = true;

    _root.sub_bg.subTXT.stylesheet = styles;

    var newsXML:XML = new XML();

    newsXML.ignoreWhite = true;

    newsXML.onLoad = {function (success)}

    If (success) {}

    var defaultp:String = newsXML.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [1] Sublst.ChildNodes(1).ChildNodes(0) [0].firstChild.nodeValu e;

    _root. BG.txt.Text = defaultp;

    for (var i: Number = 0; i<>

    var tlink:String = newsXML.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [1] .attributes. Name;

    var links: String = newsXML.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [1] Sublst.ChildNodes(1).ChildNodes(0) [i].attributes.name;

    imageS of the var: String = newsXML.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [1] Sublst.ChildNodes(1).ChildNodes(0) [i] .attributes. ImgUrl;

    The var text: String = newsXML.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [1] Sublst.ChildNodes(1).ChildNodes(0) [i] Sublst.ChildNodes(1).ChildNodes(0);

    _root.sub_bg.subTXT.htmlText += "" + links + " ."
    ";

    _root.sub_bg. LinkTitle.htmlText = tlink;

    }

    }

    }

    newsXML.load("xml/homes.xml");

  • Question about resizing images in the photo gallery

    I have a bunch of pictures that are different sizes and I am trying to modify them so that they are the same size. I tried their resizing, but it evolves down to sizes of origin there (which are different). This is they way I can edit these photos all at once and edit them to all be the same size photos when I copy and paste someone else. Any suggestion would be appreciated.

    It is true that resizing is dimension applies to the largest dimension on a file in Portrait or landscape mode,

    It is not an easy way around that because of this restriction / you can't dictate or see the two dimensions on this page of resizing.

    Design flaws.

    However, you can change a portrait to landscape using the culture and the lower part of the Crop button has rotation framework that will pass a part in landscape format, including the resizing function will resize itself with files using the correct size now.

    You might even be able to test with the Proportion for best results?

  • Insert an image in the pdf (Adobe Acrobat Pro DC) using javascript

    So, basically, what I want to do:

    .this.getField('imageField').importImage('path_to_img');

    I know that this code is not correct, but is there a way to do this? I couldn't find the solution in the Acrobat documentation.

    Most of the issues I found referred to the problem when the user selects an image at the click of a button. I don't want that.

    I need something like what I wrote above, because path_to_image is a variable I'm pulling from a database...

    Do you actually fix layout of the button to "Icon?" only

  • Why are JPEG images on the hard drive of my computer all of a sudden now Virgin?

    JPEG images on the hard drive of my computer are now white (it reads 0kb and the tile is missing) and when I go to open it in Windows Photo Viewer, it gives me an error saying that there is not. I noticed that it happens to almost all of the photos that I have edited in Lightroom 5. I shot an entire season of football last year, all in JPEG format and with my guards, I advanced and edited in Lightroom and now they are virgins. I never moved my photos anywhere. I turned the game in November, created the folder for this game, and that's all. I'm almost a year more later to print them for my portfolio and the file is missing! Lightroom can show the photo, but I can't make adjustments in the develop module because the file is blank on my computer. The weird part is that the sticker is there, the number of correct image is there, and when I click to display in the Explorer in Lightroom, it pulls up the JPEG right, if the location is OK in Lightroom, just no thumbnail image and no image size when I go to open it using the Windows Photo Viewer. I checked the other games that I shot and it's happened to almost all games.

    If you have pictures on your camera cards, then of course you can simply copy them to the appropriate locations.

    There are plug-ins in Lightroom that can recover the preview using Lightroom, but these will be smaller and lower in quality than the original. Perhaps one of our plug-ins experts can suggest the good plug-in.

    If the hard drive goes really wrong, as I suggested, you definitely want to be replaced. If this is the case, you won't continue to use it. You might want to run some diagnostic disk on this subject.

  • How to open an image in the popup window?

    Hello
    In my project, there is little text and a small image. I want when I click on this picture, that a window appears with the complete table with only the option close.
    Any idea!

    Thank you

    Hi, you can use the ExternalInterface.call("saveglobalscore",score) () method and set the parameters as you want. Another way is that you can use PopUpManager.createPopUp () and use the TitleWindow as display object in which the use of the image for the image you tag want.

    Kuldeep Atil
    kuldeepantil [at] gmail [dot] com

  • When I click on firefox a message pops up saying "' error: platform version 40.0.3 is not compatible with minVersion &gt; = 38.0.5 maxVersion &lt; = 38.0.5" how to fix it? "

    This is an image of what appears when I click on Firefox

    This usually happens because of a Firefox update failure that left you with a mixture of old and update files in the Firefox program folder.

    Do a clean reinstall and delete the program folder before Firefox to (re) install a new copy of the current version of Firefox.

    If possible to uninstall your current version of Firefox to clean the Windows registry and settings in the security software.

    • Do NOT remove the "personal data" when you uninstall your current version of Firefox, because this will remove all profile folders and you lose personal data such as bookmarks and passwords including data profiles created by other versions of Firefox.

    Delete the program folder Firefox before installing newly downloaded copy of the Firefox installer.

    • (32-bit Windows) "C:\Program Files\Mozilla Firefox\"
    • (Windows 64 bit) "C:\Program Files (x 86) \Mozilla.

    Your bookmarks and other personal data are stored in the Firefox profile folder and will not be affected by a uninstall and (re) install, but do NOT delete personal data when you uninstall Firefox which removes all Firefox profile folders and you lose your data.

  • How to navigate to another screen when I click on BitmapField what listener I have to use?

    Hello

    My requirement is I need to add icons to image in horizontally and when I click on the icon of the image it must navigate to specific screen, so I use BitmapField to display image icons and I added to HorizontalFieldManager but how to navigate to another screen when I click on BitmapField (the image icon) who listens to I have to use?

    Please suggest useful links.  Advanced thanks.

    Concerning

    Sunil.G

    Personally, I prefer to do the treatment that you need directly on the ground rather than using a listener.

    The following code is an example:

    BitmapField bmf = new BitmapField(Bitmap.getPredefinedBitmap(Bitmap.HOURGLASS), Field.FOCUSABLE) {
        protected boolean navigationClick(int status, int time) {
            Screen myScreen = new ();
            UiApplication.getUiApplication().pushScreen(myScreen);
            return true;
        }
    };
    
  • When I click (or double click) a picture to open it, it opens too big for desktop screen.

    Original title: too big images

    Windows 8 - when I click (or double click) a picture to open it, it opens too big for desktop screen. I tried different programs, and all are the same. I used the painting for a long time and it was fine.  It started all of a sudden. I have not changed other settings I know.

    Hi Sandra,.

    Thanks for posting your request here in the Microsoft Community.

    This could have caused because all settings or update related issues. I would like to know some information about this problem so that we can help you further.

    1. do you get any error code or error message while starting?

    2. have you checked if the same problem occurs on a different user account?

    3. this problem occurs only when opening the images?

    I would suggest trying the following methods and check if it works for you.

    Method 1:

    Try to install the latest drivers and updates to the Web site of the manufacturer of the computer or from Windows Update and check if it helps. This is to check if the problem is caused due to any update related question or not.

    See the following Microsoft Help article to download and install the drivers.

    http://Windows.Microsoft.com/en-us/Windows-8/all-drivers

    Method 2:

    Check to see if the same problem occurs on a different user account. This is to check if the problem is caused due to any user profile related question or not.

    If you do not have a different user account, see the following article from Microsoft Help to create a new user account.

    http://Windows.Microsoft.com/en-us/Windows/create-user-account#create-user-account=Windows-8

    Please reply with the status of the issue so that we can better help you.

  • Gray question marks instead of pictures when I click on photos in Photoshop elements 14.

    I just upgraded to ss14. Then, I inserted a new card from a recent trip in my card reader and any vacation photos. I see the images as thumbnails, but when I clicked to see larger, no images appear; I see only gray mark points.  Please tell me what is happening here.

    Hi Bonny.

    Could you mention the format of the files that you use?

    Try to right click on the thumbnail > update thumbnail. Does make a difference?

    Thank you

    Catherine

Maybe you are looking for