Anders Moen Posted May 16, 2007 Share Posted May 16, 2007 Hey!I bearly use Flash, but I was thinking I would give it a shot because I want to make an image gallery but then I need to read XHTML and maybe in the Flash because I will upload images and add the filename.fileextension into a database and select like this: echo '<img src="uploads/' . $row['image'] . '" alt="" />'; but I don't know how I can read XHTML and PHP in the FlashI got a little tutorial on it on a Norwegian forum (I don't remember where right now) and it works fine...now I just got to figure out how I can read the PHP/XHTML/CSS in the Flash...Anyone who knows?Thanks! Link to comment Share on other sites More sharing options...
Skemcin Posted May 16, 2007 Share Posted May 16, 2007 Depending on your host, you could use Flash Remoting - which would use ActionScript and ColdFusion to make your SQL statement inside the flash file to avoid all that extra work. But that's just another advantage to using CF - since you are working with php, one of the more novice approaches it to write your query results to a text file and then have Flash read the text file. Or, a step up is to group your images (if possible) and upload them into distinct folders (i.e. one per event/gallery). Then have flash read images by directory - another common method of dynamically bringing images into flash when not using ColdFusion.Search (google) any of these methods and you're likely to find a starting point. Link to comment Share on other sites More sharing options...
Anders Moen Posted May 16, 2007 Author Share Posted May 16, 2007 Hmm..ok, I'll try out something. Link to comment Share on other sites More sharing options...
justsomeguy Posted June 22, 2007 Share Posted June 22, 2007 You can also use the querystring to send parameters to the Flash movie when you embed it:src="movie.swf?img1=image1.jpg&img2=image2.jpg"There is also a Flash/Javascript integration kit on the Adobe website that you can use to have Flash communicate with Javascript. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.