Javascript in flash

Is there a way I can incorporate a javascript into a flash document? Please answer quickly bc i have to have this by tonight.