in flash8 the propertie is _visible, check it in the flash9 help

--Pedro Taranto


Dennis Asher escreveu:
I've managed to avoid OOP till now but AS3 is here and no choice now.
What's wrong in the class below? The code in the mouseover/mouseout
functions do not reference the textfield correctly. I've tried adding:

event.hello.visible = true;

and

event.target.hello.visible = true;
without success. May be a general OOP issue rather than specific to AS3.
---------------------------------------------------------------------------------

package {
  import flash.display.MovieClip;
  import flash.events.MouseEvent;
  import flash.display.DisplayObjectContainer;
  import flash.text.TextField;
public class Location extends MovieClip {
     public function Location() {
        this.addEventListener(MouseEvent.MOUSE_OVER, mouseOverListener);
        this.addEventListener(MouseEvent.ROLL_OUT, mouseOutListener);
var hello:TextField = new TextField();
    addChild(hello);
    hello.text = this.name;
       hello.visible = false;


        }
private function mouseOverListener(event:MouseEvent):void { hello.visible = true;
     }
     private function mouseOutListener(event:MouseEvent):void {
hello.visible = true; }
 }
}
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to