Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Pausing Frames, Movieclips, Sounds...everything



Hi,I'm trying to get my movie to pause when the user clicks the pause button and continue playing from where he paused on hitting play. Let me explain how my movie is structured first....I have a separate navigation movie with the play/pause button. This Navigation movie is being loaded by a 'Master' which loads that as well as other movies as needed. Each of these movies being loaded has sounds/mpgs/movieclips etc.I need to pause everything thats playing at that instant and once play is hit continue from that point itself.I would really appreciate it if someone could help me out with this.Thank you.



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 09-26-2004, 02:26 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Pausing Frames, Movieclips, Sounds...everything
Hi,
I'm trying to get my movie to pause when the user clicks the pause button and continue playing from where he paused on hitting play. Let me explain how my movie is structured first....
I have a separate navigation movie with the play/pause button. This Navigation movie is being loaded by a 'Master' which loads that as well as other movies as needed. Each of these movies being loaded has sounds/mpgs/movieclips etc.
I need to pause everything thats playing at that instant and once play is hit continue from that point itself.
I would really appreciate it if someone could help me out with this.
Thank you.

Pausing Frames, Movieclips, Sounds...everything
Hi,
I'm trying to get my movie to pause when the user clicks the pause button and continue playing from where he paused on hitting play. Let me explain how my movie is structured first....
I have a separate navigation movie with the play/pause button. This Navigation movie is being loaded by a 'Master' which loads that as well as other movies as needed. Each of these movies being loaded has sounds/mpgs/movieclips etc.
I need to pause everything thats playing at that instant and once play is hit continue from that point itself.
I would really appreciate it if someone could help me out with this.
Thank you.

Pausing Frames, Sounds, Everything
Hi,
I'm trying to get my movie to pause when the user clicks the pause button and continue playing from where he paused on hitting play. Let me explain how my movie is structured first....
I have a separate navigation movie with the play/pause button. This Navigation movie is being loaded by a 'Master' which loads that as well as other movies as needed. Each of these movies being loaded has sounds/mpgs/movieclips etc.
I need to pause everything thats playing at that instant and once play is hit continue from that point itself.
I would really appreciate it if someone could help me out with this.
Thank you.

Pausing Sounds
I can start and stop sounds in Actionscript 5 but can anyone tell me how I can PAUSE a sound and start playing it again, please?

Rickoflash

Pausing Sounds
Hi,

I'm working on a CD ROM project which require a pause function. I have it working fine on the main timeline. But have sounds imported via linkage and need to be able to pause these also.

many thanks for any help.

dabush

Pausing Sounds
Hi,

I'm working on a CD ROM project which require a pause function. I have it working fine on the main timeline. But have sounds imported via linkage and need to be able to pause these also.

many thanks for any help.

dabush

Pausing And Resuming Sounds
can sound clips be paused and resumed in Flash?

Pausing Streaming Sounds
I am building a Flash MP3 player and I'm having problems getting the Pause function to work. Here's how my sound is being played:


Code:
// streaming set to 'true'
s.loadSound(filename, true);

// this is meant to start the sound in a location that is stored in the variable "_root.pos" when the user clicks pause
s.start(_root.pos/1000);
I have verified that "_root.pos" is holding the correct values and it is. It just seems that the Flash completely ignores the s.start() command when it's a streaming sound. Is it possible to pause a streaming sound?

Sounds Causing Pausing
Im making a shooting game. When you collect power ups they make a sound. The ploblem is that the first time you collect a power up the game stops for a second to load the sound. Please help.

Pausing Sounds Globally?
Hi--

