dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: help starting out with rollover

  1. #1
    Junior Member
    Join Date
    Apr 2006
    Posts
    12

    help starting out with rollover

    ok, i have 2 images (imageup.jpg and imagedown.jpg) and a sound effect (sound.wav).
    i want imageup to fade in and imagedown is displayed with a sound effect when the mouse rolls over it. clicking would go to a website.
    if someone could help me or point me to a good tutorial i would really appreciate it. thanks. FB



    UP

    OVER

    imageup.onRollOver = function() {
    startFrame = 1;
    }

    DOWN

    imagedown.onRollOut = function() {
    startFrame = 0;
    }

    HIT

    imagedown.onRelease = function(){
    getURL("http://www.website.com/page.php");
    };

  2. #2
    Advance Motion Management
    Join Date
    Mar 2006
    Location
    India
    Posts
    84
    go to the Button libraries in flash, you will find ample amount of examples there.


    --
    Vini
    Its in my Blood, B+



  3. #3
    Junior Member
    Join Date
    Apr 2006
    Posts
    12
    thanks i got it. one more thing - my images are only showing about 1/2 their actual size on the output? how do i adjust that?

  4. #4
    Member
    Join Date
    Aug 2005
    Posts
    79
    Quote Originally Posted by frankbea
    thanks i got it. one more thing - my images are only showing about 1/2 their actual size on the output? how do i adjust that?
    hmm, not sure what made your image smaller in the first place, but...



    if you're using flash 8, you can go to "windows>transform" and in the transform panel, check the box next to "constrain" and enter the percent by which you want to make your image smaller or larger (so to make it twice its current size, you'd enter 200%)

    you could also use the transform tool to make your image larger (hold down the shift key while changing the size of your image if you want to maintain the keep the same width:height proportions)

    hth

  5. #5
    Advance Motion Management
    Join Date
    Mar 2006
    Location
    India
    Posts
    84
    Simply resize the picture to match your actual window


    --
    Vini
    Its in my Blood, B+



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center