Can some beautiful kirupian help me out with this array please?

Hi Guys,
Ca anyone help me out with this array please? I need it to call swf’s from the top level menu, at present it only calls in swfs from the secondary nav. I really need to use this for an important project - any help would be very much appreciated.

I have attached the original fla in the post below…

please, please, please help, my designer brain is getting fried :slight_smile:

anybody out there help with this at all?

Woah! :stunned: Flash 4 syntax!! :-/

But… what exactly doesn’t work?

I click PC Grundlagen, get a list of items, I try to click one of them and it tries to open a .swf I haven’t got.
And the same happens when I click Internet Grundlagen.

So far clicking every link has tried to load a .swf… Isn’t that what is supposed to happen :h:

ah thank goodness someone is finally answering my post :beer:

Yes indeed, the script is opening swf’s/url’s in the secondary nav and not the top nav. I want it so that when someone click on the top level nav that it loads that section, otherwise this type of menu is almost useless as its too confusing to use.

Do I make sense?

Here is what I am working on…check out the menu, I just want it so that when you click on ‘about us’ that it would load ‘about.swf’ - at present nothing would happen without the user then having to click on the secondary nav ‘history’ before anything could be called in…

http://www.designisfelt.com/test.htm

can you help please?

thanks so much
j.

PS-sorry didnt know it was flash4 AS :stunned:

Hmmm… You probably make a lot of sense there, I’m just having difficulties to get it :smiley:
[size=1](I’m still trying to make sense of this Flash4 syntax… It’s been nearly 3 years since I last time saw it… And at that time I had practically no clue about AS!)

[size=2]So, you’d want that when I click “PC Grundlagen”, it loads a .swf, right?

…why not attach the same getURL method to the “PC Grundlagen” as you did for the sub navigation(s)?
[/size][/size]

I tried that and it would call in a swf or URL but then the subsections wouldnt appear. It also doesnt help that the script is in Italian :slight_smile:

I want it so that a user clicks on ‘section1’ or ‘section 2’ etc and they are taken to that section…at present if you can imagine that a user would be confused if they clicked on a top level section and nothing happened except for the menu scrolling down…so the menu should scroll down and also link the top sections…

I have seen differnet versions of this and have been playing with it for ages for my new site, but I just cant get it to work.

and yes you are right, flash 4, who remembers that? ;-/

okay I am a complete knob! :egg:

I posted the wrong fla, so sorry to anyone who downloaded the other fla(especially Zac), I apologise…although this is a lovely little menu that could be great if it could just link the top level nav…

I have now re-posted the correct lovely dynamic menu above…

Woah again! :!:

Don’t know which is worse… Flash 4 syntax or Italian variable names :stuck_out_tongue:

Hehe, I’ll take a look anyway…

haha…I know :slight_smile:

Okay… I think I got something.

First, I made a new array for the links to be displayed in the topnavigation:

links2=new Array();
 links2[0]="http://digilander.iol.it/mywebhost/flash";
 links2[1]="http://digilander.iol.it/mywebhost/flash";
 links2[2]="http://digilander.iol.it/mywebhost/flash";
 links2[3]="http://digilander.iol.it/mywebhost/flash";
 
 //etc

then, in


 for (i=0; i<n.length; i++) {
     nome = "oggetto"+i;
     duplicateMovieClip(_root.clip, nome, i+100);
     traguardo* = i*16+offset;
     inizio* = i*16+offset;
     _root[nome].tasto = i;
     _root[nome]._y = i*16+offset;
     _root[nome].link=false;
 

change

_root[nome].link=false;
 
 //to
 
 _root[nome].link=links2*;

That at least worked for me…

you rule, I will give it a go now…

I love you! you are my favourite person! thanks so much :-))))

Hahaha, no problem at all :thumb:

Glad that I could help!

okay…problem, :frowning:

when you click on the top nav, it is opening the swf, but its opening the swf in a new window…I want it to load into target or levels not in a new window…any suggestions, cant make head nor tail of the script that is making it do that?

to see what I am talking about click on the main sections now at:

http://www.designisfelt.com/test.htm

j.