Solved

please hlep me to convert actionscript 1.0 to actionscript 2.0!

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

705 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