Καλώς ορίσατε στο dotNETZone.gr - Σύνδεση | Εγγραφή | Βοήθεια

Localization and realtime language change in Macromedia Flash 8

Strings panel is the resources management tool of flash. You can create resource XML files with it, just like resx files of .net framework. Very useful function that was missing from flash. The change of the stage language at runtime with a simple way (e.g. change all strings to another language by clicking a button) is something barely documented. Because I spent many ours searching for solutions, here are the findings that helped me:

  • You can find here an example of .Fla file to download: PhilFlash (it's in French but you can easily find your way).
  • Attention: In strings panel's settings you must set "automatically at run-time". With the option "via ActionScript at run time" it does not work, although is seems the right choice. You can of course force the change of the language at the very first frame.
  • In my case, the movie is stopped while the user can change the language and the changed strings does not show up until the movie continues to play. Watch out...
Έχουν δημοσιευτεί Παρασκευή, 28 Οκτωβρίου 2005 11:54 πμ από το μέλος Χρήστος Γεωργακόπουλος
Δημοσίευση στην κατηγορία: ,

Σχόλια:

Έχει απενεργοποιηθεί η προσθήκη σχολίων από ανώνυμα μέλη