Jump to content


How To Do This Better

  • Please log in to reply
3 replies to this topic

#1 dhavalshah.83

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 09 June 2006 - 01:30 PM

I am currently woring on a project wich involves Flash, XML, MySql, PHP. I have to populate flash map with countries & upon clicking cities from the database.

But the thing is the cities can keep on changing, some may be deleted & new ones can be added. So the solution i have developed revolves around rewriting the city.xml when a country is clicked.

Is there a better solution, something that will directly pass values to the flash file without writing to the file itself & save me some valuble I/O time ?

#2 ober

  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 09 June 2006 - 01:38 PM

The only thing I can suggest without knowing more about the project is possibly using AJAX in the background to do some of the updates behind the scenes.

Info: PHP Manual

#3 Fyorl

  • Members
  • PipPipPip
  • Advanced Member
  • 273 posts
  • LocationUK

Posted 09 June 2006 - 01:59 PM

when generating the HTML for embedding the flash file, you could use php to pull values from the database about cities and write them into the <param> tags.

Don't worry, the printer fairies will sort it out.

#4 .josh

  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 09 June 2006 - 04:49 PM

and use loadvars in your actionscript to retrieve it.
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users