1 D. Familie und Verwandtschaft

Family and relatives

  • Bob, hast du Geschwister ?
  • Ja, ich habe drei Brüder und zwei Schwestern. Und du?
  • Ich habe nur einen Bruder. Und hast du eine Schwägerin?
  • Ja, zwei. Nur zwei Brüder sind verheiratet.
  • Wie viele Enkelkinder hast du?

Wortschatz (Vocabulary)

  • Großvater /  Opa, Großmutter / Oma
  • Eltern (parents)
  • Vater
  • Mutter
  • Tante, Tanten (aunts)
  • Schwager (Brother-in-law), Schwägerin, Schwiegervater
  • Schwester, Geschwister (Siblings)
  • Cousine
  • Enkelkind (Grandchild)
  • Nichte (Niece)
  • Neffe (Nephew)
Niece

1 B. Ich bin schon um drei Uhr aufgestanden

How to build the past, hat and ist

Die Regeln
———————————-

#  Normal verbs; sehen, gehen, trinken..

Ich sehe den Film –> Ich habe den Film gesehen

# Vor-Silbe verbs,  separable prefixes include: ab (away/down), los (off/loose), mit (with), nach (after/towards), teil (part), vorbei(past), weg (away), züruck (back), zusammen (together). ; abholen

Ich stehe auf um drei Uhr –> Ich bin schon um drei Uhr aufgestanden (I already woke-up at three)

# Use ist for Bewegung  (movements)

Er hat gespielt
Sie ist gegangen
Er ist geflogen
Sie ist gekommen

———————————-

1 A. Warum fahren wir eigentlich alle zum Flughafen? Weil Maria…

What you should say when using; Weil (because)

Die Regeln
———————————-

# Put the verb at the end;

Ich habe Freunde in Deutschland –> weil ich Freunde in Deutschland habe

# if there’s two verbs, you put the first in the end;

Ich bin gegangen (to go, to walk) –> weil ich gegangen bin

———————————-

A1 Ordnen Sie zu.

  • Warum fahren alle zusammen zum Flughafen? –> Weil Maria gleich die ganze Familie kennen lernen soll.
  • Susanne und Kurt brauchen ein Au-pair Mädchen, –> weil sie viel arbeiten und das  Baby bald kommt.
  • Warum bekommt Maria des Wohnzimmer? –> Weil es das einziger frei Zimmer ist.

1 . Kennenlernen

1. Sehen Sie die Fotos an. Was meinen Sie?

2. Was passt? Ergänzen Sie: die Geschwister * das Ehepaar

3. Sehen Sie die Fotos an und hören Sie.

4. Wer ist wer? Zeigen Sie: Kurt * Susanne * Larissa * Simon * Maria

5. Ergänzen Sie die Namen.

6. Marias Reise. Kreuzen Sie an: richtig oder falsch?

0 . Die erste Stunde in Kurs

1.  Stellen Sie sich vor : Wie heißen Sie? (vorstellen : to introduce | sich :   yourself, him,  oneself,  himself,  herself..)

Abdessamad Idrissi !

2. Arbeiten Sie zu zweit. Fragen Sie Ihre Partnerin / Ihren Partner und ergänzen Sie den Fragebogen.

Vorname           : ……………………….
Name                  : ……………………….
Heimatland      : ……………………….
Stadt                   : ……………………….
Seit wann hier : ……………………….
Sprachen           : ……………………….
Hobbys              : ……………………….
Beruf                   : ……………………….
Familie               : ……………………….

3. Im Kurs: Stellen Sie Ihr Partnerin / Ihren Partner vor.

Das ist Bob.
Er kommt aus Jamaika.

Mixing getChildByName and gotoAndStop

Sometimes I want to reference objects by thier instance names, and want to access some frames inside this objects (Movieclips), her’s how you mix the two;


