# HELP: Button inside text field?

**URL:** https://forum.kirupa.com/t/help-button-inside-text-field/224845
**Category:** flash
**Created:** [May 6, 2007, 5:24am UTC](https://forum.kirupa.com/t/help-button-inside-text-field/224845 "2007-05-06T05:24:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Luigi\_Vercotti](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@Luigi\_Vercotti](https://forum.kirupa.com/u/Luigi_Vercotti)
#### Post date: [May 6, 2007, 5:24am UTC](https://forum.kirupa.com/t/help-button-inside-text-field/224845/1 "2007-05-06T05:24:55Z")

</div>

Good morning guys

I’ve got a text field where I load text and pic thumbs dynamicly from actionScript…

I’ve got the code which is working that when I click the thumb it will appear bigger pic next to the text field.  
The problem is that I’ve got the stage sise small and I would like to open the big picture in new swf…

```auto
myTextBox.htmlText = "<a href=\"asfunction:imageLink,image1_large.jpg\"><img src='thumbs/image1_small.jpg'></a><b>Prodám-</b> na MITSUBISHI PAJERO 2.8TD INTERCOOLER, 1999, : p&#345;ední náprava 2,900K&#269;, zadní náprava s uzáv&#283;rkou 5,900K&#269;, <b>P</b>&#345;evodovka 9,900K&#269; a jiné...<br><br><br><br><br>"+"<a href=\"asfunction:imageLink,image2_large.swf\"><img src='thumbs/image2_small.jpg'></a><b>Prodam-</B> na JEEP R6V lad&#283;né výfukové svody na Off-Road 2.900K&#269;";
//
this.createEmptyMovieClip("container", 0);
container._x = 350;
container._y = myTextBox._y;
var activeImg:String = "";
//
function imageLink(largeImg:String) {
    if (activeImg != largeImg) {
        activeImg = largeImg;
        container.loadMovie("largeImages/"+largeImg);
    }
}

```

I am trying to do something like this???

```auto
function imageLink(largeImg:String) {
    if (activeImg != largeImg) {
        activeImg = largeImg;
                }
}

function openNew (imageLink) {
    getURL("flashimg/bazar/","_blank");
}

```

oh well… and it is still not working…
