Error displaying IMAGES and TEXT


hello all,

i evaluating flex technology company future web developments. part of evaluation, working on web page demo.

currently stuck trying show formated text images. using the mx:htmltext property of class mx:textarea allows me insert directly html code. aware not tags supported mx:htmltext property, worried when read quote in flex developers guide "the <img> tag not supported in flex 2, , might not work in cases.". warning decided go head testing set <img src="image1.jpg"> inside mx:htmltext. unfortunately suspects confirmed: did not work, runtime error message twice each time load component html content "error #2044: unhandled ioerrorevent:. text=error #2036: load never completed." tried use absolute path , got security error image displayed, no relatives path admited.

code:

<mx:textarea xmlns:mx=" http://www.adobe.com/2006/mxml" width="100%" height="100%" editable="false" wordwrap="true" paddingright="0" paddingleft="0" backgroundimage="@embed('recursos/logoinsitma.jpg')">

<mx:htmltext>
<![cdata[
<p align="justify"><font size="13" color="#0021cc"><textformat leftmargin="5" rightmargin="5" leading="5">blah blah blah blah blah blah blah blah blah blah blah blah blah <img src='\logoinsitgris.gif'> blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
</textformat></font></p>
]]>
</mx:htmltext>


</mx:textarea>


as walkaround have thought use mx:labels , apply styles format text , mx:images add pictures, not pretty sure if generate same layout have in mind (i text surround images).

so questions are:

1-. <img> syntax incorrect or there should have in mind avoid error "error #2044: unhandled ioerrorevent:. text=error #2036: load never completed"? or error happening due html tag not supported flex?

2-. exist walkaround generated formated text , images? using mx:labels , mx:images be, more restricted html , in addition not maintenable.

all comments/ideas/suggestions welcome.

thanks in advance valuable help.

j.b.

hello again,

i add following <img src="com\foo\web\recursos\fotos\3gmovil.jpg" /> , compiler directive -use-network=false , issue solved. if directive not used following error shown:

securityerror: error #2148: swf file file://d:\trabajo\web\insit\0.7\paginas\loader.swf cannot access local resource file://d:\trabajo\web\foo\0.7\paginas\com\foot\web\recursos\fotos\3gmovil.jpg. local-with-filesystem , trusted local swf files may access local resources.


in case use directive swf generated not able access network.

to avoid errors related usage of local workspace have accessed pictures located on server , got following:


securityerror: error #2122: security sandbox violation: bitmapdata.draw: file://d:\trabajo\web\foo\0.7\paginas\loader.swf cannot access http://192.168.0.128:8080/vymowebpruebas/a.jpg. policy file required, checkpolicyfile flag not set when media loaded.


please help! possible embed picture in swf , call htmltext? of have faced issue?

thanks in advance,

jb


More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial