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

on rollover scroll 1

Status
Not open for further replies.

dartali

Technical User
May 27, 2001
19
MX
Hi all,

I still haven't found the complete coding to make a text scroll and stop at the spot when button rollover/rollout
This is de code I use:
on (release, rollOver) {
tellTarget ("_root.text") {
play ();
}
}
on (release, rollOut) {
}
on (release) {
tellTarget ("end") {
}
}

Now the prob is in the second part, rollOut.
Any suggestions?

Thanks,

dartali
 
on (release, rollOver) {
tellTarget ("_root.text") {
play ();
}
}
on (release, rollOut) {
}
on (release) {

tellTarget ("end") {
}
}

Surely you don't need the bits in bold; because the first release, rollOut doesn't actually do anything; the brakets close it off before you get to the tell target.

=)

PetitPal
 
Code:
on (rollOver) {
    tellTarget ("_root.text") {
        play ();
    }
}

on (rollOut) {
    tellTarget ("_root.text") {
        stop ();
    }
}

You're second target wasn't being told to do anything. AND it was different from the first target. AND you had 'release' actions on both arguments. AND as Petitpal mentioned, there was an unnecessary section in your scripting.

This assumes that you want the target mc "text" to start moving on rollover and stop moving on rollout.

dave ;-)
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Thanks Davdesign, it works! :)

Cheers,
dartali
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top