A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Background images problems

  1. #1
    Hey all,

    I have what seems like a simle problem, but I have tried everything in my bag of tricks and have been left banging my head on my keyboard.

    I am working on a few games and what I am triing to do is have the background image change with each level. I have created a mc with each image in a key frame with stop actions on each frame.

    I have tried using tell target,
    I have tried _root.bg._play();
    I have tried _root.bg._currentframe + 1;

    Any ideas?

    TNX
    Clayton

  2. #2
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    Well different levels=different scenes each scene with diff. background.

    or you can try :
    on some event like score, or level ends, movie loops back:
    gotoAndStop (frame);
    frame could be frame+1; or random

    mad_sci

  3. #3

    Tried that too

    Thanks for the help but I have tried that too, I have tried everything possible and can not figure out why it won't work, I've done the same thing before in a buttons on press event and it worked fine. This time I need to do it through actionscript.

  4. #4
    Senior Member Olorin's Avatar
    Join Date
    Aug 2000
    Posts
    1,151
    Hi,

    if (level == 2){
    _root.bg.gotoAndStop(2)
    }

    something like that should always work...

    Olorin

  5. #5

    I figured it out finally

    I had brought the games into flash 5 and the publish settings were set to flash 5, when I reset the publish settings to flash 4 everything works fine.

    Cheers and thanks all.

  6. #6
    Senior Member Olorin's Avatar
    Join Date
    Aug 2000
    Posts
    1,151
    That probably means you don't have the flash 5 player installed...

    Olorin

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