Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
buttons inside movie clip?

buttons inside movie clip?

2004-04-09       - By Nick Ten Eyck

 Back
Reply:     1     2  

I have a series of buttons in a row that i have made
into a movie clip, which is now part of a sliding
menu.  The only problem is that the buttons don't do
the commands i tell them, when inside the movie clip.
Same buttons work fine, when they are not on the movie
clip (menu).

//movie clip script

xm = 0;
//function to set the xpos of the movieclip
function xpos(bar_length,mul)
{
hpos = 0;
scroll_length = 620;
incr = bar_length/scroll_length;
xm = _xmouse;
if(_xmouse <= 10){xm = 10;}
if(_xmouse >= 600){xm = 600;}
scroll_x = hpos  - xm;
scroll_x = scroll_x * mul;
x_pos = scroll_x * incr;
x_pos = x_pos + hpos;
return x_pos;
}

_root.onEnterFrame = function ()
{
 
// call function xpos
x_pos = xpos(700,.20);
with (bar)
{_x += (x_pos - _x)*.4;}

// call function xpos
x_pos = xpos(900,.75);
with (menu)
{_x += (x_pos - _x)*.4; }
}

i made the (menu) movie clip with buttons, each with a
simple on realease gotoAndPlay commmand.  do i need to
put transparent buttons on top of the movie script
now?
thanks
nick

=====
My Music List (CD-R)
www.phishhook.com/lists/beasleyq

__ ____ ____ ____ ____ ____ ______
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Server geeks, take heart! If you're sick of wading through
animation & graphics instruction for relevant info., then
Nate Weiss' Macromedia Flash MX Professional 2004 for Server
Geeks is for you. Leave designing to designers and dig into
core concepts to create rich user interfaces, online
advertising, and more.  See www.peachpit.com for more info.
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/FLASHmacromedia/

<*> To unsubscribe from this group, send an email to:
    FLASHmacromedia-unsubscribe@(protected)

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/