;

PDA

Click to See Complete Forum and Search --> : basic script not working (visible not visible)


dave707
04-01-2005, 03:40 PM
If I put this in the frame action script

txt1._visible=false;

txt1 stays visible

I hope this is some simple oversight - any i deas on why txt1 is not being hidden?

pellepiano
04-01-2005, 05:28 PM
So have you named the textfield ( if that is what it is ). Maybe you gave it a variable name instead of a instance name.

dave707
04-01-2005, 05:43 PM
no variable just a dynamic text box called txt1
I don't know what an instance is

To recreate...

1) draw a dynamic text box on frame called txt1
2) add action script to frame
txt1._visible = false;
3) play flash movie and you will see dynamic text box is still there

thanks for any help

pellepiano
04-01-2005, 06:07 PM
Well, I tried it before I posted, and it worked fine. So maybe you spelled it wrong or dont have it as the instance name. ( as you of course have to name the textfield ).

If you click the textfield and check the Property Panel you will see that there are two places to fill in in names. One is the variable name and one is the instance name. Write the name there.

The script and textfield also have to be in the same timeline.

dave707
04-01-2005, 06:24 PM
this variable/instance naming problem could be my difficulty.

I right click on dynamic textfield, then click show properties.

There is no place where I can enter a variable or instance name - that is located on the Score/Timeline window where I right click and then click Rename...again no differentiation between variable or instance

The values available on the Properties window are following when I have the All tab selected - there is no place to enter a variable or instance name here...

Look:
Type
Color
has a border
is read only
text selectable
alignment
is multiline
word wraps
has scroll bar
scroll bar details
has html
is a password

pellepiano
04-01-2005, 06:32 PM
I have to apologize. This happens once in a while.

Im on the wrong forum. Sorry for that, I belong in the Flash forum and accidently tried to answer your question.

No wonder things did not turn out the way it should =)

Sorry about all this. I will look harder on the topic next time.

dave707
04-01-2005, 06:36 PM
ok no problem

anyone else have an idea on this problem
it seems like it should be very simple
yet our company will not purchase KoolMoves until
some basic action scripts are able to be completed

thanks