33 Replies Latest reply on Apr 11, 2010 12:33 PM by kglad

    In experienced flash designer that needs help please

    FlashNewGuy Level 1

      I am currently working on a rotating banner on my works website, I am  trying to make a banner that rotates 4 banners out randomly and with  button control.I currently have the buttons setup up and the banners are  attached all together in a long film strip. Each button when pressed  moves the strip to the corresponding position on the film strip for the  right banner. I looked at couple of tutorials, and figured it out. My  problem is that I do not know how to get the banners to rotate  automatically. They just move by the button presses, So how would i  modify my code to either rotate the banners sequentially or by random?  Sorry if I am long winded : Here is my code. Hope Someone can help, will post any screen images if that will help.

       

      Layer  with actions:

           Movieclip.prototype.elasticMove =  function(target, accel, convert) {
           step = step * accel + (target - this._x) * convert;
           this._x += step;
      }

       

      Movie Clip( My Film Strip of Banners) actions:

      onClipEvent  (enterFrame) {

       

          elasticMove(_root.newX, 0.5, 0.3)

       

      }

       

      onClipEvent(load){
      _root.newX= 1200;
      }

      Buttons actions(only showing action for one button the rest  are the same except the new position they call):

      on(release){
      _root.newX=1200;
      }

       

       

       

        • 1. Re: In experienced flash designer that needs help please
          kglad Adobe Community Professional & MVP

          you must have stop() on your _root timeline to prevent one banner display from advancing to the next.  remove those stop() functions.

          • 2. Re: In experienced flash designer that needs help please
            FlashNewGuy Level 1

            Thankyou for responding back

            I do not have my banners in blocked out areas on the timeline, all i have is three layers that are one frame a piece,the top layers has my buttons, the second layer has my MC(which is just 4 300x600 images next to each other, one after another like a strip), and my bottom layer has the action in it that i deescriped earilier ( labled in the post as:Layer  with actions:). Here is a snap shot of my project in flash maybe it might help, and sorry if i am not explaining myself

            workspace.jpg

            • 3. Re: In experienced flash designer that needs help please
              kglad Adobe Community Professional & MVP

              my mistake.

               

              you just need to create a timer that automatically changes your _root.newX values:

               

              var newXA:Array=[0,600,1200,1800];
              var index:Number=1;


              setInterval(newXF,3000);


              function newXF(){

              _root.newX = newXA[index%newXA.length];

              index++;

              }

              • 4. Re: In experienced flash designer that needs help please
                FlashNewGuy Level 1

                Thank A lot you are a life saver,

                It looks like this is the way to go but the only problem i have is that it does automatically change now to a banner but it changes to the same one when you open it and when you press a button to go to a different banner it goes to a banner but after a couple seconds it switchs right back to the same banner that comes up when it automatically cchanges. I entered that code in my actions layer right below my other code is that correct( it looks like this)

                 

                Movieclip.prototype.elasticMove = function(target, accel, convert) {

                    step = step * accel + (target - this._x) * convert;

                    this._x += step;

                }

                var newXA:Array=[0,600,1200,1800];

                var index:Number=1;

                setInterval(newXF,8000);

                function newXF(){

                _root.newX = newXA[index%newXA.length];

                index++;

                }

                 

                And i am not sure about this timer function how would i do that. Sorry if i keep bugging you but now you got me excited that it now at least  jumps to a banner in a couple second(the same on all the time) which is what i want, so i feel so close to getting this to work.

                • 5. Re: In experienced flash designer that needs help please
                  kglad Adobe Community Professional & MVP

                  have your buttons update index.

                  • 6. Re: In experienced flash designer that needs help please
                    FlashNewGuy Level 1

                    Alright I am sorry to ask you again , but how would I update the index, I see earlier in that code you wrote where the index was but, what would the code look like on the actual buttons? Agian I really appreciate your help

                    • 7. Re: In experienced flash designer that needs help please
                      kglad Adobe Community Professional & MVP

                      for example:

                       

                      on(release){
                      _root.newX=1200;

                      _root.index=3;
                      }

                      • 8. Re: In experienced flash designer that needs help please
                        FlashNewGuy Level 1

                        I would assume that the index(3)<----- that number will change for  each button, so for ex: if you had four buttons that number would be 1-4  , each button would have a different index. And by the way has anybody  told you rock, you been more then helpful


                        • 9. Re: In experienced flash designer that needs help please
                          FlashNewGuy Level 1

                          Also I just entered in that code for each button and it look like this:
                          on(release){
                          _root.newX=-599;
                          _root.index=4;
                          }

                           

                          I  used 4 because it is my fourth button, but how does it update the index  like you were talking about , is it suppose to update
                          Movieclip.prototype.elasticMove  = function(target, accel, convert) {
                              step = step * accel +  (target - this._x) * convert;
                              this._x += step;
                          }
                          var  newXA:Array=[0,600,1200,1800];
                          var index:Number=1;<-------------does it  update here from the buttons( should there be some variable there so it  knows to replace it out with the index from the                                                              buttons
                          setInterval(newXF,9000);
                          function  newXF(){
                          _root.newX = newXA[index%newXA.length];
                          }

                           


                          I  left all the code the same on the project except I added in that code to  all four of those buttons and it still when you test it it opens and  waits the 9000( which i assume is what that number stands for is some  sort of time before it changes) and changes right to that same slide  which for me should be the one the is _root.newX=0; and also still have  the problem when i click a button to the particular banner for a button  it then automatically changes back to the same slide that comes up all  the time when it changes. Any other suggestion before I throw my  computer out the window


                          • 10. Re: In experienced flash designer that needs help please
                            FlashNewGuy Level 1

                            sorry earlier tried posting , but didn't post everything i wanted so went back and edited not sure if you get the post when they get edited but went ahead and include the new code for you to look at please

                            • 11. Re: In experienced flash designer that needs help please
                              kglad Adobe Community Professional & MVP

                              you're inconsistant.  newX takes any of 4 values.  i thought those were 0,600,1200 and 1800.  but, i see you have a button using -599.  i don't see how that fits.

                               

                              what are the values you want to use for newX?  ie, if you're happy with the way your buttons works, show all 4 code snippets for those buttons.

                              • 12. Re: In experienced flash designer that needs help please
                                FlashNewGuy Level 1

                                I apologize for not being more consistent and not catching that, I was using your numbers earlier but here is what each buttons code looks like:

                                button1:on(release){

                                _root.newX=1200;

                                }

                                Button 2:on(release){

                                _root.newX=599;

                                }

                                Button 3:on(release){

                                _root.newX=0;

                                }

                                Button4:on(release){

                                _root.newX=-599;

                                }

                                 

                                Now Earlier you sent me the code to add which was this:

                                on(release){

                                _root.newX=1200;

                                _root.index=3;*

                                • }

                                Now if i get this correct, i replace the code i already have for the buttons with this code, but what is going in for the _root.index=3;**} , I assume you were just using three as a example number do i put in the same number that it has for the _root.newX.

                                Also when I put in that code earlier flash , flash came up with some error for the code for one of the buttons that i used that code, and it came with these errors:

                                 

                                Statement must appear within on handler _root.index=3;*

                                Operator '*' must be followed by an operand * }

                                Statement must appear within on handler_root.index=3;*

                                 

                                Also Does this could look okay that I have in my actions layer:

                                Movieclip.prototype.elasticMove = function(target, accel, convert) {

                                 

                                    step = step * accel + (target - this._x) * convert;

                                 

                                    this._x += step;

                                 

                                }

                                 

                                var newXA:Array=[1200,599,0,-599];

                                 

                                var index:Number=1;

                                 

                                setInterval(newXF,9000);

                                 

                                function newXF(){

                                 

                                _root.newX = newXA[index%newXA.length];

                                 

                                }

                                 

                                And earlier you said the button need to update the index are they updating where it says :var index:Number=1;

                                Sorry if i am very unskilled in flash just trying to get a hang on it would it be easier maybe if i sent you my flash file to look at?Again thank you very much

                                 

                                Message was edited by: FlashNewGuy

                                • 13. Re: In experienced flash designer that needs help please
                                  kglad Adobe Community Professional & MVP

                                  use:

                                   


                                   

                                  var newXA:Array=[-599,0,599,1200];
                                  startInterval(1)

                                   

                                  function startInterval(ind:Number){

                                  index = ind;

                                  clearInterval(newXI);

                                  newXI = setInterval(newXF,3000);

                                  }


                                  function newXF(){

                                  _root.newX = newXA[index%newXA.length];

                                  index++;

                                  }

                                   

                                  button1:

                                  on(release){

                                  _root.newX=1200;

                                  _root.startInterval(0);

                                  }

                                  Button  2:

                                  on(release){

                                  _root.newX=599;

                                  _root.startInterval(3);

                                  }

                                  Button 3:

                                  on(release){

                                  _root.newX=0;

                                  _root.startInterval(2);

                                  }

                                  Button4:

                                  on(release){

                                  _root.newX=-599;

                                  _root.startInterval(1);

                                  }

                                   

                                  • 14. Re: In experienced flash designer that needs help please
                                    FlashNewGuy Level 1

                                    Well I didn't get any errors for any of that code which rocks but it still just always goes to the same banner all the time after a couple a seconds even when you press a button it goes to different banner but then goes right back to the same banner that always wants to stay on , it always goes to the banner that would be at button three at position 0. Do you think that my code on the movie clip needs to be changed it looks like this:

                                     

                                    onClipEvent (enterFrame) {

                                     

                                        elasticMove(_root.newX, 0.5, 0.3)

                                     

                                    }

                                     

                                    onClipEvent(load){

                                    _root.newX= 599;

                                    }

                                    I would assume all this is correct, the on clip is just telling it to start at that position.

                                     

                                    This is what all my new code looks like :

                                    actions layer frame 1:

                                    Movieclip.prototype.elasticMove = function(target, accel, convert) {

                                        step = step * accel + (target - this._x) * convert;

                                        this._x += step;

                                    }

                                    var newXA:Array=[-599,0,599,1200];

                                    startInterval(1)

                                     

                                    function startInterval(ind:Number){

                                        Index=ind;

                                     

                                    clearInterval(newXI);

                                     

                                    newXI=setInterval(newXF,3000);

                                    }

                                     

                                    function newXF(){

                                        _root.newX=newXA[index%newXA.length];

                                    }

                                    Movie clip on its on layer on frame 1 of that layer:

                                    onClipEvent (enterFrame) {

                                     

                                        elasticMove(_root.newX, 0.5, 0.3)

                                     

                                    }

                                     

                                    onClipEvent(load){

                                    _root.newX= 1200;

                                    }

                                     

                                    Buttons( I will only show one because i did the code exactly they way you wanted me to):

                                    /* Button 1 */

                                    on(release){

                                    _root.newX=1200;

                                    _root.startInterval(0);

                                    }

                                     

                                    Is there a way I could send you my flash file to look at ? It might help clear some of my confusion I am causing you. Again, Thank you very much for helping a beginner out

                                    • 15. Re: In experienced flash designer that needs help please
                                      FlashNewGuy Level 1

                                      O this might help this project file is what i based mine off, http://www.actionscript.org/showMovie.php?id=361

                                      • 16. Re: In experienced flash designer that needs help please
                                        kglad Adobe Community Professional & MVP

                                        you didn't copy and paste the code i suggested.

                                        • 17. Re: In experienced flash designer that needs help please
                                          FlashNewGuy Level 1

                                          i thought I did, I am so confused, this is so discouraging . Did i not paste it in the right spot . This making me feel i will never figure it out and i am sure your are getting tired of my dumb questions. Here is my code again :

                                           

                                          Movie Clip on movie clip layer on frame one:

                                          onClipEvent (enterFrame) {

                                           

                                              elasticMove(_root.newX, 0.5, 0.3)

                                           

                                          }

                                           

                                          onClipEvent(load){

                                          _root.newX= 1200;

                                          }

                                           

                                           

                                           

                                          Buttons 1:

                                          on(release){

                                          _root.newX=1200;

                                          _root.startInterval(0);

                                          }

                                          Button2:

                                          on(release){

                                          _root.newX=599;

                                          _root.startInterval(3);

                                          }

                                          Button3:

                                          on(release){

                                          _root.newX=0;

                                          _root.startInterval(2);

                                          }

                                          Button4:

                                          on(release){

                                          _root.newX=-599;

                                          _root.startInterval(1);

                                          }

                                           

                                          Action Layer frame 1:

                                          Movieclip.prototype.elasticMove = function(target, accel, convert) {

                                              step = step * accel + (target - this._x) * convert;

                                              this._x += step;

                                          }

                                          var newXA:Array=[-599,0,599,1200];

                                          startInterval(1)

                                           

                                           

                                           

                                          function startInterval(ind:Number){

                                           

                                          index = ind;

                                           

                                          clearInterval(newXI);

                                           

                                          newXI = setInterval(newXF,3000);

                                           

                                          }

                                           

                                           

                                          function newXF(){

                                           

                                          _root.newX = newXA[index%newXA.length];

                                           

                                          index++;

                                           

                                          }

                                          Not Sure what I did wrong I thought I copied everything right, Did you happen to look at that link i sent you.Sure I cant send you my flash.

                                          Again a million thanks and thanks for walking me through this

                                          • 18. Re: In experienced flash designer that needs help please
                                            kglad Adobe Community Professional & MVP

                                            use:

                                             


                                             

                                            var  newXA:Array=[-599,0,599,1200];
                                            startInterval(1)

                                             

                                            function startInterval(ind:Number){

                                            index = ind;

                                            clearInterval(newXI);

                                            newXI = setInterval(newXF,3000);

                                            }


                                            function newXF(){

                                            _root.newX = newXA[index%newXA.length];

                                            index++;

                                            }

                                             

                                            button1:

                                            on(release){

                                            _root.newX=1200;

                                            _root.startInterval(0);

                                            }

                                            Button  2:

                                            on(release){

                                            _root.newX=599;

                                            _root.startInterval(3);

                                            }

                                            Button 3:

                                            on(release){

                                            _root.newX=0;

                                            _root.startInterval(2);

                                            }

                                            Button4:

                                            on(release){

                                            _root.newX=-599;

                                            _root.startInterval(1);

                                            }

                                            • 19. Re: In experienced flash designer that needs help please
                                              FlashNewGuy Level 1

                                              Here the code as i copied and pasted into it:

                                              Code

                                              Movieclip.prototype.elasticMove = function(target, accel, convert) {

                                                  step = step * accel + (target - this._x) * convert;

                                                  this._x += step;

                                              }

                                               

                                               

                                              var  newXA:Array=[-599,0,599,1200];

                                              startInterval(1)

                                                 

                                              function startInterval(ind:Number){

                                              index = ind;

                                               

                                              clearInterval(newXI);

                                               

                                              newXI = setInterval(newXF,3000);

                                              }

                                               

                                               

                                               

                                              function newXF(){

                                              _root.newX = newXA[index%newXA.length];

                                              index++;

                                              }

                                               

                                              Errors:

                                              Scene = Scene 1,layer=actions,frame 1,Line 22 

                                              Unexpected '*' encountered        

                                              Source=index++;

                                               

                                              Scene = Scene 1,layer=actions,frame 1,Line 23 

                                              Operator '*' must be followed by an operand '}'       

                                              Statement block must be terminated by '}'             Source:function newXF(){

                                               

                                              Scene = Scene 1,layer=actions,frame 1,Line 20

                                              Statement block must be terminated by '}'

                                              Source=function newXF(){

                                               

                                              Scene = Scene 1,layer=actions,frame 1,Line 23   Syntax error.           

                                              Source=}

                                               

                                              The button don't seem to throw ant errors. But when i test it dosent move or buttons don't work

                                              • 20. Re: In experienced flash designer that needs help please
                                                FlashNewGuy Level 1

                                                Forget the last post Those errors are wrong i was doing something dumb

                                                • 21. Re: In experienced flash designer that needs help please
                                                  kglad Adobe Community Professional & MVP

                                                  please mark this thread as answered, if your problem is resolved.

                                                  • 22. Re: In experienced flash designer that needs help please
                                                    FlashNewGuy Level 1

                                                    So there are no errors . Just dosent keep going trough slides , still

                                                    just goes to the same one after a few seconds, buttons work they do change to correct slides but after a few  go back to position 0

                                                     

                                                    My code in actions Layer:

                                                    Movieclip.prototype.elasticMove = function(target, accel, convert) {
                                                        step = step * accel + (target - this._x) * convert;
                                                        this._x += step;
                                                    }

                                                     


                                                    var newXA:Array=[-599,0,599,1200];
                                                    startInterval(1)
                                                     
                                                    function startInterval(ind:Number){
                                                    index = ind;
                                                    clearInterval(newXI);
                                                    newXI = setInterval(newXF,3000);
                                                    }

                                                     

                                                      function newXF(){
                                                    _root.newX = newXA[index%newXA.length];
                                                    index++;
                                                    }

                                                    • 23. Re: In experienced flash designer that needs help please
                                                      kglad Adobe Community Professional & MVP

                                                      does the frame that contains that code play more than once?

                                                      • 24. Re: In experienced flash designer that needs help please
                                                        FlashNewGuy Level 1

                                                        What do you mean does it play more then once, it is in one frame of the layer called actions. I have three layers and they all have one frame . Should i send a snap shot ?

                                                        • 25. Re: In experienced flash designer that needs help please
                                                          kglad Adobe Community Professional & MVP

                                                          are you publishing for flash play 6 or earlier?  otherwise, your code wouldn't work, at all.

                                                           

                                                          anyway, the code i didn't write is pretty screwed up and you should fix it.  remove the code from your banner movieclip, assign it an instance name (eg, mc) and use:

                                                           

                                                          function elasticMove(mc, target, speed) {
                                                              mc._x = speed*target+(1-speed)*mc._x;
                                                          };

                                                           

                                                          mc.onEnterFrame =function(){
                                                              elasticMove(mc,_root.newX,0.1);
                                                          }

                                                          • 26. Re: In experienced flash designer that needs help please
                                                            FlashNewGuy Level 1

                                                            Ok i removed this code from the movie clip:

                                                            onClipEvent (enterFrame) {

                                                             

                                                                elasticMove(_root.newX, 0.5, 0.3)

                                                             

                                                            }

                                                             

                                                            onClipEvent(load){
                                                            _root.newX= 1200;
                                                            }

                                                             


                                                            and replaced with this:

                                                            function elasticMove(mc, target, speed) {
                                                                mc._x =  speed*target+(1-speed)*mc._x;
                                                            };

                                                            mc.onEnterFrame =function(){
                                                                 elasticMove(mc,_root.newX,0.1);
                                                            }

                                                             

                                                            Now when I publish(Flash Player 5) it dosent move or buttons work.Also comes up with these errors:

                                                            Scene=Scene1,layer=filmstrip,frame1,Line 1

                                                            Statement must appear within onClipEvent handler

                                                            source= function elasticMove(mc, target, speed) {

                                                             

                                                            Scene=Scene1,layer=filmstrip,frame1,Line 3

                                                            Statement must appear within onClipEvent handler

                                                            source = };

                                                             

                                                            Scene=Scene1,layer=filmstrip,frame1,Line 5

                                                            Statement must appear within onClipEvent handler

                                                            source= mc.onEnterFrame =function(){

                                                             

                                                            Also the Movie Clip that is out on the stage says in the properties panel Instance of Symbol 1, so in the open field I put mc like you said

                                                            workspace.jpg

                                                             

                                                             

                                                            Do i have to modify any of the code on my action layer or my buttons

                                                            • 27. Re: In experienced flash designer that needs help please
                                                              kglad Adobe Community Professional & MVP

                                                              remove all code from all objects.  there should not be any code attached to your banner and no code attached to your buttons.  click on your banner and in the properties panel assign an instance name of mc.  click on each of your buttons and in the properties panel assign them instance names button1, button2, button3, button4.

                                                               

                                                              then copy the code below, click on a frame and in the actions panel, paste:

                                                               

                                                              var newXA:Array = [-599, 0, 599, 1200];
                                                              var duration:Number = 3000;
                                                              newXF(3);

                                                              function elasticMove(mc, target, speed) {
                                                                  mc._x = speed*target+(1-speed)*mc._x;
                                                              }

                                                              function startEnterFrame() {
                                                                  mc.onEnterFrame = function() {
                                                                      elasticMove(mc,_root.newX,0.4);
                                                                      if(Math.abs(this._x-_root.newX)<1){
                                                                          delete this.onEnterFrame;
                                                                          this._x = _root.newX;
                                                                      }
                                                                  };
                                                              }

                                                              function newXF(ind:Number) {
                                                                  _root.newX = newXA[ind];
                                                                  index = (ind+1)%newXA.length;
                                                                  clearInterval(newXTO);
                                                                  newXTO = setTimeout(newXF, duration, index);
                                                                  startEnterFrame();
                                                              }

                                                              button1.onRelease = function() {
                                                                  _root.newXF(3);
                                                              };
                                                              button2.onRelease = function() {
                                                                  _root.newXF(2);
                                                              };
                                                              button3.onRelease = function() {
                                                                  _root.newXF(1);
                                                              };
                                                              button4.onRelease = function() {
                                                                  _root.newXF(0);
                                                              };

                                                              • 28. Re: In experienced flash designer that needs help please
                                                                FlashNewGuy Level 1

                                                                So i removed all the code from everything, I then went to frame one of my actions layer and hit f6, I then pasted the code you sent me into it:

                                                                var newXA:Array = ;

                                                                var duration:Number = 3000;

                                                                newXF(3);

                                                                 

                                                                function elasticMove(mc, target, speed) {

                                                                    mc._x =

                                                                speedtarget+(1-speed)mc._x;

                                                                }

                                                                 

                                                                function startEnterFrame() {

                                                                    mc.onEnterFrame = function() {

                                                                         

                                                                elasticMove(mc,_root.newX,0.4);

                                                                         

                                                                if(Math.abs(this._x-_root.newX)<1){

                                                                            delete

                                                                this.onEnterFrame;

                                                                            this._x = _root.newX;

                                                                        }

                                                                    };

                                                                }

                                                                 

                                                                function newXF(ind:Number) {

                                                                    _root.newX =

                                                                newXA[ind];

                                                                    index = (ind+1)%newXA.length;

                                                                     

                                                                clearInterval(newXTO);

                                                                    newXTO = setTimeout(newXF, duration,

                                                                index);

                                                                    startEnterFrame();

                                                                }

                                                                 

                                                                button1.onRelease =

                                                                function() {

                                                                    _root.newXF(3);

                                                                };

                                                                button2.onRelease =

                                                                function() {

                                                                    _root.newXF(2);

                                                                };

                                                                button3.onRelease =

                                                                function() {

                                                                    _root.newXF(1);

                                                                };

                                                                button4.onRelease =

                                                                function() {

                                                                    _root.newXF(0);

                                                                };

                                                                I published it and it through up a error syaing that flash player 5 didn't support Flash MX Button Instance Name , So i went in and switched it to flash player 6 and no errors. As soon as it opens it slides to the same banner and stays there and the buttons do not work. Just to clarify I was to remove all the code from the buttons and the MC and enter that code into frame one of my actions layer.

                                                                • 29. Re: In experienced flash designer that needs help please
                                                                  kglad Adobe Community Professional & MVP

                                                                  the code you posted is not the same as the code i posted.  yours has errors, mine does not.

                                                                   

                                                                  can you some some of the differences?  is the code in your flash exactly like mine or exactly like yours?

                                                                   

                                                                  if it's exactly like mine, assign instance names to your buttons that match the button names in code and as explained previously.

                                                                  • 30. Re: In experienced flash designer that needs help please
                                                                    FlashNewGuy Level 1

                                                                    Okay riped all the code out took everting off the stage sarted all over put that code you have in my actions layer in frame 1:

                                                                    var newXA:Array = [-599, 0, 599, 1200];
                                                                    var  duration:Number = 3000;
                                                                    newXF(3);

                                                                    function elasticMove(mc,  target, speed) {
                                                                        mc._x = speed*target+(1-speed)*mc._x;
                                                                    }

                                                                    function  startEnterFrame() {
                                                                        mc.onEnterFrame = function() {
                                                                             elasticMove(mc,_root.newX,0.4);
                                                                             if(Math.abs(this._x-_root.newX)<1){
                                                                                delete  this.onEnterFrame;
                                                                                this._x = _root.newX;
                                                                            }
                                                                         };
                                                                    }

                                                                    function newXF(ind:Number) {
                                                                        _root.newX =  newXA[ind];
                                                                        index = (ind+1)%newXA.length;
                                                                         clearInterval(newXTO);
                                                                        newXTO = setTimeout(newXF, duration,  index);
                                                                        startEnterFrame();
                                                                    }

                                                                    button1.onRelease =  function() {
                                                                        _root.newXF(3);
                                                                    };
                                                                    button2.onRelease =  function() {
                                                                        _root.newXF(2);
                                                                    };
                                                                    button3.onRelease =  function() {
                                                                        _root.newXF(1);
                                                                    };
                                                                    button4.onRelease =  function() {
                                                                        _root.newXF(0);
                                                                    };

                                                                     

                                                                    Then on the space in the properties pannel I coped the names you have for the buttons into their Instance  so my button instance name are:

                                                                    "button1"

                                                                    "button2"

                                                                    "button3"

                                                                    "button4"

                                                                    Then I agian went to my Movie Clip and did the same thing went to the properties panel and in instance field gave it the name "mc".

                                                                    It all looks the same as yours. When i publish i get no errors it just dosent do anything exectp move for a quick second to this :

                                                                    workspace.jpg

                                                                    Sir I would reall appreciate if i could send you this flash file , I am starting to worry I will not have this ready by monday. Can I please send you the flash file , as one fellow flash guy to another please take a look. Have you tried that project link i sent and applying your code to it it might help us out but i think it would help me so much if you could take a look at my actual file please! I will before ever in your debt if you help me get this done by monday sir. also one qucik thing i have no code in my button that is correct right .

                                                                    • 31. Re: In experienced flash designer that needs help please
                                                                      kglad Adobe Community Professional & MVP

                                                                      i don't usually download and correct files unless i'm hired.

                                                                       

                                                                      here's a sample file that should allow you to find your error(s).  in particular, focus on the instance names.  that's, most likely, where you have errors.

                                                                       

                                                                      www.kglad.com/Files/forums/Untitled-2.fla

                                                                      1 person found this helpful
                                                                      • 32. Re: In experienced flash designer that needs help please
                                                                        FlashNewGuy Level 1

                                                                        Kglad You Are The Man, I know I have been a big pain to probally to help but that helped so much , I learn alot better when I am able to reverse engineer something. I cant thank you enough, is there a way to tell adobe about how awesome of a job you do on this forum.

                                                                         

                                                                        KGLAD IS A FLASH MASTER!

                                                                        and i will now mark this a answered my friend I hope i might be able to help you someday not sure with what since you rock at flash, but maybe if you ever have any questions on after effetcs or photoshop(which i feel i am pretty knowlegeable at). Thank you, thank you. Hope to talk to you again in the future if i ever need any help( if that is okay)

                                                                         

                                                                        This is FlashNewGuy Signing off my new flash friend

                                                                        • 33. Re: In experienced flash designer that needs help please
                                                                          kglad Adobe Community Professional & MVP

                                                                          you're welcome.

                                                                           

                                                                          (and, thank you!)