English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i.e. Could you make a button in Flash, called Down, that scrolls the whole page down?

2006-10-26 06:01:36 · 2 answers · asked by inthecrossfire 2 in Computers & Internet Internet

2 answers

Yes you can actually...

You see, all that you can do via Javascript can be triggered from within a Flash file.

Since you can do all sorts of browser window manipulations through Javascript, what you want to do can be done.

What you need is to write a Javascript function (let's call it "scrollDown" just for now) that does what you want (scrolling the page). You must write this code in the HTML page where your Flash file (the .swf) is embedded. Then you trigger this Javascript function with the following code (here placed on a button) in Flash:

on (release) {
    getURL ("javascript:scrollDown()");
}

If the Javascript is written properly, this code placed in Flash will activate the Javascript function and your page will do what you told it to.

The only problem here is that you need to learn Javascript! ;-)

I hope this helps.

2006-10-30 02:15:22 · answer #1 · answered by maestro_ 2 · 0 0

Flash can only control what's inside of it, so "no" to your down button on a normal page.

But! Flash can act like pages - scroll bars, next, back, forms... all within the Flash movie.

It's up to you to figure out how... look for Flash tutorials in Google.

2006-10-27 08:12:08 · answer #2 · answered by AmandaKerik 5 · 0 0

fedest.com, questions and answers