|
-
[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.
-
Getting There!
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
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|