# Help - PopUp Windows & Template

**URL:** https://forum.kirupa.com/t/help-popup-windows-template/161042
**Category:** flash
**Created:** [August 31, 2005, 3:49pm UTC](https://forum.kirupa.com/t/help-popup-windows-template/161042 "2005-08-31T15:49:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![template609](https://avatars.discourse-cdn.com/v4/letter/t/cab0a1/32.png) [@template609](https://forum.kirupa.com/u/template609)
#### Post date: [August 31, 2005, 3:49pm UTC](https://forum.kirupa.com/t/help-popup-windows-template/161042/1 "2005-08-31T15:49:02Z")

</div>

[font=Times New Roman][size=3]Ok, here we go.[/size][/font]

[font=Times New Roman][size=3]Im currently using Flash MX Pro, for students (im a student). I also bought a “ready made” flash website template to use & practice on. Im learning my way around, so far so good. my dead end problem, trying to create a “pop-up window” from a button. [/size][/font]

[size=3][font=Times New Roman] [/font][/size]

[font=Times New Roman][size=3]I have followed the directions from: [/size][/font][[font=Times New Roman][size=3][color=#800080]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn\_14192#geturljs[/color][/size][/font]](http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14192#geturljs)

[font=Times New Roman][size=3]And once I go to “publish” in Flash MX, I get an OUTPUT error: [/size][/font]  
[font=Times New Roman][size=3][/size][/font]  
[size=3][font=Times New Roman] **Error** Symbol=page1, layer=Layer 5, frame=1:Line 1: Statement must appear within on handler[/font][/size]

[size=3][font=Times New Roman] getURL(javascript:openNewWindow(‘[http://www.macromedia.com](http://www.macromedia.com)’,‘thewin’,‘height=400,width=400,toolbar=no,scrollbars=yes’));[/font][/size]

[size=3][font=Times New Roman] [/font][/size][font=Times New Roman][size=3]Total ActionScript Errors: 1 Reported Errors: 1[/size][/font]

[size=3][font=Times New Roman] [/font][/size]

[font=Times New Roman][size=3]And that’s when the hair pulling starts.[/size][/font]

[font=‘Times New Roman’]Can anyone please help point me in the right direction, a detailed / simple walk thru will help a lot. Please Help. [/font]
