PDA

View Full Version : Scrolling HTML document


PaddyLong
11-30-2001, 04:16 AM
Hey everyone,

I am working on my personal website, I decided to make it all in Flash

I have all my different sections set up with a scrolling text box that is filled with a .txt file depending on which section they are in

now my problem is that I would like to make it so that I can have images and stuff in the scrolling body part... possibly be able to scroll an html document that supports images

I am not sure how I could do this or if it's possible

thanks,
Paddy

jimburton
11-30-2001, 02:36 PM
If you want to scroll a combination of text fields and movieclips etc the best thing to do is to nest them in one movieclip and scroll that behind a mask - for help on masking see Flash's online help. You then need two buttons with actions:


//on fist button

on(press)
{
_root.scrollDown = yes;
}

on(release,releaseOutside)
{
_root.scrollDown = false;
}

//next button


on(press)
{
_root.scrollUp = true;
}

on(release,releaseOutside)
{
_root.scrollUp = false;
}

You then need a process clip with the following handler:

onClipEvent(enterFrame)
{
if(_root.scrollDown)
{
_root.theMCwithTextAndGraphicsBehindAMask._y += 5;
}

if(_root.scrollUp)
{
_root.theMCwithTextAndGraphicsBehindAMask._y -= 5;
}
}

Try it out...

PaddyLong
11-30-2001, 07:03 PM
thanks for the suggestion
that's what I used to get the text box scrolling
found it in a tutorial on this site.. very helpful :)

I guess I didn't really explain what I was trying to do that well..
that is make an html document and have it loaded into my flash animation and have it scroll

the reason I want to use an external file is that I want to be able to update my site quickly and easily

thanks,
Paddy

tg
12-01-2001, 12:32 AM
you won't be able to load an html document 'into' your flash site.

PaddyLong
12-01-2001, 04:56 AM
darn

well thx