A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: tearing out my hair: version problem

  1. #1
    Junior Member
    Join Date
    Jul 2001
    Posts
    5
    I'm pretty much a beginner, but I'm getting experience fast.

    I've created buttons that should call a function that assigns variables and advances to a certain frame.

    The trick is that the buttons work when I publish it in a flash 5 format, but they don't work when I publish as flash 6. This makes me crazy.

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Planet Earth
    Posts
    298
    Post some code, otherwise, you will probably get ignored in this forum.

  3. #3
    Junior Member
    Join Date
    Jul 2001
    Posts
    5
    I'm not sure what information is helpful, or if someone just knows why things would be different between the two versions. Anyway, The button code is:

    on (release) {
    goforit(bn1, bn1t);
    }

    Here's the function called:

    function goforit(chap, titlevar) {
    title = titlevar;
    b1 = chap+"1.swf";
    b2 = chap+"2.swf";
    b3 = chap+"3.swf";
    unloadMovieNum(2);
    unloadMovieNum(3);
    unloadMovieNum(4);
    gotoAndPlay("intro");
    }

    Am I not defining variables properly? I tried to debug (and got totally lost because I'm new to all this), but did find some variables were undefined.

    I may just need to be referred to a tutorial, but it's mostly frustrating that it works in one version and not the other.

  4. #4
    Junior Member
    Join Date
    Jul 2001
    Posts
    5
    In version 6, if I change the button code to:

    on (release) {
    _parent.goforit(bn2, bn2t);
    }

    Then it will, in fact, call the function because it advances to the appropriate frame, but the variables are not sent. Why does identical code behave differently in the two versions? It works perfectly in 5.

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