Solved

please hlep me to convert actionscript 1.0 to actionscript 2.0!

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Google Chrome - Where is "Enable Resource Tracking" 2 11,588
Begin mp4 video on first frame 6 167
blocked plugin flash 5 111
Text Transformation using ActionScript 3 5 117
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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…
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.

863 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

23 Experts available now in Live!

Get 1:1 Help Now