Professional Web Applications Themes

Can't get any actionscript to run - Macromedia Flash Actionscript

I've just started working through "Flash MX 2004 Game Programming" but I can't get the first examples to work. Here's what I'm doing: Create a symbol and draw a ball on it Drag the symbol onto the stage and name the instance "ball1" Add frame 10 Add keyframe at frame 5 Add actionscript to frame 1: ball1._xscale = 100; trace("Hello world"); Add actionscript to frame 5: ball1._xscale = 200 Hit return - verify that the head goes to from frame 1 to frame 10 Everything seems fine, but the size of the ball doesn't change and the output window is ...

  1. #1

    Default Can't get any actionscript to run

    I've just started working through "Flash MX 2004 Game Programming" but
    I can't get the first examples to work. Here's what I'm doing:

    Create a symbol and draw a ball on it
    Drag the symbol onto the stage and name the instance "ball1"
    Add frame 10
    Add keyframe at frame 5
    Add actionscript to frame 1:
    ball1._xscale = 100;
    trace("Hello world");
    Add actionscript to frame 5:
    ball1._xscale = 200
    Hit return - verify that the head goes to from frame 1 to frame 10

    Everything seems fine, but the size of the ball doesn't change and the
    output window is empty. Tweens and everything else I've tried seem to
    work fine.

    Unfortunately the source doesn't seem to be available for download
    anywhere and isn't on the CD. Arg.

    Thanks in advance for any help

    - Paul
    Paul Wilkinson Guest

  2. #2

    Default Re: Can't get any actionscript to run

    Paul,
    > Hit return - verify that the head goes to from frame 1 to frame 10
    Hit CTRL-RETURN to test your movie. also make sure, your symbol is a
    MovieClip on the Properties tab.

    Marton
    Marton Czebe Guest

Similar Threads

  1. ActionScript help
    By MeredithJones in forum Coldfusion Flash Integration
    Replies: 0
    Last Post: May 24th, 12:09 AM
  2. [ActionScript] Need Help
    By Piotr in forum Macromedia Flash
    Replies: 0
    Last Post: June 9th, 07:50 PM
  3. actionscript help please
    By poppyhead in forum Macromedia Flash Sitedesign
    Replies: 0
    Last Post: January 7th, 12:43 PM
  4. Possible in Actionscript?
    By jn in forum Macromedia Flash
    Replies: 1
    Last Post: December 8th, 12:31 PM
  5. Help with actionscript
    By *** HAWK in forum Macromedia Flash
    Replies: 1
    Last Post: November 2nd, 08:07 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139