Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

71 users online



PHP, DBM Databases, and Flash

PHP, DBM Databases, and Flash

Currently viewing this thread: 1 (0 members and 1 guests)


Page 1 out of 2
Matthew_Aaron

Matthew_Aaron

Status: Offline!

PHP, DBM Databases, and Flash

Is it possible to draw from a DBM-style database to create dynamic content in Flash? I know PHP pretty well and I've been creating, editing, and drawing from DBM-style databases with PHP for a long time to deliver dynamic content (like news, links, etc.). So I'd be really interested in this.

___________________

- Matthew McVickar

PsychoFlame

PsychoFlame

Where I have been, no one else can go!
Status: Offline!

Dynamic Flash

Check out this post: http://www.tutorialforums.com/showthread.php?s=&threadid=34

His flash file uses XML to dynamically update itself. XML can be connected to a database using some of your php knowledge. Wink

___________________

Will Ryan - PsychoFlame - DJ KinetiX

http://www.tutorialengine.com
http://forums.ascenvia.net
http://www.ascenvia.net

Matthew_Aaron

Matthew_Aaron

Status: Offline!

Now... what to do about the fact that I don't know XML at all...

___________________

- Matthew McVickar

PsychoFlame

PsychoFlame

Where I have been, no one else can go!
Status: Offline!

Thats the only way I could think to do it... but there probably are other ways. I just don't use flash that much. and I saw bernie created something like what you were describing

___________________

Will Ryan - PsychoFlame - DJ KinetiX

http://www.tutorialengine.com
http://forums.ascenvia.net
http://www.ascenvia.net

abendagar

abendagar

Status: Offline!

PHP and mySQL or another DB can easily do stuff with Flash. You can pass variables to flash heres a quick demo.

PHP:

<?php

// Example of a flash counter script
// This isn't real just coming from my head but if you know php it will be a good starting point

connect to db;
$i # of previous in hits in the db;

// Add one hit to the number of hits the DB
$i $i++;

// Add one more hit to the number in the database
insert $i into database 

echo "&hits=$i&";  // Prints &hits=[number of hits]&

?>

Flash Scripting:

PHP:

<?php

// You got to give it a couple frames to load the vars, it takes some time depending on server speed.
loadVariablesNum ("scripturl.php"0);

?>

On the root in _level0. put a dynamic text box with the variable hits.

Thats all it takes Smile. Grin

If you need anymore help just ask, and NO it doesn't require any knowledge of XML.

___________________

Live Tronix - http://www.livetronix.com
Help 4 Flash - http://www.help4flash.com

bernie

bernie

Status: Offline!

yeah i made a dynamic menu but i used XML and flash. its pretty easy i can send you the fla file if you want. i am now just learning PHP so cant help you that much

___________________

http://www.langleywd.com/sig.gif

Matthew_Aaron

Matthew_Aaron

Status: Offline!

Dude... that is frickkin' awesome... I'm going to try that right now!

___________________

- Matthew McVickar

Matthew_Aaron

Matthew_Aaron

Status: Offline!

Dude... that is frickkin' awesome... I'm going to try that right now!

You are the man. Shocked

___________________

- Matthew McVickar

bernie

bernie

Status: Offline!

here
go there and you can see what i made using only xml

___________________

http://www.langleywd.com/sig.gif

Matthew_Aaron

Matthew_Aaron

Status: Offline!

It worked!!!

It's all right here: http://www.driftingembers.com/personal/experimental/flash/dynamic-content/

___________________

- Matthew McVickar

Page 1 out of 2
Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0089 seconds.