Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rollover buttons to show flash movies in dreamweaver

Status
Not open for further replies.

supamags

Programmer
Jul 8, 2003
35
GB
I have a flash movie playing in dreamweaver, when i hover over a button i need the movie to change and start playing a different flash movie. When I move off the button i want the original movie to re-appear and play.
Is this possible if so please help and tell me and direct me to any samples.

Many thanks
Bruce.
 
sure just set it up in flash first

have an empty clip on stage to hold the movies with instance name holder

add to frame actions

my_btn.onRollover = function(){
loadMovie("a.swf",holder);
}
my_btn.onRollout = function(){
loadMovie("b.swf",holder);
}

if they are very small movies then you might just have them in the library of the main swf and use attachMovie instead.

_______________________________________
You know you're old if you can remember when bacon, eggs and sunshine were good for you
 
second thoughts. i may have misread your post. are the buttons in dreamweaver ?

if so make sure the flash movie is playing in a named frame and target that frame and its contents from the buttons

_______________________________________
You know you're old if you can remember when bacon, eggs and sunshine were good for you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top