3 Replies Latest reply on Jan 21, 2008 9:32 AM by niki tsanov

    prblm in scrollPane

    AScracker Level 1
      hi
      using the scrollplane i have loaded the imges frm the xml ..after that i need to click the particular clip then it need to display like

      the value for the mcMain = _level0.scrollPane.spContentHolder

      the value of the image name and the mc value
      Image_b1_1.jpg _level0.scrollPane.spContentHolder.Clip_0
      Image_b1_0.jpg _level0.scrollPane.spContentHolder.Clip_1
      Image_b1_2.jpg _level0.scrollPane.spContentHolder.Clip_2
      Image_b1_1.jpg _level0.scrollPane.spContentHolder.Clip_3
      Image_b1_3.jpg _level0.scrollPane.spContentHolder.Clip_4
      Image_b1_0.jpg _level0.scrollPane.spContentHolder.Clip_5
      Image_b1_1.jpg _level0.scrollPane.spContentHolder.Clip_6

      if i clicked the particular then it;s displayed like
      spContentHolder

      but it need to display like _level0.scrollPane.spContentHolder.Clip_6 when i click the clip_6 ...
      can any give me idea where i need the script

      ~~
      Sk
        • 1. Re: prblm in scrollPane
          niki tsanov Level 1
          Put your onPress function into onLoadInit() that mean target_mc.onPress=function().Or the other way is to put onPress into the movieclip in library "mcHolder" in the first frame put this.onPress.And the last is to make function for press that mean
          function pressed()
          {
          trace(this)
          };
          mcMain.onPress=pressed;
          and i think you get the correct path to your new movieclip :)
          • 2. Re: prblm in scrollPane
            AScracker Level 1
            Hi Niki ,

            i have written onpress function for the mcHolder which is in the library....
            and where i need to place this code

            function pressed()
            {
            trace(this)
            };
            mcMain.onPress=pressed;

            can u help me once again bcoz i tried this more than an hours....
            • 3. Re: prblm in scrollPane
              niki tsanov Level 1
              this.onPress=function()
              { trace(this) }
              just put this for your movieclip into library on first frame.That "this" mean you get the instance name of new attached movieclip.