Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    .onRelease help (Showing/Hiding)

    Hello from Sweden

    I want to show and hide some movieclips.
    The clips are called

    text
    textskit

    and the buttons

    omoss
    webshop

    But I cant get it to work. What am I doing wrong?

    Code:
    stop(); 
    text._visible=false;
    textskit._visible=false;
    
    omoss.onRelease=function()
        {text._visible=true;}
    
    webshop.onRelease=function()
        {textskit._visible=true;}
    	
    webshop.onRelease=function()
    	{text._visible=false;}
    
    omoss.onRelease=function()
    	{textskit._visible=false;}
    BR Patrik

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Hello from Germany

    You might need to put _root. in front

    Code:
    _root.text._visible=true;
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.


  •  

    Posting Permissions

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