A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: If statement with droptargets

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Posts
    2

    If statement with droptargets

    I am trying to make it so when all my boxes (Movers) are in their correct place, the winner page (currently hidden) will appear.

    Any help is appreciated! Rest of code is working fine.



    Code:
    _root.winner._visible = false;
    
    
    if((Mover._droptarget=="/Base"),(Mover2._droptarget=="/Base2"),(Mover3._droptarget=="/Base3"),(Mover4._droptarget=="/Base4"),(Mover5._droptarget=="/Base5")){ 
    	_root.winner._visible = true;
    	}

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    what version of flash and AS are you trying to use?

    your syntax looks VERY old and depricated.

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