As3 / mouse hover and enlarge image code

Good Evening,
Would anyone be kind enough to share the as3 code that makes a "movie clip" image enlarge and change opacity with a eased tween on a mouse over, and then go back in reverse when the mouse leaves.
Thanks as always,
[email protected]

For what it is worth, I believe this problem is fixed in Rh10.
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge

Similar Messages

  • Mouse Hover Shows the Image Name

    RoboHelp HTML Version 9
    Hi,
    In the WebHelp display in IE, the file name shows when I hover over an image.
    I could put in a screen tip, but I would have to do that for every image and that will be time consuming after-the-fact.
    Can anyone tell me how to change the output so the file name does not display for ALL the images.  I looked in the WebHelp Settings dialog, but can't find anything in there.
    Thanks!!
    Natalie

    For what it is worth, I believe this problem is fixed in Rh10.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to View Album as Only THumbnails and Enlarged Image

    I hope I can explain this right...
    When I click an album on my page, it takes me to a page of smaller thumbnails of all of the images in that album and the thumbnails are scattered around the page. When I click on any of the images, it takes me to a page that shows a strip of square thumbs across the top of the page with one enlarged image beneath, with the option of clicking on any of the thumbs or starting a slideshow, etc. Is there a way you can be brought directly to this page from the main albums page and bypass the middle page of medium sized thumbs? That middle page seems unnecessary and I'd be psyched to learn how to skip it. Thanks!!

    jimrc wrote:
    Thanks Cyclosaurus. That works great and does just what I wanted. There are a few small glitches though that you may be able to help with.
    http://web.me.com/jrcphoto/jrcphoto/GALLERY/GALLERY.html
    When clicking on the People gallery, the page we're bypassing blinks briefly before going to the thumbnail page. This doesn't happen on the other pages. Any thoughts?
    It's servers latency or you browser caching, it's part of async processing (AJAX).
    Also, there is a Back to Album link in the upper left which takes you to a blank page and then you have to click the Back to Index link to get to the main Gallery page. Can I get the Back to Index link on the other page instead?
    Give this a try:
    <script type='text/javascript'>
    _base=parent.window.location.href;
    if(_base.indexOf('#')==-1){parent.window.location=_base.split('#')[0]+'#0';}
    var albumsIndexURL = 'http://web.me.com/jrcphoto/jrcphoto/GALLERY/GALLERY.html'; // this is you album URL, change this if needed
    function newBtI() {
    if (parent.widgets) {
    headerControls = parent.document.getElementsByClassName('com-apple-iweb-widget-detailview')[0];
    backToAlbumDiv = headerControls.getElementsByClassName('left')[0];
    backToAlbumAnchors = backToAlbumDiv.getElementsByTagName('a');
    for (btaai=0;btaai<backToAlbumAnchors.length;btaai++) {
    backToAlbumAnchors[btaai].removeAttribute('onclick');
    backToAlbumAnchors[btaai].setAttribute('href', ('' + albumsIndexURL));
    chknewBtI = setInterval('newBtI()', 500);
    </script>

  • Css code for hover and replace image

    on my page i would like my visitors to hover over a div that contains text and have an image appear, would need to work in most browsers and  not disrupt any other div tags on my page.  is there some simple css code to do this?

    Initially set the display for the <img> to none, then set it to block/inline in the parent <div> :hover rule.
    > not disrupt any other div tags on my page
    If you mean you want the image to occupy its space even when it's not shown, you can use visibility: visible/hidden instead.
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • Hover  and mousedown image on command button

    I have three images for every command button: mouseout, mouseover and mousedown. Could any one tell me how to implement in JSF?
    Van

    use Link to Action instead of button
    Regards
    AM

  • Safari and enlarging images

    I can change the size of text by pressing  +/-, but images remain the same.
    How do I change the size of images?
    answers greatly appreciated
    thnx

    Hmmm...you know I double checked and it looks like only images that are in flash you can do it. So that means it's the feature in flash. You're right! Just regular jpeg's or whatever it's not there...Sorry!

  • Testing for mouse hover and setInterval

    I am trying to build a drop down menu that gets closed after
    a count, rather then directly after roll out.
    My button roll over function tells the menu to open. When I
    roll out of the button or any of the submenu buttons, I want the
    timer to count down for about a second, before closing my sub menu.
    How do I do that and how do I reset the count, if the user rolls
    back over one of the buttons button?
    Thanks a lot for the help!

    yeah this could be done with setInterval, and you don't need
    to 'reset' a count this way, if a user rolls over again, just make
    sure the interval is cleared. it would set up something like this:

  • I have one iPhone 8GB. after making upgrade of iTunes and software of iPhone, it's impossible to use the iPhone. There's no service! doesn't acept the code PIN! it only make emergency calls and the image in the phone is to conect to iTunes.What can i do?

    I have one iPhone 8GB. After making un upgrade of iTunes and software of iPhone, it's impossible to use it. There's no service! doesn't acept PIN code! it only makes emergency calls and the image in the iPhone is the sign to connect to iTunes. What can i do to solve it?

    Where are you and where did you get the phone.  This sounds like a classic symptom of someone who bought an iPhone that originated in the U.S. which was then hacked so it would run on a carrier network other than AT&T... Then, when updating the phone, it becare re-locked to AT&T.
    If that's what happened, you now own a paperweight. AT&T will NOT unlock them for any reason.
    If this isn't the case, please clarify where you are, what carrier you have and where you got the phone so we can begin troubleshooting.

  • In putting together a book I can move photos onto a page and enlarge the picture but is there a way to reduce the picture size? some cases I want a smaller picture and if I change the size of the picture box I only get a portion of the image. I wnt to red

    picture size...in putting together a book I can move photos onto a page and enlarge the picture but is there a way to reduce the picture size? some cases I want a smaller picture and if I change the size of the picture box I only get a portion of the image. I want to reduce the image to fit the size of the box.

    If you right click on the image on the page in the context menu select photo box alignment and then select one of scale to fit {centered, Left-aligned, Right-aligned}
    That should do what you are loking for.

  • I downloaded a vector file from Shutterstock. How do I edit the text in Photoshop? If i enlarge the image- the pixels are awful and the image is distorted.

    i downloaded a vector file from Shutterstock. How do I edit the text in Photoshop? If i enlarge the image- the pixels are awful and the image is distorted.

    jessicae28493569 wrote:
    i downloaded a vector file from Shutterstock. How do I edit the text in Photoshop? If i enlarge the image- the pixels are awful and the image is distorted.
    What is the file format of the vector you downloaded?  Custom Shapes have a .PSP extension, and are placed according to this table.
    Preference filenames and locations in Photoshop CC
    They will then be loadable from the Custom Shapes drop down — click on the cog icon > Load shape > Find your downloaded vector.
    Once placed in the image, it will appear as a Shape layer, and can be edited with the Path, and Direct Selection tools (black and white arrows on the toolbar)

  • Code needed for "putting waveform graphs and 8bit images in the same window by Windraw"

    Hi Micheal, please sent the code example for my question:"putting waveform graphs and 8bit images in the same window by Windraw" , thanks.

    You can start from here ...
    Hope that helps,
    Michael
    Attachments:
    tester.vi ‏97 KB

  • Bridge CC when copying resizes window to both monitors and enlarges all images to maximum size

    Bridge CC when copying an image resizes window to both monitors and enlarges all images to maximum size.

    Details, please.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers: 
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • How to change this code to drag and drop image/icon into it??

    Dear Friends:
    I have following code is for drag/drop label, But I need to change to drag and drop image/icon into it.
    [1]. code 1:
    package swing.dnd;
    import java.awt.*;
    import javax.swing.*;
    public class TestDragComponent extends JFrame {
         public TestDragComponent() {
              super("Test");
              Container c = getContentPane();
              c.setLayout(new GridLayout(1,2));
              c.add(new MoveableComponentsContainer());
              c.add(new MoveableComponentsContainer());
              pack();
              setVisible(true);
         public static void main(String[] args) {
              try {
                   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              catch (Exception ex) {
                   System.out.println(ex);
              new TestDragComponent();
    }[2]. Code 2:
    package swing.dnd;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    import java.awt.dnd.*;
    import java.awt.datatransfer.*;
    import java.awt.image.*;
    import java.awt.dnd.DragSource;
    import java.awt.dnd.DropTarget;
    public class MoveableComponentsContainer extends JPanel {     
         public DragSource dragSource;
         public DropTarget dropTarget;
         private static BufferedImage buffImage = null; //buff image
         private static Point cursorPoint = new Point();
         public MoveableComponentsContainer() {
              setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED, Color.white, Color.gray));
              setLayout(null);
              dragSource = new DragSource();
              ComponentDragSourceListener tdsl = new ComponentDragSourceListener();
              dragSource.createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY_OR_MOVE, new ComponentDragGestureListener(tdsl));
              ComponentDropTargetListener tdtl = new ComponentDropTargetListener();
              dropTarget = new DropTarget(this, DnDConstants.ACTION_MOVE, tdtl);
              setPreferredSize(new Dimension(400,400));
              addMoveableComponents();
         private void addMoveableComponents() {
              MoveableLabel lab = new MoveableLabel("label 1");
              add(lab);
              lab.setLocation(10,10);
              lab = new MoveableLabel("label 2");
              add(lab);
              lab.setLocation(40,40);
              lab = new MoveableLabel("label 3");
              add(lab);
              lab.setLocation(70,70);
              lab = new MoveableLabel("label 4");
              add(lab);
              lab.setLocation(100,100);
         final class ComponentDragSourceListener implements DragSourceListener {
              public void dragDropEnd(DragSourceDropEvent dsde) {
              public void dragEnter(DragSourceDragEvent dsde)  {
                   int action = dsde.getDropAction();
                   if (action == DnDConstants.ACTION_MOVE) {
                        dsde.getDragSourceContext().setCursor(DragSource.DefaultMoveDrop);
                   else {
                        dsde.getDragSourceContext().setCursor(DragSource.DefaultMoveNoDrop);
              public void dragOver(DragSourceDragEvent dsde) {
                   int action = dsde.getDropAction();
                   if (action == DnDConstants.ACTION_MOVE) {
                        dsde.getDragSourceContext().setCursor(DragSource.DefaultMoveDrop);
                   else {
                        dsde.getDragSourceContext().setCursor(DragSource.DefaultMoveNoDrop);
              public void dropActionChanged(DragSourceDragEvent dsde)  {
                   int action = dsde.getDropAction();
                   if (action == DnDConstants.ACTION_MOVE) {
                        dsde.getDragSourceContext().setCursor(DragSource.DefaultMoveDrop);
                   else {
                        dsde.getDragSourceContext().setCursor(DragSource.DefaultMoveNoDrop);
              public void dragExit(DragSourceEvent dse) {
                 dse.getDragSourceContext().setCursor(DragSource.DefaultMoveNoDrop);
         final class ComponentDragGestureListener implements DragGestureListener {
              ComponentDragSourceListener tdsl;
              public ComponentDragGestureListener(ComponentDragSourceListener tdsl) {
                   this.tdsl = tdsl;
              public void dragGestureRecognized(DragGestureEvent dge) {
                   Component comp = getComponentAt(dge.getDragOrigin());
                   if (comp != null && comp != MoveableComponentsContainer.this) {
                        cursorPoint.setLocation(SwingUtilities.convertPoint(MoveableComponentsContainer.this, dge.getDragOrigin(), comp));
                        buffImage = new BufferedImage(comp.getWidth(), comp.getHeight(), java.awt.image.BufferedImage.TYPE_INT_ARGB_PRE);//buffered image reference passing the label's ht and width
                        Graphics2D graphics = buffImage.createGraphics();//creating the graphics for buffered image
                        graphics.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.5f));     //Sets the Composite for the Graphics2D context
                        boolean opacity = ((JComponent)comp).isOpaque();
                        if (opacity) {
                             ((JComponent)comp).setOpaque(false);                         
                        comp.paint(graphics); //painting the graphics to label
                        if (opacity) {
                             ((JComponent)comp).setOpaque(true);                         
                        graphics.dispose();
                        remove(comp);
                        dragSource.startDrag(dge, DragSource.DefaultMoveDrop , buffImage, cursorPoint, new TransferableComponent(comp), tdsl);     
                        revalidate();
                        repaint();
         final class ComponentDropTargetListener implements DropTargetListener {
              private Rectangle rect2D = new Rectangle();
              Insets insets;
              public void dragEnter(DropTargetDragEvent dtde) {
                   Point pt = dtde.getLocation();
                   paintImmediately(rect2D.getBounds());
                   rect2D.setRect((int) (pt.getX()-cursorPoint.getX()),(int) (pt.getY()-cursorPoint.getY()),buffImage.getWidth(),buffImage.getHeight());
                   ((Graphics2D) getGraphics()).drawImage(buffImage,(int) (pt.getX()-cursorPoint.getX()),(int) (pt.getY()-cursorPoint.getY()),MoveableComponentsContainer.this);
                   dtde.acceptDrag(dtde.getDropAction());
              public void dragExit(DropTargetEvent dte) {
                   paintImmediately(rect2D.getBounds());
              public void dragOver(DropTargetDragEvent dtde) {
                   Point pt = dtde.getLocation();
                   paintImmediately(rect2D.getBounds());
                   rect2D.setRect((int) (pt.getX()-cursorPoint.getX()),(int) (pt.getY()-cursorPoint.getY()),buffImage.getWidth(),buffImage.getHeight());
                   ((Graphics2D) getGraphics()).drawImage(buffImage,(int) (pt.getX()-cursorPoint.getX()),(int) (pt.getY()-cursorPoint.getY()),MoveableComponentsContainer.this);
                   dtde.acceptDrag(dtde.getDropAction());
              public void dropActionChanged(DropTargetDragEvent dtde) {
                   Point pt = dtde.getLocation();
                   paintImmediately(rect2D.getBounds());
                   rect2D.setRect((int) (pt.getX()-cursorPoint.getX()),(int) (pt.getY()-cursorPoint.getY()),buffImage.getWidth(),buffImage.getHeight());
                   ((Graphics2D) getGraphics()).drawImage(buffImage,(int) (pt.getX()-cursorPoint.getX()),(int) (pt.getY()-cursorPoint.getY()),MoveableComponentsContainer.this);
                   dtde.acceptDrag(dtde.getDropAction());
              public void drop(DropTargetDropEvent dtde) {
                   try {
                        paintImmediately(rect2D.getBounds());
                        int action = dtde.getDropAction();
                        Transferable transferable = dtde.getTransferable();
                        if (transferable.isDataFlavorSupported(TransferableComponent.COMPONENT_FLAVOR)) {
                             Component comp = (Component) transferable.getTransferData(TransferableComponent.COMPONENT_FLAVOR);
                             Point location = dtde.getLocation();
                             if (comp == null) {
                                  dtde.rejectDrop();
                                  dtde.dropComplete(false);
                                  revalidate();
                                  repaint();
                                  return;                              
                             else {                         
                                  add(comp, 0);
                                  comp.setLocation((int)(location.getX()-cursorPoint.getX()),(int)(location.getY()-cursorPoint.getY()));
                                  dtde.dropComplete(true);
                                  revalidate();
                                  repaint();
                                  return;
                        else {
                             dtde.rejectDrop();
                             dtde.dropComplete(false);
                             return;               
                   catch (Exception e) {     
                        System.out.println(e);
                        dtde.rejectDrop();
                        dtde.dropComplete(false);
    }Thanks so much for any help.
    Reagrds
    sunny

    Well, I don't really understand the DnD interface so maybe my chess board example will be easier to understand and modify:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=518707
    Basically what you would need to do is:
    a) on a mousePressed you would need to create a new JLabel with the icon from the clicked label and add the label to the glass pane
    b) mouseDragged code would be the same you just repaint the label as it is moved
    c) on a mouseReleased, you would need to check that the label is now positioned over your "drop panel" and then add the label to the panel using the panels coordinates not the glass pane coordinates.

  • I want to enlarge an image on a digital photo and save the enlarged image as a seperate photo

    I want to enlarge an image on a digital photo and save the enlarged image as a seperate photo

    We won’t stop you …
    Edit: Actually I’m naturally not entitled to talk for other contributors to this Forum …
    Crop (if necessary)
    Image > Image Size
    File > Save As

  • When i hover on stuff with my mouse, i have to double click it for it to actually work, one click to hover and another to click on the link... can someone help me ?

    When i hover on stuff with my mouse, i have to double click it for it to actually work, one click to hover and another to click on the link... can someone help me ?

    What system are you using?

Maybe you are looking for