[Laszlo-dev] For Review: Change 20090405-bargull-Fp9 Summary: IllegalOperationError when setting defaultTextFormat
André Bargull
andre.bargull at udo.edu
Sun Apr 5 16:14:34 PDT 2009
Try "apply style" and then "set text", it should throw an error like:
Error: Error #2009: This method cannot be used on a text field with a
style sheet.
at flash.text::TextField/set defaultTextFormat()
at LzTextSprite/setText()
at LzText/$lzc$set_text()
at LzEventable/setAttribute()
at TextCSSStyleSheet$/applyStyleSheet()
at $lzc$class_$2Fvbox$5B1$5D$2Fhbox$2Fbutton$5B1$5D/$m178()
at Function/http://adobe.com/AS3/2006/builtin::call()
at LzEvent/sendEvent()
at LzView/mouseevent()
at LzModeManagerService/handleMouseEvent()
at LzModeManagerService/rawMouseEvent()
at LzMouseKernel$/__sendEvent()
at LzSprite/__mouseEvent()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at LzTextSprite/__forwardMouseEventToSprite()
at LzTextSprite/handleTextfieldMouse()
On 4/6/2009 1:05 AM, Max Carlson wrote:
> Hmmm - that testcase doesn't give me any errors without the patch... Did
> you send the right one? Also, neither the 'Apply Style' or 'Remove
> Style' buttons work in swf8 or 9.
>
> André Bargull wrote:
>> If you run "csstext_test.lzx" in swf9 without the patch, you should
>> get an IllegalOperationError.
>>
>>
>> On 4/6/2009 12:52 AM, Max Carlson wrote:
>>> Do you have a testcase?
>>>
>>> André Bargull wrote:
>>>> Change 20090405-bargull-Fp9 by bargull at dell--p4--2-53 on 2009-04-05
>>>> 21:42:42
>>>> in /home/Admin/src/svn/openlaszlo/trunk
>>>> for http://svn.openlaszlo.org/openlaszlo/trunk
>>>>
>>>> Summary: IllegalOperationError when setting defaultTextFormat
>>>>
>>>> New Features:
>>>>
>>>> Bugs Fixed: LPP-8024 (SWF9: flash error if defaultTextFormat is set
>>>> on a textfield with stylesheet)
>>>>
>>>> Technical Reviewer: max
>>>> QA Reviewer: (pending)
>>>> Doc Reviewer: (pending)
>>>>
>>>> Documentation:
>>>>
>>>> Release Notes:
>>>>
>>>> Details:
>>>> Implement some basic changes in order to provide support for Flash
>>>> StyleSheets on text.
>>>> (The Flash player throws an IllegalOperationError if you set the
>>>> defaultTextFormat property on TextField which has got a StyleSheet.)
>>>>
>>>>
>>>> Tests:
>>>>
>>>> Files:
>>>> M WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
>>>>
>>>> Changeset:
>>>> http://svn.openlaszlo.org/openlaszlo/patches/20090405-bargull-Fp9.tar
>>>>
>>>
>
More information about the Laszlo-dev
mailing list