PDA

View Full Version : Somewhat simple question


pelerulz88
04-13-2001, 03:29 PM
Hey i have a question thats been buggin me since I got flash 5. I cant exactly explain it but i will give you a link to a site that does exactly what i need to do. the site is http://www.kaotikbeings.com when you get there, click on trick tips, and then click on the buttons to see what i mean. If anyone know how to do this or knows if there is a tutorial out there somewhere, please reply.


Thanks In advance.

Marx
04-13-2001, 03:49 PM
Hi...
The only thing I can see is that if you click on one of the buttons, then text descriptions change, is this what you mean?

Thats pretty easy to accomplish:

1) Place the different text in different blank keyframes.
2) Put a stop action in each of these frames.
3) Give each of these frames a frame label that matches the button text your linking from.
4) Now on your button's add:

on (release) {
gotoAndStop ("ollie");
}

This is placed on the 'Ollie' button and goes to the frame labeled 'ollie'.

Hope this helps.

pelerulz88
04-13-2001, 04:05 PM
should i create a new layer for the text?

pelerulz88
04-13-2001, 04:07 PM
and, when i do what you said, the text appears there before you click the button. do you need to make it further in the timeline or sumthin?

Marx
04-13-2001, 04:11 PM
Hi..
Yes, put the text in it's own layer, this helps to keep things organised.

Also if you want the description area to be blank when the person first goes to the page then add an empty frame at frame 1.
Finally, don't forget to add stop actions to all the frames.

Good luck.

pelerulz88
04-13-2001, 04:19 PM
ok thanks a lot man, i've been tryin to figure that out for soooooooooooooooooooooooooo long. Im only 12 but i think im starting to get the hang of this program.

pelerulz88
04-13-2001, 04:21 PM
i was also wonderin do you know how to do that same thing, except when you click on the button it goes into a scrolling text box? Im not sure if the scrolling text box needs to be in the same layer as the text or not.

[Edited by pelerulz88 on 04-13-2001 at 10:23 AM]

Marx
04-13-2001, 04:35 PM
Hi...
Theres a scrolling tutorial here:

http://www.actionscripts.org/tutorials/intermediate/scroll_object/index.shtml

As your only just starting then i'll provide you with an easy one:

1) Place a textfield on your stage. Name it 'text' without the quotes.
2) Place two buttons on your stage, an 'up' button and a 'down' button.
3) On the 'up' button add the script:

on (release) {
text.scroll = text.scroll+1;
}

4) On the down button:

on (release) {
text.scroll = text.scroll-1;
}

5) Finally add a set variable action to frame 1:

text = "This is just a load of text that will provide you with an example of how to scroll text on the click of a button."

Hope this helps.

pelerulz88
04-13-2001, 04:37 PM
what kind of text field do i place on the stage? Dynamic? Static? Input? and does the text field need to be in the same layer as the text that will go in it?

Marx
04-13-2001, 04:46 PM
Hi..

It's always best to put different objects in seperate layers, that way you can organise yourself better.

When you place your textfield on your stage select Dynamic or Input. Also select 'multline' from the drop down menu and check the 'word wrap' box.
For this example, drag the textfield so it is three lines deep.

Good luck.

pelerulz88
04-13-2001, 04:50 PM
ok now when you do the set variable action to frame 1, do you do it to the layer with the text or the layer with the scrolling text box?

Marx
04-13-2001, 04:55 PM
Hi..
Makes no difference what layer you add your set variable action to, but to keep things neat add another layer and call it 'Actions'.

Good luck.

PS: To make things easier, just copy & paste my script directly into the actions panel. You can do that with the buttons as well.

pelerulz88
04-13-2001, 05:00 PM
ok now this is hopefully the last questions cuz i think im testing your patience. The variable would be text when you set variable right? And When i put text in the text field, the part that you need to scroll to see is visible because the field got bigger when i added the text. How do you get that to become text you need to scroll to see, and have the text field stay the same size?


[Edited by pelerulz88 on 04-13-2001 at 11:07 AM]

Marx
04-13-2001, 05:09 PM
Hi...
Thats right, it would be 'text'.

Try doing what I said previously.
a) Select the typed actions in the post, right click, copy. Go to your actions panel, right click, select paste. Saves a little time.

Good luck.

pelerulz88
04-13-2001, 05:16 PM
i did do that, but the text in the scrolling field is still visible

Marx
04-13-2001, 05:21 PM
Hi...
It's meant to be visible. If you want it first to not be visible then follow that link I gave you earlier:

http://www.actionscripts.org/tutorials/intermediate/scroll_object/index.shtml

You can accomplish what your after using that tutorial.

Good luck.

pelerulz88
04-13-2001, 06:05 PM
thanks man you really helped out, i thought i'd never figure it out.