Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

tab menu that opens html / remembers last tab position

This is a discussion on tab menu that opens html / remembers last tab position within the Flash CS3 eng forums, part of the English Forums category; Hi! I have downloaded a script that works with a simple tab menu and is meant to open content within ...


Go Back   Forum Flash CS3 Flash CS4 > English Forums > Flash CS3 eng

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 31-07-08, 05:16
Junior Member
 
Join Date: Jul 2008
Posts: 1
Rep Power: 0
etsutton is on a distinguished road
Question tab menu that opens html / remembers last tab position

Hi!
I have downloaded a script that works with a simple tab menu and is meant to open content within my flash movie- However, what I am looking for is to have each tab open a new html page in the parent window.

I know that I can use getURL to have each tab movie clip open an html page, but each time my tab menu swf reloads within that page, my tab menu is back on the initial tab position.

Do you know how I can have my html page reload with the same tab menu swf, but somehow tell the swf which tab should be selected? In other words, how can I use this menu to open html pages and have the swf always on the correct tab position?

Below is the script I have that operates the tab menu. I know I don't really need any of the "content(s)" lines, but I'm not sure if it will work without them. I am an extreme beginner when it comes to action scripting.

//
// -------- all code and design Copyright (c) www.lukamaras.com -------- //
//
contents.stop();
numberOfTabs = 5;
for (i=1; i<=numberOfTabs; i++) {
line = eval("tab"+i);
line._alpha = 80;
line.onRollOver = function() {
this.glitter.play();
};
line.onRelease = function() {
for (i=1; i<=numberOfTabs; i++) {
otherTabs = eval("this._parent.tab"+i);
otherTabs.bottomLine._visible = true;
otherTabs._alpha = 80;
}
this.bottomLine._visible = false;
this._alpha = 100;
contentFrame = Number(this._name.substr(3, 1));
this._parent.contents.gotoAndStop(contentFrame);
};
}
tab1.bottomLine._visible = false;
tab1._alpha = 100;


Thank you so much for looking at this! I appreciate any help I can get!
-etsutton

Last edited by etsutton; 31-07-08 at 05:19..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 31-07-08, 07:21
Onsitus's Avatar
CSS.FlepStudio.org
 
Join Date: Jul 2007
Location: Nettuno Beach
Posts: 973
Rep Power: 2
Onsitus is on a distinguished road
Re: tab menu that opens html / remembers last tab position

Hi,

Here you can find an example of a menu with selected state, the actionscript would give you the basic idea:
flash+frame..?!

Here you can find an example of a menu with the use of iframe (menu in the top part/html which loads in a bottom iframe)- look at the html part
Horizontal Menu
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Tags
html, menu, tab

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Actionscript 2 url html in flash ROBY94 Flash CS3 generale 7 11-11-08 18:53
XML and HTML Blusquare CSS | HTML 14 02-07-08 18:26
AIR su HTML kikk Actionscript 3.0 base 2 01-04-08 13:11
[help] Mouse position 3di AIUTO utilità free 8 26-11-07 18:37
Html in Flash storrisi Flash CS3 generale 3 21-11-07 15:22


All times are GMT. The time now is 18:10.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406