Skip to main content
November 26, 2010
Question

Flash CS5 , TLF2 and verify errors

  • November 26, 2010
  • 1 reply
  • 2332 views

Hi,

This code :

var tlf:TLFTextField= new TLFTextField()
tlf.type=TextFieldType.DYNAMIC
addChild(tlf)

throws these errors:

What Im doing wrong?

TIA

verify fl.text::TLFTextField/setFormatForAllElements()
                        stack:
                        scope: [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ fl.text::TLFTextField$] ~
                         locals: fl.text::TLFTextField flashx.textLayout.elements::FlowGroupElement? flashx.textLayout.formats::TextLayoutFormat? * * * *
  0:debugfile "F:\stage\Flash11_Main_485_Stage\main\authortool\Stage\tlfRuntime;fl\text;TLFTextField.as"
                        stack:
                        scope: [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ fl.text::TLFTextField$] ~
                         locals: fl.text::TLFTextField flashx.textLayout.elements::FlowGroupElement? flashx.textLayout.formats::TextLayoutFormat? * * * *
  3:debugline 1322
                        stack:
                        scope: [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ fl.text::TLFTextField$] ~
                         locals: fl.text::TLFTextField flashx.textLayout.elements::FlowGroupElement? flashx.textLayout.formats::TextLayoutFormat? * * * *
  6:getlocal0
                        stack: fl.text::TLFTextField
                        scope: [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ fl.text::TLFTextField$] ~
                         locals: fl.text::TLFTextField flashx.textLayout.elements::FlowGroupElement? flashx.textLayout.formats::TextLayoutFormat? * * * *
  7:pushscope
                        stack:
                        scope: [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ fl.text::TLFTextField$] fl.text::TLFTextField
                         locals: fl.text::TLFTextField flashx.textLayout.elements::FlowGroupElement? flashx.textLayout.formats::TextLayoutFormat? * * * *
  8:pushnull
                        stack: null
                        scope: [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ fl.text::TLFTextField$] fl.text::TLFTextField
                         locals: fl.text::TLFTextField flashx.textLayout.elements::FlowGroupElement? flashx.textLayout.formats::TextLayoutFormat? * * * *
  9:coerce flashx.textLayout.elements::FlowElement
                        stack: flashx.textLayout.elements::FlowElement?
                        scope: [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ fl.text::TLFTextField$] fl.text::TLFTextField
                         locals: fl.text::TLFTextField flashx.textLayout.elements::FlowGroupElement? flashx.textLayout.formats::TextLayoutFormat? * * * *
  11:setlocal 5
                        stack:
                        scope: [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ fl.text::TLFTextField$] fl.text::TLFTextField
                         locals: fl.text::TLFTextField flashx.textLayout.elements::FlowGroupElement? flashx.textLayout.formats::TextLayoutFormat? * * flashx.textLayout.elements::FlowElement? *
  13:pushnull
                        stack: null
                        scope: [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ fl.text::TLFTextField$] fl.text::TLFTextField
                         locals: fl.text::TLFTextField flashx.textLayout.elements::FlowGroupElement? flashx.textLayout.formats::TextLayoutFormat? * * flashx.textLayout.elements::FlowElement? *
  14:coerce flashx.textLayout.formats::TextLayoutFormatValueHolder
VerifyError: Error #1014: Class flashx.textLayout.formats::TextLayoutFormatValueHolder could not be found.

