# My 1st Post and 2 simple Questions

**URL:** <https://forum.kirupa.com/t/my-1st-post-and-2-simple-questions/63249>\
**Category:** flash\
**Created:** [September 4, 2004, 9:19am UTC](https://forum.kirupa.com/t/my-1st-post-and-2-simple-questions/63249 "2004-09-04T09:19:18Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![slipy](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@slipy](https://forum.kirupa.com/u/slipy)\
**Post date:** [September 4, 2004, 9:19am UTC](https://forum.kirupa.com/t/my-1st-post-and-2-simple-questions/63249/1 "2004-09-04T09:19:18Z")

</div>

\*\*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: \*\*

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 4, 2004, 9:24am UTC](https://forum.kirupa.com/t/my-1st-post-and-2-simple-questions/63249/2 "2004-09-04T09:24:18Z")

</div>

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):

```auto

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 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 4, 2004, 9:31am UTC](https://forum.kirupa.com/t/my-1st-post-and-2-simple-questions/63249/3 "2004-09-04T09:31:52Z")

</div>

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

Thanks Voetsjoeba will give it a shot now.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 4, 2004, 10:05am UTC](https://forum.kirupa.com/t/my-1st-post-and-2-simple-questions/63249/4 "2004-09-04T10:05:06Z")

</div>

Could not get it to work!!! ☹ 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](http://www.nitindesign.com/TEST.zip)) e-mailed you the link.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 4, 2004, 10:06am UTC](https://forum.kirupa.com/t/my-1st-post-and-2-simple-questions/63249/5 "2004-09-04T10:06:52Z")

</div>

Sure. Looking at it now.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 4, 2004, 10:15am UTC](https://forum.kirupa.com/t/my-1st-post-and-2-simple-questions/63249/6 "2004-09-04T10:15:15Z")

</div>

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 🙂

Here’s your fixed fla:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 4, 2004, 10:30am UTC](https://forum.kirupa.com/t/my-1st-post-and-2-simple-questions/63249/7 "2004-09-04T10:30:36Z")

</div>

Cool 😉

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

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?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 4, 2004, 10:33am UTC](https://forum.kirupa.com/t/my-1st-post-and-2-simple-questions/63249/8 "2004-09-04T10:33:23Z")

</div>

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

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 4, 2004, 1:17pm UTC](https://forum.kirupa.com/t/my-1st-post-and-2-simple-questions/63249/9 "2004-09-04T13:17:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 4, 2004, 10:26pm UTC](https://forum.kirupa.com/t/my-1st-post-and-2-simple-questions/63249/10 "2004-09-04T22:26:27Z")

</div>

yeah that’s good practice
