[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 282
  • Last Modified:

Flash Nav and Frames

My flash navagation is in a frame and i need it to target another Frame.

I have multiple frames

ok this is what is looks like:


____1________________2_________________________3____
|              ||______________4__________________||            |                      
|              ||                 |                                       ||             |
|              ||                 |                                       ||             |
|              ||                 |              6                       ||             |
|              ||                 |______________________||             |
|              ||      5         |                                       ||             |
|              ||                 |                                       ||             |
|              ||                 |                                       ||             |
|              ||                 |                                       ||             |
|              ||                 |                7                     ||             |
|              ||                 |                                       ||             |
|              ||                 |                                       ||             |              |________||__________|______________________||             |
|____________________________________________________|


Now The home page has 3 farmes.  1 - 2 - 3

Frame 2 has the flash nav in it and Frame 4

Frame 4 has frames 5 - 6 - 7 in it.

The frame that I need to change is frame 7    



0
JsonTerre1
Asked:
JsonTerre1
  • 7
  • 4
1 Solution
 
ardivusCommented:
Are you just trying to change the content in frame 7 from one file to another, like going from main.html to somethingelse.html?

If so, you can target that frame in your getURL call, like this:

getURL("somethingelse.html", "frame7name");

where "frame7name" is the name you have set for that frame.



If you are trying to control a flash movie in frame 7 with the flash nav in frame 2, you will have to use a LocalConnection, or something, depending on what exactly you are trying to do.


If I'm not even close with these answers, please post more information, like what you are changing in frame 7, or what you want it to do.
0
 
JsonTerre1Author Commented:
This is a web page with HTML Frames. So you are right there.

One of the HTML frames is 7 which is inside Frame 4 Which is inside Frame 2.

I tried

on (release) {
 getURL("somethingelse.html", "frame7name");
}


 but that did not work.  Now i know that the name of the page and the frame name is right so i'm unclear as to why Frame 7 doesn;t change to the correct web page.

Any other suggestions?



-Jason
0
 
JsonTerre1Author Commented:
This is what I have discovered thus far.

My button is in a Movie clip that i bring on the stage.  So all the action script is in the movie clip as well as the button.  When the button is put directly on the stage it works.

Anyone know how I can make this work without having to place the button directly on the stage but instead put it in a movie clip and then bring the movie clip on the stage?


-Jason
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
blue-genieCommented:
Hi, what exactly do you mean by bring the movieclip on the stage?
0
 
JsonTerre1Author Commented:
sorry for the confusion.

I created an fla file.  I created a Movie Symbol and placed a button in it and then i placed that Movie clip symbol on Scene 1.  when i try to use geturl() on my button (which is on the movie clip symbol) it doesn't work.  but if i place the button on Scene 1 directly and then try the button it works.

Hope this is clearer.
0
 
blue-genieCommented:
that's wierd, cause I've re-created the frameset you've described, and created a swf containing a button inside a movieclip with the following code on the button and it works fine:

on (press) {
      getURL("test.htm", "frame7");
}

the only thing i can suggest is check your frame name properly.

0
 
blue-genieCommented:
one more thing before i call it a day, what does it do when you click on the button, do you get any error messages?

0
 
JsonTerre1Author Commented:
I don't get an error or anything. The frame name is correct to.  very odd.

0
 
JsonTerre1Author Commented:
Maybe i'm not explaining my frameset correctly.

The home page hase 3 frames.  1 , 2 , 3

Then Frame 2 has an html page that has a  frameset.  that frameset has frames in it as well.  one of the frames there has an html page in it which also has another frameset.  that freamset has in it other frames including frame 7.

Not sure if that matters that the Frame is embedded into so may other multiple framesets.  I don't think it should though.  Like i said above when I put the button right on scene 1 it works. But when I put it in a movie clip and then place the movie clip on scene 1 it doesn't.  I use the same action script for both buttons.

Very confused about this one.

-Jason
0
 
JsonTerre1Author Commented:
I figured out the problem.

Here is a different one though.

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

I have 2 swf files I am writing script on a button in one swf file.

the name of the other swf file is: Titles.swf

the path of Titles.swf is in the same directory.

the HTML frame name is: Content_TitleFrame

the swf movie timeline frame name label is:   Welcome

when i put this it doesn't work:

on (release){
_Titles.swf.gotoAndPlay("Welcome");
}

any suggestions?

0
 
blue-genieCommented:
Jason,

can i suggest something, close this thread (delete it) and ask your new question separately, the powers that be dont' like 2 questions being asked in one thread.

Ps. what was the problem with  your frames?
0
 
JsonTerre1Author Commented:
blue-genie,  How do i delete this question.  I don't know how.

The problem to this original question was in fact that there was nothing wrong with it.  

When I tested it localy:  localhost/Mywebsite/
it didn;t work.  But when I exported it to a live server it works.  Still does it now.. I don't understand it at all but am just glad it works on the live server.

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 7
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now