Solved

please hlep me to convert actionscript 1.0 to actionscript 2.0!

Posted on 2008-10-17
3
492 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
[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
  • 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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…
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 select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

730 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