[flexcoders] Error in StyleManager
Hi, Just for the case someone else runs into this error: During the usage of the StyleManager I´ve found a bug which I can reproduce all the time. It throws an Error, if it is not able to load a runtime-style.swf even if you implement the StyleEvent.ERROR handler. Steps to reproduce: 1. Load runtime stylesheet which doesn´t exists. _styleEventDispatcher = StyleManager.loadStyleDeclarations("notexisting.swf"); 2. Add error eventlistener. e.g. _styleEventDispatcher .addEventListener(StyleEvent.ERROR, onLoadFailed); 3. In onLoadFailed method remove event listener: _styleEventDispatcher .removeEventListener(StyleEvent.ERROR, onLoadFailed); Does anyone else got this error? I just checked the source code and I think I´ve found the bug. Because of the order of the added Module.Error event listener in StyleManager and StyleEventDispatcher the check for error handler isn ´t working. The StyleEvent.Error event is fired two times. One time from StyleEventDispatcher in method moduleInfo_errorHandler(event:ModuleEvent):void and the other time in StyleManager in the anonymous function errorHandler in line 842. Looks like two different guys were developing this classes - communication is everything ;-) I´ve added it to the bug base https://bugs.adobe.com/jira/browse/SDK-14699 cheers, Christoph
Re: [flexcoders] Height Problems of List component using itemrenderer with different row height
Hi, I also already tried this workaround, but still getting from time to time during resizing the same bug. I´ve added a bug in the adobe bug base for this: *SDK-13813 <https://bugs.adobe.com/jira/browse/SDK-13813> *Hopefully there will be a bug fix in the next release or at least a workaround which works all the time. cheers, Christoph* * On Nov 30, 2007 7:55 PM, Alex Harui <[EMAIL PROTECTED]> wrote: >Not sure when I'll get time to look. The basic trick to getting > multiline to work is to set the explicitWidth/width of the text widget so it > can define its height correctly. The explicitWidth of the renderer is set > by the list class before the renderer's measure() is called. > > -- > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Christoph Atteneder > *Sent:* Friday, November 30, 2007 9:00 AM > *To:* flexcoders@yahoogroups.com > *Subject:* Re: [flexcoders] Height Problems of List component using > itemrenderer with different row height > > With the default renderer with wordWrap = true and variableRowHeight= > true it works if I´m setting the height of the list after calling > measureHeightOfItems(). > But it is not working if you are using more sophisticated ItemRenderers( > e.g. with VBox and multiple TextFields, Buttons,...) I´ve already uploaded > a simple Example under > > www.cubeworx.net/ripcurlx/ResizeBug.zip > > br, > > Christoph > > > On Nov 30, 2007 5:47 PM, Alex Harui <[EMAIL PROTECTED]> wrote: > > >does it work with the default renderers with wordWrap=true and > > variableRowHeight=true? > > > > -- > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > > Behalf Of *Christoph Atteneder > > *Sent:* Friday, November 30, 2007 7:43 AM > > *To:* flexcoders@yahoogroups.com > > *Subject:* [flexcoders] Height Problems of List component using > > itemrenderer with different row height > > > >Hi, > > > > My problem is following: > > > > I have a List component which is filled with a list of properties and I > > want to know how much space it needs to display all of its items. > > > > This only works with single label renderer or renderer with a fixed > > height, but not with renderer with different row height with Text component. > > > > > > I really have big problems with all releases of the flex 3 framework so > > far regarding this issue. > > > > I´ve uploaded a flex builder project for testing. > > > > www.cubeworx.net/ripcurlx/ResizeBug.zip > > > > This text wrap size problem is critical for my application, so I hope > > there is at least a workaround for this issue. > > > > thx for any hints in advance > > > > br, > > > > Christoph > > > > >
Re: [flexcoders] Height Problems of List component using itemrenderer with different row height
With the default renderer with wordWrap = true and variableRowHeight= true it works if I´m setting the height of the list after calling measureHeightOfItems(). But it is not working if you are using more sophisticated ItemRenderers(e.g. with VBox and multiple TextFields, Buttons,...) I´ve already uploaded a simple Example under www.cubeworx.net/ripcurlx/ResizeBug.zip br, Christoph On Nov 30, 2007 5:47 PM, Alex Harui <[EMAIL PROTECTED]> wrote: >does it work with the default renderers with wordWrap=true and > variableRowHeight=true? > > -- > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Christoph Atteneder > *Sent:* Friday, November 30, 2007 7:43 AM > *To:* flexcoders@yahoogroups.com > *Subject:* [flexcoders] Height Problems of List component using > itemrenderer with different row height > > Hi, > > My problem is following: > > I have a List component which is filled with a list of properties and I > want to know how much space it needs to display all of its items. > > This only works with single label renderer or renderer with a fixed > height, but not with renderer with different row height with Text component. > > > I really have big problems with all releases of the flex 3 framework so > far regarding this issue. > > I´ve uploaded a flex builder project for testing. > > www.cubeworx.net/ripcurlx/ResizeBug.zip > > This text wrap size problem is critical for my application, so I hope > there is at least a workaround for this issue. > > thx for any hints in advance > > br, > > Christoph > >
[flexcoders] Height Problems of List component using itemrenderer with different row height
Hi, My problem is following: I have a List component which is filled with a list of properties and I want to know how much space it needs to display all of its items. This only works with single label renderer or renderer with a fixed height, but not with renderer with different row height with Text component. I really have big problems with all releases of the flex 3 framework so far regarding this issue. I´ve uploaded a flex builder project for testing. www.cubeworx.net/ripcurlx/ResizeBug.zip This text wrap size problem is critical for my application, so I hope there is at least a workaround for this issue. thx for any hints in advance br, Christoph
Re: [flexcoders] Code behind - class extend mxml vs. mxml extend class
> > What you should have done is declare a public Bindable in the code behind > AS > for each Button or whatever in the MXML file, where the variable name in > the > AS class matches the id parameter in the MXML. > The creationComplete() handler for the AS class then attaches all the > eventListeners. That´s exactly what I want to prevent with the second suggestion. In this inheritence usage I have to add manually ALL components on stage as a public property and set the id as attribute as you already mentioned. The point I´m not sure about is class extends mxml vs. mxml extends class. Shall the MXML extend the CodeBehind class as suggested in the examples, or the CodeBehind class extend the MXML. I hope this makes it clearer, what I´m not sure about. cheers, Christoph On 9/19/07, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > > MyClassCodeBehind extends e.g. Canvas > > An AS class, yup. > > > in the MyClass.mxml the root node is type of MyClassCodeBehind. The > > mxml class extends more or less the class MyClassCodeBehind. > > Yeah, the MXML extends the AS. > > > In this case the class MyClassCodeBehind of course has no access to > > the components in the mxml file. > > What you should have done is declare a public Bindable in the code behind > AS > for each Button or whatever in the MXML file, where the variable name in > the > AS class matches the id parameter in the MXML. > The creationComplete() handler for the AS class then attaches all the > eventListeners. > > Have you seen > > http://ricoonflex.wordpress.com/2007/07/05/apply-code-behind-to-components/? > > -- > Tom Chiverton > Helping to confidentially leverage back-end architectures > on: http://thefalken.livejournal.com > > > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England > and Wales under registered number OC307980 whose registered office address > is at St James's Court Brown Street Manchester M2 2JF. A list of members is > available for inspection at the registered office. Any reference to a > partner in relation to Halliwells LLP means a member of Halliwells LLP. > Regulated by the Law Society. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and > may be confidential or legally privileged. If you are not the addressee you > must not read it and must not use any information contained in nor copy it > nor inform any person other than Halliwells LLP or the addressee of its > existence or contents. If you have received this email in error please > delete it and notify Halliwells LLP IT Department on 0870 365 8008. > > For more information about Halliwells LLP visit www.halliwells.com. > > >