# Someones gotta know!

**URL:** <https://forum.kirupa.com/t/someones-gotta-know/12829>\
**Category:** Uncategorized\
**Created:** [February 5, 2003, 4:20am UTC](https://forum.kirupa.com/t/someones-gotta-know/12829 "2003-02-05T04:20:50Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sw0L\_z](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@Sw0L\_z](https://forum.kirupa.com/u/Sw0L_z)\
**Post date:** [February 5, 2003, 4:20am UTC](https://forum.kirupa.com/t/someones-gotta-know/12829/1 "2003-02-05T04:20:50Z")

</div>

ok well,  
my ? is … how can i make the part of my site that will hold my text pop up on the first click of a menu button and then … if you click the one of the menu buttons again… instead of reloading the box… it just changes the content… and then have a home kinda button that play an animation of the box closing but after is it closed it starts again with the same "only comes out on the first click of any of the menu buttons…heres an example , look at their text box.  
[showlogic.com](http://www.showlogic.com/flash/index.html)

im using flash mx.

thanks for any help

---

<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:** [February 5, 2003, 6:37am UTC](https://forum.kirupa.com/t/someones-gotta-know/12829/2 "2003-02-05T06:37:32Z")

</div>

A). They’re using one dynamic text boxes, so that when you click on a button/link. It just loads the txt file that they want.

B). It’s just going to a different frame on the timeline, the frame that obviously holds the text information.

---

<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:** [February 6, 2003, 2:03am UTC](https://forum.kirupa.com/t/someones-gotta-know/12829/3 "2003-02-06T02:03:04Z")

</div>

yeah i know that but …

say i put an action on each button to goto a certain frame that will play the box animation and load the text…  
well that means that every time you click a button the box animation will play, in the example you’ll notice that the text box animation only plays the first time you click one of the buttons… and the only way the box closing animation plays is if you click the “home” button.

hope that clarifies

---

<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:** [February 6, 2003, 11:20pm UTC](https://forum.kirupa.com/t/someones-gotta-know/12829/4 "2003-02-06T23:20:54Z")

</div>

please

---

<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:** [February 7, 2003, 1:06am UTC](https://forum.kirupa.com/t/someones-gotta-know/12829/5 "2003-02-07T01:06:50Z")

</div>

Ok… I will take a shot at this, I don’t know if it will help but…

1. That site is made by 2 Advanced so it is obvious it is advanced.

2. I am assuming the box in the lower left is actually 2 loaded movies. The top is a sub navigation area, and the bigger box below it is the content area.

The transitions are triggered by variables.

So say you have an out animation on your section. On the last frame of that animation you will have \_root.containerClip.loadMovie(\_root.newMovie)

And your buttons for changing sections looks something like this…

on (release){  
\_root.newMovie = “about.swf”;  
\_root.containerClip.gotoAndPlay(“outSequence”)  
}

Make any sense?

That is the basic gist of it.

And

1. Your footer is too big. The requirement is 300x60, but we don’t mind if you go a bit over that, but yours is gigantic.

---

<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:** [February 9, 2003, 7:54pm UTC](https://forum.kirupa.com/t/someones-gotta-know/12829/6 "2003-02-09T19:54:29Z")

</div>

i just need the code to make the buttons only play the box animation on the first click of the button and otherwise just goto the content…

i was thinking something like this.

if (something) {  
boxanime.gotoAndPlay(1);  
}else{  
content.gotoAndPlay(frame);  
}

i just need what to put in the if () spot.

the code would be attached to all the 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:** [February 9, 2003, 7:56pm UTC](https://forum.kirupa.com/t/someones-gotta-know/12829/7 "2003-02-09T19:56:59Z")

</div>

you have the answer my friend …

instanceName.onRelease = function () {  
if (!something) {  
boxanime.gotoAndPlay(1)  
something = true  
}else{  
content.gotoAndPlay(frame)  
}

---

<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:** [February 9, 2003, 8:17pm UTC](https://forum.kirupa.com/t/someones-gotta-know/12829/8 "2003-02-09T20:17:14Z")

</div>

thanks a lot kax.

but the only thing i need to find now is what to put in place of ‘something’ in the ‘if’ statement to make it do that on the first click of a button…

anyone have an idea?

---

<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:** [February 10, 2003, 4:47am UTC](https://forum.kirupa.com/t/someones-gotta-know/12829/9 "2003-02-10T04:47:30Z")

</div>

you place there any variable you want

in fact if you use the script as is … it should work  
because **something** would be the variable 🙂

maybe to make things understandable you could use **clickedBefore** or something like that … get the point ?? 😏

---

<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:** [February 10, 2003, 5:00am UTC](https://forum.kirupa.com/t/someones-gotta-know/12829/10 "2003-02-10T05:00:20Z")

</div>

or i could use ‘notclicked’ but im still not too clear… do i have to define what ‘notclicked’ is ? or what? and if so, how?

---

<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:** [February 10, 2003, 5:14am UTC](https://forum.kirupa.com/t/someones-gotta-know/12829/11 "2003-02-10T05:14:52Z")

</div>

you don’t need to

the logical not **!** operator … checks if the variable is false  
so it would be the same if you use _if (something == false)_

---

<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:** [February 10, 2003, 5:35am UTC](https://forum.kirupa.com/t/someones-gotta-know/12829/12 "2003-02-10T05:35:21Z")

</div>

ok well its partialy working…

now… when i click it the first time i click it doesnt do anything… but the second time it works.

i dunno… lol im just gonna mess with it… still

---

<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:** [February 10, 2003, 5:36am UTC](https://forum.kirupa.com/t/someones-gotta-know/12829/13 "2003-02-10T05:36:59Z")

</div>

HOLY \*\*\*\* I GOT IT!

thanks for all the help kax…

ill post again if i have a problem.

---

<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:** [February 10, 2003, 5:39am UTC](https://forum.kirupa.com/t/someones-gotta-know/12829/14 "2003-02-10T05:39:49Z")

</div>

good for you =)

and i’ll be waiting … :bad:

---

<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:** [February 10, 2003, 9:53pm UTC](https://forum.kirupa.com/t/someones-gotta-know/12829/15 "2003-02-10T21:53:00Z")

</div>

well … now its working but i added something that complicated it…  
so its not doing what i want…

i added a button that shows up when the text box is out… that says back… and it shows an animation of the box closing when clicked… the button works fine and all but if you click it after that the box wont come out again if you click on of the menu 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:** [February 10, 2003, 10:05pm UTC](https://forum.kirupa.com/t/someones-gotta-know/12829/16 "2003-02-10T22:05:45Z")

</div>

scripts ?? fla ?? something ?? :-\

[size=1]i’m pretty busy right now … so i don’t know if i’ll be able to help you but you post the code or attach the file anyway[/size]

---

<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:** [February 10, 2003, 10:11pm UTC](https://forum.kirupa.com/t/someones-gotta-know/12829/17 "2003-02-10T22:11:03Z")

</div>

ill mess with it for a little while…
