i m currently using Flash 8 i tried some of the codes from a tutorial for Action script but it doesnt seem to work when it exactly the same as the tutorial ones. the codes are at the other thread if anyone is interested to help me solve it.

Dani AI

Generated

A short, practical diagnosis tied to the thread posts: was right that Flash 8 uses ActionScript 2 by default, and is also correct that ActionScript 3 support arrived with the CS3-era tools and newer players. The most common reason tutorial code fails is an ActionScript version mismatch — AS3 code will not compile or run in a Flash 8 (AS2) document.

How to confirm the version inside the authoring tool:

  • In Flash 8: open File > Publish Settings > Flash tab and look for the "Script" setting (it should say ActionScript 2.0).
  • In CS3 and later: select the Stage and check the Properties panel for the "Script" dropdown (ActionScript 3.0 or 2.0).
  • For the authoring product build: check Help > About to see whether the program is Flash 8, Flash CS3, etc.

Quick code clues to tell AS2 vs AS3 (illustrative):

// AS2 (timeline/button-style)
myButton.onRelease = function() {
    gotoAndPlay(2);
}

// AS3 (event-driven, typed)
myButton.addEventListener(MouseEvent.CLICK, function(e:MouseEvent):void {
    gotoAndPlay(2);
});

Practical fixes and notes:

  • If the tutorial is AS3 but the FLA is AS2, either convert the code to AS2 or open/upgrade the FLA in an AS3-capable tool (CS3/Animate) or compile with an AS3 toolchain.
  • Confirm the Publish target player (AS3 needs Flash Player 9+).
  • Be aware that Flash Player reached end-of-life in 2020; for new projects consider HTML5/Canvas or modern tooling.

References: ActionScript 3.0 reference and Adobe Flash Player end-of-life notice.

Recommended Answers

All 3 Replies

use action script 2.0 version to flash 8.0

ermm so by default flash 8.0 is as 2 then ? correct me if i m wrong

ermm so by default flash 8.0 is as 2 then ? correct me if i m wrong

Yes. AS3 came about with the release of CS3. So, unless you have CS3 you're working with AS2. If you follow a tutorial written in AS3 it won't work. If it is a video tutorial or there a re pictures you can look and see what the logo looks like to know the difference. Macromedia Flash logo was a curled F. Looks almost like an S with a line through the middle. Adobe Flash logo if A capital F and lower case L with a red background. I find myself double checking as I watch video tutorials. It's not as important working on the time line, but crucial with AS.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.