buttons within a container

  • WhiteBug
  • Newbie
  • Newbie
  • User avatar
  • Posts: 9
  • Loc: KL

Post 3+ Months Ago

hie guys..

got a small problem that maybe u guys could shed some light.

currently i have a main movie with button in them, which loads .swf files into a container. and each .swf file has an intro and outro.

i have a button in one of the swf file and want to load another swf file. this works but my buttons on the main movie doesnt work :(

hope i've given enough information.

these are the codes i'm using for the main buttons.


Code: [ Select ]
on (release) {
    if (_root.currMovie == undefined) {
        _root.currMovie = "base";
        container.loadMovie("base.swf");
    } else if (_root.currMovie != "base") {
        if (container._currentframe>=container.midframe) {
            _root.currMovie = "base";
            container.play();
        }
    }
}
  1. on (release) {
  2.     if (_root.currMovie == undefined) {
  3.         _root.currMovie = "base";
  4.         container.loadMovie("base.swf");
  5.     } else if (_root.currMovie != "base") {
  6.         if (container._currentframe>=container.midframe) {
  7.             _root.currMovie = "base";
  8.             container.play();
  9.         }
  10.     }
  11. }


i still want the transitions to work well. thanks in advance :)
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Tchuki
  • Mastermind
  • Mastermind
  • Tchuki
  • Posts: 1774
  • Loc: Edinburgh

Post 3+ Months Ago

Try :
Code: [ Select ]
on (release) {
  if (_root.container.currMovie == undefined) {
   _root.container.currMovie = "base";
   container.loadMovie("base.swf");
  } else if (_root.container.currMovie != "base") {
   if (container._currentframe>=container.midframe) {
     _root.container.currMovie = "base";
     container.play();
   }
  }
}
  1. on (release) {
  2.   if (_root.container.currMovie == undefined) {
  3.    _root.container.currMovie = "base";
  4.    container.loadMovie("base.swf");
  5.   } else if (_root.container.currMovie != "base") {
  6.    if (container._currentframe>=container.midframe) {
  7.      _root.container.currMovie = "base";
  8.      container.play();
  9.    }
  10.   }
  11. }

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 13 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.