Home
> FlashEff 1 (Discontinued version)
> Topic
TxEff2 +AIR ignores x y position of target text field
Posted by troyworks
TxEff2 +AIR ignores x y position of target text field October 15, 2010 07:40PM | Registered: 15 years ago Posts: 6 |
Running into a wierd/annoying issue with TxEff2 and AIR
See attached image. At top is where the textfield is, and where the texteffect should be. But when the text effect is turned on it shows as the bottom, incorrectly justified at the top left.
This appears to be an bizarre incompatibility of TxEff2 and AIR, and given that code is locked in a swc, and that code has been discontinued and replaced with FlashEff, I'm not sure how to debug or proceed.
If I publish to Flash (no AIR) positions fine. If I publish to AIR positions at top.
If I disable the TxEff2 , it positions fine.
If I position the TextFx it is ignored.
Help! is there some global settings or environment settings that can fix this? I can't find an API guide to TxEFF as this code wasn't created by me.
See attached image. At top is where the textfield is, and where the texteffect should be. But when the text effect is turned on it shows as the bottom, incorrectly justified at the top left.
This appears to be an bizarre incompatibility of TxEff2 and AIR, and given that code is locked in a swc, and that code has been discontinued and replaced with FlashEff, I'm not sure how to debug or proceed.
If I publish to Flash (no AIR) positions fine. If I publish to AIR positions at top.
If I disable the TxEff2 , it positions fine.
If I position the TextFx it is ignored.
Help! is there some global settings or environment settings that can fix this? I can't find an API guide to TxEFF as this code wasn't created by me.
Re: TxEff2 +AIR ignores x y position of target text field October 18, 2010 09:08AM | Registered: 15 years ago Posts: 6 |
//PART1, retarded hack to get around AIR + TxEFF mangling
//the text, caputure it before it gets reset by the textffect
var tx : Number = _label_txt.x;
var ty : Number = _label_txt.y;
addChild(_textEffect);
_textEffect.target = _label_txt; // apparently zeros the x,y of label_txt & textEffect
//PART2, retarded hack to get around AIR + TxEFF mangling
//the text positiong, position it where the textfield is.
_textEffect.x = tx;
_textEffect.y = ty;
//the text, caputure it before it gets reset by the textffect
var tx : Number = _label_txt.x;
var ty : Number = _label_txt.y;
addChild(_textEffect);
_textEffect.target = _label_txt; // apparently zeros the x,y of label_txt & textEffect
//PART2, retarded hack to get around AIR + TxEFF mangling
//the text positiong, position it where the textfield is.
_textEffect.x = tx;
_textEffect.y = ty;
Re: TxEff2 +AIR ignores x y position of target text field October 18, 2010 10:08AM | Admin Registered: 15 years ago Posts: 310 |
Re: TxEff2 +AIR ignores x y position of target text field June 15, 2011 08:05PM | Registered: 12 years ago Posts: 1 |
I am having the same problem. I have tried to use Troyworks fix above, but it does not work. Once have pulled the x and y from the text field it's already moved the x and y to 0, 0. If I don't use Adobe Air it works great, but the application I am developing requires Adobe Air. Any other solutions?
Re: TxEff2 +AIR ignores x y position of target text field August 04, 2011 01:13PM | Admin Registered: 15 years ago Posts: 547 |
Re: TxEff2 +AIR ignores x y position of target text field October 24, 2014 09:07PM | Registered: 9 years ago Posts: 3 |
I have to do a report for our school magazine on this topic, and your blog has been beneficial. Can you please add more reference to this point, thanks. Sports Massage Balmain
Sorry, you do not have permission to post/reply in this forum.