A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Adding action to button stops other action.

  1. #1
    Senior Member
    Join Date
    Sep 2002
    Location
    Clogland
    Posts
    100
    Flash MX.....

    I have two frames, there resides on the stage a button with the instance name "blabla".

    First frame actionscript is.....

    blabla._y = blabla._y + 1;

    Second frame actionscript is........

    gotoAndPlay(1);

    The button slides down the screen when published, that is the desired effect.

    Problem..... as soon as I add any actionscript to the button, even just two comment slashes "//", the movement stops.

    I have a feeling that there is some really basic concept that is flying over my head at the moment.





  2. #2
    half as fun, double the price senocular's Avatar
    Join Date
    Feb 2002
    Location
    San Francisco, CA (USA)
    Posts
    4,358
    I havent been able to duplcate the effect. Maybe if you could post an example?

  3. #3
    Senior Member
    Join Date
    Sep 2002
    Location
    Clogland
    Posts
    100
    Certainly, I was hoping this thread wouldn't sink without trace.

    I do have a feeling although that it may have something to do with the fact that I am working on a Macintosh.

    Working example......

    http://www.hodsign.com/aButtontest/buttontest.html

    Flash file......

    http://www.hodsign.com/aButtontest/buttontest.fla

    Second, non-working example.......

    http://www.hodsign.com/aButtontest/buttontest2.html

    Flash file.....

    http://www.hodsign.com/aButtontest/buttontest2.fla

    The only difference in version 2 is that I have added two comment slashes "//" to the actions for the button that scrolls in the first example.

  4. #4
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,786

  5. #5
    Senior Member
    Join Date
    Sep 2002
    Location
    Clogland
    Posts
    100
    Thanks (again) gSOLO_01 for taking the time to sort that one for me.

    It was confusing the living daylights out of me, back to the project......................


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