+ Reply to Thread
Results 1 to 1 of 1

Problem with my "gotoAndStop(7)" "It's just showing the first frame of the 7(frame)"

This is a discussion on Problem with my "gotoAndStop(7)" "It's just showing the first frame of the 7(frame)" within the Flash English forums, part of the Flash CS3 - CS4 - CS5 category; Well , everything works fine with my (running and idle animation) gotoAndStop(1) or (2) and here is the code Code: ...

  1. #1
    Junior Member Settled In pilouk is on a distinguished road
    Join Date
    Feb 2010
    Posts
    1
    Rep Power
    0

    Question Problem with my "gotoAndStop(7)" "It's just showing the first frame of the 7(frame)"

    Well , everything works fine with my (running and idle animation) gotoAndStop(1) or (2) and here is the code

    Code:
    if (key.isDown(Keyboard.LEFT))
                {
                    runLeftRight= true;
                    scaleX = -scale;
                    gotoAndStop(3);
                    x -= 3;
                }
    but for some reason when i try to fire with this code it's just show the first frame of the "7"action
    Code:
    //FIRE
                if(key.isDown(Keyboard.CONTROL))
                {
                    gotoAndStop(7);
                    fireBullet();
                }
    I have the same problem for the jump animation
    Code:
        
    if(key.isDown(Keyboard.SPACE))
                {
                    jumping = true;
                }
                if(jumping)
                {
                    y -= jumpspeed;
                    gotoAndStop(4);
                }
    It's seem that the animation is stuck on the first frame of the 7 action frame of my character.I just don't know why because all works fine with my idle and running animation.
    Last edited by pilouk; 02-02-10 at 01:37.

+ Reply to Thread

Similar Threads

  1. apertura "scena" come vecchio frame in html
    By newentry in forum Flash Italiano
    Replies: 3
    Last Post: 17-01-10, 08:25
  2. Numeri e valute: "€" il "." e la ","
    By jhoncybpr in forum Actionscript 3.0 avanzato
    Replies: 0
    Last Post: 11-05-09, 07:11
  3. Effetto "smooth"/"blur" su FLV .... via AS?
    By Agrimensore in forum Flash Italiano
    Replies: 1
    Last Post: 10-02-09, 11:38
  4. condizione "if" ad un frame
    By thaiboys in forum Flash Italiano
    Replies: 1
    Last Post: 04-11-08, 14:40
  5. Replies: 1
    Last Post: 19-09-08, 08:24

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts