HTML Component with Images

0 views
Skip to first unread message

kalai selvi

unread,
Nov 13, 2009, 6:17:30 AM11/13/09
to flex_...@googlegroups.com
<mx:Repeater id="repId" dataProvider="{arr}"  height="197" >
                    <mx:HTML height="100"  id="htmlComp" visible="true" includeInLayout="true"  backgroundColor="#C0C0C0"   width="239" click="getRichTextEditor(event);">
                  </mx:HTML>
 </mx:Repeater>



or;

                  var htmlComp:HTML;
                 htmlComp.htmlLoader.placeLoadStringContentInApplicationSandbox = true;
                 htmlComp.htmlText='<h1>sample</h1><img src="assets/curvebottom.jpg"/>';
                 for(var i:int = 0; i <10;i++) {
                 htmlComp=new HTML();
                 htmlComp.height=100;
                 htmlComp.htmlText='<h1>sample</h1><img src="assets/curvebottom.jpg"/>';
                 contentContainer.addChild(htmlComp);






in both way i am getting Errot :TypeError: Error #1010: A term is undefined and has no properties.

or null object.


if i am remove the <repeater> or that for loop it shows the image properly.if add these two i am getting this error.

 so plz  let me know the solution.


Regards,

KalaiSelvi.R
Reply all
Reply to author
Forward
0 new messages