Solved

please hlep me to convert actionscript 1.0 to actionscript 2.0!

Posted on 2008-10-17
3
487 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
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.

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now