Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Actionscript 2 button in AS3 file, ouch!

Posted on 2010-11-30
6
Medium Priority
?
420 Views
Last Modified: 2012-05-10
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!
0
Comment
Question by:Karessa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 1

Expert Comment

by:Gvoid
ID: 34241667
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
 
LVL 1

Expert Comment

by:Gvoid
ID: 34241765
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
 

Author Comment

by:Karessa
ID: 34242777
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Accepted Solution

by:
Gvoid earned 1500 total points
ID: 34245872
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
 

Author Comment

by:Karessa
ID: 34250652
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
 

Author Closing Comment

by:Karessa
ID: 34264745
I'm not really certain this is the solution, haven't been able to find any code that's AS2, but maybe....
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question