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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting an instance of Movie

Status
Not open for further replies.

karu76

Programmer
Dec 14, 2000
27
SG
Hi,

Still in learning stage so please help.

please look thru the code, i have a sofa-button scrolling from left to right, i want to display the sofa-large during a rollover event and hide during rollout event..how do i go abt doing that.

Thanks in advance.

==============code=============

sofa_large is a movie.
sofa-button is a button
sofa-sym is the pic that is used for the button as well as the movie

Scene 1
sofa_large, (SL)
actions for sofa_large
onClipEvent (load) {
_visible = false;
}
sofa-button
actions for sofa-button
on (rollOver) {
stop ();
}
on (rollOut) {
play ();
}
sofa-sym
Symbol Definition(s)
sofa_large
sofa-sym
sofa-button
sofa-sym
sofa-sym

=================================

further to that ..i realise that -visible property can only be used for movie...if that is the case if i have a graphic how do i go abt creating the above output...

 
Be sure to give the movieclip an instance name, (let's say: mySofa) and use this to control it:

Scene 1
sofa_large, (SL)
actions for sofa_large
onClipEvent (load) {
_visible = false;
}
sofa-button
actions for sofa-button
on (rollOver) {
mySofa._visible = true;
}
on (rollOut) {
mySofa._visible = false;
}

this, if the button is on the main timeline. If the button was in the movieclip, you would not need to use the instance name.

-Edwin

 
hey thanks to u..it works!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top