stevedc
June 11th, 2008, 10:31 PM
Hi all,
I'm new to AS3 and to Kirupa, but plan on spending a lot of time here learning. I have a pretty simple question and can't seem to figure it out. I'm putting together a small animation using mostly the timeline for assistance. All I want to do is able to click on text (a movieclip called "mc_pete_ross") and have it go to another frame further down the timeline. Here is my code.
stop ();
this.mc_pete_ross.onRelease = function () {
mc_pete_ross.gotoAndPlay("pete");
}
-- the frame label is pete and the movieclip has an instance name of "mc_pete_ross" -- I'm sure of it. However, nothing works. Yet if I try giving the mc_pete_ross a URL function such as
stop ();
this.mc_pete_ross.onRelease = function () {
mc_pete_ross.getURL("http://www.somewebsite.com","_blank");
}
it works!!! However, I don't want to visit an external page :|
I'm wondering if the stop action has something to do with it? The timeline animation spans 50 frames then it must stop. Once it stops, I want to have each piece of text or navigation to go to frame 65 or 80 etc. This is basic flash so I'm sorry, but most of my web background is in CSS and HTML.
~ Regards
Steve
I'm new to AS3 and to Kirupa, but plan on spending a lot of time here learning. I have a pretty simple question and can't seem to figure it out. I'm putting together a small animation using mostly the timeline for assistance. All I want to do is able to click on text (a movieclip called "mc_pete_ross") and have it go to another frame further down the timeline. Here is my code.
stop ();
this.mc_pete_ross.onRelease = function () {
mc_pete_ross.gotoAndPlay("pete");
}
-- the frame label is pete and the movieclip has an instance name of "mc_pete_ross" -- I'm sure of it. However, nothing works. Yet if I try giving the mc_pete_ross a URL function such as
stop ();
this.mc_pete_ross.onRelease = function () {
mc_pete_ross.getURL("http://www.somewebsite.com","_blank");
}
it works!!! However, I don't want to visit an external page :|
I'm wondering if the stop action has something to do with it? The timeline animation spans 50 frames then it must stop. Once it stops, I want to have each piece of text or navigation to go to frame 65 or 80 etc. This is basic flash so I'm sorry, but most of my web background is in CSS and HTML.
~ Regards
Steve