Beispiel #1
0
 public void write(FlashOutput fob) {
   if (def != null) {
     fob.writeTag(Tag.REMOVEOBJECT, 4);
     fob.writeDefID(def);
     fob.writeWord(depth);
   } else {
     fob.writeTag(Tag.REMOVEOBJECT2, 2);
     fob.writeWord(depth);
   }
 }
Beispiel #2
0
 /**
  * Writes RGBA color to FlashBuffer<br>
  * Alpha is 255, i.e. color is opaque
  *
  * @param fob flash buffer to write
  */
 public void writeRGBA(FlashOutput fob) {
   fob.writeByte(r);
   fob.writeByte(g);
   fob.writeByte(b);
   fob.writeByte(255);
 }