A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [Help] If / else

  1. #1
    Junior Member
    Join Date
    Dec 2005
    Posts
    3

    [Help] If / else

    Dear All,

    I started working with Flash 8 few days ago, not I have this small menu problem, it loads my XML twice, when already on frame 78. So I made this actionscript:
    Code:
    on (release) {
    if (frame == 78) {
    stop();
    }else{
    gotoAndPlay(78);
    }
    }
    I dont know if "frame" is known, either way its not working.

    -Shandor

  2. #2
    Senior Member EQFlash's Avatar
    Join Date
    Jun 2002
    Location
    where i'm at
    Posts
    2,735
    it's
    PHP Code:
    on(release){
       if(
    _currentframe==78){
           
    stop();
       }else{
           
    gotoAndPlay(78);
       }

    If you don't think you're going to like the answer, then don't ask the question.

  3. #3
    Junior Member
    Join Date
    Dec 2005
    Posts
    3
    oh Thanks, how do you call those identifiers in Flash? So I can look them up somewhere.

  4. #4
    Senior Member EQFlash's Avatar
    Join Date
    Jun 2002
    Location
    where i'm at
    Posts
    2,735
    what do you mean?
    If you don't think you're going to like the answer, then don't ask the question.

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