A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: rollOut only works left and bottom?

  1. #1
    I'm not afraid Fearless's Avatar
    Join Date
    Jun 2000
    Posts
    351

    rollOut only works left and bottom?

    I'm working on my new site and venturing into a little actionscript. To no avail unfortunately.

    If you mouse over any of the pictures in the middle there you should get a pop up similar to how you do for ALT text. The problem is it only fades out when you rollOut to the left or to the bottom. If you move out over the top or the right, it continues to drag and it stays visable.

    Each "ALT" is obviously a MC and they are setup like this:


    and here is the code for the button (picture)

    Code:
    on (rollOver) {
        feat1rollover.gotoAndPlay("feat1dragon");
        startDrag("feat1rollover", true, 12, 257, 158, 327);
    }
    on (releaseOutside, rollOut, dragOut) {
        feat1rollover.gotoAndPlay("feat1dragoff");
        stopDrag();
    }
    Any help would be greatly appreciated. Also if anyone could recommend a good actionscript book that would be huge.

    Thanks,
    Craig
    Last edited by Fearless; 07-10-2004 at 02:05 PM.

  2. #2
    I'm not afraid Fearless's Avatar
    Join Date
    Jun 2000
    Posts
    351
    ::bump::

  3. #3
    I'm not afraid Fearless's Avatar
    Join Date
    Jun 2000
    Posts
    351
    sorry about that, the temp site has the right link now. I still can't figure it out and I'm at a stand still until I can. help!

  4. #4
    the friendly canadian DaVulf's Avatar
    Join Date
    Feb 2004
    Location
    Singapore
    Posts
    2,017
    Well, Im not sure if this is right, but it could possibly help....

    Do you have any form of spacer between your images, or are they glued side by side? Try adding spacers from the top and from the right of each image.

    *edit*
    I just tested this again on your page and the far right image you can rollOut to the right, where there is a space. So add a few spacers and see what happens.

    Cheers.

  5. #5
    I'm not afraid Fearless's Avatar
    Join Date
    Jun 2000
    Posts
    351
    The actual buttons are only the pictures plus the two outlining grey frames, so there is a space between each. I think the reason the far right one works is because the flash movie ends right after the white line there. You'll notice it doesn't actually fade out if you mouse out to the right of that one until you exit the border of the movie.

    Would a hit test possibly work for this?

  6. #6
    I'm not afraid Fearless's Avatar
    Join Date
    Jun 2000
    Posts
    351
    I got it. thanks.

    note: do not use constrain to rectangle and you won't have this problem.

  7. #7
    the friendly canadian DaVulf's Avatar
    Join Date
    Feb 2004
    Location
    Singapore
    Posts
    2,017
    Im glad you got it worked out.

    Happy Flashing!

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