# Calling a pop up window from an external file

**URL:** <https://forum.kirupa.com/t/calling-a-pop-up-window-from-an-external-file/50984>\
**Category:** Uncategorized\
**Created:** [May 8, 2004, 6:19am UTC](https://forum.kirupa.com/t/calling-a-pop-up-window-from-an-external-file/50984 "2004-05-08T06:19:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![baracuda](https://avatars.discourse-cdn.com/v4/letter/b/da6949/32.png) [@baracuda](https://forum.kirupa.com/u/baracuda)\
**Post date:** [May 8, 2004, 6:19am UTC](https://forum.kirupa.com/t/calling-a-pop-up-window-from-an-external-file/50984/1 "2004-05-08T06:19:01Z")

</div>

Hi All,  
I’m a newbie to action scripts. Ok this is my question. I have a MC which calls a external text file In which somewhere in the middle i have few links. I would like to know how can i use these links to call a Pop up window. Or any other way to use links to call pop up windows in a scrolling external text file.

Thanks…

The following is the script i have used.  
onClipEvent (load){  
this.loadVariables(“daText.txt”);  
scrolling = 0;  
frameCounter = 1;  
speedFactor = 2;  
daScroll = 73;

refreshRate = 12;  
refreshCounter = 0;  
refreshLastMaxScroll = 0;  
loaded = false;

}

onClipEvent (enterFrame){  
if( loaded ){  
if(refreshCounter % refreshRate == 0 && daTextBox.maxscroll != refreshLastMaxScroll){  
// refresh Scrollbar  
refreshLastMaxScroll = daTextBox.maxscroll;  
refreshCounter = 0;  
}  
refreshCounter++;

}

if( frameCounter % speedFactor == 0){  
if( scrolling == “up” && daTextBox.scroll \> 1){  
daTextBox.scroll–;  
daScroll = daScroll + 5;  
}  
else if( scrolling == “down” && daTextBox.scroll \< daTextBox.maxscroll){  
daTextBox.scroll++;  
daScroll = daScroll - 5;  
}  
frameCounter = 0;  
}  
frameCounter++;  
}

onClipEvent (data){  
loaded = true;  
}
