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

animating dynamic generated text 1

Status
Not open for further replies.

fcbasel

Programmer
Sep 11, 2001
1
US
Hi all! i would like to know if its basically possible to create a flash-animated text within a html-file working as follows: a dynamic text (e.g. generated with php) should be loaded into a flashfile and therefore be animated. For example if you move the cursor over a result on a searchengine-page, the title of the result should be animated with flash on the top of the page. Is this generally possible with actionscript? what are the key steps to deal with this?
 
It's possible to animate dynamic text if you embed the font in the text options dialog.

I don't know how far you can take this as an effect though. The following kind of thing works...

Put your text box in a movieClip, load your variable into the box as normal and make sure you have "embed fonts" selected.

If you drop this clip on the main stage and add an event such as..

onClipEvent(enterFrame){
_xscale++;
}


The text will stretch as the clip is resized.

It depends what you mean by "animation": if you're hoping to do complex things to the text letter by letter, or "Swish" type effects I don't think you'll be able to get what you want. Resizing, stretching and playing with the _alpha etc. are possible with really simple actionScript and you just need to cover the textbox with an invisible button set with the actions you want assigned to the clip.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top