473,386 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Navigate between frames

Hello, I am doing a project for my web design class and we have to make a website in flash. I am having a lot of trouble with actionscript though. How do I make it so that when someone clicks a button, it goes to another frame? I have been trying, but don't understand it. I have tried to ask my teacher, but he keeps saying look it up but I found information but still don't understand it. Where do I put the script? Any help would be greatly appreciated.
Apr 17 '07 #1
4 3897
kestrel
1,071 Expert 1GB
heres the actionscript code for a link that targets another frame

Expand|Select|Wrap|Line Numbers
  1. on (release) {
  2. getURL("http://www.scottmanning.com/", "_blank");
  3. }
  4.  
just replace _back with your target frame's name, and the link will open there
Apr 18 '07 #2
sandyw
122 100+
Hello, I am doing a project for my web design class and we have to make a website in flash. I am having a lot of trouble with actionscript though. How do I make it so that when someone clicks a button, it goes to another frame? I have been trying, but don't understand it. I have tried to ask my teacher, but he keeps saying look it up but I found information but still don't understand it. Where do I put the script? Any help would be greatly appreciated.
You place the script on a layer where your button are at.
So if you have a button called Home you would click on that button and then open your action window (F9) and write your scipt. some like
Expand|Select|Wrap|Line Numbers
  1. on (release){
  2.     this.gotoAndStop("shifting");  
  3. }
Note shifting is a marker which is another layer called labels which is normal on the top of your layers. To maker a maker you will need to make a blank keyframe and then in Property under Frame type in your webpage name (shifting) below it you will see Label Type:
select Name.

Sandyw
Apr 18 '07 #3
AccessIdiot
493 256MB
Not quite right sandyw.

You can give any frame a frame label. Simply select the frame you want to go to ON ANY LAYER. In the Properties panel you'll see a textbox for "Frame Label". Type in the label you want (in sandyw's example "shifting" but no quotes). Then use the code sandyw suggested to go to that frame.
Apr 20 '07 #4
sandyw
122 100+
Not quite right sandyw.

You can give any frame a frame label. Simply select the frame you want to go to ON ANY LAYER. In the Properties panel you'll see a textbox for "Frame Label". Type in the label you want (in sandyw's example "shifting" but no quotes). Then use the code sandyw suggested to go to that frame.
Thanks was not quite sure how to word it.
I did it that way so it would be easier to read.

sandyw
Apr 20 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

40
by: JohnnyCJohnny | last post by:
Is it pretty safe to say that almost all web surfers now use browsers that are Frames compatible? What are most people using these days? IE? Thanks
1
by: Justin | last post by:
Hi, I have a simple frameset defined: ---------------- index.html ---------------- <FRAMESET COLS = "225,*"> <FRAME NAME = "a" SRC = "one.html"> <FRAME NAME = "b" SRC = "one.html">...
7
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three...
25
by: Steal | last post by:
Hi at all I try to validate this page using the link: http://validator.w3.org/ but it return that this is not a valid HTML 4.01 page please where is it error? Steil <!DOCTYPE HTML PUBLIC...
2
by: djozy | last post by:
Please I have dropdownlist on my web form. I would like to get web page from url adress automaticly, when I select one of the items in dropdownlist. I have put autopostback property of dropdownlist...
7
by: dj Bass | last post by:
simple, they don't like things that restrict the server-side controls... and when it comes to frames, you need client side stuff and that stuff's up the asp.net strategy. right or wrong?
8
by: Amith Singh | last post by:
When the sessions times out I would like to take the user to the login page. Currently even though session times out user will come to know only when he clicks on the screen. How to direct the user...
2
by: Ryan Ramsey | last post by:
I have been chasing this one down for a week and have narrowed it down to a machine issue. I have the following code: webBrowser.Navigate(http://finao.net/post_dkp.php?database=40); Basically...
0
by: senthilnathan1985 | last post by:
Hi, i'm trying to develop a internet browser some thing like the one in http://www.codelifter.com/main/javascript/accentbrowser1.html. i have developed an internet browser something similar to...
56
by: Deepan HTML | last post by:
Hi All, Currently i am working in a framed environment where i have divided the window as 20% and 80% and the 20% is used for navigation purpose and right frame for displaying the orignal content....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.