Solved

please hlep me to convert actionscript 1.0 to actionscript 2.0!

Posted on 2008-10-17
3
490 Views
Last Modified: 2013-11-11
HI friends,
on the 1st layer and 1st frame.
I have a button in flash , on it a applied the following script to move a  movieClip in y-axis whever i rollOver  on it. The instance name of the movieClip is "a"

on (rollOver) {
      a:yvel= 1;
}
on (rollOut) {
      a:yvel = 0;
}

On the 2nd layer 1st frame.
I have the movieClip "a" and on "a" movieClip i have used the following script

onClipEvent (enterFrame) {
      if (yvel == 1) {
            _y = _y+(50-_y)/6;
      }
      if (yvel == 0) {
            _y = _y+(-47-_y)/11;
      }
}

Which acts like a drop down menu. ( sub menu )
inside the "a" movieClip i have 5 buttons
and on those buttons i have used the following actionscript to not to move the "a" movieClip in y-axis when ever i rollOut of the buttons, which works perfectly fine whenever i publish the movie in actionscript 1.0 version. But its not working if i publish it in actionscript 2.0 version.

on (rollOver) {
      yvel= 1;
}
on (rollOut) {
      yvel = 0;
}

For further reference:
I have also uploaded the file in the following URL:
http://seemsam.com/dropdown.zip

Please help.






0
Comment
Question by:skilleddesigner
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
blue-genie earned 500 total points
ID: 22740221
hello.
all  the code that has the

a:yvel= 1; etc
simply change those colons to points ie.

a.yvel= 1;
b.yvel= 1;
etc.
0
 
LVL 2

Author Comment

by:skilleddesigner
ID: 22740308
thanks dude.
0
 
LVL 2

Author Closing Comment

by:skilleddesigner
ID: 31507089
thanks dude
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

777 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