lespaul00
01-05-2008, 02:30 AM
Hello!
I've been going crazy (it seems like many people in these forums do, that's why we're here!!! :p ). I am creating a remote flash file that pulls information from my website server.
I am using:
Dreamweaver 8
Flash 8
Coldfusion MX7
Basically, on website, I have a database called "mydatabase.mdb". I created a page called "flash_data.cfm" within my website directory. Within this page, I have a variable (day) that is a number that corresponds to the day of the year.
So, on January 1: day = 1
On January 23: day = 23
and so on...
I have a .fla file that displays an image. I want a specific image to be displayed for each day. So, I created a query in the flash_data.cfm file as such:
<cfquery name="image" datasource="mydatabase">
SELECT image_id, image_file
FROM TBLIMAGES
WHERE image_id=#day#
</cfquery>
Here is my TBLIMAGES table:
IMAGE_ID.......................................... IMAGE_FILE
1..........................http://www.mywebsite.com/images/image_01.jpg
2..........................http://www.mywebsite.com/images/image_02.jpg
3..........................http://www.mywebsite.com/images/image_03.jpg
4..........................http://www.mywebsite.com/images/image_04.jpg
5..........................http://www.mywebsite.com/images/image_05.jpg
6..........................http://www.mywebsite.com/images/image_06.jpg
7..........................http://www.mywebsite.com/images/image_07.jpg
So basically, i'm left with a variable #image.image_file#, which is a url of the image I want to include in my flash file.
My question! How can I set up my .fla file so that it pulls this information (the image url) from my website database, and displays the image (img source can simply be the url)??
Like I mentioned, I've been going crazy about it!!! I even bought a book to try to learn, and I am going around in circles. I hope I explained it well enough.
THANKS!!! ;)
I've been going crazy (it seems like many people in these forums do, that's why we're here!!! :p ). I am creating a remote flash file that pulls information from my website server.
I am using:
Dreamweaver 8
Flash 8
Coldfusion MX7
Basically, on website, I have a database called "mydatabase.mdb". I created a page called "flash_data.cfm" within my website directory. Within this page, I have a variable (day) that is a number that corresponds to the day of the year.
So, on January 1: day = 1
On January 23: day = 23
and so on...
I have a .fla file that displays an image. I want a specific image to be displayed for each day. So, I created a query in the flash_data.cfm file as such:
<cfquery name="image" datasource="mydatabase">
SELECT image_id, image_file
FROM TBLIMAGES
WHERE image_id=#day#
</cfquery>
Here is my TBLIMAGES table:
IMAGE_ID.......................................... IMAGE_FILE
1..........................http://www.mywebsite.com/images/image_01.jpg
2..........................http://www.mywebsite.com/images/image_02.jpg
3..........................http://www.mywebsite.com/images/image_03.jpg
4..........................http://www.mywebsite.com/images/image_04.jpg
5..........................http://www.mywebsite.com/images/image_05.jpg
6..........................http://www.mywebsite.com/images/image_06.jpg
7..........................http://www.mywebsite.com/images/image_07.jpg
So basically, i'm left with a variable #image.image_file#, which is a url of the image I want to include in my flash file.
My question! How can I set up my .fla file so that it pulls this information (the image url) from my website database, and displays the image (img source can simply be the url)??
Like I mentioned, I've been going crazy about it!!! I even bought a book to try to learn, and I am going around in circles. I hope I explained it well enough.
THANKS!!! ;)