I have a question for anyone who knows their Flash and ActionScript. I've looked this up all over and can't seem to find a solution that works. I figure there has to be an easy way to do this. Keep in mind, I am a beginner!

I have two movie clips, both filled with dynamic text (brought in from an XML file), one is for quotes, the other is for authors. I need to keep the author at least a couple spaces below the last line of the quote. If the quote is just one line, there is usually a huge gap between it and the author. If the quote is 10 lines, it may overlap the author.

I just want to know if there is a way to keep the author movie clip 'attached' to the bottom of the quote movie clip whether the quote is 1 line or 20 lines.

Forward

4 months, 1 week ago by Alisha G.

3 Replies

  • Dan G. Dan G. replied Aug 19th
    Hi Alisha! Every once in a while I check my site statistics to see who has a link to my page, and I happened upon your site (because of the "black grey white" thing).

    I saw this posting, and I know it's months old and you've probably figured it out by now, but if not, here's an example:

    http://www.dangries.co...

    I enjoy trying to figure these little things out - I'm sure it will come in handy sometime.
  • Alisha G. Alisha G. replied Aug 19th
    Cool! Thanks for the FLA except that it wouldn't open, said something about wrong format. I use Flash 8, does it require the newer version?
  • Dan G. Dan G. replied Aug 19th
    Oh yeah, sorry...it's ActionScript 3.0.

    Here's the relevant code so you can see the basic idea:

    textBox1.x = 10;
    textBox1.y = 10;
    textBox2.x = textBox1.x + textBox1.textWidth - textBox2.textWidth;
    textBox2.y = textBox1.height + 12;

    By the way, I may not check back here for a response, but feel free to e-mail me (find my e-mail at my site: http://www.dangries.com).

Join Now to Reply!

To add your own reply, sign in or join Pownce today!

105 Recipients

View all

This note is viewable by everyone.