A Flash Developer Resource Site














Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Featured Flash FLA
Gallery Downloads 11255 Flash Movies | 9 New Flash Movies Added
What's New | Top 100

Featured FLA

» Author: Knife Butterfly
» Title: SkullCandle
» Description: Simple Skull with a candle burning on it.
» More by Knife Butterfly


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

Featured Site

» Posted in the Flash Kit Links section
» Title: Cesar Kobashikawa - online portfolio
» Comments: Cesar Kobashikawa's Portfolio


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

» FLV Converter for Mac
» After Effects Quality Effect using AS3
» FLV to 3GP: Convert video files from FLV (Flash Video) to 3GP for Mac
» create Christmas business flash presentation with hyperlinks
» Let Photos Show Your Happy Family this Christmas and Upload YouTube
» PowerPoint show to DVD slide show--- PPS to DVD
» How to burn FLV to DVD for Mac
» How to Create Christmas Flash Greeting Ecard with photos and music
» Getting Started In Flash
» Unknown Tag: Title10
Random Tutorial | Add Site

bbm.netBBM.net is designed to save you time and deliver the highest quality royalty-free music for your multimedia projects. Features include: over 450 Music Loop Packages from some of the best composers in the business, our music search engine to speed your selection process, alternate music versions & bonus sounds to use for rollovers or transitions, free technical support and free consulting.

Click here for details »

Web Page Production
Aquent
US-MD-Owings Mills

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.21 Votes: 1279
Hits: 4878
» 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.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

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

Whitepapers and eBooks

Symantec Whitepaper: Converging System and Data Protection for Complete Disaster Recovery
Intel Whitepaper: Comparing Two- and Four-Socket Platforms for Server Virtualization
IBM Solutions Brief: Go Green With IBM System xTM And Intel
HP eBook: Simplifying SQL Server Management
IBM Contest: Are You the Next Superstar? Join the "Search for the XML Superstar" Contest to Find Out
Intel PDF: Quad-Core Impacts More Than the Data Center
Intel PDF: Virtualization Delivers Data Center Efficiency
Go Parallel Article: PDC 2008 in Review
Avaya Article: Communication-Enabled Mashups: Empowering Both Business Owners and IT
Intel Whitepaper: Building a Real-World Model to Assess Virtualization Platforms
PDF: Intel Centrino Duo Processor Technology with Intel Core2 Duo Processor
Microsoft Article: Build and Run Virtual Machines with Hyper-V Server 2008
  Go Parallel Article: Q&A with a TBB Junkie
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
IBM eBook: The Pros and Cons of Outsourcing
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Symantec Whitepaper: Comprehensive Backup and Recovery of VMware Virtual Infrastructure
MORE WHITEPAPERS, EBOOKS, AND ARTICLES