Contact form

I downloaded this script here

http://www.sd-dezign.com/tutorials/flash/as3/as3c/as3contact.zip

It looks like a good place to start when creating an AS3 form, when I pubish I get no error however when I copy the script and menu items to my flash movie i get.

1046: Type was not found or was not a compile-time constant: TextField.
1046: Type was not found or was not a compile-time constant: URLVariables.
1046: Type was not found or was not a compile-time constant: URLLoader.

Now I know it wants me to import these but how does the original file have no imports at all yet my flash movie is forcing me to import. Any ideas?

These are mine

import fl.transitions.;
import fl.transitions.TweenEvent;
import fl.transitions.Tween;
import fl.transitions.easing.
;
import flash.display.Sprite;
import flash.filters.BitmapFilterQuality;
import flash.filters.BlurFilter;

You shouldn’t need to import any of those if you are in an AS3 file.

why woud it be asking me for them? Is my flash install missing files?

No idea. Try this. Open a new AS3 file. Type in “var myLoader:” and see if URLLoader is in the context menu (ctrl+space). If it isn’t then i guess you are missing some of the flash library?

the problem seems to be with my document class without it the page publishes fine. Does this help?

package{

import flash.display.*;
import flash.events.*;
import flash.display.MovieClip;
import flash.display.Stage;
import fl.transitions.*;
import fl.transitions.TweenEvent;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.display.Sprite;
import flash.filters.BitmapFilterQuality;
import flash.filters.BlurFilter;
import flash.utils.*;




public class contactUs extends MovieClip {
    

public function contactUs () {
    
    
    waves_mc.x=30;
    waves_mc.y=240;
    waves_mc.mask = wavesMask_mc;
    
    

}


}

}