This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > August 2005 > Navigation menu & ASP





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Navigation menu & ASP
Sufian

2005-08-26, 7:23 pm

I've got a navigation menu in flash which I'd like to use as part of a new
site design, however, I'm not sure how to get buttons to link properly to
the dynamic pages. My site url's are like this:
www.site.com/read.asp?secid-2&rnd=1B34R82G782Q7 which is all controlled by
ASP grabbing information out of a database file with the following:

<%
sql = "select * from SectionMaster where isDeleted ='No' order by
SectionOrder ASC"
Set rsSection = Server.CreateObject("ADODB.Recordset")
rsSection.open sql,conn,3,3
if not (rsSection.BOF and rsSection.EOF) then
rsSection.Movefirst
while not rsSection.EOF
if rsSection.fields("Linkpage") <> "" then
link = rsSection.fields("Linkpage") & "?secid=" & rsSection.fields("ID") &
"&rnd=" & strrand
else
link = "read.asp?secid=" & rsSection.fields("ID") & "&rnd=" & strrand
end if
%>

so my HTML for links is: <a href="<%=link%>"</a>

How do I link up the above ASP code in the following Flash actionscript:

on (rollOver)
{
gotoAndPlay(2);
}
on (rollOut)
{
gotoAndPlay(3);
}
on (release)
{
getURL("page.html");

}


Thanks,
Sufian


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews