A Flash Developer Resource Site














Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Featured Flash FLA
Gallery Downloads 11336 Flash Movies | 2 New Flash Movies Added
What's New | Top 100

Featured FLA

» Author: Surjit Dhami
» Title: Book
» Description: Book
» More by Surjit Dhami


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

Featured Site

» Posted in the Flash Kit Links section
» Title: All-American Rejects
» Description: Get to know this great band by exploring their "practice room".


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

» 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
» HTML Photo Gallery Tutorial
» Create your first flash site – PART 1
» How to Make a Flash Photo Gallery
» Unknown Tag: Title10
Random Tutorial | Add Site

Trading Customer Accounting (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 7
«prev 1 2 3 4 5 6 7 8 next»

Well well well...it's pretty nice to have a great menu system like this but...what about button function ??? Ok, let's see how to set an URL for each rub and/or subrubs...
Like others constants, we'll input each URL wanted for each rub and/or sub rub. If you don't input any constant for a rub or subrub ??? We'll see this part too.
Ok, like you've understood, open your constant keyframe (do I need to write witch one...? the first one...) and constants like that (in corresponding part for better edition) :

Set Variable: "URL_Rub1" = "http://www.montfort-sa.fr"
This is syntax for rubs, do this for all rub you want URL
Probably no URL if there are subrubs for this :-)
Set Variable: "URL_Rub2" = "http://www.adresse2.com"
Set Variable: "URL_Rub3" = "http://www.adresse3.com"
etc.
now the syntax for URL for subrubs :
Set Variable: "URL_Rub1_Subrub1" = "http://www.montfort-sa.fr"
Set Variable: "URL_Rub1_Subrub2" = "http://www.montfort-sa.fr"
etc...

Right now, always in the first keyframe you've note that we dupplicated our rubs (subrubs are dupplicated or remove in second one). So under the line that send the right label to each rubs, we'll insert the URL line :

...
 Set Property (n, Y Position) = YPosition
 Set Variable: n&":Label" = eval ("LabelRub"&n)
	Set Variable: n&":URL" = eval ("URL_Rub"&n)
End Loop
...

For the subrubs now, so in second keyframe :

...
 Set Property (TargetRub&"_"&z, Y Position) = YPosition
 Set Variable: TargetRub&"_"&z&":Label" = eval ("LabelRub"&n&"_Subrub"&z)
Set Variable: TargetRub&"_"&z&":URL" = eval ("URL_Rub"&TargetRub&"_Subrub"&z)
End Loop
...
Our buttons (rubs & subrubs) need to have any "get URL" action to apply our vars...Set this action to your rub button and your sub rub button :
On (Release)
 Get URL (URL)
End On
Great, test it if you wish...remember : "Get URL" doesn't work in test mode so test it to update your swf file, then open it throught your window explorer. And normally, you'll be able to open explorator windows with corresponding URL... You can also note that if you didn't set any URL constants for some rubs, nothing appears...I mean it doesn't open window with "error 404" so all is ok :-)

«prev 1 2 3 4 5 6 7 8 next»

» 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, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs