PDA

View Full Version : creating scrolling text w/internal text


roler
11-27-2001, 01:30 AM
this maybe the easy thing but i can`t figure it out, i know how to use external file for scrolling text, but i have type that needs to have a certain look (i.e. resume). the text is in a seperate mc, is there away to call that mc into the mainmovie and scroll it via buttons on the maintimeline...peace...thanks for any help

RanTen
11-27-2001, 08:34 AM
Hi Roller,

Yes you can scroll a MC that contains the text.

I dont know what the look and feel of your fla is, but if you can follow the instructions below, you will be able to adapt it to your needs:

Lay out the text as a separate symbol.
Place the text symbol in a new MC on frame 1. Call it text_mc.
In frame 20 move it UP (use a box as a guide for the visible area - the box can also act as a mask for the text which is above and below the visible area.)
Place a stop (); action on the first frame of the text_mc.

Make a button.
Start a new MC...call it scroll-controller.
In frame 1 & 2 place TWO instances of the button - for UP and DOWN scroll.

Make sure that you add this code to the buttons only in the first keyframe. The buttons in frame 2 should not have any actions.

For the UP button use this code:

on (rollOver) {
tellTarget ("../text") {
prevFrame ();
}
}
on (rollOut) {
tellTarget ("../text") {
stop ();
}
}


For the DOWN button use this code:

on (rollOver) {
tellTarget ("../text") {
nextFrame ();
}
}
on (rollOut) {
tellTarget ("../text") {
stop ();
}
}


Place both the text_MC as well as the scroll controller in a new MC. Give the text_MC the instance name text.

Place the whole shebang on the timeline and test it out.

If you need a proper tut let me know....

Cheerio...hope that helped.

Jesse
11-27-2001, 08:50 AM
This guy called Martyn (Something) posted a really great scroller on FlashKit a while ago which scrolls (with scroll bars and buttons and everything) an externally loaded SWF of any dimensions, etc. I can't find the file no matter how hard I look but his em ail is martyn@sophistry.nl so you might ask him.

roler
11-27-2001, 09:02 PM
Originally posted by RanTen
Hi Roller,

Yes you can scroll a MC that contains the text.

I dont know what the look and feel of your fla is, but if you can follow the instructions below, you will be able to adapt it to your needs:

Lay out the text as a separate symbol.
Place the text symbol in a new MC on frame 1. Call it text_mc.
In frame 20 move it UP (use a box as a guide for the visible area - the box can also act as a mask for the text which is above and below the visible area.)
Place a stop (); action on the first frame of the text_mc.

Make a button.
Start a new MC...call it scroll-controller.
In frame 1 & 2 place TWO instances of the button - for UP and DOWN scroll.

Make sure that you add this code to the buttons only in the first keyframe. The buttons in frame 2 should not have any actions.

For the UP button use this code:

on (rollOver) {
//is it possible to do this tellTarget (this.text)//
tellTarget ("../text") {
prevFrame ();
}
}
on (rollOut) {
tellTarget ("../text") {
stop ();
}
}


For the DOWN button use this code:

on (rollOver) {
tellTarget ("../text") {
nextFrame ();
}
}
on (rollOut) {
tellTarget ("../text") {
stop ();
}
}


Place both the text_MC as well as the scroll controller in a new MC. Give the text_MC the instance name text.

Place the whole shebang on the timeline and test it out.

If you need a proper tut let me know....

Cheerio...hope that helped.

i did everything and still no scroll, is there a .scroll function missing or something, please help stressin...peace

RanTen
11-28-2001, 12:39 AM
Hi Roller,

Make sure you have folled everything as written.

or let me have your rmail id, and I'll mail you a working example.

Cheerio

roler
11-28-2001, 04:56 AM
Originally posted by RanTen
Hi Roller,

Make sure you have folled everything as written.

or let me have your rmail id, and I'll mail you a working example.

Cheerio rolerone@aol.com, i followed everything to the letter can you please forward me that file i am on the pc side.....peace

roler
11-28-2001, 07:47 AM
hey wait after redoing the tute again it works, thanks money...i do know what i did right this time...but can you explain the code, why didn`t u write it in dot synthx?...if you have to reply thanks...peace

RanTen
11-29-2001, 12:38 AM
Hi Roller,

I am not too comfortable with the dot syntax, thus used the Flash 4 version.

In any case the explaination file is on the way, as soon as I reach work.

Cheerio

roler
11-29-2001, 06:56 AM
thanks for the info money, i have the learning actionscript cd and they talk about replacing the tellTarget with .synthx, i`ll play with the code and email you the results...i`m certain there`s a simplier way to do this, i mean writtin out....once again thanks, peace

RanTen
11-29-2001, 08:35 AM
Hi Roller,

Have emailed you the detailed file and explanation...let me know when you checked it out.

cheerio