2

我有一个在 CS4 中创建的影片剪辑。我将它导出到我的 Flex 项目的 /lib 中,然后尝试访问文本。所有文本字段都有 ID、嵌入文本,并以智能感知显示。但是当我运行项目时,文本字段是空白的。到底是怎么回事?

编辑:它似乎只在嵌入文本时不起作用。非嵌入文本工作正常。

4

1 回答 1

2

Importing text objects and fonts embedded in swfs can have any number of weird embedding errors - in my experience it takes a lot of tweaking to get things right. A few things to look at:

  • are you embedding all of the characters? Selective embedding might not be including the set of characters your trying to display. For example, if the text is bold but you only embedded the normal version of the font, the characters won't show up.
  • are you embedding the font correctly? Make sure it's embedding as a flash type font if you're exporting from Flash Authoring CS4, or triple-check your embed syntax if you're embedding in Flex. One little typo can throw the whole thing off.
  • Try exporting the movie clip from Flash Authoring CS4. Can you view the text there? This will help you trouble shoot whether the problem is on the Flash Authoring CS4 side or the Flex side.

Hope that helps - embedded text can be a bit nasty. If you can include more code or link to a swf we could try to play around with it a bit more and give you more information.

于 2009-11-24T17:46:47.933 回答