PDA

View Full Version : PHP/AS Blog



benFusion
June 16th, 2005, 11:37 AM
OK. Before everything else. This is something I started last night. I'm making a new website for myself and I want a dynamic news page, I also wanted multiple people to post, as my friend might be helping me out with content (this will feature my music.)

There really is no layout yet so it doesn't look pretty, just letting you know:
http://www.bfusion.net/abstraction/

Here's how it works:

Flash calls a PHP file ( http://www.bfusion.net/abstraction/reactor.php ) to pull the news data from a SQL database. Once that data is loaded it proceeds to construct the text fields and user images with createEmptyMovieClip and createTextField functions... meaning EVERYTHING IS LOADED DYNAMICALLY.

I am very proud of how this turned out, even though it took a lot longer that I expected (getting everything to mask so I could scroll it was a giant pain)

I would love to hear any suggestions you have to improve this. I attached everything you'll need in the ZIP file. If it didn't extract to folders, you'll need to put 1.jpg and 2.jpg in a folder named "user_data"... here's everything inside:

abstraction.fla -- The main file, in MX 2004 format.
abstraction_mx.fla -- Main file in MX format... I don't know if this works.
1.jpg & 2.jpg -- The simple images for users... just a 30x30 JPG file.
reactor.php -- This is the php file that pulls the data... I omitted the username/password to my database for obvious reasons ;)

Let me know what you think, I'm very happy with this :D

Edit: I'm messing with the design and layout, the attached ZIP file is the simple version... the /abstraction folder is really going to be my staging ground for this website, since I can't test PHP locally (and I'm too lazy to set it up so there ;) so yeah...

No comments yet :hitman:

benFusion
June 24th, 2005, 10:47 AM
bump for posterity? I've got 17 downloads but no replys :(

sky_vault
June 24th, 2005, 02:32 PM
hey thanks for this .... i have d/l it but yet to really mess with it ... looks like it could come in handy.

benFusion
June 24th, 2005, 03:05 PM
Thanks for responding! And no problem, if you have any questions about it, feel free to PM me and I'll do what I can to help. Really the biggest bugger is setting up the SQL tables, but if you've done that before it's not much of an issue. Have a good one.

hl
June 26th, 2005, 05:58 AM
don't you think it'd be a bit better to call it from xml instead of variables?

here's a tutorial if your lost on dynamic xml http://forums.ultrashock.com/ff.htm?http://forums.ultrashock.com/forums/showthread.php?threadid=64006&referrerid=122379

benFusion
June 27th, 2005, 10:43 AM
XML scares me ;) Yeah, I bet it would be better. I've been meaning to learn for a while now. I'll check out the tutorial, thanks!

Danno
June 28th, 2005, 02:29 AM
yeah, it would be helpful if you could include your sql database table layout. that way we wont be missing any fields and what not.

after i test it a while, i'll let ya know how it goes !

benFusion
June 28th, 2005, 11:36 AM
Your wish is my command :p:

ElectricGrandpa
June 28th, 2005, 02:48 PM
yeah it's cool :)