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

Basic Text Effect - or is it?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Okay, here's an actionscript brain teaser:<br>I have three symbols:<br>&nbsp;&nbsp;&nbsp;- Text_Symbol_1<br>&nbsp;&nbsp;&nbsp;- Text_Symbol_2<br>&nbsp;&nbsp;&nbsp;- Text_Symbol_3<br>I have three movies:<br>&nbsp;&nbsp;&nbsp;- Text_Movie_1<br>&nbsp;&nbsp;&nbsp;- Text_Movie_2<br>&nbsp;&nbsp;&nbsp;- Text_Movie_3<br>I have three buttons:<br>&nbsp;&nbsp;&nbsp;- Text_Button_1<br>&nbsp;&nbsp;&nbsp;- Text_Button_2<br>&nbsp;&nbsp;&nbsp;- Text_Button_3<br><br>In each of my symbols there is a paragraph of text.<br>In each of my movies there is a motion tween of the corresponding symbol going from <br>Frame1: Alpha 0%<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;motion tween to<br>Frame10: Alpha 100%<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;motion tween to<br>Frame20: Alpha 0%<br>There is a STOP action at Frames 1 and 10.<br>Each of the buttons will control the corresponding movie by using the PLAY action. This results in:<br>On the first click of Text_Button_1, Text_Movie_1 will play and the text will fade in. On the next click the text will fade out.<br><br>I have it working perfectly until I decided that when I click on Text_Button_1 and Text_Symbol_1 appears, I want all of the other visible texts (Text_Symbol_2 and Text_symbol_3) to fade out so that Text_Symbol_1 is all that can be seen on the canvas.<br><br>I have tried everything, its so annoying!!!
 
Okay people, I worked out how to do it, after a lot of stress. Heres how (for Text_Button_1):<br><br>On (Release)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Begin Tell Target (&quot;/Text_Movie_1&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Play<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End Tell Target<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Begin Tell Target (&quot;/Text_Movie_2&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If (_currentframe = 10)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Play<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End Tell Target<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Begin Tell Target (&quot;/Text_Movie_3&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If (_currentframe = 10)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Play<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End Tell Target<br>End On<br><br>&quot;I'm INVINCIBLE!&quot;<br>Netpalm2000<br>coming very soon:<br>&nbsp;&nbsp;&nbsp;<A HREF=" TARGET="_new">
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top