actionscript!
- Started
- Last post
- 14 Responses
- Bullitt
any actionscript ninjas help me out with this?
Basically what I got is a video clip that progress's with each click on the right button.
First animation works fine, but animation 2 is not working when I click on the right button. Here's the code :
stop();
this.part2_mc._visible = false;
//function to show animation
this.tv_btn.onRelease = function(){
nextFrame();
part2_mc._visible = true;
part2_mc.gotoAndPlay(1);
stop();
};
this.part3_mc._visible = false;
//function to show animation2
this._root.tva_btn.onRelease = function(){
nextFrame();
this.part2_mc._visible = false;
part3_mc._visible = true;
part3_mc.gotoAndPlay(1);
stop();};
Can anyone help? I dont know wtf to do basically lol
- ********0
that's one messy piece of code you got there just to move a frame on in a movieclip
- ********0
send me the fla...
I loathe reading AS in the PVN...
- stewart0
or paste it in http://pastebin.coconut.se/
and show us the link
- stewart0
doh!
- stewart0
by the way, i always END a keyframe with stop(); when it needs to stop.
not in the FIRST line.
does that matter anyway?
- Anarchitect0
it's a mistake to mess actionscript with mutliple frames... it can get quite messy...
- Bullitt0
Anyone help me out on this?
- Bullitt0
Cant send ya the fla MX, the files 17mb.
- stewart0
bullit, what are all those "stops" doin in there?
- Bullitt0
ok, its maybe somthing I didnt need to do.. pretty new to actionscrptin as you can tell by that code.
this was the plan :
I got one main movie, on that movie I have a button. which when you click on, I want it to start another movie clip ; which is basically a continuation of the current clip
(the clips of a studio so the effect I want to achieve is a navigation of the room, opening the continueing video clips to replace the currrent one to make that effect. If any of this makes sense?
- Bullitt0
anyone?
- ********0
Didn't raelly understand that at all!
How about taking it step by step in what you are doing, we don't give a hoot about what the animation is doing really, more like I have 1 button and i need it to play an MC , etc. break it down into simple steps and we might be able to help
- Bullitt0
Its alright chief, thanks anyway, sorted it now.
this is what i got now,this.part2_mc._visible = false;
this.part3_mc._visible = false;
this.main_mc._visible = true;
this.tv_btn._visible = true;
this.tva_btn._visible = false;//function to show animation
this.tv_btn.onRelease = function(){
main_mc._visible = false;
part2_mc._visible = true;
part2_mc.gotoAndPlay(1);
tv_btn._visible = false;
tva_btn._visible = true;};
//function to show animation2
this.tva_btn.onRelease = function(){
part2_mc._visible = false;
part3_mc._visible = true;
part3_mc.gotoAndPlay(1);