dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: this doesnt work

  1. #1
    Registered N00b
    Join Date
    Jan 2005
    Location
    i'm a noob
    Posts
    208

    this doesnt work

    this isnt working
    PHP Code:
    stop();
    if (
    place 0) {
        
    gotoAndPlay(22);
    }
    if (
    place 0) {
        
    gotoAndPlay(3);
    }
    if (
    place 0) {
        
    gotoAndPlay(3);

    could ne one help me?
    ^ noob

  2. #2
    Uses MX 2004 Pro Quixx's Avatar
    Join Date
    Nov 2004
    Location
    U.S.
    Posts
    877
    Give this a try:
    Code:
    stop();
    if (place == 0) {
    	gotoAndPlay(22);
    } else {
    	gotoAndPlay(3);
    }

  3. #3
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    In other words, an if statement takes 2 "==", not one.
    Otherwise you're only setting "place" to equal 0 each time you go through place = 0.

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