# First script

**URL:** <https://forum.kirupa.com/t/first-script/301650>\
**Category:** flash\
**Created:** [December 13, 2009, 9:09am UTC](https://forum.kirupa.com/t/first-script/301650 "2009-12-13T09:09:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hunter\_wow](https://avatars.discourse-cdn.com/v4/letter/h/8e7dd6/32.png) [@Hunter\_wow](https://forum.kirupa.com/u/Hunter_wow)\
**Post date:** [December 13, 2009, 9:09am UTC](https://forum.kirupa.com/t/first-script/301650/1 "2009-12-13T09:09:23Z")

</div>

Hello. Trying my first script but I get the error:

> 

Line 4: The class or interface ‘flash.utils.Timer’ could not be loaded.  
var t:Timer = new Timer(10000,0);  
With the following code:

```auto
import flash.utils.Timer;

var t:Timer = new Timer(10000,0);

```

My questions:

1. Whats the diffrence with AS 2.0 and AS 3.0?
2. When am I supposed to use “package” tags around my code?
3. What is worng with my code? Do I need to add classpath or something?

edit: I´m using Macromedia Flash Professional 8.
