View Full Version : Flash and Dynamic Pics in html Question?
rizzil
11-02-2003, 11:36 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 a seperate formatted 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
Motion2082
11-13-2003, 02:01 AM
If it is a flash movie...why don't you just create a movie with your larger version then when you click your thumbnail your picture will display?
Or do you want a POPUP(HTML) page to come up without creating a seperate html page?
I think if you want to have a POP-UP appear out of flash the best way to do it is to create a seperate HTML page for each.
Otherwise ASP would be the best way but then you are getting complicated especially if your going out of Flash
Motion2082
11-13-2003, 02:08 AM
The way that I would go about it is to create a Recordset in DW.
A recordset is a vitual group of items that you request to be retrieved from a database. This selection of data can then be manipulated and/or displayed on the Web Page. A recordser can contain one or more items in it.
If you have DreamweaverMX on your comp do the following...
1) Click FILE & then NEW
2) Click DYNAMIC PAGE
3) Click ASP VBscript
4) Click CREATE
5) Click the BINDINGS tab
6) Click + and select RECORDSET (QUERY)
7) Type a name for your recordset
8) Click DOWN DROPBOX & select your connection
9) Click TEST to view the recordset you have created
LET ME KNOW HOW YOU GO WITH THAT......I HAVE NOT TESTED DIRECTLY OUT OF FLASH
AndySmith
11-26-2003, 02:38 PM
Add this code on to the button in Flash:
on (release) {
//Change this variable to the name of the image you want to appear
var picture1 = "image1.gif";
getURL("javascript:openNewWindow('htmlfile.php?picture=" + picture1 + "','PageTitle','height=550,width=750,toolbar=no,scr ollbars=yes')");
}
and then add this code into the html file (save file with .php extension) where you want the picture to appear:
<?php
echo("<img src='$picture'>");
?>
I'm not sure if this is the 'best' way to do it but it certainly works - let me know how you get on...
If you want to see a working example go to click here (http://www.badgworthcourt.co.uk) and look at the 'Floor plans' section.
Cheers,
Andy
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.