**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]
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
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
As I can see that you are a flash freek (meant as a compliment) I will ask you some more question
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?