A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: how to use if statement

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    1

    how to use if statement

    i want to make if the object visable false then go to next slide

    onClipEvent(enterFrame){
    if (_root.ship1.visible=="false"){
    _root.gotoAndStop(4);
    }
    }

  2. #2
    Designer, Programmer, Musician angelhdz's Avatar
    Join Date
    Mar 2010
    Posts
    971
    Actionscript Code:
    onClipEvent(enterFrame){
    if (_root.ship1._visible==false){
    _root.gotoAndStop(4);
    }
    }

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