A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [f8] button rollOver show's movie. How to unshow movie on rollOver other button

Hybrid View

  1. #1
    Junior Member
    Join Date
    Jul 2007
    Posts
    2

    [f8] button rollOver show's movie. How to unshow movie on rollOver other button

    I've made a productoverview in flash.

    There are 4 productphoto's (buttons with just a rollOver-function, no clicks).

    Behind every productphoto there is a detailed product-specification (movie) that shows up when rollOver on the productphoto's.

    So I want the product-specification movie to appear when theres a rollOver on the productphoto. The movie has to show on rollOver and has to stay visible on rollOut. But when u move to the next productphoto (rollOver) the previous product-specification movie has to disappear and the new one has to show.

    I don't know what to do. so far i have this:

    on (rollOver) {
    tellTarget ("sony-1-1") {
    gotoAndPlay (2);
    }
    Last edited by eyedynamic; 07-24-2007 at 10:29 AM.

  2. #2
    Getting There! bitsk308's Avatar
    Join Date
    Jul 2000
    Location
    Phoenix, AZ
    Posts
    427
    Welcome to FlashKit. There are lots of ways to do something like this. The method that matches what you've shared closest would be to define four tellTargets per button, one for itself to turn on, and one for each of the other three to turn off.

    on(rollOver){
    tellTarget("sony-1-1"){
    gotoAndPlay(2);
    }
    tellTarget("sony-2-2"){
    gotoAndPlay(1);
    }
    tellTarget("samsung-1-1"){
    gotoAndPlay(1);
    }
    tellTarget("philips-1-1"){
    gotoAndPlay(1);
    }
    }

    assuming here that your "on" frame is 2 and your "off" frame is 1

    there are cleaner ways to do this with arrays and more complex actionscript. if you're interested, let me know.

    _b

  3. #3
    Junior Member
    Join Date
    Jul 2007
    Posts
    2
    Thank you for the quick response. You're explanation was crystal clear!
    It works! another satisfied client.

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