Actionscript 2 button in AS3 file, ouch!

I have a test .fla and .as that have been working well, but now seem to be broken. I'm getting an error that says
WARNING: The component "Button" requires ActionScript 2.0.

I guess I must have replaced my AS3-compatible component with an AS2 one on accident. The trouble is I don't know how to get the AS3-compatible version back in the file. Help?

Thanks!
KaressaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
GvoidConnect With a Mentor Commented:
it may be code you have added recently, you may have typed in some AS2 code at some point.

a quick search on google gave me this thread which might be your problem?
http://www.actionscript.org/forums/showthread.php3?t=173753
0
 
GvoidCommented:
Which version of the Flash IDE are you using?

but you should be able to fix it through the publish settings in most versions
file -> Publish settings

there should be a "script" drop down, depending on the IDE, select ActionScript 3 and see if that works
0
 
GvoidCommented:
sorry, did't read that properly...

In CS4 when you switch between which version of action script you are using, the components window will change context between the relevent components.

make a back up 1st.
then try changing the file to an as3 file then drag and drop an as3 button into the library, it will prompt you to overwrite the current button components, which I think is what you want to do.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
KaressaAuthor Commented:
Hey there. The file is an AS3 file already...it's weird. I've tried deleting all button instances from stage and library and copying from another AS3 file, but I still get the same error.
0
 
KaressaAuthor Commented:
Sorry for the delay. It's very likely you've identified the problem there, but I'm not sure. Going through all the code and will let you know as soon as it's done!
0
 
KaressaAuthor Commented:
I'm not really certain this is the solution, haven't been able to find any code that's AS2, but maybe....
0
All Courses

From novice to tech pro — start learning today.