Flash template text manipulation


#21

Do you have any other object called ig1?


#22

i actually found problem,

super.SetData(xmlData);

was below one extra }, it should be above :confused: so simple error. That prevented other data to be forwarded to template. Now i got it working. on the other hand, as i recreated template without classic tweeing, my code i used to center vertically text field do not work anymore. I added it to textfield first frame in action

f0.y += Math.round((f0.height - f0.textHeight) / 2);
f0.y = f0.y - 4;

f0 is name of textfield. any other solution?


#23

Put that code bellow the loop in SetData, because I think the code runs before the data get set, if you leave it in the action frame.


#24

that does not work there, any other tip?


#25

You need to add the movieclip references blabla.blabla.f0 also to this code.


#26

i added it already

sym6.f0.y += Math.round((sym6.f0.height - sym6.f0.textHeight) / 2);
sym6.f0.y = sym6.f0.y - 4;

sym6 is move clip, and inside it is f0 dynamic text. is there any other refference.
Sym 6 is on main timeline scene, maybe this. statement?


#27

I don’t know, I also need to try and test these kind of stuff. By the way: What should it do?


#28

it should center text vertically. I have created text field with tree lines of text, but in case that there is two lines it should center it in container.


#29

maybe you can get me other way how to center it vertically?


#30

textHeight gives you the height of a single line, regardless of the contents. It’s more a property accociated with the font size. There is a propery called numLines But you could use Google or Stackoverflow for these kind of problems, as they have to do wit AS3 programming and not with CasparCG.


#31

Hello Dear All.
I’m pretty new in CasparCG… I really like this tool already. But I have huge problem with template generating for dynamic texts in Adobe Animate.
at the stage every backgrounds for Texts run well, until I put Text as dynamic Text. After this Key covers full screen instead of text’s background area.
I’ve spent more then weeks researching this issue over the net. NO result. I’m using Decklink.

Let god exists some one here who can help me…

thanks a lot.


#32

something like this nicholas.ichkitidze ?

Otherwise I can take a look if you post the template.


#33

This is how you disable clear text. The Screenshot is from a German Win 7. But all controls are positioned the same in all languages and Win 10 looks also very similar.


#34

this is for windows 10


#35

no:) the issue was putting “this.cacheAsBitmap=true” in first frame on timeline…
thanks