bug when scrolling a list with & quot; LinkButton embedded icons & quot; as itemRenderers

Hello
I have a problem with a list and itemRenderers made LinkButton which have an icon embedded at compile time. The icons are incorporated at the time of compiling via a FaviconLibrary class.
The bug in action here

Use the scroll bar to the bottom of the square and you will see that the icons are not associated with their origin LinkButton more.
Source is available by right clicking on the application.

Any help appreciated.
Thank you.

"djsuperfive" wrote in message
News:giodnf$T8H$1@forums. Macromedia.com...
> Hi,.
> I have a problem with a list and itemRenderers made of LinkButton which
> have a
> icon embedded at compile time. The icons are embedded at compile time via
> a
> FaviconLibrary class.
> The bug in action
> http://www.ligne13.com/maxime/LinkButtonIconList/bin-release/LinkButtonIconList.
> html
>
> Use the scroll bar to the bottom of the square and you will see that the icons are not
> Associates
> with their original LinkButton more.
> Source is available by right clicking on the application.

http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.PDF
Q2

Tags: Flex

Similar Questions

  • loop over a list with & quot; Insert & quot; in the cfquery tag valid?

    looping over a list with 'insert' in the cfquery tag valid? He
    throws any errors and inserted into the table without any
    problems, but just wonder if it is possible to use since when I tried
    Select article twice in a cfquery, it executes only the first.

    < cfquery >
    Select the test in testdata

    Select othertest from differentdata
    < / cfquery >

    If it works, it is valid. Different from the db support different syntaxes on this issue. A way that would work for all db's

    insert into sometable
    (fields)

    Select somevalues
    from somewhere

    Union
    closing tags.

  • Class CellRenderer custom - lines get drawn on when scrolling in list

    Hello

    Before you start, I have a background in Java and I am new to Flex, so that might be already known.

    I extend the CellRenderer class, and thought I'd share what I've learned and maybe someone will show what I'm doing wrong. I found that when you have a list that you can scroll up and down, the elements of the list just get drawn again and again, so if you have a text on a cell and scroll to the top and down the text becomes illegible. See Image:

    To resolve this problem, I ended up adding a feature to remove all the children in the drawLabel() function: (my application displays the content of twitter)

    public class TweetRenderer extends CellRenderer
    {
        public function TweetRenderer()
        {
            super();
            this.label.visible = false;
        }
    
        override protected function onAdded():void
        {
            super.onAdded();
        }
    
        override protected function onRemoved():void
        {
            super.onRemoved();
    
            this.clear();
        }
    
        override protected function init():void
        {
            super.init();
        }
    
        override protected function drawLabel():void
        {
            this.clear();
    
            super.drawLabel();      
    
            if(this.data)
            {
                var tweet:Object = this.data.data;
    
                var profilePic:Image = new Image();
                profilePic.height = 48;
                profilePic.width = 48;
                profilePic.x = 10;
                profilePic.y = 10;
                profilePic.setImage(tweet['profile_image_url']);
    
                var text:Label = new Label();
                text.x = 10*2 + profilePic.width;
                text.width = this.width - text.x;
                text.wordWrap = true;
                text.htmlText = "" + tweet['from_user'] + " " + tweet['text'];
    
                this.addChild(profilePic);
                this.addChild(text);
            }
        }
    
        protected function clear():void
        {
            while(this.numChildren > 0)
            {
                this.removeChildAt(0);
            }
        }
    }
    

    There is also a print function, you can override, you may have to experiment with that a little bit? I come from a background of Java as well and I have not really understood the logic of the CellRenderers as well. Sometimes it seems just so random.

    So, I have a list that displays images and text, it is for me to post my code base:

    package renderer
    {
        import flash.display.Bitmap;
        import flash.display.Shape;
        import flash.text.TextFormat;
    
        import flashx.textLayout.formats.TextAlign;
    
        import qnx.ui.display.Image;
        import qnx.ui.listClasses.CellRenderer;
        import qnx.ui.text.Label;
    
        public class PreviewListRenderer extends CellRenderer
        {
            private var image: Image = new Image();
            private var text: Label = new Label();
            private var background: Shape = new Shape();
            private var myFormat:TextFormat;
            private const rectWidth:int = 22;
            private const rectHeight:int = 16;
    
            public function PreviewListRenderer()
            {
                super();
                image.y = 0;
    
                myFormat = new TextFormat;
                myFormat.size = 9;
                myFormat.align = TextAlign.CENTER;
                myFormat.color = 0xFFFFFF;
    
                background.graphics.beginFill(0x000000);
                background.graphics.drawRect(0,0,rectWidth,rectHeight);
                background.graphics.endFill();
    
                this.label.visible = false;
            }
    
            override protected function onAdded():void{
                super.onAdded();
                addChild(image);
                addChild(background);
                addChild(text);
            }
    
            override protected function onRemoved():void{
                super.onRemoved();
                removeChild(text);
                removeChild(background);
                removeChild(image);
            }
    
            override protected function drawLabel():void{
                super.drawLabel();
                if(data){
                    if(data.icon){
                        image.setImage(data.icon);
                        image.width = data.icon.width;
                        image.height = data.icon.height;
                        image.x = (this.width - image.width)/2;
                        image.y = (this.height - image.height)/2;
                        text.x = image.x;
                        text.y = image.y;
                        text.text = data.label;
                        text.format = myFormat;
                        text.width = rectWidth;
                        background.x = image.x;
                        background.y = image.y;
                    }
                }
            }
        }
    }
    

    I have no question as you mentioned.

  • Bug when developing online Adobe with the Wacom pen

    Hello.

    For awhile I had experiences with the Adobe line application and I liked the way I can shoot with the pressure-sensitive

    Stylus.

    I have both the first and the second version of the creative Wacom Intuos pen and it works fine, but there is a

    a bug which is a bit annoying.

    Sometimes, when you draw a line, only an initial mark appears when you start to draw the line.

    This seems to happen more frequently when you draw a line in particular directions.

    How to solve this problem for me is to undo the last change and try again, but sometimes several

    times that I only have this initial note, instead of the line, I expected that I drag the stylus across the surface

    the tablet.

    I have an iPad Mini retina and it seems that the stylus (two of them) are working ok, because in other applications, like the bamboo paper,

    I don't seem to experience this problem.

    I hope this bug is fixed, because apart from this bug, I prefer drawing freehand Adobe online compared to other applications

    like the bamboo paper.

    Greetings and thanks in advance for your suggestions, Niek

    Hello

    Is that what you found no success using Adobe Illustrator to draw instead of line? It is up-to-date and perhaps offer more compatibility.

    See you soon!

    -Kathleen

  • 4.0 severe EA3 do bug when open model created with 3.3 beware!

    Fortunately, I discovered this very ugly bug early.

    I have a model created with 3.3 744, (32-bit Java). When I opened this model with 4.0 EA3 (Java 64) I saw that my PK attributes in entities lost information main uid. (Yes I have "saved as"the model with 4.0EA3)

    So when you engineer an entity to the relational model you lose your PK and FK is not generated

    I can reproduce this bug just in case someone asks

    Hi Guenter,

    the problem is solved and the new version should address your templates correctly. If you already have damage and keep the old version of the templates, then you can try to merge this particular field only when new version is available.

    Philippe

  • List with ItemRenderer becomes crazy when scrolling

    Hi all

    I have a list with a defined as ItemRenderer:

    < mx:List id = "msgList" dataProvider = "{ca}" >
    < mx:itemRenderer >
    < mx:Component >
    < ns1:MsgRenderer >
    < / ns1:MsgRenderer >
    < / mx:Component >
    < / mx:itemRenderer >
    < / mx:List >

    inside the MsgRender component I have a very simple creationComplete function like this one which adds an icon (a yellow star or a Black Star) according to a var Boolean called Star:

    private void pace (): void {}
    If (this.data)
    {
    If {(this.data.star)
    this.starIcon.source = "assets/images/ystar.png";
    }
    else {}
    this.starIcon.source = "assets/images/bwstar.png";
    }

    }
    }

    It works very well. BUT when I scroll the list everything is messed up, the yellow star appears where it shouldn't appear etc, etc, etc.. I checked the data source "ac" with the debugger and everything is in place, it's just the icons in the list that is messed up.

    No idea why this can happen, this is the first time I encounter this problem!

    Greetings,

    Alex

    For performance reasons, the list reuses point converters when you scroll.

    Point converters who paraded on top of the list are reused to

    items that marched in the bottom of the list. If you expect

    the data property of an element converter to change. You need to update the

    State of your rendering engine when data changes. In your original

    example you have been setting up rendering once to creationComplete,

    rather than every time the ownership of the data changed. The usual approach

    update the rendering engine when data changes is to trigger updates in the

    set the rendering engine data() function, but listen to a dataChange event

    will also work.

  • How do with java: bar navigation remains visible and pops up when scrolling to the bottom of the page

    Hello


    I want as my default-navigation bar to jump to the top of the page when scrolling down the site - it must remain visible as on this page: www.yourpagemaker.de

    It's a German Site.

    Can someone help me with this? Where do I have to insert Java Script and how can I give this command?

    Thank you

    ELISA.

    You must change your nav to have a. affix the class with JavaScript (not Java).

    Bootstrap model 3 - attach nav after the scrolling example code

    Nancy O.

  • Problems with the passage of the anchor when scrolling down

    Hello! I got problems with my lag anchors to the left when scrolling down. I tried all the solutions found in some other Adobe Forums, but none seems not to work with mine

    Here is my website

    Home

    I hope someone can help!

    That was the problem with me. Using the 100% width option, he showed me my background and text blocks are indeed too wide. Thank you!

  • Fuzzy letters on websites when scrolling in Firefox 19 (with either smooth scrolling active / disabled)

    Hello

    Recently, I updated to Firefox 19, and since I had some problems when scrolling on Web sites: some lines/letters fade.
    I did some research online and found a trick to disable smooth scrolling, so I only have restarted Firefox, but the issue is still not resolved.
    I have not had this problem until the recent upgrade.
    Is this a known issue? Is there a solution to this?
    If no, how are we going to go back to the previous version of Firefox, I can only find the download links to the latest version...

    Thank you
    Lars

    Hello Santuzzo, try turning off hardware acceleration and check again.

    Thank you

  • Adobe Premiere Pro bug with Mac News El Capitan. Project window bugs when paused/stopped (including screenshot)

    I just upgraded from Yosemite to El Capitan, and when I started editing with Adobe Premiere Pro, my project window would look like this in pause/stop:

    Screen Shot 2015-10-16 at 9.57.00 PM.png

    If you had read this forum for 2-3 weeks, you would have seen a TON of these... and there are also many other problems of El Capitan. Not only for Adobe, but for all kinds of software. Heck, even the crowd of MS Office is angry against El Capitan!

    If you can, roll back to Yosemite... There is a thread, you should find in a search with the statement on this.

    Otherwise, to do this, go to project settings... Acceleration of mercury... and together for the only software rendering. A box should then appear, and in this document, select "remove the Previews. Close & restart.

    And... screaming Apple to get them to pay some attention to their 'old style' user-base of the computer. They fell in love with devices, and you're so old school... at least for them...

    Neil

  • When selecting a "select list with redirect', all variables are losing value

    I have a form where a field (: P38_CUSTOMER_ID) receives its value from the parent report and it appears as: "display text (saves the State)).".

    I have 2 fields from selection list. The first (: P38_COUNTRY) is shown in the form "select list with redirect.
    As soon as I select the value (name of the country) in this list box, I lose the value: P38_CUSTOMER_ID.

    An idea on what I need to do to ' P38_CUSTOMER_ID to avoid losing its value?

    Thanks in advance.

    You are welcome. There are many options to choose from ;-)

    Be sure to note the answers as people only get points if you do.

    Thank you
    Dimitri

  • The list with many images

    Hello!

    I have a list with a lot of images in the itemRenderer, over 500.

    I use virtualization on this list.

    When people scroll quickly down, it can take a bit to load images.

    Issues related to the:

    1. in what order the list control to load images? Up and down the entire list or Topp down only the visible part?

    2. is there anyway I can give priority to a certain image to load first on others? The images have the source property set to a relative path on the server.

    3. is there anything I can do to speed up the process of loading in general?

    Thank you!

    The list does not load images, because of your item converter.  I suppose you load these images by substituting the data setter method in the rendering engine.

    When the list of the first loads it creates just enough converters to show what is in view (due to virtualization), let the top 10 items.  This means that the first 10 images will be loaded, but no other images will be loaded unless you scroll the list to expose new items.  If you want to have some images available before others so you can have your application load them if its not busy and in this way, they could be available before the user scrolls.

    Even if you were to load all images before creating the list you might seem still some flickering when scrolling because what are they are recharged in as user autour scrolls.  To remedy this, you might want to consider caching the images as they are loaded, there is an example here: http://flexponential.com/2010/01/10/caching-images-loaded-from-a-spark-item-renderer/

  • The list with the variable row height

    Hi, please look at the example below

    What I do is:

    -J' I create an item in list with variableRowHeight set to true.

    -The dataProvider contains 2 numbers: 2 and 3

    -In the itemRenderer, this causes in progress of creation, respectively 2 and 3 buttons

    -As you can see, the height of the list is badly calculated, a scroll bar appears.

    -When you switch 2 and 3 (so that the table becomes 3 and 2), the list is too large.

    -I could make a custom list class and override the method of measurement, but I can't understand what to measure. I should be able to walk through the itemRenderers and measure their height.

    Any ideas?

    THX,

    Dany

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "layout ="vertical"creationComplete =" init () "> "

    < mx:Script >
    <! [CDATA]
    Import mx.collections.ArrayCollection;

    [Bindable]
    private var dp:ArrayCollection;

    private function init (): void
    {
    var a: Array = [2, 3];
    DP = new ArrayCollection (a);
    }

    []] >
    < / mx:Script >
    < mx:List width = "100%" dataProvider = variableRowHeight "{dp}" = "true" rowCount = "{dp.length}" >
    < mx:itemRenderer >
    < mx:Component >
    < mx:VBox >
    < mx:Script >
    <! [CDATA]
    Import mx.controls.Button;
    override public function set data(value:Object):void
    {
    Super.Data = value;

    If (this.numChildren == 0)
    {
    for (var i: int = 0; i < value; i ++)
    {
    var b:Button = new Button();
    b.label = "Row" + value;
    this.addChild (b);
    }
    }
    }
    []] >
    < / mx:Script >
    < / mx:VBox >
    < / mx:Component >
    < / mx:itemRenderer >
    < / mx:List >
    < / mx:Application >

    Sorry, it's a method on a list called measureHeightOfItems.  The results,

    Add viewMetrics.top and down and you should have the exact size of the

    List.

  • Links stop working when scrolled out of view

    By using at least the last little built gumbo, if you have hyperlinks in the paragraphs that scroll out of sight in a FxTextArea they don't work when scrolled to.

    I don't know if this is a problem of TLF or Gumbo or a deal is not yet implemented. I couldn't find any mention of it anywhere so I got a bug with an attached example here:
    http://bugs.Adobe.com/jira/browse/SDK-19063

    Hello

    I have read the bug and built the test application. Seems to be fixed. I'm on TLF build 374, which is not yet available.

    Richard

  • I would like to remove the arrows when scrolling to the bottom of a search page.

    When I do a search in firefox and you present results to get an arrow that I scroll the page down and he jumps a few lines. I would like to remove the arrows and the page myself.

    Are you scroll with the mouse, the scroll bar or with the keyboard?

    I cannot portray the arrow you see. Would it not possible to display a screenshot? If changing the mouse pointer, the screenshot probably include that, but if it is an element of the page, then it should.

    This article has tips on the screenshots. Please remove personal/confidential information before posting (you can attach an image to an answer).

    How to make a screenshot of my problem?

    Not sure it's relevant, but Firefox has a feature of accessibility called the keyboard navigation that moves the cursor in the document. You can disable this option in the Preferences dialog box. Please see this article for more information: Advanced panel - accessibility, navigation, network, updates and other settings in advanced Firefox (it's the first item in the mini general tab, "always use the cursor keys to navigate within pages").

Maybe you are looking for