Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

MaskMenu

This is a discussion on MaskMenu within the FlepStudio utilities forums, part of the Tutorials category; Hi ok Open Main.as - import: Code: import flash.net.*; - add a new array: Code: private var links_array:Array; - populate ...


Go Back   Forum Flash CS3 Flash CS4 > English Forums > Tutorials > FlepStudio utilities

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 30-01-08, 07:52
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,489
Rep Power: 6
Flep is on a distinguished road
Re: MaskMenu

Hi

ok

Open Main.as

- import:
Code:
import flash.net.*;
- add a new array:
Code:
private var links_array:Array;
- populate the array with your links:
Code:
links_array=new Array('http://www.flepstudio.org/','http://www.flepstudio.org/','http://www.flepstudio.org/','http://www.flepstudio.org/','http://www.flepstudio.org/','http://www.flepstudio.org/');
- doSomething function becomes as following:
Code:
private function doSomething(evt:MouseEvent):void
{
	var request:URLRequest=new URLRequest(links_array[id]);
	navigateToURL(request,'_self');
}
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #12 (permalink)  
Old 11-06-08, 21:10
Junior Member
 
Join Date: Jun 2008
Posts: 1
Rep Power: 0
khalid82 is on a distinguished road
Re: MaskMenu

Flep I am trying to open the file with winrar but it gives me error, do i have to have winzip for it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #13 (permalink)  
Old 11-06-08, 22:31
Onsitus's Avatar
CSS.FlepStudio.org
 
Join Date: Jul 2007
Location: Nettuno Beach
Posts: 1,012
Rep Power: 3
Onsitus is on a distinguished road
Re: MaskMenu

Quote:
Originally Posted by khalid82 View Post
Flep I am trying to open the file with winrar but it gives me error, do i have to have winzip for it.
I tried it right now with Winrar and it's working fine for me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #14 (permalink)  
Old 12-06-08, 10:30
Junior Member
 
Join Date: Oct 2007
Posts: 3
Rep Power: 0
mizushobai is on a distinguished road
Re: MaskMenu

amazing! thanks a million!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #15 (permalink)  
Old 25-06-08, 04:26
Junior Member
 
Join Date: Apr 2008
Posts: 18
Rep Power: 0
flowmatic007 is on a distinguished road
Re: MaskMenu

Hi Flep,
I tried to follow the codes above for the mask menu but I don't know what to put where...I am very new to flash. Help! I wasn't sure where to put import, add new array, etc... I am not sure if it can get any simpler but if you can please.

cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Flash Multi Gallery
  #16 (permalink)  
Old 25-06-08, 16:45
Junior Member
 
Join Date: Apr 2008
Posts: 18
Rep Power: 0
flowmatic007 is on a distinguished road
Re: MaskMenu

Whew! After playing with it some more I figured out how to add links to the pictures...but one more questions? In order to add more links what should I do? I can't wait until my essential actionscript 3.0 gets here per your recommendation.

Thanks for all the help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #17 (permalink)  
Old 28-08-08, 20:39
Junior Member
 
Join Date: Aug 2008
Posts: 1
Rep Power: 0
macdaffy is on a distinguished road
Re: MaskMenu

I got a question. I want to use this menu in my website but how can I link every button to a different part in a whole flash website. Can anyone tell me what the code is to load the different parts of the site??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #18 (permalink)  
Old 29-08-08, 06:57
Junior Member
 
Join Date: Apr 2008
Posts: 18
Rep Power: 0
flowmatic007 is on a distinguished road
Re: MaskMenu

Yes, this was a challenge for me too but I found out how. Open Main.as then on line 32: add the appropiate link to the website url(address) where you would like the user to go to. The corresponding menu items are on the above line (line 31) above it:

For example:
31:menu_array=new Array(menu_mc.item1_mc,menu_mc.item2_mc, and so on.
32:links_array=new Array('http://yourwebsiteurl.com', 'http://yourweburl.com, . . . and so on

mc_menu.item1=home (or whatever you have it labeled)
mc_menu.item2=services(or whatever you have it labeled) These correspond to the libray items in the fla file.

Hope this helps.

Last edited by flowmatic007; 29-08-08 at 07:00..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #19 (permalink)  
Old 08-10-08, 19:10
Junior Member
 
Join Date: Oct 2008
Posts: 3
Rep Power: 0
jorgepineda is on a distinguished road
Re: MaskMenu

Is a great component thanks!! But how do I add the link to the menu?

I did open the file but I dont idea to how to make the whole customize

Please help me my friend!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #20 (permalink)  
Old 08-10-08, 19:15
Junior Member
 
Join Date: Oct 2008
Posts: 3
Rep Power: 0
jorgepineda is on a distinguished road
Re: MaskMenu

Wow this is a very complicated menu, I dont quite understand how it´s work.

May you explain to me flep, how do you make the connection with the main.as file and the fla file, I dont see any action script or a something like that.

Thanks!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

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
MaskMenu Flep Utilità di FlepStudio 46 12-11-08 11:06


All times are GMT. The time now is 20:31.


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