PDA

View Full Version : TextField over mc.


piernik
10-13-2007, 10:06 AM
Hi, I'm transfering from AS1 to AS3 and have few problems like this one.

I've got mc1 which has mc (with mouse_over action) and dynamic textfield inside. And another mc2 with the sam mc and tf inside.
Problem is that when mc1's textfield is over mc2's mc - the mc2.mc over action don't work... How to fix it?

In attachment you can see the example:
f.ex. zoom in to Silesia (at the middle bottom, where is lots of dots) then mouse over Goczałkowice Zdrój and then Pszczyna which is not working any more...

PS in AS1 (probably in AS2 too) that was working...

Flash Gordon
10-13-2007, 06:24 PM
_txt.mouseEnabled = false;

piernik
10-13-2007, 06:30 PM
not working :(

here's my example file (bu is button)
There are dirts from previous code.
package {
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.text.TextFieldAutoSize;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.display.Sprite;
import bu;

public class test extends MovieClip {
private var _bu:bu
public var id:Number;
public var i:Number;
public var najwyzszy_poziom:Number;
private var nazwaPoczY:Number;
private var nazwa:TextField;

public function test() {
_bu=new bu();
addChild(_bu);
var container:Sprite = new Sprite();
container.name = "container";
addChild(container);
nazwa = new TextField();
nazwa.autoSize = TextFieldAutoSize.CENTER;
nazwa.selectable=false;
//nazwa.background = true;
//nazwa.border = true;

var format:TextFormat = new TextFormat();
format.font = "Tahoma";
format.color = 0x000000;
format.size = 50;
//format.underline = true;

nazwa.defaultTextFormat = format;
container.addChild(nazwa);
nazwa.x=200;
nazwa.y=100;
nazwa.text="dfdf";
container.mouseChildren=false;
nazwa.mouseEnabled=false;
}
}
}