I am able to mute and then restore the volume on sounds globally. However, this results in some of the sounds going back to 100% volume when they were originally just beginning to fade out (that is, they shouldn't be going back to 100% volume, but lower).

Therefore, I need to pause and then resume these sounds globally, rather than mute them.

Does anyone know how to do this?

Many, many thanks for your help!

Pausing And Resuming Sounds In Flash Mx
hi guys,

im building a slide show in flash mx and im trying to create a control panel of buttons to pause, play and stop the presentation, and everything works fine except when i try to get the narration sound file to continue playing from it left off, i hear nothing. is there a way to get this to work? thanks in advance.

Jay

Pausing/stopping Sounds Within Timeline
Greetings,
I am using a MovieClipLoader to load external SWFs into a blank movie clip.
I have created buttons in the main SWF that pauses and plays the external SWFs, but I don’t know how to pause and play the audio track embedded within the same timeline.

(example: User hits pause: Animation and associated narration stop.
User hits play: Animation and associated narration continue.
)

The project calls for narration that syncs with animation, so it seems that loading the audio file externally is not an option.

Thanks!

Pausing ALL Tweens, Sounds, And Functions In A Movie
Hey,

I have a flash demo that I created which is full of tween events and audio. It also has a wait() function that I use a lot - it takes one variable, the number of seconds to wait until proceeding to the next frame in the timeline... Now I've been given the task of adding a global pause and play to the entire thing. Is there a way to code a global function that will pause everything on the screen, including all timelines, all tween's, all audio, and the wait function until the play button is pressed? I've scoured the boards and google and I can't come up with anything. Any help would be greatly appreciated.

The movie has about 4 movie clip symbols on the stage, and each one contains multiple child movie clips with tons of tween events and audio.

Here's the wait function (hopefull it helps to see it):

ActionScript Code:
function wait(secs:int):void {
stop();
var myInterval = setInterval(function () {
play();
clearInterval(myInterval);
}, secs*1000); // stop for 2 seconds
}

Pausing ALL Tweens, Sounds, And Functions In A Movie
Hey,

I have a flash demo that I created which is full of tween events and audio. It also has a wait() function that I use a lot - it takes one variable, the number of seconds to wait until proceeding to the next frame in the timeline... I copied it from either this site or another one, I'm not sure. Now I've been given the task of adding a global pause and play to the entire thing. Is there a way to code a global function that will pause everything on the screen, including all timelines, all tween's, all audio, and the wait function until the play button is pressed? I've scoured the boards and google and I can't come up with anything. Any help would be greatly appreciated.

The movie has about 4 movie clip symbols on the stage, and each one contains multiple child movie clips with tons of tween events and audio.

Here's the wait function (hopefull it helps to see it):
function wait(secs:int):void {
stop();
var myInterval = setInterval(function () {
play();
clearInterval(myInterval);
}, secs*1000); // stop for 2 seconds
}

Pausing Frames
is there a way to pause frames. i'm doing a simple fade. and i don't like flashtyper...

i'll check out some turorials, if they have any...

help.

Pausing Frames?
hi all,
could someone please tell me how i can delay the movie so it pauses for a set amount of time before continuing?
i need this for a slide show effect....
thanks.

Pausing Frames
Hell all :-)
Is there a way to pause on a frame using AS?
I have a series of frames containing different bits of info. I want to add AS on each frame and enter the amount of time Flash is to pause before playing the next frame.
I also have a menu which enables people to jump to the page they want but I also want the movie to play start to finish with no interaction.
As there is more info on some pages than others I need to be able to specify the pause time for each frame.
I can do this by extending the time line for each page but I think using AS would be a far better method.

Thanks in advance and be lucky.

Pausing Between Frames
I creating a presentation that consists of 12 movie symbols. In each movie symbol, I want to pause between frames. This is the script I used.

1st frame:

stop();

pauseAnim = setInterval(this, "nextFrame", 2000);

2nd frame:

clearInterval(pauseAnim);

play(); but instead of going to the next frame of the movie symbol, it skips to the first frame of the next movie symbol. Please help me!!!

Pausing Between Frames
I creating a presentation that consists of 12 movie symbols. In each movie symbol, I want to pause between frames. This is the script I used.

1st frame:

stop();

pauseAnim = setInterval(this, "nextFrame", 2000);

2nd frame:

clearInterval(pauseAnim);

play(); but instead of going to the next frame of the movie symbol, it skips to the first frame of the next movie symbol. Please help me!!!

Pausing Frames.
Hey all, I'm a noob to flash 8, And i was wondering if you could pause frames for the desired time without creating a heap of frames. Is there a function to tell flash to just pause? e.g pause = 5 seconds.

