A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: basic script not working (visible not visible)

  1. #1
    Junior Member
    Join Date
    Apr 2005
    Posts
    5

    basic script not working (visible not visible)

    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?

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    So have you named the textfield ( if that is what it is ). Maybe you gave it a variable name instead of a instance name.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Junior Member
    Join Date
    Apr 2005
    Posts
    5
    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

  4. #4
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    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.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  5. #5
    Junior Member
    Join Date
    Apr 2005
    Posts
    5
    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

  6. #6
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    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.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  7. #7
    Junior Member
    Join Date
    Apr 2005
    Posts
    5
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center