Solved

Flash Nav and Frames

Posted on 2003-11-18
12
272 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
  • 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
 
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 75 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
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 what frame rate is, how to control it and what effect it has on the video.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now