# Using java in \<mx:htmltext\>

**URL:** <https://forum.kirupa.com/t/using-java-in-mx-htmltext/290184>\
**Category:** Uncategorized\
**Created:** [June 10, 2009, 10:04pm UTC](https://forum.kirupa.com/t/using-java-in-mx-htmltext/290184 "2009-06-10T22:04:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tic](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@tic](https://forum.kirupa.com/u/tic)\
**Post date:** [June 10, 2009, 10:04pm UTC](https://forum.kirupa.com/t/using-java-in-mx-htmltext/290184/1 "2009-06-10T22:04:17Z")

</div>

Im my html webpage I’m using this code

```auto
<div id="example"></div>

```

```auto
      <script type="text/javascript">
     flashembed("example", 
        {
            src:'filmpjes/FlowPlayerDark.swf',
            width: 640, 
            height: 400
        },
                {config: {   
            autoPlay: false,
                        loop: false,
            autoBuffering: true,
            initialScale: 'scale',
            videoFile: 'filmpjes/candlelight.flv'
        }} 
    );
</script>

```

No, i’m transferring my html site to flash…

and I wonder if i could still get this effect trough htmltext. or does it has to be done in another way
