We Recommend

Beginning XML Beginning XML
The perfect resource for beginning XML programmers, this guidebook shows you what XML is, how to use it, and what technologies surround it. The authors build on the strengths of previous editions while covering the latest changes in the XML landscape such as XQuery, RSS and Atom, and Ajax.


Posted By

dandyna on 09/07/06


Tagged

css actionscript flash stylesheet


Versions (?)


Who likes this?

6 people have marked this snippet as a favorite

damarev
dandyna
jitendramr
rotarypot
markireland
vali29


Add a stylesheet to a text into a flash movie


Published in: ActionScript 


actions to put on the movieclip built over the textarea

  1. onClipEvent (load) {
  2. import TextField.StyleSheet;
  3. var my_styleSheet:StyleSheet = new StyleSheet();
  4. //questa è la dichiarazione della variabile. dice che mystylesheet è un oggetto di tipo stylesheet(cioè quelli caricati sopra)
  5. my_styleSheet.onLoad = function(success:Boolean) {
  6. if (success//=true) {
  7. bloccotesto.areatesto.styleSheet = my_styleSheet;
  8. } //oggetto che ha collegato un evento a una funzione
  9. };
  10. bloccotesto.fine = 0;
  11. loadVariables("testo.txt", bloccotesto);
  12. my_styleSheet.load("styles.css");
  13. }

Report this snippet 

You need to login to post a comment.