TEXT DYNAMIZATION

Vertically align text

Documentation DCO Enabler -> ENABLER ADOBE ANIMATE CC -> Vertically align text

VERTICALLY ALIGN TEXT

 

You have a banner with different texts to display based on your campaign scenarios and you want them to be automatically centered in their area.

The verticalAlign method allows you to vertically align a block of text and to automatically center it, in its container.

ADventori.initData({wording: "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor"});
ADventori.Display.setText(this.textField1,ADventori.data.wording);
ADventori.Display.verticalAlign(this.textField2,TexField Height,Y TextField Position);