You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by chris_flex <ck...@christiankiefer.de> on 2018/04/07 11:46:11 UTC
Embedd Image into html to display in richText
I found this example:
http://www.java2s.com/Code/Flex/Development/EmbedimageintohtmlanddisplayitwithRichText.htm
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:s="library://ns.adobe.com/flex/spark">
<mx:Script>
import spark.utils.TextFlowUtil;
[Bindable]
public var txt:String = "<div>" +
" " +
"<p>this is a test" + "bold" +
"</p></div>";
</mx:Script>
<s:Graphic x="10" y="10">
<s:RichText width="400" height="60"
columnCount="4"
fontFamily="Helvetica"
textFlow="{TextFlowUtil.importFromString(txt)}"
/>
</s:Graphic>
</mx:Application>
Where in the project structure should the folder assets with the icon.png be
located?
--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Re: Embedd Image into html to display in richText
Posted by chris_flex <ck...@christiankiefer.de>.
Sorry... just pasted the code...
Here as raw text...
--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Re: Embedd Image into html to display in richText
Posted by Carlos Rovira <ca...@apache.org>.
No icon.png in code right? I think you missed some code in the code
2018-04-07 13:46 GMT+02:00 chris_flex <ck...@christiankiefer.de>:
> I found this example:
>
> http://www.java2s.com/Code/Flex/Development/Embedimageintohtmlanddisplayit
> withRichText.htm
>
> <mx:Application
> xmlns:mx="http://www.adobe.com/2006/mxml"
>
> xmlns:s="library://ns.adobe.com/flex/spark">
>
> <mx:Script>
>
> import spark.utils.TextFlowUtil;
>
> [Bindable]
> public var txt:String = "<div>" +
> " " +
> "<p>this is a test" + "bold" +
> "</p></div>";
>
> </mx:Script>
> <s:Graphic x="10" y="10">
> <s:RichText width="400" height="60"
> columnCount="4"
> fontFamily="Helvetica"
> textFlow="{TextFlowUtil.importFromString(txt)}"
> />
> </s:Graphic>
>
> </mx:Application>
>
> Where in the project structure should the folder assets with the icon.png
> be
> located?
>
>
>
>
>
> --
> Sent from: http://apache-flex-users.2333346.n4.nabble.com/
>
--
Carlos Rovira
http://about.me/carlosrovira