property van hoofd klasse via method in andere klasse


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. package {
  2. public class HoofdKlasse {
  3. private var pijl:String = "pijl";
  4. public function HoofdKlasse() {
  5. var andereKlasse:AndereKlasse = new AndereKlasse();
  6. andereKlasse.gebruikPijl(this.pijl);
  7. }
  8. }
  9. }
  10.  
  11. package {
  12. public class AndereKlasse {
  13. public function gebruikPijl(pijl:String):void {
  14. trace(pijl);
  15. }
  16. }
  17. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.