Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-23-2012, 03:57 PM   #1
ksdesign2
Registered User
 
Join Date: Aug 2012
Posts: 2
Default Control movieclip content from another one

Hi everybody,

I am actually working on a CD interface in flash, in which I am trying to choose the best navigation method and working on it.

The menu movieclip containing the buttons is put on the stage, its instance is called "menu_btns".

1. The first method is to put my content movieclips directly on the stage and hide them using _visible property, then show the appropriate mc when a button is released.

I've written this in a frame on the stage:

stop();
_root.contentmc1._visible=false;
_root.contentmc2._visible=false;

and this on a frame inside the menu mc "menu_btns":

stop();
menu_btn_2.onRelease = function(){
_root.gotoAndPlay("content");
gotoAndStop(2);
_root.contentmc1._visible=true;
};

---
2. The second method is to put my content mclips inside another mc called "itemscontent" on different keyframes and to show each keyframe when clicked on a menu button.

I've written this in a frame on the stage, and on each frame of the mc "itemscontent":

stop();

and this on a frame inside the menu mc "menu_btns":

menu_btn_2.onRelease = function(){
_root.gotoAndPlay("content");
_root.itemscontent.gotoAndStop(2);
gotoAndStop(2);
};

-----------------------------

Both methods didn't work, I wonder if I did a mistake somewhere.

Thanks for help.
ksdesign2 is offline   Reply With Quote
Old 08-23-2012, 04:36 PM   #2
poltuda
Senior Member
 
Join Date: May 2010
Posts: 252
Default

Welcome

A handhold example will more helpful to give answer.


poltuda
poltuda is offline   Reply With Quote
Old 08-26-2012, 02:17 PM   #3
ksdesign2
Registered User
 
Join Date: Aug 2012
Posts: 2
Default re

ok,

here is the zip archive containing two source .FLA files, each file is based on one method.

Note : FLA files are created with Flash CS5
Attached Files
File Type: zip CD-ROM.zip (241.2 KB, 14 views)
ksdesign2 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 09:58 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, 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.