Thank's All.
Laterz.

Pausing Frames?
Hi there,

Is there a way in which I can pause a frame for x seconds and then make the movie continue?

Many thanks!

Movieclips Play Sounds Of Other Movieclips...
I made a very simply movie comprising of 6 movieclips with sound that play when you press the corresponding key. The top 3 clips play fine but the bottom three play the sound or sounds from previous clips.

also the huskey clip will play when you press either enter or space but it should only be played when you press space. (I was thinking that enter is reserved for playing movies or something.
Thanks for all help.

im using Flash 5

My .fla in a zip file -can be downloaded here...http://www3.telus.net/seanc007/MC_Test.zip

(Too big to be attached)

Pausing Frames And Sound Channel's At The Same Time
How do I do this? I mean how can I pause the animation while pausing the sound at the same time?

Here's my code so far. Ive gotten the sound to pause but the animation keeps going.

stop();

var soundReq:URLRequest = new URLRequest('08 Mary Bell.mp3');
var sound:Sound = new Sound();
var soundControl:SoundChannel = new SoundChannel();
var resumeTime:Number = 0;

sound.load(soundReq);

sound.addEventListener(Event.COMPLETE, onComplete);



function onComplete(event:Event):void
{
play_btn.addEventListener(MouseEvent.CLICK, playSound);
stop_btn.addEventListener(MouseEvent.CLICK, stopSound);
}

function playSound(event:MouseEvent):void
{
gotoAndPlay("startz");
soundControl = sound.play(resumeTime);
pause_btn.visible = true;
pause_btn.addEventListener(MouseEvent.CLICK, pauseSound);
play_btn.visible = false;
play_btn.removeEventListener(MouseEvent.CLICK, playSound);
}

function pauseSound(event:MouseEvent):void
{

resumeTime = soundControl.position;
soundControl.stop();
play_btn.visible = true;
play_btn.addEventListener(MouseEvent.CLICK, playSound);
pause_btn.visible = false;
pause_btn.removeEventListener(MouseEvent.CLICK, pauseSound);
}


function stopSound(event:MouseEvent):void
{
soundControl.stop();
play_btn.visible = true;
play_btn.addEventListener(MouseEvent.CLICK, playSound);
pause_btn.visible = false;
pause_btn.removeEventListener(MouseEvent.CLICK, pauseSound);
}

pause_btn.visible = false;

Problem With Pausing Sound Loaded In AS2.0 And Not On The Frames
Hi There ,

I would like to know a few things on Sound loaded in ActionScript. I'm able to stop, play and pause a MP3 file when I place it in the timeline, simple by mp3.stop() and mp3.play() - where the stop() here works like a pause. But when I load the sound in the ActionScript, I get problems. I use the code entered below. Is there any way I can use a pause button for sounds loaded programatically? If so please help me out. I have seen that the loadSound API uses a parameter for isStreaming - is it something to do with this?

Thanks in advance!








Attach Code

var mySound:Sound = new Sound();
mySound.loadSound("sample.mp3",true);
mySound.start();

play_btn.onPress = function(){
mySound.start();
}

pause_btn.onPress = function(){
mySound.stop();
}

Sounds In Movieclips
Hi,

I want to put some sounds in a keyframe of a movie clip. The sound plays fine when the clip is 'played' using the tapehead controls, but when I go back to the main timeline, the sound doesn't play when the scene is tested.
The same sound file inserted in keyframes on the main timeline works fine.

Can anyone help ????

Thanks.

Help Different Sounds On Different Frames
Hi,

I'm working on a site with 8 main sections. They want to have a different music clip (all loops) play for each of the different sections.

I've got it so that when you click on a link, it takes you to the new section (a Labeled Frame) and the new music begins.

The problem is that I do not know how to make whatever other music is already playing stop. HELP! I will be satisfied with just having the current sound clip stop when the new one starts (as a fade in), but if it is at all possible, they want the old clip to fade out, then the new one fade in. (I really don't see how that is possible, so really I just need to know how to make the current sound clip stop before starting the new sound clip.)

Any info anyone can give me will be very greatly appreciated!

Thanks in advance for your time,
Selene

Sounds On Frames
Hi all, I have a movie with 12 frames. Each frame has a sound on the keyframe so that it plays when you are on the frame. When you click the 'next frame' button the sound from the last frame is still playing. So if you skip through all frames every sound clip is playing at once!

I tried 'stop all sounds' but it stops everything...

Thanks.

Si

Frames And Sounds
So, doing a timeline animation after spending the better part of the past two years avoiding the timeline. Is there a way to get a sound item to automatically expand the timeline frames so that the sound is fully "visible" without manually adding frames?

After toying around in the interface a bit, I was looking at JSFL, and couldn't find any SoundItem properties that gave the duration of the sound...any ideas? I'm cool with any solution, so long as it doesn't involve manually adding the frames. (It's a long voice-over type of narration, several minutes long...)

I suppose I could use JSFL to extend the timeline out several minutes, and then remove the excess frames, but I was hoping to something automatic.

Please Help With Spawning Movieclips And Sounds
I need to know the exact actionscript line for makeing an instace of a movieclip (lets call it "test") copy itself to a cetain position (lets say 50, 50).... also, what's the actionscript command for playing a sound clip?

Please help soon! I'm running out of time!

Stop All Movieclips/sounds. How?
Hello!

I have a .fla that has lots of animations, which are divided in several movieclips through the timeline. Inside the movieclips, have sounds also.

What I need: how could I make a button in _root in a way that I could stop/play the entire movie, independently where the movieclipt the playhead is?
Because the movie has lots of movieclips, it is kind hard to istanciate each movieclip to give stop actions.

Also I need to stop all the sounds (I know with stopAllSounds, but if I want to continue from the stopped part?).

Thanks!

Coordinating Sounds And Movieclips...
I want to make some animations that go along with a sound but the problem is whenever i import a sond clip, it goes to just one frame. This is good and everything but it makes it almost impossible to coordinate my animation with the sound (because i can't see the or live preview the sound) if that makes sense. Does anyone know where i can find a way to coordinate animation with sound easier than having to preview the movie every time i do something.

Another problem I am having to sound is with my buttons. I am using movieclips with AS for my buttons so can someone tell me the AS to play a sound clip in my library on a onRollOver. Thanks

mike

Coordinating Sounds And Movieclips...
I want to make some animations that go along with a sound but the problem is whenever i import a sond clip, it goes to just one frame. This is good and everything but it makes it almost impossible to coordinate my animation with the sound (because i can't see the or live preview the sound) if that makes sense. Does anyone know where i can find a way to coordinate animation with sound easier than having to preview the movie every time i do something.

Another problem I am having to sound is with my buttons. I am using movieclips with AS for my buttons so can someone tell me the AS to play a sound clip in my library on a onRollOver. Thanks

mike

Coordinating Sounds And Movieclips...
I want to coordinate an animation with a song the only problem is when i import a song on to the stage it goes to one frame (not allowing me to actually see the sound, if that makes sense). I can see the sound when i add empty frames in front of the sound object, the only problem is the song starts to screw up when I do this. Is there an easy way to coordinate animations with a song?

by the way I am new to ultra shock but i was an active kirupa.com member and everyone was really impressed with ultra shock so i decided to check you guys out. Thanks for your time.

Mike

Controlling Sounds/frames
right now i have 2 sounds, on one layer, each in it's own keyframe. the first is supposed to play normally and stop at the end. the second is supposed to pick up immediately after the first and loop.


i read through the tutorials within the program and it mentioned an OnSoundcomplete action. i think that's what i'm looking for but i'm not too familiar with action script yet so i'm not sure how to incorporate it. i knew a little flash a loooong time ago but i've forgotten it almost completely now. i know this is a very simple task, but i can't figure this out for the life of me. i've been sitting here for at least a couple hours trying to get this **** to work. i'd appreciate any help

Flash Pro 8 - Help With Sounds On Different Frames
Hi,

I have a timeline with several layers which uses only 12 frames. The three main layers are:

1) "labels" (which consists of 12 different labels and takes the user to a new frame),

2) "audio" (consisting of 12 different sound/voice narrations which plays once the user clicks on an answer and goes to the next page etc),

3)"buttons" (consisting of 12 different answers that the user will click and then will automatically go to the next page).

