开发者

Garbled Text using FETStationPanels, But Only the First time It's Called

开发者 https://www.devze.com 2023-01-25 19:48 出处:网络
I\'m using the FETStationPanels from FlashEff2 with Flex 3. Unfortunately, it is garbling some of the letters.

I'm using the FETStationPanels from FlashEff2 with Flex 3. Unfortunately, it is garbling some of the letters.

Below is a simplified version of what the problem is:

Imagine that I've got three buttons. If any of the buttons are selected a titleWindow opens. Inside the titleWind开发者_如何学Goow is some text pulled from a database that has the FETStationPanels effect applied to it, and an image. The first button that is clicked (it doesn't matter which one) will have garbled text. If I select another button, then the effect is fine and everything displays okay.

The FlashEff2 effect is fired on the creationComplete event of the TitleWindow.

I had a resize effect on the TitleWindow. I removed it, because I thought that that might be the problem. I put in a static height for the TitleWindow, but that didn't work either.

I also tried using callLater and setting a timer to delay the appearance of the image until well after the effect had ended, but that didn't work, either.

It's weird that the problem occurs only on the first button selected. After that it works fine.

I've been struggling with this problem for 3 days. I would post code, but there is too much for it to be useful. Does anyone have any suggestions on how to solve this problem? Any general things that I can try or should check?

Thank you.

-Laxmidi


Okay, I figured it out. When I add the TitleWindow, I put some effects on it in the main app and I forgot about them:

popWindow.setStyle("addedEffect", fadeInZoomEffect); popWindow.setStyle("removedEffect",zoomFadeEffect);

When I took these out, my problem was solved. Everything works. I wish I had noticed those lines a few days ago!

Thank you.

-Laxmidi

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号