Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-02-2004, 09:39 PM   #1
SlimChance
Flash Newb
 
Join Date: Jul 2004
Location: Colorado
Posts: 2
Default Accessing button inside Movie Clp

I'm new here, so this might be a simple questions. Did a search but found nothing. Anyway, here it goes..

I have created a sub menu out of a movie clip. Inside the movie clip are buttons for navigation. I want the buttons in the submenu be able to "drive" the Main Timeline. So when a user "clicks" on a button, that shifts the Main Timeline or loads a different file or whatever. But I have no idea how to access the buttons inside the movie clip.

I use the "Insert a Target Path" function in side the "Action" panel, but that doesn't seem to do it. I can't even get a trace function to display the name of the buttons. Any help would be appreciated.

For example,

Code:
trace(this.mcSubMenu.btnSubI&C._name);
returns "o" in the output panel

Thanks for the help,
Slim
SlimChance is offline   Reply With Quote
Old 07-02-2004, 10:13 PM   #2
SlimChance
Flash Newb
 
Join Date: Jul 2004
Location: Colorado
Posts: 2
Default

I've since tried to use the AttachMovie method to insert the movie clip on the fly..

Code:
var nextDepth:Number=this.getNextHighestDepth();
this.attachMovie("mcSubmenu", "linkSubmenu", nextDepth);
var linkSubmenu:MovieClip;
linkSubmenu._x=400;
linkSubmenu._y=10;
The movie clip loads great and works, but I still have no idea on how to create an event handler that triggers on the button inside the movie clip??

Slim
SlimChance is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:42 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.