Hello, just wondering if anyone can help.
I'm in the process of designing a flash course index, that will sit in the topic outline of a course and display a list of all topics in a drop-down combo box and when the user chooses a topic, a list of all resources will appear.
I finally managed to get the swf to be embedded onto the page and load an xml file with all details in. But my problem is this: The xml file is hard-coded with all resources and topics in. Is it possible to create a php file that will read the db and pass an xml file including these details into my swf.
If so how? I tried to read the course/view.php to try and understand, but my brain melted around halfway through.
Any help will be greatly appreciated, thanks!!!
Hi,
Have you looked in to flashremoting or amfphp (free)? Using one of these, you could skip the XML and get the data directly from the MySQL via PHP.
Also, Google "flash MySQL" and you will find a ton of info on doing it without flashremoting or amfphp.
Best of Luck,
Tom Cox
Have you looked in to flashremoting or amfphp (free)? Using one of these, you could skip the XML and get the data directly from the MySQL via PHP.
Also, Google "flash MySQL" and you will find a ton of info on doing it without flashremoting or amfphp.
Best of Luck,
Tom Cox
Thanks, just googled it and I had no idea that it was possible to load vars directly from php!
This is the way that I think we'll be doing it - even though there will be some duplication (a seperate php file for every course), at least the index will be self contained - that is, that people will not need to install other software.
I'm sorry about this, but I'm new to this whole moodle/flash thing. But I have two more questions:
1. Usually, it is possible to embed a flash movie and use the querystring to pass variables into the swf; eg - http://blah-blah-blah/mySwf.swf?courseID=27, I am inserting the swf, by using a hyperlink in a html textbox, but this doesn't work!!! Is there a way to pass variables into the swf this way? I noticed that you can pass the dimensions in "...../mySwf.swf?w=500&h=250".
2. Can anyone please point me in the direction of writing a php script to print out the course resources/activities? I'm "ok" with PHP, but have no idea with the db model of moodle.
This is the way that I think we'll be doing it - even though there will be some duplication (a seperate php file for every course), at least the index will be self contained - that is, that people will not need to install other software.
I'm sorry about this, but I'm new to this whole moodle/flash thing. But I have two more questions:
1. Usually, it is possible to embed a flash movie and use the querystring to pass variables into the swf; eg - http://blah-blah-blah/mySwf.swf?courseID=27, I am inserting the swf, by using a hyperlink in a html textbox, but this doesn't work!!! Is there a way to pass variables into the swf this way? I noticed that you can pass the dimensions in "...../mySwf.swf?w=500&h=250".
2. Can anyone please point me in the direction of writing a php script to print out the course resources/activities? I'm "ok" with PHP, but have no idea with the db model of moodle.
Hi Gareth,
I can't help with #1, but for #2, "php script to print out the course resources/activities?":
http://www.hkvstore.com/phpreportmaker/
The best 50 bucks I have ever not spent. 30 day fully functional demo?!
Tom Cox
I can't help with #1, but for #2, "php script to print out the course resources/activities?":
http://www.hkvstore.com/phpreportmaker/
The best 50 bucks I have ever not spent. 30 day fully functional demo?!
Tom Cox
Ah! I just spotted a problem. That software looked ideal - looked like just what we needed, until I spoke to our tech server guy, and found out that we are using msSQL.......