Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Flash Nav and Frames

Posted on 2003-11-18
12
Medium Priority
?
280 Views
Last Modified: 2010-04-03
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
Comment
Question by:JsonTerre1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 4
12 Comments
 

Expert Comment

by:ardivus
ID: 9772662
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
 
LVL 1

Author Comment

by:JsonTerre1
ID: 9773158
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
 
LVL 1

Author Comment

by:JsonTerre1
ID: 9775889
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
Technology Partners: 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!

 
LVL 39

Expert Comment

by:blue-genie
ID: 9776920
Hi, what exactly do you mean by bring the movieclip on the stage?
0
 
LVL 1

Author Comment

by:JsonTerre1
ID: 9779716
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
 
LVL 39

Accepted Solution

by:
blue-genie earned 225 total points
ID: 9779857
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
 
LVL 39

Expert Comment

by:blue-genie
ID: 9779905
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
 
LVL 1

Author Comment

by:JsonTerre1
ID: 9780019
I don't get an error or anything. The frame name is correct to.  very odd.

0
 
LVL 1

Author Comment

by:JsonTerre1
ID: 9787236
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
 
LVL 1

Author Comment

by:JsonTerre1
ID: 9820885
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
 
LVL 39

Expert Comment

by:blue-genie
ID: 9830268
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
 
LVL 1

Author Comment

by:JsonTerre1
ID: 9833878
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

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question