| 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
|