navigation problem in action script 3.0 kindly help in this - actionscript-3

I have 2 movie clips (abc) and (xyz) I'm in the "1st" frame in the timeline and I kept abc movie clip. In that, there are 3 frames and I kept another movie clip (xyz) in the 45th frame in main timeline. my question is how to navigate from the 3rd frame of (abc) movie clip to the main timeline's 45th frame movie clip(xyz)'s frame"2"?
MovieClip(parent).xyz.gotoAndStop(2);

Related

As3 flash button in a movie clip

all I am trying to get a button I placed inside a movie clip to change the scene on my main timeline.
this is what I have right now:
on the main timeline,
the scene that has the movie clip is called (girl_tone_control) and the scene that I want to go to is called (girl_outfit_v1)
inside the movie clip on (girl_tone_control), I have a button on a frame with the instant name letsgo_btn.
I then have another layer in the same movie clip as the button called actions
with this code
import flash.events.MouseEvent;
letsgo_btn.addEventListener(MouseEvent.CLICK, letsgo1);
function letsgo1(e:MouseEvent):void
{
MovieClip(root).gotoAndPlay(1,'girl_outfit_v1');
}
I don't know if this is correct every time I test it out hoping to go to scene (girl_outfit_v1) it doesn't work and I get the error
ArgumentError: Error #2108: Scene girl_outfit_v1 was not found.
at flash.display::MovieClip/gotoAndPlay()
at wwe2_girl_tone_control_fla::girl_select_1/letsgo1()
can anyone help?
I would advice you to double check the scene name as it must work, or attach your fla to let me check what's wrong

Adobe Flash: Countdown Timer

I have a problem about my code in my timer. I've made a movie clip and put this code in my first frame inside the movie clip:
if (time_txt.text ==0) {
this._parent.gotoAndPlay(5);
}
And I have this code in my 12th frame:
time_txt.text = Number (time_txt.text)-1;
gotoAndPlay(1);
Its in the 12th frame because im using 12 frames per second. And go to 5th frame in my first code because if the time is over the frame will go to the 5th frame in my main scene that has "times up" word. By the way this code is inside my movie clip, and the movie clip is inside my scene 1. By the way im making a game. And im using air for android for my file type. Thanks

Button to play a movie within a movie in ActionScript 3 Presentation

I am making a Flash Presentation, so each animation is within a movie clip (movie_mc). This movie clip has a key frame holding each animation (4 keyframes/animated slides). The first movie instance/slide is called "slide1871". I labeled the first frame within this movie "slide1871". My buttons are on the main timeline.
I CANNOT get the code to work to link to play the first frame of movie slide1871 (within movie_mc). It either doesn't work at all, or it plays the 4 keyframes of the 4 slides I have within movie_mc.
This plays the 4 keyframes:
btn1871.addEventListener(MouseEvent.CLICK, btn1);
function btn1(event:MouseEvent):void
{
movie_mc.gotoAndPlay("slide1871");
}
I've tried a bunch of other stuff that the button doesn't even work.
Please help, hopefully this makes sense.

gotoAndStop makes it go to the next frame in Flash CS6

I have a problem: I have a movieclip ("gesprekkencivcen") with several frames and layers. I've put this action on a certain button at frame 1:
this.addEventListener(MouseEvent.MOUSE_UP, conv1);
function conv1(evt:MouseEvent):void{
MovieClip(root).gesprekkencivcen.gotoAndStop(23);
}
Now, in stead of going to frame 23 when I click the button it goes to the next frame (which is frame 2). What am I doing wrong??

Clip staying on screen while not in timeline anymore

I have a particular problem : I have a fla with 2 frames, with a clip of instance name "my_clip" on frame 1 and no clip en frame 2. If i move by code (like a tween) "my_clip", when I go to frame 2, the clip is still on screen, whereas frame 2 is totally empty in my fla.
How flash work at this level ? Does he stop "syncronizing" a clip with the fla once the clip has been moved by code ? How can I check at frame 2 that the scene should be empty ?
(I'm with flash cs 5.5 and player 11)
Actually what FLASH does when we are trying to change the depth or start drag and some more dynamic functionality it freezes the target movieclip in stage. Eventually there is only one stage in FLASH and guess what if the movieclip has been frozen in the stage? It is visible or available always.
So in your case the same has happened. The clip has just frozen to the stage. Needless to say, the second frame is empty always. You don't need to check the second frame. What all you need to do is remove that clip before you navigates to either next frame or scene.
#LondonDrugs_MediaServices : I can't post my code and fla because there is too much code unrelated to the problem.
But as I was trying to make a little fla to reproduce my problem and show it to you, I figure out that the problem was not where I thought it was : I fact it was because each time I start dragging my clip i was doing a setChildIndex on it to put it on top. And it was precisely the setChildIndex wich would cut the "syncronization" between the clip and the fla timeline.
Thanks anyway for your answers, it kind of help me in a way :)