Internet Commerce

Partners & Affiliates

Developer Channel


Featured Flash FLA
Gallery Downloads 11401 Flash Movies | 5 New Flash Movies Added
What's New | Top 100

Featured FLA

»  Author: Nick Kouvaris
»  Title: Znax
»  Description: Znax is a board game. Click 4 tiles of the same color and form squares as big as you can. You will erase all the tiles inside the square and collect points. Get maximum score if you make a square with game edges.
»  More by: Nick Kouvaris


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 4941 Flash Sites | 1 New Flash Links
What's New | Top 100 Flash Site

Featured Site

»  Author Agence WOP Digital Agency
»  Title: Electricdrum
»  Description: French WOP Agency, 3D websites, Flash (Papervision, Away 3D), event or institutional projects. The agency operates on all digital projects: consulting, design, graphic design, development, online communication. The WOP agency follows you on the implementation of original, creative and optimized digital projects.


Random Links | Add your own Flash Related Links
Flash Tutorials 1481 Tutorials 7 New Tutorials Added!
What's New | Top100

» How To Make A Simple Animation Using Christmas Clips
» Simple Step by step flash game tutorial Spot the diffrence
» How To Make A Moving Text Slide
» Create Flash Banner With Text Float Effect
» How To Make Zoo Photos Slideshow
» How To Make A Dolphin Photos Slideshow
» How To Make A Fathers Day Slideshow
» How To Make A Transparent Background of Your Flash File
» Create Flash Banner With Text Disco Light Effect Today we will introduce you a Text Disco Light eff
» Unknown Tag: Title10
Random Tutorial | Add Site


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Categories Very Highly Dynamic Menu
Author: ::::: Daafy :::::

 
Page 8
«prev 1 2 3 4 5 6 7 8

Right, like most of people, you probably use html frames with "menu" and "main" for example. After the second version of "Dynamic Menu", I've note that lot of people has problems...maybe it wasn't enought clear...More, with time you'll realize that each time you look at your own script, you can make it better. That was the case for this. For example I know that, in general, a menu links a page most of the time in the same frame. There's only for special case, you need different frame target. So we'll create a new constant called "UsualFrameTarget". This for NOT input all frame target to each rubs & subrubs !!! If we don't set any target frame for a button, that is this var that will be used. wahhhhh, what a time won ! So, INPUT FRAME TARGET CONSTANTS ONLY FOR BUTTONS HAVING A DIFFERENT FRAME TARGET THAN "USUAL" ONE.

With your global constants

Set Variable: "UsualFrameTarget" = "main"
Then for buttons needing different frame target :
...
Set Variable: "LabelRub1" = "I"
Set Variable: "URL_Rub1" = "http://www.montfort-sa.fr"
Set Variable: "FrameTarget_Rub1" = "_blank"
...
or for subrubs needing & gnagnagna...
...
Set Variable: "LabelRub1_Subrub1" = "Subrub1"
Set Variable: "URL_Rub1_Subrub1" = "http://www.arnet.fr"
Set Variable: "FrameTarget_Rub1_Subrub1" = "_blank"
...
Now we send to each rub (always in first keyframe) its corresponding frame target IF THERE IS !
...
 Set Variable: n&":URL" = eval ("URL_Rub"&n)
If (eval ("FrameTarget_Rub"&n) eq "")
 Set Variable: n&":FrameTarget" = UsualFrameTarget
 Else
 Set Variable: n&":FrameTarget" = eval ("FrameTarget_Rub"&n)
 End If
End Loop
...
For subrubs : in second keyframe...
...
 Set Variable: TargetRub&"_"&z&":Label" = eval ("LabelRub"&n&"_Subrub"&z)
 Set Variable: TargetRub&"_"&z&":URL" = eval ("URL_Rub"&TargetRub&"_Subrub"&z)
If (eval ("FrameTarget_Rub"&TargetRub&"_Subrub"&z) eq "")
 Set Variable: TargetRub&"_"&z&":FrameTarget" = UsualFrameTarget
 Else
 Set Variable: TargetRub&"_"&z&":FrameTarget" = eval ("FrameTarget_Rub"&TargetRub&"_Subrub"&z)
 End If
End Loop
...
We set "Get URL" actions to our couple of buttons, so let fill the frame target...
On (Release)
 Get URL (URL, window=FrameTarget)
End On

Yeaaaaaah, you've done it ! Congratulations, I hope that, more than the menu concept, you've learned some scripting syntax and method ;-)

Ok, if this tutorial learn to you things really, don't forget to rate this cauz it take only 10 secs. As contrary, you have to know that each guy making tutorials do it for free and they spend lot of time for this ! It's the less of thing you could do...work hard.

:::: Daafy ::::

«prev 1 2 3 4 5 6 7 8

» Level Intermediate

Added: : 2001-01-08
Rating: 8.19 Votes: 1291
Hits: 4888
» Author
Daafy works with Flash since 2 years but began to script (never scripted before) since few months with Flash 4. Like you, he began by downloading sources with some white nights, coffee & other...
» Download
Download the files used in this tutorial.
Download (105 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments