Thursday, May 24, 2007

Illustrator CS3 & Dynamic Text for Flash CS3

The integration between Illustrator and Flash has been hyped up with the release of Creative Suite 3. One of the things that is now possible to do with text in Illustrator is to make Flash text, or text that is ready to be used in Flash. Flash can create static, dynamic, and input text fields. Illustrator CS3 has the same capability and you can give the text fields instance names for scripting purposes.

So I tried creating a basic interface with buttons and some text fields. Then I saved the AI file and imported into Flash. When I test the Flash movie, I get the following error:

TypeError: Error #1034: Type Coercion failed: cannot convert flash.text::TextField@d18cef9 to flash.display.MovieClip. at flash.display::Sprite/flash.display:Sprite::constructChildren() at flash.display::Sprite$iinit() at flash.display::MovieClip$iinit() at menu2_fla::MainTimeline$iinit()

Even if I don't use any ActionScript to fill the dynamic text fields form an external text file, I still get this error.

If I just copy and paste ONLY the text fields from AI to FL, I do not get any errors and the ActionScript I wrote to fill the dynamic text fields works.

I have posted questions on several Adobe forums and asked others for help on this and so far, no response.

By the way, I have tried this on both Mac and PC platforms and the problem occurs on both. Does anybody have any ideas why this might happen?

Labels: , ,

0 Comments:

Post a Comment

<< Home