Skip to main content
August 4, 2011
Question

XML?

  • August 4, 2011
  • 1 reply
  • 450 views

If i had a update page on a App, and i had to be updated like weekly without having to publish it again. could this be done by a xml sheet ?

If so how?

This topic has been closed for replies.

1 reply

Participating Frequently
August 4, 2011

Hi,

If that file would serve as configuration/data file - then answer is yes - applicaiton could load anything (if there is network connection) and store it locally to application documents directory. A file from that directory could be used to configure/shape features of your application. For example it could define what content should be used to build your application on client-side (images, text data, etc) - information that is used by yoru compiled applicaton code itself to render content and provide features. That assumes that initial features set is within application and it is fully functional without remote content I think as something obvious. But features depending on compile-time features would require re-compilation/re-build.

regards,

Peter

August 4, 2011

Thank you very much, i have been thinking this would work for weeks but i have no idea how to do it.

Could you show me a way to do this please? i would really appreciate it.

Many thanks,

Scott

Participating Frequently
August 4, 2011

Hi,

I think one needs some level of experience to implement that: the basic one is to have ide on how RSS reader could be implemented in Flash. RSS reader is supposed to show content which is published somehwere - so at least content is changed within application. As next level of features think about either:

- game level defined in .xml (where tiles are placed, what kind of tiles, actors, etc) - and then game engine works differently based only on that loaded data

(see here to get basic idea how someone would covert code based feature a.k.a. hardcoded - to xml loaded feature in game: http://www.emanueleferonato.com/2007/05/21/how-to-load-levels-in-a-flash-tile-based-game/ example I've quickly googled)

- dynamic menu based on xml - it does change its features and change what features are available within aplicaiton itself - so depending on menu configuration some part of application can be enabled or disabled.

These are some basic ideas to grasp before attempting to modulirize application features via xml (or any other kind of storage data) I think.

regards,

Peter