Solved

Adding an A/V text stretch to the over state of a movie clip button.

Posted on 2007-11-20
4
266 Views
Last Modified: 2010-04-03
I have a movie clip with action script that makes it act like a button. I would like the text on the button to stretch from 0 to 6 A/V (over 3 or 4 frames) on rollOver.  How do I do that? To see what else is going on see this question: http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/Q_22971568.html

Thanks!
John
0
Comment
Question by:gabrielPennyback
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 1

Author Comment

by:gabrielPennyback
ID: 20341324
Here's a link to the flash file: http://www.designamania.com/MichaelTekstra/textra_beta3f.fla
The effect I'm looking to get is for the text on the buttons to stretch out on mouse over.

Thanks,

John
0
 
LVL 18

Accepted Solution

by:
Antonio Estrada earned 500 total points
ID: 20362749
Uhh... you mean letter spacing? If so, after taking a look at your fla; you're going to need Flash 8... If you do have Flash 8 you can safely modify the btn_1 MovieClip's code to this:

<code snippet>

-V
Frame 1:
 
stop();
myTextFormat = new TextFormat();
myTextFormat.bold = true;
myTextFormat.italic = true;
myTextFormat.color = 0x000000;
myTextFormat.letterSpacing = 0;
buttonText.setTextFormat(myTextFormat);
 
Frame 2:
 
stop();
myTextFormat = new TextFormat();
myTextFormat.bold = true;
myTextFormat.italic = true;
myTextFormat.color = 0xFFFFFF;
myTextFormat.letterSpacing = 2;
buttonText.setTextFormat(myTextFormat);
 
Frame 3:
 
stop();
myTextFormat = new TextFormat();
myTextFormat.bold = true;
myTextFormat.italic = true;
myTextFormat.color = 0x000000;
myTextFormat.letterSpacing = 0;
buttonText.setTextFormat(myTextFormat);

Open in new window

0
 
LVL 1

Author Comment

by:gabrielPennyback
ID: 20770834
Thanks, Vulturous.  Sorry it took so long for me to test it.

John
0
 
LVL 18

Expert Comment

by:Antonio Estrada
ID: 20772952
No problem, glad it was helpful ;)

-V
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question