Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Creating a menu and manage the different sections with Flash CS3

This is a discussion on Creating a menu and manage the different sections with Flash CS3 within the Tutorials forums, part of the Flash English category; ok.. thanks for your help...


Go Back   Forum Flash CS3 Flash CS4 > Flash CS3 Flash CS4 > Flash English > Tutorials

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #21 (permalink)  
Old 08-12-07, 10:33
Junior Member
 
Join Date: Dec 2007
Posts: 16
Rep Power: 0
wen_jie is on a distinguished road
Re: Creating a menu and manage the different sections with Flash CS3

ok..
thanks for your help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #22 (permalink)  
Old 11-03-08, 10:01
Fajar's Avatar
Junior Member
 
Join Date: Feb 2008
Location: Jakarta
Posts: 10
Rep Power: 0
Fajar is on a distinguished road
Send a message via Yahoo to Fajar
Re: Creating a menu and manage the different sections with Flash CS3

Hi Flep.. i like that typical interactive button you made in this Tutorial, actually i really like when i click the button and the Button i click is telling that you are in this section(cos' the color is changing from other button). how can i made a button interactive like that, if i have my own class button. can you give the solution ? down here is my Button Class...
Thanks Dude..


package {
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.text.TextField;

public class CustomButton extends MovieClip {
public function CustomButton() {

this.addEventListener(MouseEvent.ROLL_OVER, rollover);
this.addEventListener(MouseEvent.ROLL_OUT, rollout);
this.addEventListener(MouseEvent.MOUSE_DOWN, setDown);
}
public function setLabel(labelString:String):void {
this.tLabel.text = labelString;
}
private function rollover(e:MouseEvent):void {
this.gotoAndPlay("rollover");
}
private function rollout(e:MouseEvent):void {
this.gotoAndPlay("rollout");
}
private function setDown(e:MouseEvent):void{
this.gotoAndPlay("setdown");
}
}
}
__________________
Fajar Sylvana | BLAST from the FLASH
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 13-03-08, 04:25
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,535
Rep Power: 6
Flep is on a distinguished road
Re: Creating a menu and manage the different sections with Flash CS3

Hi

That code seems to be correct ...
Does it not work ?
__________________

 


I recommend: Essential Actionscript 3.0

- I do not reply technicians pvt messages. Open a thread !
- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 13-03-08, 06:08
Fajar's Avatar
Junior Member
 
Join Date: Feb 2008
Location: Jakarta
Posts: 10
Rep Power: 0
Fajar is on a distinguished road
Send a message via Yahoo to Fajar
Re: Creating a menu and manage the different sections with Flash CS3

correct.. the code is work, but i dont know how to making the condition button like your.. what i like to know is, how to making a condition Button frame 3 on your Tutorial. you know, when you click, the button you was click is chage the color and the other button is still default color.you using isPressed and when i used the code like yours its not function on my script.. can you show me the path Flep
__________________
Fajar Sylvana | BLAST from the FLASH
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 03-04-08, 23:15
donteatyourfriends's Avatar
Junior Member
 
Join Date: Mar 2008
Location: Los Angeles
Posts: 6
Rep Power: 0
donteatyourfriends is on a distinguished road
Re: Creating a menu and manage the different sections with Flash CS3

Hey, how do I make it so those menu buttons also trigger an animation sequence?
__________________
"Don't Eat Your Friends!"

Dust Bunny Creative
Rob Tortora
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 11-05-08, 10:30
Junior Member
 
Join Date: May 2008
Posts: 25
Rep Power: 0
madmad is on a distinguished road
Re: Creating a menu and manage the different sections with Flash CS3

Hy there, nice tutorial!

i tried to implement your code within another navigation (so would like to use your navigation as a submenu). I wrote the following:

Code:
/*
-------------MAIN Navi ------------------*/

var rewind:Boolean;

menu_mc.hitArea = menu_mc.hit;
menu_mc.buttonMode = true;


menu_mc.addEventListener(Event.ENTER_FRAME, ef);
menu_mc.addEventListener(MouseEvent.ROLL_OVER, roll_over);
menu_mc.addEventListener(MouseEvent.ROLL_OUT, roll_out);

function ef(event:Event):void {
    if(rewind) menu_mc.prevFrame();
}

function roll_over(event:MouseEvent):void {
    rewind = false;
    menu_mc.play();
}

function roll_out(event:MouseEvent):void {
    rewind = true;
}
As i want to use your code i have to assign the Class.as file to my movieclip as a basic class, but i get the following error code:

Error #1046: Type was not found or was not a compile-time constant: Event.
(for line:function ef(event:Event):void)

Do you know where the error comes from? I don´t get it...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27 (permalink)  
Old 11-05-08, 10:38
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,535
Rep Power: 6
Flep is on a distinguished road
Re: Creating a menu and manage the different sections with Flash CS3

Hi madman,

you forgot to import

import flash.events.Event;

into your Class.as
__________________

 


I recommend: Essential Actionscript 3.0

- I do not reply technicians pvt messages. Open a thread !
- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28 (permalink)  
Old 11-05-08, 10:40
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,535
Rep Power: 6
Flep is on a distinguished road
Re: Creating a menu and manage the different sections with Flash CS3

Sample

Code:
package
{
    import flash.events.Event;
    public class MadMan extends MovieClip
    {
        public function MadMan()
        {

        }
    {
}
__________________

 


I recommend: Essential Actionscript 3.0

- I do not reply technicians pvt messages. Open a thread !
- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #29 (permalink)  
Old 11-05-08, 10:59
Junior Member
 
Join Date: May 2008
Posts: 25
Rep Power: 0
madmad is on a distinguished road
Re: Creating a menu and manage the different sections with Flash CS3

Ah, ok, i will try that.

Another thing:

how can i prevent in your code, the first section showing up as the file is loaded?
i want section1 showing up after pressing menu1_mc, instead of automaticly showing up?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #30 (permalink)  
Old 11-05-08, 12:54
Junior Member
 
Join Date: May 2008
Posts: 25
Rep Power: 0
madmad is on a distinguished road
Re: Creating a menu and manage the different sections with Flash CS3

Ok, i got it.

All i did was creating an empty menu1_mc and section1_mc, so that my visible
menu1_mc is 2nd in the array!

works!
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
Creating a Flex component using Flash CS3 Flep Flex builder 3 ENG 3 15-12-08 18:14
Creating HTML output with Flash CS3 Flep Tutorials 1 31-07-08 09:32
Photoshop CS3 Creating a navigation menu Flep PhotoShop ENG 1 23-06-08 09:12
Menu Calls sections, runs if/then script triggering an animation???? donteatyourfriends advanced Actionscript 3.0 0 04-04-08 01:22
creating a menu hendrix01 Flash English 0 21-02-08 05:29


All times are GMT. The time now is 13:16.

Powered by vBulletin version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap