0 Replies Latest reply on Jul 24, 2007 11:07 AM by worldthreat

    unloading JUST a movieclip in external swf 

    worldthreat
      Ok.... hmmmmm. I am currently working on a flash site that loads external SWFs for each page. one of the SWFs contains a sitepal movie. the sitepal has been coded to stop playing and unload on a frame change but it keeps playing when a link in the index is clicked and another SWF comes in. (in other words there is no frame change. the new SWF loads but the old one keeps playing)

      make sense?

      I just need the site pal to stop playing when the next SWF loads!

      each link on the bottom is part of the main.swf (index.swf)...
      I need the links on the bottom to "turn off" the SWF when a new page is choosen. the External SWFs are labled 1-5....
      attached is a simple diagram in .jpg format explaining the functionality of the site!

      : )

      any insight is appreciated...


      PS

      IM NO CODE MONKEY.... more of a point-click, copy-paste type o dude..

      Attach Code

      //the code for the main SWF is:

      if (oMenu != cMenu) {
      _root.Menu_Bar.Menu_Buttons["Menu"+cMenu].gotoAndStop("Hit");
      _root.Menu_Bar.Menu_Buttons["Menu"+oMenu].gotoAndPlay("Out");
      if (cMenu == 0) {
      _root.Logo.gotoAndStop(2);
      tv = -1000;
      } else {
      tv = 0;
      }
      if (oMenu == 0) {
      contentReady = 1;
      }
      if (cMenu != -1000) {
      _root.Logo.gotoAndStop(1);
      if (oMenu != -1000) {
      Holder.Movies.play();
      }
      }
      oMenu = cMenu;
      }
      imageChange();
      contentChange();
      Slider();
      function Slider() {
      if (showC == 1) {
      Holder.Movies._x = Holder.Movies._x+((tv-Holder.Movies._x)/6);
      Holder.Shade._x = Holder.Shade._x+((tv-Holder.Shade._x)/4);
      }
      }
      function contentChange() {
      if (contentReady == 0) {
      for (i=1; i<=nMenus; i++) {
      if (i == cMenu) {
      _root.StoredActions.Holder.Movies.Holder2["CMovie"+i]._x = 0;
      } else {
      _root.StoredActions.Holder.Movies.Holder2["CMovie"+i]._x = 3000;
      }
      }
      contentReady = 0;
      }
      }
      function imageChange() {
      if (imageReady == 1) {
      for (t=1; t<=nThumbs; t++) {
      if (t == cThumb) {
      _root.Images.Images["Image"+t]._x = 0;
      } else {
      _root.Images.Images["Image"+t]._x = 2000;
      }
      }
      imageReady = 0;
      }
      }


      //the code for sitepal is:

      stop();
      cs_nosound._xscale = 75;
      cs_nosound._yscale = 75;
      //
      System.security.allowDomain("vhost.oddcast.com", "vhss-a.oddcast.com", "vhss-c.oddcast.com");
      //
      cs_nosound.loadMovie(" http://vhost.oddcast.com/vhsssecure.php?doc=http%3A%2F%2Fvhost.oddcast.com% 2Fgetshow.php%3Facc%3D30369%26ss%3D551435%26sl%3D0 %26embedid%3Ded177db7b6d76db7541ed740370ed575&edit=0&acc=30369&loading=1&bgcolor=0x&first slide=1");
      function vh_sceneLoaded(sceneIndex) {