# Adding hyperlinks to customized Pop-up

**URL:** <https://forum.kirupa.com/t/adding-hyperlinks-to-customized-pop-up/286590>\
**Category:** flash\
**Created:** [April 17, 2009, 12:58pm UTC](https://forum.kirupa.com/t/adding-hyperlinks-to-customized-pop-up/286590 "2009-04-17T12:58:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SrihariCh](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@SrihariCh](https://forum.kirupa.com/u/SrihariCh)\
**Post date:** [April 17, 2009, 12:58pm UTC](https://forum.kirupa.com/t/adding-hyperlinks-to-customized-pop-up/286590/1 "2009-04-17T12:58:17Z")

</div>

Hi all,

```
   I need to add as many number of hyperlinks to a custom "pop-up".

```

The properties for customised Pop-up are as follows:  
A pop-up is a retangle shaped figure with BackgroundColour = #FFFFCC, Width=170 and Height= 275 respectively mentioned in Properties Window. Here, Pop-up is a MovieClip and its instance-name is"myPopup".

```
     Now, i need to add text(which must act as hyperlinks, i.e., they must capture MouseEvent_CLICK event, should listen to the event and should produce response on clicking on the hyperlink) in vertical manner viz., the width,height and x-position should not change and only y-position for placing th text-field should change.

```

My code for creating a TextField with required width,height,x-pos and y-pos is as follows:  
\*\*function createTextField(x:Number, y:Number, width:Number, height:Number):TextField  
{  
var result:TextField = new TextField();  
result.x = x;  
result.y = y;  
result.width = width;  
result.height = height;  
addChild(result);  
return result;  
}  
\*\*  
Now,using a “UIScrollbar”, I need to scroll these added text(s) as soon as the text-fields added reaches maximum height of “Pop-up”(Movieclip).  
Now, when I click on Cancel\_btn, all text(s),scrollbar and the pop-up must be get closed.

You can see the output of .swf file in the attachments…

I am new to Flash and ActionScript 3.0.  
Please help me in this context…

Thanks in advance…

Srihari.Ch
