that's really good if you need more help include another .fla that says what it needs with your updated scripts
Receive input from a temperature sensor in AS3/AIR
okay, would sure do. Thanks.
Code: stage.addEventListener(MouseEvent.MOUSE_MOVE, showLD2); function showLD2 (e:MouseEvent):void { if (mouseY <= 344 && workWindow.LD2nd.visible = false ){ workWindow.LD2nd.visible = true; } } Please what do you reckon would be the best way to frame the above syntax, line 3 more specifically
stage.addEventListener(MouseEvent.MOUSE_MOVE, showLD2); function showLD2 (e:MouseEvent):void { if (mouseY <= 344 && workWindow.LD2nd.visible = false ){ workWindow.LD2nd.visible = true; } }
LD2nd.visible needs == not = alone. stage.addEventListener(MouseEvent.MOUSE_MOVE, showLD2); function showLD2 (e:MouseEvent):void { if (mouseY <= 344 && workWindow.LD2nd.visible == false ){ workWindow.LD2nd.visible = true; } }
Thanks. Erm....I don't know but it doesn't seem to be obeying the "&& workWindow.LD2nd.visible == true" condition before executing the whole code. Is there something I'm missing?
if it is not visible the mouse event can't see it, I recommend you use alpha to hide it
also it is workWindow.visible that's currently false not workWindow.LD2nd.visible
View Tag Cloud
Forum Rules