A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Simple "nextFrame" action doesn't work !! HELP!

  1. #1
    Member
    Join Date
    Nov 2001
    Posts
    82

    Simple "nextFrame" action doesn't work !! HELP!

    I have a very disturbing problem:

    I have a button in one layer.
    I have a MC instance in another layer named "Start1".
    The button have a simple action:
    ---------------------------------
    on (release) {
    _root.start1.nextFrame();
    }
    ---------------------------------
    From some reason - this action doesn't work.
    * The MC have more then one instance on the stage, each on different layer, and each with different name.

    I tried activating the same action from the button, on a new MC I have made that looks the same - it works. What can be the problem with this simple MC (4 frames, stop on each frame, the action should make it go to nextFrame on each release of the button) ??!
    --=={asaf}==--

  2. #2
    Junior Member
    Join Date
    Apr 2002
    Location
    I guess that depends upon where I am when you read this...
    Posts
    13
    You say that your MC is called "Start1" but in your actions you refer to "start1"...is it the capital S that is causing the problem?

    Adam

  3. #3
    Member
    Join Date
    Nov 2001
    Posts
    82

    just a mistake in the message

    no.. in the movie it's the same- I used the levels tree to find the name of the instance.
    I even tried replacing the name of the instance. nothing.

    Can it be related to the fact that I created several key frames for the instance on the timeline, and only then named the instance (I went through all it's key frames and gave that instance the same name - "start1" ) ??
    --=={asaf}==--

  4. #4
    Member
    Join Date
    Nov 2001
    Posts
    82

    found the problem...

    I didn't give all the instance's key frames the same name, now I did and it works.
    --=={asaf}==--

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center