Click to See Complete Forum and Search --> : Help, I've javascripted and I can't get up!

01-25-2007, 12:07 AM
Ok, I know just enough in both flash and javascripting to make myself dangerous. That said, here's what I'm trying to do:
- I've located a javascript called "TinyScrolling" that is a vertical scrolling script that automatically scrolls a page down to an anchor point.
- I've created a flash nav bar that I would like to use with this script.
- My attempt at melding these too items can be located here: http://www.bryankatzel.com

Currently, the two pieces have just been mashed together and if you press the very first button (the WORK necktie) you will see that it takes you to the sixth paragraph but without the tinyscolling java effect. The buttons below the flash do work fine.

So, after all that, what action do I need to tell my flash nav button to do to work with the javascript?

Thanks ahead of time for any thoughts or instruction, I really appreciate any help.

01-25-2007, 01:47 AM
from flash, you can use the getURL() function to call javascript functions like so:


01-26-2007, 10:18 AM
Thanks for the info, but... not sure if I can get that to work. I have adjusted the page slightly, just for reference it is http://www.bryankatzel.com

Once again, I'm super new at this so I could be setting the parameters wrong or not using the right function. Could someone maybe help me with the code should be.
Thanks again!

01-26-2007, 01:13 PM
hmm, yeah, after analyzing the javascript of that code, when the page is loaded, it takes those links on the page and replaces them with a javascript function, initScroll. initScroll function works based on the target file. It doesn't take a parameter, so you cant call that javascript function, it won't work.

I would suggest doing this. Look into writing a custom initScroll function that does the same thing, but works with some parameters. If you can't get something, I don't have the time at this moment, but possibly tomorrow or later tonight I'll have time to throw something down that will work. :)

01-26-2007, 07:50 PM
Wow, I really appreciate the offer. I'm going to work on it tonight but if you don't mind and have the time I'd love your help... me not speak java good :(

Thanks again!

01-31-2007, 01:06 PM
hey man, im sorry, but i just don't have time to get that working for you. i have too many other actual work obligations. i hope i at least set you on the right track to now ask a more specific question. :)