A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Question about action script output

  1. #1
    Member
    Join Date
    Jul 2011
    Posts
    32

    Question about action script output

    I am trying to add some actions to artwork, is for a button, fox example the output says:

    Scene=Scene 1, Layer=Actions, Frame=1: Line 1: Wrong number of parameters; set requires exactly 2.
    set ("boxStatus"); = "0"

    Scene=Scene 1, Layer=Layer 1, Frame=1: Line 1: Mouse events are permitted only for button instances
    on (Release) {
    I am making a button
    Scene=Scene 1, Layer=Layer 1, Frame=1: Line 2: ';' expected
    Go to and play (2)

    Scene=Scene 1, Layer=Layer 1, Frame=1: Line 5: ';' expected
    End on

    Scene=Scene 1, Layer=Layer 3, Frame=2: Line 1: ';' expected
    set Variable; "boxStatus"="1"

    That is in general, thank you for your help.

  2. #2
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    Those codes have major flaws O_O

    I honestly don't know what set is, but why have the semi-colon right after the set tag? and then the equals sign? It should be at the end of each code, to signify that it ends there, to not mix it with other codes!

    Also, on(release) with a small R, not Go to and play(2), but rather gotoAndPlay(2);

    And set Variable; "boxSatus"="1" won't work either. You are converting the number one, to a string, and also, the left sign of the operator is a string, which is completely wrong. Are you using Actionscript 1.0 or something?
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  3. #3
    Member
    Join Date
    Jul 2011
    Posts
    32
    My version of flash is Student Flash 5 (around year 2000)
    I just click on actions and look for the action, fox example go to and play, and the other are like they are in the list of codes. I just click.
    How can I do to find what version of AS is?
    Maybe I would like to get a new version in Flash, which one you recommend? And other software's that i need to make flash animations.
    Thank you for your help.

  4. #4
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    Oh, Flash 5 only supports Actionscript 1.0 - Actionscript 2.0 wasn't introduced before Flash MX 2004!

    I suggest you get yourself a new version of Flash. Anything from Flash 8 to Flash CS5. All of those support Actionscript 2.0 and Actionscript 3.0

    I use Actionscript 2.0

    And you want to make flash animation? Then Flash is the only one and the best, and also the original one
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

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