sonykuriakose / tlftexteditor

Automatically exported from code.google.com/p/tlftexteditor
0 stars 0 forks source link

Error: 'restrict' is not implemented in FTETextField. #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When I added the TextEditor in my Flex CMS application, I am getting an error:
Error: 'restrict' is not implemented in FTETextField.
    at mx.core::FTETextField/set restrict()[E:\dev\4.5.1\frameworks\projects\spark\src\mx\core\FTETextField.as:1294]
    at mx.controls::TextInput/commitProperties()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\TextInput.as:1822]
    at mx.core::UIComponent/validateProperties()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:8209]
    at mx.managers::LayoutManager/validateProperties()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:597]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:813]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]

I am using Flash Builder 4.5 (Flex library version of the application is 
4.5.1)? OS is: Win7. Browser is Chrome. Flash Player version is 11.1.102.55

The TextEditor & TextEditorDemo I checked out from the SVN works fine - its 
running in Flash Player 10. The web application is running in Flash Player 11. 
Can that be the problem? Are there any solutions or work arounds?

thanks

Original issue reported on code.google.com by gsronl...@gmail.com on 3 Feb 2012 at 2:08

GoogleCodeExporter commented 9 years ago
Yes. Looks like I was trigger happy and didnt check in detail.

I checked the swf in a standalone player and its working fine. How to force 
browser to user 10.2.x ?

thanks

Original comment by gsronl...@gmail.com on 3 Feb 2012 at 2:17

GoogleCodeExporter commented 9 years ago
I found the solution to this. If someone else is having the problem - 
open Project > Properties > Flex Compiler > Compiler options

Tick the checkbox 'Use Flash Text Engine in MXcomponents'

This will work fine.

Original comment by gsronl...@gmail.com on 9 Feb 2012 at 10:32

GoogleCodeExporter commented 9 years ago
I had the same problem, it is more specifically related with the ColorPicker 
(the only mx component used in tlftexteditor).

This link helped me :
http://opensource.adobe.com/wiki/display/flexsdk/FTE+and+TLF+text+in+MX+componen
ts

Instead of changing the compiler option, I added this line in my css : 

mx|ColorPicker
{
textInputClass: ClassReference("mx.controls.MXFTETextInput");
}

I hope it can help someone else.

Original comment by nicolas....@vodalys.com on 4 Apr 2012 at 3:42