FORUMS: list search recent posts

removing text and adding image

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Daniel Donlon
removing text and adding image
on Dec 14, 2009 at 4:30:36 pm

I am in need of some simple help! Can someone help me remove one line of text and add an image instead? I have read for the last two days and have not been able to figure this out...very frustrated!

I am willing to email the files if someone could just help me out please!!

Return to posts index

Marcus Geduld
Re: removing text and adding image
on Dec 14, 2009 at 5:50:26 pm

Sorry about the frustration. Can you explain a little more about what you need? You have a textbox on stage and you want to remove it and display an image instead? You probably mean something more complex, but if that's all you need, it's pretty simple.

Make sure your image is embedded inside a movieclip and make sure your textfield is a dynamic text field. Give both items instance names, e.g. textfield and image. Then put this code on the frame where they first come into existence.

image.visible = false;

when you want to show the image and hide the text, do this:

textfield.visisble = true;
image.visible = false;

(If you're using AS2, visible should be _visible.)

Author "After Effects Expressions"
Co-author "After Effects For Flash, Flash For After Effects"
Artistic Director, Folding Chair Classical Theatre, Inc
Senior Flash Developer,

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved