flex-users / flexlib

Open Source Flex components library.
github.com/flex-users/flexlib
MIT License
204 stars 91 forks source link

Adding a window to the window manager causes a run-time error if Flash Text Engine is used for MX components #291

Open nicoulaj opened 13 years ago

nicoulaj commented 13 years ago

Originally filed by eugenet...@gmail.com on 2010-04-02T10:51:35

What steps will reproduce the problem?

  1. In the projects properties, tick the Flex Compiler option 'Use Flash Text Engine in MX components'
  2. Create an MDIWindow (window = new MDIWindow())
  3. Add the newly created MDIWindow to the windowmanager (windowManager.add(window)

What is the expected output?

I expected the window to be displayed, without an error.

What do you see instead? The expected window plus an error box.

What version of the product are you using? On what operating system? flexlib - 2.5 -flex4 Mac OsX 10.5

Please provide any additional information below. In MDIWindowControlsContainer.as, line 123 seems to be the cause of the problem:

var tf:UITextField = window.getTitleTextField();

Variable tf is declared as UITextField, however, if you set the mentioned compiler option, the window textfield is of type UIFTETextField, thereby resulting in tf = null.

In line 126, variable tf is referenced, causing a run time error.

nicoulaj commented 13 years ago

Updated by eugenet...@gmail.com on 2010-04-02T18:55:28

Forgot to say that I'm using Flash Builder 4 with sdk Flex 4.0