// button animator
function animate_this(brother:SimpleButton) {
// add event listners to this button
brother.addEventListener(MouseEvent.MOUSE_OVER, animate_mc_over);
brother.addEventListener(MouseEvent.MOUSE_OUT, animate_mc_out);
brother.addEventListener(MouseEvent.MOUSE_DOWN, animate_mc_down);
brother.addEventListener(MouseEvent.MOUSE_UP, animate_mc_out);
var brother_name:String=brother.name;
var brother_name_regx:RegExp=/btn_/g;
var target_name:String=brother_name.replace(brother_name_regx,"mc_");

// animate the coresponding clip
function animate_mc_out(event:MouseEvent):void {
MovieClip(brother.parent.getChildByName(target_name)).gotoAndStop(1);
}
function animate_mc_over(event:MouseEvent):void {
MovieClip(brother.parent.getChildByName(target_name)).gotoAndStop(2);
}
function animate_mc_down(event:MouseEvent):void {
MovieClip(brother.parent.getChildByName(target_name)).gotoAndStop(3);
}
}

Dynamic text inside buttons and masks

When working in flash and programing as3, you have to think of the whole project from start to finish befor you write the first line of code or draw the first pixel in your timeline!

I’m the sort of guys who start a project by spliting it to parts/steps, but I found this methode not working good, lets examin this scenario toghter;
- in the beging of the project, the client didn’t tell if the site will be multilangual, so I created buttons on the timeline and animated the frames using masks.
- when the project is finished and working, the client come again and ask me to make the project multilangual, that means the texts inside buttons should be dynamic!
i taught it’s easy, but I was wrong, I discouvered that dynamic text inside buttons to be able to work, ther should be ;
* textfields should always be in the first keyframe, also the button containg this textfield or parent buttons should be in the first frame
* ther should be no timeline masks over the button, if you want masking create them dynamicly

that’s a big probleme since i created many buttons on the timeline, so i have to redo the whol stuff!!

AS3 is a language that takes to to the next level in flash authoring/programing; before as3, we really don’t care about creating buttons or creating movieclips and turning them to buttons, but now, you should think a lot befor going to the next step.

the weird function position !

I come across a weird problem when I wanted to delete some event listners:


public class test extends MovieClip
 {
 var already_loaded:Boolean = false;
 public function test ( )
 {
 reload ();
 btn.addEventListener (MouseEvent.MOUSE_DOWN, reload);

function reload ()
 {
 if (already_loaded == true)
 {

trace ("a hasEventListener "+mc.hasEventListener(MouseEvent.MOUSE_DOWN));
 mc.removeEventListener (MouseEvent.MOUSE_DOWN, tracer);
 trace ("b hasEventListener "+mc.hasEventListener(MouseEvent.MOUSE_DOWN));
 }

mc.addEventListener (MouseEvent.MOUSE_DOWN, tracer);
 function tracer (event:MouseEvent):void
 {
 trace ("ignit.");
 }

}
 already_loaded = true;
 }
 }

this code doesn’t work, but when i change the position of the function tracer(), it works


<pre>public class test extends MovieClip
 {
 var already_loaded:Boolean = false;
 public function test ( )
 {
 reload ();
 btn.addEventListener (MouseEvent.MOUSE_DOWN, reload);

function reload ()
 {
 if (already_loaded == true)
 {

trace ("a hasEventListener "+mc.hasEventListener(MouseEvent.MOUSE_DOWN));
 mc.removeEventListener (MouseEvent.MOUSE_DOWN, tracer);
 trace ("b hasEventListener "+mc.hasEventListener(MouseEvent.MOUSE_DOWN));
 }

mc.addEventListener (MouseEvent.MOUSE_DOWN, tracer);
 }
 function tracer (event:MouseEvent):void
 {
 trace ("ignit.");
 }

already_loaded = true;
 }
 }</pre>

int vs Number vs uint

In computing, signedness is a property of variables representing numbers in computer programs. A numeric variable is signed if it can represent both positive and negative numbers, and unsigned if it can only represent positive numbers.

by senocular

The general concensus is, use int when you’re not dealing with division or multiplication by decimal values. Generally, they’re best used for values used with +/- such as increment variables in loops.

Number is used for everything else but color which (esp when dealing with Alpha) you should use uint - in fact thats about the only time you should use uint.

by vijayram
As you are aware, Number data-type can accepts decimal values and hence floating-point operator(multiplication and division) is quicker when data-typed to Number.
So to avoid this performance overhead of implicit conversion, its better to data-type your variable to “int” during addition and subraction and whilst division and multiplication is involved use “Number” data-type.