[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Simple Button not working action script 2.0

Posted on 2011-02-21
7
Medium Priority
?
321 Views
Last Modified: 2012-05-11
CS5 actionscript 2.0
I have a simple button on the main stage, and a frame named "main".

Why does this code not work?

on (release) {
gotoAndPlay("main");

}
0
Comment
Question by:cnl83
[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
7 Comments
 
LVL 17

Accepted Solution

by:
deepanjandas earned 1000 total points
ID: 34948336
2 questions/suggestions:
1. Check where you have placed this piece of code mentioned above, this should be placed on the button instance and not on frame.
2. check that the "main" that you have mentioned has been properly set as a label to another frame in the time line.

Warm Regards
Deepanjan Das
0
 
LVL 39

Assisted Solution

by:blue-genie
blue-genie earned 1000 total points
ID: 34949632
on (release) {
      _parent.gotoAndPlay("main"); //with the code in the button itself you need to specify where the frame is.
}
0
 
LVL 17

Expert Comment

by:deepanjandas
ID: 34950061
blue-genie is right to some extent if the instance is a movieclip. If its a button then no need to add _parent I guess.

Warm Regards
Deepanjan Das
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 39

Expert Comment

by:blue-genie
ID: 34950128
Deepanas, try it.
it's one of those oddities of flash
0
 

Author Comment

by:cnl83
ID: 35132785
I dont know why it wasnt working. I recreated the file and resolved it. fla must have been corrupt or something.
0
 
LVL 16

Expert Comment

by:CWS (haripriya)
ID: 36321175
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

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…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
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 viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

656 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