My problem is that when I click onto an answer(button) and go to the next page the narration is overlapping and when I click again to go to another page that narration is also
overlapping with the previous one and so on & so forth. I want to use ActionScript somehow to stop the current narrations once I click an answer(button)?? In other words, as you so eloquently put if Jiru I want the previous Narrarator to 'shut up' when another one starts talking once I'm go to the next page.

How To Play Sounds On Certain Frames?
Hello, I'm new to the forums. I've played a bit with Flash over the years but I'm still somewhat green in my skills. I know JavaScript fairly well so I'm familiar with AS concepts.

So, I'm trying to put together this little trailer where some very simple animation is going on, while some sounds come in and play at various times. I know how to play a basic sound using AS.

My problem is figuring out how to properly start and stop the sounds I need at the exact points in the swf. So for example, the movie starts and a sound plays, something happens and that sound abruptly stops at say frame 20 while a new short sound plays. Then a second later, a new sound begins, and so on.

So I know I can play a sound doing this:

Code:

snd = new Sound(this);
snd.attachSound("mySound");
snd.start(0, 1);

But I've been unable to figure out how to control where/when I want them to start/stop. I tried using onEnterFrame like this

Code:

onEnterFrame = function () {
snd = new Sound(this);
snd.attachSound("space");
snd.start(0, 1);
};

