Pls give me the complete error message. For example, tcmtext in which class cannot be found?
Hello, it is no more than
Reference Error: Error #1065 Variable TCMText is undefined
The message appears at the end of "test movie", and the movie does not seem to include any code.
I have tried two different configurations (one with authortime import of a bunch of symbols from a separate fla file, and the other one using Flex "Embed" mechanism to reference them, but the end result is the same.
There must be xxx.TCMText. Pls tell me the caller's class name. Is caller an instance of fl.text.TLFTextField or a TLF object?
that is all of the error message...
I just saved as xfl and searched for contained text: there is no mention of TCMText anywhere, there is, however, both DOMText and DOMTLFText
1 person found this helpful
I was running Adobe Flash Professional CS5 CIAB through my recently upgraded Flash CS5.5. In Chapter 7, Using Text, I got these errors:
ReferenceError: Error #1065: Variable TLFTextField is not defined.
ReferenceError: Error #1065: Variable TCMText is not defined.
I also though it was a Text Layout Format issue. That's how I landed here. I was about to give after reading this and similar threads when I re-read my Actions panel and discovered I had misspelled 'addEventListener' (see below).
After correcting the typo, the errors went away. Thought this might be helpful.
Now, I'm wondering why my typo doesn't get flagged through Check Syntax. But, that's for another time.
Hi, it is possible that a typo can go undetected .... if it refers to a dynamic class; it should throw a runtime error instead.
This behavior looks like a definite bug - misreporting errors.
So this would leave me with the Herculean task of extracting all names from the project and finding the one that is misspelled....
I dont know whether something similar exists for flash, but other environments would allow to inspect the generated code (and its import and export names) right before linking all the project files together
Hi, I finally realized that I just missed the error messages
With CS5 (as with every flash version before), the movie starts playing even if compilation fails, and flash shows compiler messages.
With CS5.5, although publish settings are to merge code, the movie starts playing and reports the tcmtext error, thereby switching from compiler messages to runtime output
This wasn't answered. Just some people giving up because the Adobe user forums suck so bad. This is a bug. Like a lot of Adobe's glitches there doesn't seem to be any support from the corporation just a bunch of us poor fools searching for another work around.
I get the same error code after importing some text as symbols in to Flash from Illustrator.
Searched for the last hour and Adobe has no info out there that leads to a sollution. Another dead end and time to start from scratch. Thanks Adobe, your monopoly stands only because nothing better has come along yet. As soon as it does you can kiss my license fees good by.
I have Flash Pro CS 5.5.
I made a singleton to manage the contextMenu for the document class of a couple of different SWFs.
I immediately experienced the dreaded : ReferenceError: Error #1065: Variable TCMText is not defined.
It wasn't until I was importing these two classes that I had this problem (with this project) :
My class that is importing these two classes would instantiate and then I immediately get the runtime error (1065).
THE FIX :
I added this line and it compiled and worked for me :
public var TCMText : *;
I think the bug is that some Adobe code is expecting a dynamic class that it can stick the nefarious 'TCMText' property on and when it can't it freaks out. Likely if my class was declared as dynamic (like the MovieClip class is) this wouldn't be a problem.
I have generally stayed completely away from TLF TextFields because I have perceived them to be problematic. I have gotten this error before and converting a TextField to a 'classic' TextField in the IDE properties panel made it go away.
I hope this helps. It *would* be cool if someone from Adobe could shed some light on this.