View Full Version : Flash and Dynamic Pics in html Question?
rizzil
November 2nd, 2003, 10:39 PM
Hi,
From a flash movie I have thumbnails which when clicked on I want a new window to appear with a large version of the pic with a formated border and a logo.
I dont want to have to create an html page for each seperate pic.
Now is it possible to have one dynamic html file that can load any single pic with the a comon border and logo.
To pass variables (pic file name) can i use a javascript method within a HTML file or do i need to use ASP?
Please help.
Thanks.
Eric
abzoid
November 2nd, 2003, 11:26 PM
You can do it with javascript. Within the page that contains your flash movie you'll need a javascript function defined that opens a window containing your dynamic display page. The script passes the image name as a parameter.
Within your flash movie you call the script and pass the image name as a parameter.
I'm not a "flasher" and I hate coding in Javascript, so I won't post any code examples, but I have see it done, and it isn't all that difficult.
rizzil
November 3rd, 2003, 12:37 AM
OK thanks here is to be more specific:
on (release) {
getURL("pic.asp", "_blank", "GET");
}
for (first pic) I have var pic=pic1.jpg
now pic.asp
i have
<% @Language="VBScript" %>
<% Option Explicit %>
<html>
<head>
</head>
<body>
<div align="center"><center>
<table border="1">
<tr>
<td bgcolor="#ffffff">
<img src='<%=Request.Form("pic")%>'>
</td>
</tr>
</table>
</center></div>
</body>
</html>
Please let me know if you notice anything wrong
Thanks
rizzil
November 3rd, 2003, 12:45 AM
ok my ASP code is not posting
to call the variable named pic in the asp file i use the following right?
//< % = Request.Form ("pic") % >'//
i think this may be my problem
UNFLUX
November 7th, 2003, 03:34 PM
rizzil - put your asp in [php] tags, it should show up then
eyezberg
November 8th, 2003, 02:26 PM
done..but i never used asp, so no help from me here :)
abzoid
November 8th, 2003, 02:36 PM
Since you are using a GET rather than a POST you'll need to use Request.QueryString instead of Request.Form
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.