But this is obviously wrong, because I think what happens is the sound starts on every single frame the playhead hits. I just watched the "ActionScript 3 Sound Basics" tutorial on the home page as well, but it didn't address my issue of really controlling sounds at certain times.

He did show how to stop all sounds at a certain point of the sound file:

Code:

var s:Sound = new Sound(new URLRequest("Sound.mp3"));
var sc:SoundChannel = s.play();

addEventListener(Event.ENTER_FRAME, loop);

function loop(e:Event):void
{
   if(sc.position > 3000)
      SoundMixer.stopAll();
}

So that would stop all sounds at the 3 second mark of Sound.mp3. That's good to know and could help, but I'm still stuck on how to trigger a sound to play at say frame 20 (or even better a frame label), then play another at frame 135, etc.

Just to be perfectly clear - there are no *user* events that will trigger sounds - this is purely a trailer someone is watching. So all the triggering of sound starts and stops has to come from within.

Can anyone make some suggestions or point to code/tutorials that might help me out? I don't care if it's AS2 or 3.

Syncronize Sounds In Multiple Movieclips
Hello

I have made an "animated band" with 3 individual movieclips on the stage (drum, bass and guitar).

When you click on the drum, it starts hopping up and down and plays a sound-loop (4 seconds) until you click on it again, and then it stops. You start/stop the other movieclips the same way. It´s really fun

Now I would like some help to syncronize the movieclips - a script that counts to four (seconds) and starts the sound in the individual clip at the first second of the loop (waiting for the same rythm as the other guys...)

It is my first question i any forum ever, and I would be really happy if anybody wants to give me a hint to this script.

Play Random Sounds Or Frames
I want to have a button that when clicked will randomly play one of four different sound clips. How do I do such a thing? Or...how do I have the button randomly go to one of four different keyframes where my sounds are sitting? Which is easier, and how do I do it?

Targeting Frames Within Movieclips
Hi there,

I am having a problem targeting frames within a movieclip within a movieclip...

Using this tutorial on macromedia.com...

using timelines for states

...I have made a smart button MC that works. Cool!

Now I want the smart button, when "selected" (see tutorial for referenced frame) to contain more smart buttons. But I can't seem to get these buttons to work!

Do I use _root, _parent, _parent._parent or what??

Please please have a look and guide me in the right direction!

TIA
--- spiral

Synchonizing Frames Within MovieClips
Reposting this from Flash Newbies, 'tis a little complex

Well, I've got a doozy here. Tried to fix it so many times, but no dice. Just can't think of a way to do this. Here is my enigma, hope someone can help.

