# Please Help!

**URL:** <https://forum.kirupa.com/t/please-help/27957>\
**Category:** Uncategorized\
**Created:** [August 8, 2003, 10:49am UTC](https://forum.kirupa.com/t/please-help/27957 "2003-08-08T10:49:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommy69](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@tommy69](https://forum.kirupa.com/u/tommy69)\
**Post date:** [August 8, 2003, 10:49am UTC](https://forum.kirupa.com/t/please-help/27957/1 "2003-08-08T10:49:04Z")

</div>

Hi, i’m having problem trying not to open up a new frame everytime i click on the sub-headings. Here’s the [demo](http://www.geocities.com/sorro9/demo.html) so you know what i’m talking about 'coz i’m not very good at explaining 🙂  
The following is the actionscript used in flashMX…please help me i really need this to get started. Any help would be greatly appreciated.

traguardo = new Array(n.length);  
traguardof = new Array(fields.length);  
inizio = new Array(n.length);  
function traguardi() {  
cont = 0;  
for (i=0; i\<n.length; i++) {  
nome = “oggetto”+i;  
if (i\>tasto) {  
traguardo\* = (i+n[tasto])_16+1;  
for (a=cont; a\<cont+n_; a++) {  
traguardof[a] = traguardo\*;  
}  
cont = a;  
} else if (i\<tasto) {  
traguardo\* = inizio\*;  
for (a=cont; a\<cont+n\*; a++) {  
traguardof[a] = traguardo\*;  
}  
cont = a;  
} else if (i == tasto) {  
traguardo\* = inizio\*;  
for (a=cont; a\<cont+n\*; a++) {  
if (a == cont) {  
prima = a-1;  
}  
traguardof[a] = 16\*(a-prima)+traguardo\*;  
}  
cont = a;  
}  
}  
}  
clip.\_visible = 0;  
clip1.\_visible = 0;  
cont = 0;  
for (i=0; i\<n.length; i++) {  
nome = “oggetto”+i;  
duplicateMovieClip(\_root.clip, nome, i+100);  
traguardo\* = i_16+1;  
inizio_ = i_16+1;  
\_root[nome].tasto = i;  
\_root[nome].\_y = i_16+1;  
\_root[nome].title = titoli\*;  
for (a=cont; a\<cont+n\*; a++) {  
nome1 = “oggettonuovo”+a;  
duplicateMovieClip(\_root.clip1, nome1, a);  
traguardof[a] = i_16+1;  
\_root[nome1].field = a;  
\_root[nome1].link = links[a];  
\_root[nome1].\_y = traguardo_;  
\_root[nome1].title = fields[a];  
}  
cont = a;  
}  
function spegni() {  
cont = 0;  
for (i=0; i\<n.length; i++) {  
nome = “oggetto”+i;  
\_root[nome].gotoAndStop(1);  
}  
spegni1();  
}  
function spegni1() {  
for (i=0; i\<fields.length; i++) {  
nome = “oggettonuovo”+i;  
\_root[nome].gotoAndStop(1);  
}  
}  
function chiudi() {  
cont = 0;  
for (i=0; i\<n.length; i++) {  
nome = “oggetto”+i;  
\_root[nome].gotoAndStop(1);  
traguardo\* = inizio\*;  
for (a=cont; a\<cont+n\*; a++) {  
traguardof[a] = traguardo\*;  
nome1 = “oggettonuovo”+a;  
\_root[nome1].gotoAndStop(1);  
}  
cont = a;  
}  
}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 10:56am UTC](https://forum.kirupa.com/t/please-help/27957/2 "2003-08-08T10:56:34Z")

</div>

Don’t paste so much code at once, it’s very hard to read. Also, I don’t think that the onPress event is declared in the piece of code you gave here, so it’s probably inside a clip that you’re attaching/duplicating.

pom 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 12:45pm UTC](https://forum.kirupa.com/t/please-help/27957/3 "2003-08-08T12:45:26Z")

</div>

If im not mistaken, ive modified that menu in another thread.  
Check if that helps.  
[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=28389&perpage=15&highlight=menu&pagenumber=3](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=28389&perpage=15&highlight=menu&pagenumber=3)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 9:25pm UTC](https://forum.kirupa.com/t/please-help/27957/4 "2003-08-08T21:25:56Z")

</div>

Thanks guys…yes claudio you’re right…that’s where i got this menu from. oh my! i’m not sure if the answer is there already with the thread you’ve given. ok, i don’t want a lot of windows opening up everytime i click on a subheading. what i want is once you click on a subheading, the old window disapear being replaced by the new window. The demo i gave above probably demonstrates better if you keep clicking on the subheadings. If possible, where exatly do i need to put the actionscript? I’ll be a very happy man if i get this right. Hope that explains a lot clearer. thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2003, 10:18pm UTC](https://forum.kirupa.com/t/please-help/27957/5 "2003-08-08T22:18:41Z")

</div>

problem solve :sure: On the submenu MC i change;

on(release){  
\_root.spegni1();  
gotoAndStop(5);  
getURL(link,“blank”);  
}

**to**

on(release){  
\_root.spegni1();  
gotoAndStop(5);  
getURL(link,"\_self");  
}

**simple as that!** 🙂

anyway thanks again guys for your help

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 9, 2003, 7:40pm UTC](https://forum.kirupa.com/t/please-help/27957/6 "2003-08-09T19:40:31Z")

</div>

:thumb:
