all groups > macromedia flash sitedesign > march 2006 >
You're in the

macromedia flash sitedesign

group:

Triying to make a menu.



Re: Triying to make a menu. Chris (mudbubble)
3/20/2006 2:43:44 PM
macromedia flash sitedesign: i think you will have better response if you post this in the actionScript forum - this forum is
mainly about site design questions.

******************************************
--> Adobe Certified Expert (ACE)
--> www.mudbubble.com :: www.keyframer.com
--> http://flashmx2004.com/forums/index.php?
--> http://www.macromedia.com/devnet/flash/articles/animation_guide.html
--> http://groups.google.com/advanced_group_search?q=group:*flash*&hl=en&lr=&ie=UTF-8&oe=UTF-8




[quoted text, click to view]
Triying to make a menu. JimmySlam
3/20/2006 6:31:10 PM
Im triginh to create a button inside a movieclip.

That button must be a text with a specific text.

And then, because there are a few buttons i want every button moved a few
pixels on X. I want them on the lowest depth posible because i have a MC
that moves hidding them.

OK, my code is this and this think is not working very well.
The text Is selectable , i want to be clikeable!
I want it behind that MC that hiddes them. I mean on the lowest depth.

///////////////////////////////


function drawmenu(PSlide, PSub,Avance) // Avance everytime is one more (like
Avance ++;)

_root.spacing=60;
slides_menu_mc = slides_menu_mc.createEmptyMovieClip ('slide_boton'+PSlide,
PSlide);

espacio = Avance* _root.spacing;

['slide_boton'+PSlide]_alpha = 90;
['slide_boton'+PSlide]_y = 1;


var format1_fmt:TextFormat = new TextFormat();
format1_fmt.font = "Frutiger 55 Roman";
format1_fmt.size = 18;
format1_fmt.color = 0xFF0000;
format1_fmt.align = "center";


['slide_boton'+PSlide]createTextField("texto",9999,espacio, 730, 30, 30);
//i want the lowest Depth

with (texto){
multiline = false;
wordWrap = true;
text = Avance;
type = "Static"
border = false
background = true
password = false
multiline = false
html = false
embedFonts = false
variable = null};
var firstIndex:Number = texto.length;

texto.setTextFormat(0,format1_fmt);


slides_menu_mc.onRollOver = function ()
{
this._alpha = 100;
};
slides_menu_mc.onRollOut = function ()
{
this._alpha = 70;
};
slides_menu_mc.onRelease = function ()
{
trace("goes");
};

/////////////////////////////// END



Anyone can help?
Thanks!



AddThis Social Bookmark Button