I'm making a side-scrolling game, and, for the most part, is going fine. However, my character (the variable name is "char") has quite alot of animations. I'm using the technique where you have your main clip, and inside it a bunch of frames with MCs on them which represent running, jumping, falling, shooting, sliding (Mega Man!) However, I want to have him be able to run and shoot (just dealing with animations here) at the same time. My problem? If I just add another Frame to the MC, slap in the Shooting-While-Running sprites and add the code in, it's not in Sync. For example, I would start running, then when the running frame is at, I dunno, frame 7, I'd press Shift (my current shoot button) he'd start playing his running-while-shooting animation at frame 1! It looks ugly.


Here's the culprit code, and I've included my base game in the post as well.





Code:
if (Key.isDown(Key.RIGHT) and locked == false and jumping == false and _root.ground.hitTest(_root.char) == true and sliding == false) {
_root.char.gotoAndStop(2);
} else if (Key.isDown(Key.LEFT) and locked == false and jumping == false and _root.ground.hitTest(_root.char) == true and slidingleft == false) {
_root.char.gotoAndStop(2);
} else if (jumping == true) {
_root.char.gotoAndStop(3);
} else if (walljumping == true) {
_root.char.gotoAndStop(4);
} else if (_root.ground.hitTest(_root.char) == false) {
_root.char.gotoAndStop(5);
} else if (shootnowani == true and shootani<6 and sliding == false and slidingleft == false and Key.isDown(Key.RIGHT) == false and Key.isDown(Key.LEFT) == false) {
shootani++;
_root.char.gotoAndStop(6);
} else if (poweranitrue == true and poweranitimer<6) {
_root.char.gotoAndStop(6);
} else if (slidetimer>0 and slidetimer<6) {
_root.char.gotoAndStop(7);
} else {
_root.char.gotoAndStop(1);
}

Yes, I'm aware my code is kinda messy, and I probably could use to touch it up, but not now.


If anyone can help, please do! Thanks for reading...

The Flash



Oh, the file seems to be too big for this...300 KB limit (I have a few sprites in it...) so I'll just slap it on filefront.

http://files.filefront.com/7304227

Creating Frames In Movieclips With AS?
Is it possible to add frames to a movieclipp with actionscript? I've got many sprite animations with varied frame counts. What I would like to do is create a movieclip in actionscript and add frames based on the animations amount of frames.

eg.
Animation A
walk1.0.body.png
walk1.1.body.png
walk1.2.body.png
walk1.3.body.png

Animation B
alert.0.body.png
alert.1.body.png
alert.2.body.png

Instead of seperate movieclips in the library for each with the right frame counts is it possible to dynamically create a movie clip and add the frames all in actionscript?

Reaching Frames/MovieClips
Okay, here is the scenario. There's the stage for the Game. Then, in Stage 1, there's a Movie Clip (CONTAINER). Inside of the Movie Clip, there are 2 frames. In the second frame, there is one more Movie Clip (MC). It is referenced for a hitTest.

_root.Container.???.Mc.

Stage 1> Container> ... > Mc

How would I reference the "???" and "..."? Basically, how would I tell it to look in the second frame?

Changing Frames In MovieClips
I'm trying to follow a Lip Synching tutorial, and so far I have about 2 movie clips involved. The first movie clip called "camera" and the second, which is inside the "camera" clip called "mmouth". In the "mmouth" clip there is about 5 or 6 frames that have different styles of the mouth shape and each of them have a label such as "e" or "ah".

Now, I clicked on the "mmouth" clip and I am using this script to test it out.

Code:
onClipEvent (enterFrame) {
_root.camera.mmouth.gotoAndStop(3);
}
Now, when I click "test movie" the movies plays and the mouth just cycles through all the mouth shapes that are in the "mmouth" clip, and I get error reports n such. So, what is wrong with this script?

BTW, I'm in a scene called "Chess1"

Accessing Movieclips At Frames N Where N >= 2
At library I have a movieclip named ObjectMC which has four frames (representing four directions). Into each frame an instance of ContainerMC (an empty movieclip) is attached with an instance name of c[frameNo]MC (that is, c1MC, c2MC, c3MC, c4MC). All these created at library.

