Creative FL Menus Pack Forum


box Creative FL Menus Pack
Creative FL Menus Pack is a package that contains the following products bundled at a special price: Creative FL Dropdown Menu, Creative FL Vertical Menu, Creative FL Tabbed Menu.

Find out more about Creative FL Menus Pack

Thread: Adding external movies to button selection

title left
User Details
message
title right
rgernale

post date:
2008-07-11 10:57:27
Is there a way to add an external movie to the Dropdown Menu extention? For instance - as I pass over a button I would like to add another effect on the main page.
Lavinia Iancu [Extend Studio]

post date:
2008-07-14 10:39:37
Hello,

Please give us your email address so we can send you a button actions tutorial which I think you may find useful.

Kind regards,
Lavinia Iancu
rgernale

post date:
2008-07-14 12:15:21
Good morning Lavinia,

My email address is rgernale@bellsouth.net.
Lavinia Iancu [Extend Studio]

post date:
2008-07-15 08:54:56
Hi,

I have sent you the tutorial by email.

Kind regards,
Lavinia Iancu
rgernale

post date:
2008-07-15 10:53:29
Thanks, I'll play with it and see if I can get it to work.
rgernale

post date:
2008-07-16 13:50:55
The instructions are still vague on how to actually make it work with the onRollOver and onRollOut events.

This is what I have and it doesn't work.

function myFunction1() {
//trace("this is FUNCTION1 called by my button")
//here you can add anything: gotoAndPlay, getURL, calling other functions, loading ...anything

myFunction1.onRollOver = function (){

this.attachMovie(affhexes,affhex,80);
}
myFunction1.onRollOut = function (){
this.attachMovie(afffades,affhexfade,80);
}

All I want to do is apply an external movie on the Rollover and Rollout to each of the root buttons.
}
Lavinia Iancu [Extend Studio]

post date:
2008-07-17 11:22:57
Hi,

I am sorry that you find the tutorial vague. Here is another example that should be more comprehensive. In the next script example we will use the following menu structure :

Button1,id=bt1
>Sub1
>Sub2
>Sub3
Button2,id=bt2
>Sub1
>Sub2
Button3,id=bt3


First you have to create an eventListener.

The events triggered by our menu component are:

changed triggered when the selected button changes (when a button is clicked or selected by ActionScript)

subMenuOpen triggered when a submenu opens

subMenuClose - triggered when a submenu closes

buttonRollOver triggered when any button is rolled over

buttonRollOut - triggered when any button is rolled out

We will use the buttonRollOver event to show how to attach movie clips to the stage as you rollover the buttons.



The code looks something like this

var menu_listener = new Object();
menu_listener.buttonRollOver = function() {

We use a switch with "my_menu.rolloverButtonID" to see which one of the buttons was rolled over
and after that for every button we attach the movie we want (it's very important that we attach the movieClip
to the _root and not "this".)

switch (my_menu.rolloverButtonID) {

case "bt1":
_root.attachMovie("movie1","movie",10);
movie._x = 300;
movie._y = 200;
break;

case "bt2" :
_root.attachMovie("movie2","movie",10);
movie._x = 300;
movie._y = 200;
break;

case "bt3":
_root.attachMovie("movie3","movie",10);
movie._x = 300;
movie._y = 200;
break;
}
}

my_menu.addListener(menu_listener);

You can use buttonRollOut the same as buttonRollOver. ( rolloutButtonID is the equivalent for rolloverButtonID )

Kind regards,
Lavinia Iancu
rgernale

post date:
2008-07-21 16:30:58
That's seems to do the trick, but now I have another issue with it. How do I make submenu on top of the rollOver movie. It's pushing the movie on top of any submenu - virtually hiding it.
Catalin Serban [Extend Studio]

post date:
2008-07-24 08:23:02
Hi,
Can you please send us the FLA to see exactly what is happening!
Regards,
Catalin Serban
rgernale

post date:
2008-07-24 09:45:33
Please provide me with an email addres to send to.
Lavinia Iancu [Extend Studio]

post date:
2008-07-24 10:02:46
The address is support@extendstudio.com

rgernale

post date:
2008-07-25 14:05:02
Thanks! That worked wonderfully...I appreciate all your help.