473,800 Members | 2,332 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Navigate between frames

1 New Member
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 3906
kestrel
1,071 Recognized Expert Top Contributor
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 New Member
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 Contributor
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 New Member
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
2951
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
3235
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"> </FRAMESET>
7
2332
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 frames, where the two lower ones are within a Frameset within the master Frameset: 1111111111111111111
25
43638
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 "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html> <head>
2
7645
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 to true. Is there any way to get url adress using normal buttons, or like in this case, list controls instead using only hyperlink Thank you
7
2994
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
2835
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 automatically to login page once the session times out. I am using .Net Framework 1.1. and IIS 5 Amith
2
17978
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 all this script does is create an xml output file. After the navigate, the function stops and is triggered again when webbrowser_DocumentCompleted fires and then the XML file is read by the
0
1039
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 the one in the above link and is developed using the frames in HTML. for eg. www.google.com when ever a url is entered in the address it opens in the below frame, but when i navigate with in the inner frame (like if i click on Videos) the url of the...
56
3876
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. Now i want to Disable ad Enable the menu items which are placed in the left frame for navigation purpose. Can any of you input me with any idea as how to proceed? If you need any other information then please let me know.
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10035
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9090
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7580
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.