Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PLEASE HELP ASAP! FLASH w/JS

Status
Not open for further replies.

paparabbit

Programmer
Feb 11, 2002
2
US
I need some help! I want to make a movie that uses JS to look for a directory. Simple JS looks for the directory from enetered info...

HERE'S THE JS!


function go()
{
var user = document.form.user.value;
var pass = document.form.pass.value;
if ( pass == null ) { history.refresh(); } else { location = user.toLowerCase() + "/" + pass.toLowerCase() + ".html" }
}


now can you tell me or better yet show me in a FLASH file how to do this?
 
In the Flash movie...

On a button for example...

on (press) {
getURL("javascript:go()");
}

Of course the function has to be within the html where the movie is embedded, and this will only work when the movie is ran from the html. This will not work within the Flash application itself while testing your movie.

For another example check this link:


Regards,
new.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top