at fl.text::TLFTextField/repaint()
at flash.display::DisplayObjectContainer/addChildAt()
at fl.motion::AnimatorBase/play()
at fl.motion::AnimatorBase$/processCurrentFrame()
at fl.motion::AnimatorFactoryBase/addTargetInfo()
at inlineRemoved_fla::MainTimeline()[inlineRemoved_fla.MainTimeline::MainTimeline:40]
ready
verify fl.text::TLFTextField/setFormatForAllElements()
                        stack:
                        scope: [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ fl.text::TLFTextField$] ~
                         locals: fl.text::TLFTextField flashx.textLayout.elements::FlowGroupElement? flashx.textLayout.formats::TextLayoutFormat? * * * *
  0:debugfile "F:\stage\Flash11_Main_485_Stage\main\authortool\Stage\tlfRuntime;fl\text;TLFTextField.as"
                        stack:
                        scope: [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ fl.text::TLFTextField$] ~
                         locals: fl.text::TLFTextField flashx.textLayout.elements::FlowGroupElement? flashx.textLayout.formats::TextLayoutFormat? * * * *
  3:debugline 1322
                        stack:
                        scope: [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ fl.text::TLFTextField$] ~
                         locals: fl.text::TLFTextField flashx.textLayout.elements::FlowGroupElement? flashx.textLayout.formats::TextLayoutFormat? * * * *
  6:getlocal0
                        stack: fl.text::TLFTextField
                        scope: [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ fl.text::TLFTextField$] ~
                         locals: fl.text::TLFTextField flashx.textLayout.elements::FlowGroupElement? flashx.textLayout.formats::TextLayoutFormat? * * * *
  7:pushscope
                        stack:
                        scope: [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ fl.text::TLFTextField$] fl.text::TLFTextField
                         locals: fl.text::TLFTextField flashx.textLayout.elements::FlowGroupElement? flashx.textLayout.formats::TextLayoutFormat? * * * *
  8:pushnull
                        stack: null
                        scope: [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ fl.text::TLFTextField$] fl.text::TLFTextField
                         locals: fl.text::TLFTextField flashx.textLayout.elements::FlowGroupElement? flashx.textLayout.formats::TextLayoutFormat? * * * *
  9:coerce flashx.textLayout.elements::FlowElement
                        stack: flashx.textLayout.elements::FlowElement?
                        scope: [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ fl.text::TLFTextField$] fl.text::TLFTextField
                         locals: fl.text::TLFTextField flashx.textLayout.elements::FlowGroupElement? flashx.textLayout.formats::TextLayoutFormat? * * * *
  11:setlocal 5
                        stack:
                        scope: [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ fl.text::TLFTextField$] fl.text::TLFTextField
                         locals: fl.text::TLFTextField flashx.textLayout.elements::FlowGroupElement? flashx.textLayout.formats::TextLayoutFormat? * * flashx.textLayout.elements::FlowElement? *
  13:pushnull
                        stack: null
                        scope: [global Object$ flash.events::EventDispatcher$ flash.display::DisplayObject$ flash.display::InteractiveObject$ flash.display::DisplayObjectContainer$ flash.display::Sprite$ fl.text::TLFTextField$] fl.text::TLFTextField
                         locals: fl.text::TLFTextField flashx.textLayout.elements::FlowGroupElement? flashx.textLayout.formats::TextLayoutFormat? * * flashx.textLayout.elements::FlowElement? *
  14:coerce flashx.textLayout.formats::TextLayoutFormatValueHolder
VerifyError: Error #1014: Class flashx.textLayout.formats::TextLayoutFormatValueHolder could not be found.

at fl.text::TLFTextField/repaint()
at fl.text::TLFTextField/set scrollV()
at fl.text::TLFTextField/doImport()
at fl.text::TLFTextField/set text()
at fl.text::TLFTextField/get textFlow()
at fl.text::TLFTextField/get

This topic has been closed for replies.

1 reply

November 29, 2010

I tried your code out in Flash CS 5, and it works just fine (no errors). However, from the title in your post, it looks like you may have attempted to use Flash CS5 with TLF2. Is that what you're doing? I don't even know if that's possible without trying that myself. Anyway, if  you have a few more details on what you're attempting to do, I may be able to help you.

November 29, 2010

BTW, Flash CS5 ships with TLF 1.

November 30, 2010

Thank you idratherbegolfing;

I replaced the textlayout.swc with tlf2.swc (File>ActionScript Settings>Library path Tab)
It works fine when I use text tool to create tlftextfield but when I try to set
some properties (alwaysShowSelection,type,direction,...) of a tlftextfield
created by code I get the above errors.