My 1st Post and 2 simple Questions

**If you know the answer and read this mail then PLEASE answer as I am stuck. I will really appreciate your help :evil: **

OK I have 2 MC on my stage. [color=blue]MC-A[/color] and [color=red]MC-B[/color] both have buttons inside it.

[color=navy]Q-1-[/color] On pressing a button in [color=blue]MC-A[/color] I want the playhead of [color=red]MC-B[/color] to “go to and stop” on frame 5 on MC-Bs timeline.

What code should I attach on the button in [color=blue]MC-A[/color]???

[color=navy]Q-2- [/color][color=black]I am also going to use the same button to load an external swf plus load external dynamic text. [/color]
[color=black]This is not a problem but my question - Is it a bad practise to have more than one action on a button? In my case 3 action? ie. 1. load text, 2- go to frame…and 3-load image/swf?[/color]

**THANKS FOR YOUR TIME!!! :hair: **

Q1: Give your button in MC-A an instance name (I’ll use ‘foo’ as an example here), and place this code on the timeline of MC-A (where the button is in):


foo.onRelease = function(){
// this is the button
// this._parent is mcA
// this._parent._parent is the main timeline
// this._parent._parent.mcB is MCB
this._parent._parent.mcB.gotoAndStop(5);
}

Q2: No, it’s perfectly fine to have multiple actions on a button. In fact, you won’t get too far with only 1 action on each of your buttons :wink:

That was quick. I have been visiting this forum for a while but glad I posted here. Will be hanging around here more :wink:

Thanks Voetsjoeba will give it a shot now.

Could not get it to work!!! :frowning: I made a rough test file to check before I mess with my real design. Could you please take a look at it?

*(http://www.nitindesign.com/TEST.zip) e-mailed you the link.

Sure. Looking at it now.

I see the problem. You gave MCB the instance name B, but the code is looking for the movieclip with the instance name mcB. So just change the instance name from B to mcB :slight_smile:

Here’s your fixed fla:

Cool :wink:

As I can see that you are a flash freek (meant as a compliment) I will ask you some more question :slight_smile:

  1. I am designing my portfolio site so I have various categories for example
    3d design
    graphic design etc etc

Now when the visitor clicks “3d design” he is given a sub-menue

architecture
interior design …

In each of these sub-sections there are 10 images.

Now when the visitor presses “architecture” would you reccomend-

A- I download all 10 architecture images at the same time (pre-loader included) So that when they click the next button then all the images in that particular sub category are instantly displayed

OR

B- Download only one image at a time? so that every click results in a slight wait?

B - Download one image at a time. Not everyone’s on broadband :wink:

Broadband users won’t mind because it’ll load fast anyway and 56k users will be happy that they are given the choice to continue or not.

cool thanks but should I still put a preloader on each image?

yeah that’s good practice