1 Reply Latest reply on May 12, 2008 5:45 PM by Ned Murphy

    Very Odd...

    Tony Heagren Level 1
      Started a new project and fell over before I even got out of the gate !
      If you have two minutes (literally) do what I did and let me know where I went wrong.

      New movie - rectangle tool - make a vertical bar at the left hand side - convert to MC. instance name "sidebar".
      Make an external .txt file which reads "sidebar=0xff0000" call the file "settings.txt".
      Back in Flash make a new MC called "palette".
      Frame one actions read "loadVariables("settings.txt", this.palette);
      Frame 3 actions read:
      myColor = new Color(_root.sidebar);
      myColor.setRGB(_root.pallet.sidebarcolor);

      So far so good - if you test your movie the sidebar will turn red.
      Then I tried to animate the sidebar as a timeline simple motion tween - no joy.
      Tried lots of things to no avail. It seems that once the colour has been set the MC "sidebar" goes deaf...
      Any ideas ?
      Best wishes
      Tony
        • 1. Re: Very Odd...
          Ned Murphy Adobe Community Professional & MVP
          There's something confused or missing about your story. Where does _root.pallet.sidebarcolor come from (with palette mispelled as well)... From what I was able to decipher of the story, if I comment that line out sidebar moves along.