Note that there are some explanatory texts on larger screens.

plurals
  1. POHorizontalList crash when scroll "too" fast
    primarykey
    data
    text
    <p>I have this strange problem in Flex(Flash Builder 4), in HorizontalList it crash whenever I scroll to fast, anyone got an idea? here's my Custom item renderer</p> <pre><code>package { import flash.events.Event; import flash.events.MouseEvent; import flash.net.URLLoader; import flash.net.URLRequest; import flash.text.StyleSheet; import flashx.textLayout.container.ScrollPolicy; import mx.containers.VBox; import mx.controls.Image; import mx.controls.Label; import mx.core.FlexGlobals; public class CustomItemRenderVBox extends VBox { private var track:Object = null; private var img:Image = new Image(); private var lbl:Label = new Label(); [Embed(source="gfx/noArt.png")] [Bindable] private var noArt:Class; override public function set data(value:Object):void { trace(value); if(value.c3 != "" ) try{ addChild(img); addChild(lbl); horizontalScrollPolicy = ScrollPolicy.OFF; verticalScrollPolicy = ScrollPolicy.OFF; setStyle("verticalAlign", "top"); setStyle("horizontalAlign","left"); track = value; trace("Art: " + value.Art); if(value.Art == "" || value.Art =="-" ) img.source = noArt; else img.source = value.Art; // &lt;&lt; when I remove this part it works fine trace("GAY"); img.height = 60; img.scaleContent = true; img.autoLoad = true; lbl.text = value.c3; lbl.width = 67; lbl.height = 20; trace("WAY"); img.useHandCursor = true; img.buttonMode = true; lbl.useHandCursor = true; lbl.buttonMode = true; trace("NAY"); img.addEventListener(MouseEvent.CLICK,arClick); lbl.addEventListener(MouseEvent.CLICK,arClick); }catch(E:Error) { } } private function arClick(event:MouseEvent):void { FlexGlobals.topLevelApplication.albumSearch("/album " + track.c3); } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload