FlyingCat
FlyingCat

Reputation: 14250

Simple Flash Data type questions

I am trying to declare a variable for a button component in AS3. I have one button named btn1 and tried to write:

import flash.controls.Button;

var btn:Button = mc.test.btn1;

I got an error: Definition flash.controls.Button can't not be found....

Anyone has an idea??? Thanks for the help..

Upvotes: 0

Views: 96

Answers (1)

PatrickS
PatrickS

Reputation: 9572

you may want to try: import fl.controls.Button

Upvotes: 2

Related Questions