PDA

View Full Version : someones gotta know!



Sw0L|z*
February 4th, 2003, 11:20 PM
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

zao
February 5th, 2003, 01:37 AM
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.

Sw0L|z*
February 5th, 2003, 09:03 PM
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

Sw0L|z*
February 6th, 2003, 06:20 PM
please

lostinbeta
February 6th, 2003, 08:06 PM
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

3) 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.

Sw0L|z*
February 9th, 2003, 02:54 PM
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

kode
February 9th, 2003, 02:56 PM
you have the answer my friend ..

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

Sw0L|z*
February 9th, 2003, 03:17 PM
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?

kode
February 9th, 2003, 11:47 PM
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 ?? :smirk:

Sw0L|z*
February 10th, 2003, 12:00 AM
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?

kode
February 10th, 2003, 12:14 AM
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)

Sw0L|z*
February 10th, 2003, 12:35 AM
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

Sw0L|z*
February 10th, 2003, 12:36 AM
HOLY **** I GOT IT!

thanks for all the help kax...

ill post again if i have a problem.

kode
February 10th, 2003, 12:39 AM
good for you =)

and i'll be waiting .. :bad:

Sw0L|z*
February 10th, 2003, 04:53 PM
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 ...

kode
February 10th, 2003, 05:05 PM
scripts ?? fla ?? something ?? :-\

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

Sw0L|z*
February 10th, 2003, 05:11 PM
ill mess with it for a little while...