The object to be represented with this ObjectMC consists of four types of components, e.g. head, body, arms and feet, which are to be determined at runtime. So I wish to attach corresponding movieclips of the object for each direction into frames of an instance of ObjectMC during runtime.

The structure is supposed to be like:

---------------------------------------------------------------

object1MC (instance of ObjectMC):
---------------------------------
Frame 1:
--------
c1MC: head1Direction1MC, body1Direction1MC, arms1Direction1MC, feet1Direction1MC

Frame 2:
--------
c2MC: head1Direction2MC, body1Direction2MC, arms1Direction2MC, feet1Direction2MC

etc. same procedure for c3MC and c4MC
---------------------------------------------------------------

And the code is something like:

---------------------------------------------------------------
var object1MC:ObjectMC = new ObjectMC;

object1MC.x = 50;
object1MC.y = 50;
addChild(object1MC);

object1MC.gotoAndStop(1);

object1MC.c1MC.addChild(head1Direction1MC);
object1MC.c1MC.addChild(body1Direction1MC);
object1MC.c1MC.addChild(arms1Direction1MC);
object1MC.c1MC.addChild(feet1Direction1MC);

object1MC.nextFrame(); // or object1MC.gotoAndStop(2);

object1MC.c2MC.addChild(head1Direction2MC);
object1MC.c2MC.addChild(body1Direction2MC);
object1MC.c2MC.addChild(arms1Direction2MC);
object1MC.c2MC.addChild(feet1Direction2MC);

... (repeat same procedure for the following two frames)

---------------------------------------------------------------

So whenever the direction of object changes, I would use the corresponding frame of objectMC with such command:

objectMC.gotoAndStop(3);

However it seems this doesnot work. I cant get the handle to c2MC (located at frame 2 of objectMC) from inside the code.

Might anyone tell me where my mistake is and perhaps propose an alternative structure for this?

Thanks in advance.

[MX04] Movieclips Appearing In Frames They Were Not Placed In
I'm making a flash game in which each level has its own scene. During a level the movie is stopped. When you complete a level the movie plays and then stops again at the next scene. There is a blank frame at the end of each scene so that if there are movieclips of the same type from scene to scene, they load again.

Here is the confusing part:
Some movieclips, not all, stay on the stage during the blank frame and continue to play into the next scene. They stay in the same place on the screen and continue to interact with objects in the new scene. They just won't disappear
I've noticed that the difference between the ones which do and don't stay is that the ones that do are more recently placed in the movie (and therefor they have loaded more recently).
Could anybody please explain this to me and possibly offer any suggestions on how to get around it?

Duplicated Movieclips Staying On My Stage In Other Frames Etc
Im looking for some kind of technique that will allow me to remove duplicated movie clips after each frame and or scene.

The problem right now is that my duplicated movie clips are on one frame are crossing onto the next frame where I need different movie clips to appear.

So im wondering if there is some sort of clear actionscript I can use to remove them so I can replace them with new duplicated movie clips. Any Suggestions?

P.S. Right now I have all the duplicated movie clips in diff swfs and im linking them but thats also having problems with overlapping.

Exact Frames Length When I Add Movieclips To Timeline
when i add movieclip to the timeline I have to set the ending keyframe to not use more frame than needed on my movieclip and avoid looping.

Is it possibile to specify to add the numbers of frames of the movieclip length to the main timeline instead ?

Targeting Frames On Loaded Swfs Into Movieclips
ls it possible once I load an external swf into a movieclip target to goto a specific frame within the movie.

Having Trouble Changing Frames Of MovieClips (via Menu Interaction) [renamed]
Hey its me again, im stuck here trying to figure how to jump from one frame a movie clip, rot menu, to a frame of another, main, through a button in rot menu, rot menu is a movie clip in symbol 1 which is in another (cant remeber) in main. from frame 1 of main i want the button to be pressed and it takes you frame 2 of main. im using a tellTarget code, which i think is wrong. If anyone can help me please let mw know. I can send you the *fla file by email if you wish
Selorm_k@msn.com

thanks, munky

Copyright © 2005-08 www.BigResource.com, All rights reserved