A Flash Developer Resource Site














Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Featured Flash FLA
Gallery Downloads 11337 Flash Movies | 1 New Flash Movies Added
What's New | Top 100

Featured FLA

» Author: Bugra Ozden
» Title: Skatalog v9 - product catalog
» Description: Create your product catalog easly and publish on your website or Create your image gallery, documents list, portfolio. Fully XML Driven
» More by Bugra Ozden


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

Featured Site

» Posted in the Flash Kit Links section
» Title: Creative DW Image Show PRO
» Description: Creative DW Image Show PRO is a Dreamweaver extension which enables the user to create multimedia presentations. It combines the features of the popular Creative DW Image Show with the ability to add professional text effects to slides (similar to After Effects). The product is very customizable: the user can choose the duration of the transition effects, the slide motion start and end position, zoom and panning type for both images and texts.


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

» Make a Flash Slide Show Screen Saver
» Simple flash making tutorial for thanksgiving
» Create flash banner for website
» Create xml slideshow with free template
» How to Insert a Multilingual Subtitle Into Your Flash Video Studio
» How to Create Cool Halloween Slideshow
» Debugging flash using the Firebug console
» Create Flash Slideshow on Blogger
» FLASH TRICKS IN WEB ADVERTISING: FLASH BANNERS
» Unknown Tag: Title10
Random Tutorial | Add Site

Webmaster (IL)
Next Step Systems
US-IL-Chicago

Justtechjobs.com Post A Job | Post A Resume


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.20 Votes: 1284
Hits: 4880
» 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
 
   
 

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs