Flash Q

  • Started
  • Last post
  • 2 Responses
  • CFish

    Can someone give this code the once over and let me know what I'm doing wrong........

    P = int((200*_framesloaded)/_totalfr...
    trace(P);
    tellTarget ("/Prozent") {
    gotoAndStop(_level0:P);
    }

    ..............
    I get this

    42
    Target not found: Target="/Prozent" Base="_level0"

  • blaw0

    tellTarget is depricated.
    _level0:P is not a valid path.
    is /Prozent the correct name?

    you probably want something like
    prozent_mc.gotoAndPlay(P);

  • st33d0

    _level0 is not a scene. Plus the parameters of gotoAndStop are
    (scene, frame)

    A scene is just a way of putting your frames into folders.

    int() has been deprecated since Flash 5. Use Math.round() if you want to work in this century.

    tellTarget() has been deprecated since Flash 5. People use object orientated code nowadays, which means accessing properties using the dot "." operator.

    Sorry to send you back to school, but well, go back to school.