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




Controlling Main Timeline From A Button In A Movie Clip...



i have a button inside of a movieclip, and all i want it to do is ON RELEASE...make the main movie GOTO & PLAY another scene.

For some reason, this isnt f*ckin working!

Is this wrong or right?

on (release) {
tellTarget ("_root") {
gotoAndPlay ("rls_details", 1);
}
}


lemme know. Thanks!



FlashKit > Flash Help > Flash ActionScript
Posted on: 09-04-2002, 06:33 PM


View Complete Forum Thread with Replies

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

Controlling A Movie Clip's Timeline Separately From Main Timeline
I've got a problem here that I've been trying to figure out for a while now, and it seems like it should be way easier than this. Here's what I've got:

I'm trying to make a neato little flash swf with lots of buttons that you can push and another little movie clip will show some little animation.

I thought I could get this done pretty simply by making a bunch of buttons, giving them an over, down, hit, sound, etc. and then having one single movie clip do all of the animations, but cleverly use stop(); and gotoandplay();

I have tried a few different ways, searched through the help & tutorials, looked all over forums on the internets, and I still can't get this to work. The main timeline is really just 1 frame, and its only purpose is to just hold all of the buttons. I have given all of the buttons instance names (ending with _btn). There is a separate layer in the main timeline for the actionscript alone, and was hoping to put all of the gotoandplay commands there. The code that I am trying to use in that frame is:


Code:
this.WV_btn.onRelease = function(){this.productzmovie_mc.gotoAndPlay(2);
};
The productzmovie_mc has a command to stop(); in the first frame, and I am trying to get a button to skip to the next frame to get it going. I put a stop(); on the last frame of that animation so that it won't run through the whole thing on the first button press. If I remove that stop(); on the first frame, the whole animation just runs whenever I test it and the button has no effect.

I thought this would be way simpler than making 25 separate movie clips and hiding them or spawning them. Does anyone know what I could be doing wrong here? This seems like a pretty simple operation, and I am probably screwing up some mundane detail (I always do that). Be gentle, I am trying to learn Flash and I am a bigtime n00b. I can post the .fla if you need to see it, but it's pretty simple so far, just lots of buttons.

Thanks!

Controlling The Main Timeline From Within A Movie Clip
Hey folks

I think I have a fairly simple problem.

I have a movie clip placed on the main timeline with a button inside of it. All I want to do is assign an action to the button that tells the main timeline to move on to the next scene. However I am obviously messing something up because the best I can do is tell the main timeline to go to a specific frame within the first scene using

on (release) {
_root.gotoAndPlay(50);
}



but can't get it to go to the next scene using

on (release) {
_root.gotoAndPlay("Scene 2", 1);
}


Any ideas peeps? Any help much appreciated

Controlling A Movie Clip From Main Timeline
Hello Everybody!

I have a button (on the main timeline - in frame 1) which when clicked I want it to make my movie clip (which is on the same frame and scene as the button) go to its timeline, frame 2!

In the button action i put:

on (release) {
MyMovieClip_mc.gotoAndStop(2);
}

I have to be doing something wrong because it ain't doing it. Can anyone help?

Thanks!

Controlling The Main Timeline From Within A Movie Clip
Hi there,

I'm new to this forum so please forgive me if I'm asking a stupid question!

I have a button within a movie clip on the main timeline. The script on the button is:

on (rollOver) {
tellTarget ("_root.book1") {
gotoAndPlay(2);
tellTarget ("_root.2clip") {
gotoAndPlay(2);
}
}
}
on (release) {
gotoAndPlay("dead", 1);
loadMovieNum("resume.swf", 1);
}


The script seems to work fine except for the 'gotoAndPlay' command where I'm asking the movie to move to a different scene.

Am I missing something obvious here or are there deeper problems with the script I've written?

Please help! It's driving me insane!

Controlling A Movie Clip From The Main Timeline
this is probably a real easy issue, but for some reason, i'm just not quite getting it... my main timeline is playing, and when it gets to a certain frame, it needs to tell one of the movie clips in the background to start playing. right now i have a frame with bgmovie01.play(); but nothing happens when the main timeline advances past that frame.

Controlling Main Timeline From Within A Movie Clip
i have a game built that happens within the first frame of a scene--stop action keeps it there. i have a hit action on the timeline of a movie clip (which is on the main timeline) which controls other movie clips on the main timeline successfully, but i need it to tell the main timeline to go to the next scene or frame when the hit action indicates the game is over. i thought...

_root.gotoAndPlay(nextScene);
or
_root.gotoAndPlay(nextFrame);

... would do the trick. i tried the same thing with _parent instead of _root to no avail. any ideas?

i pity the fool who don't help me.

Controlling Movie Clip On Main Timeline
I have a button within a mc and I want it to play on the main timeline, which it does, however when it gets to the last specified frame I want it to go to another frame.
Here is my actionscript I has thus far.
on (release) {
_root.gotoAndPlay(75);
}
Basically I want all of my buttons to play frame 75, however after that each button has a different frame that I need it to go to and play. So frame 75 is basically a transition to the other pages. Each page has that same transition. Any ideas on how to accomplish this?

Controlling Main Timeline From Within Movie Clip
I'm sure this is insanely easy to do, but i can't for the life of me get it to work... here's the problem:

I have a movieclip on my main timeline that contains buttons with in. What I want to happen is that when you press a button in the movie clip, I want it to control where you are going on the MAIN timeline.

Example: (Coded to button in movieclip)

On(press){
gotoAndPlay ("ABOUT");
}

ABOUT is the instance name on the main timeline that i want the movie to jump to. I need a target path or something to tell the button to go to ABOUT on the main timeline and not on the timeline of the movieclip. What do i do?

HELP!

Thx.

- Chris

STILL Problem Controlling Main Timeline With Movie Clip
Okay, here's what I need to have happen.

I have a picture album. When a button is clicked, I want it to give a certain value to a variable and then go play a movie clip of a "page turning", and then assign the movie clip an action at the end of the page turn that says if that variable equals "this", then go and play a certain frame in the main time line. Then different buttons will each play the page turn and then go to a different frame according to what variables I assigned them.


Here's what I've got for the button:

on (release) {
_root.a=="1"
_root.gotoAndPlay ("turn")
}

and this is on the last frame of the movie clip:

if (_root.a == "1") {
_root.gotoAndPlay("Scene 1", "page2");
}

The movie clip just loops, and doesn't go play what I want even when there's a stop command at the end, it just stops on that frame in the clip.
What am I doing wrong?

Controlling Main Timeline From Movie Clip Buttons
Hello,
I have a drop down menu that is a movie clip, when you mouse over it, It drops down and 5 buttons are displayed. So when i put action scipt in it to make the main timeline go to a different flag, It doesn't work. this is what i have tried so far.


Code:
on (release) {
gotoAndPlay("_root", "dorms");
}



Code:
on (release) {
gotoAndPlay("Scene 1", "dorms");
}



Code:
on (release) {
gotoAndPlay("dorms");
}


Anybody help me

Mc Button Controlling Main Movie Timeline?
Hi

Ive got my buttons enclosed inside Movie clips (because the buttons have an animation on rollover and rollout) but i cant make these buttons control the main timeline.

Ie. when i rollover the button the animation works but when i click the button it doesnt make the main timeline GoTo the relevant point.

The MC has a layer with the animation (fading in and out of block for roll over and rollout) which lasts for 15frames. And a layer above it with a button which has the following code:


code:
on (rollOver) {
gotoAndPlay(2);
}
on (rollOut) {
gotoAndPlay(9);
}
on (release) {
gotoAndPlay("Scene 1", 4);
}


Any suggestions?

many thanks

Michael

Mc Button Controlling Main Movie Timeline?
Hi

Ive got my buttons enclosed inside Movie clips (because the buttons have an animation on rollover and rollout) but i cant make these buttons control the main timeline.

Ie. when i rollover the button the animation works but when i click the button it doesnt make the main timeline GoTo the relevant point.

The MC has a layer with the animation (fading in and out of block for roll over and rollout) which lasts for 15frames. And a layer above it with a button which has the following code:


code:

on (rollOver) {
gotoAndPlay(2);
}
on (rollOut) {
gotoAndPlay(9);
}
on (release) {
gotoAndPlay("Scene 1", 4);
}




Any suggestions?

many thanks

Michael

Controlling Navigation Of A Movie Clip Inside A Loaded Swf From Main Timeline
Hi,
I am using the two lines of code below in my main movie to laod another swf into level 50 of the main movie. I then want to control an instance of a movie clip inside the loaded swf called background but the second line (goto) does not work.


Code:
loadMovieNum ("desktops/"+backgroundimage, "50");
_level50.background.gotoAndStop(2);
The first line definately works fine.
Does this mean the hierarchy is such that I should be saying _level50.loadedswf_name.background.gotoAndStop(2)
In which case is there a way of giving the loaded swf an instance name when I load it. Or am I completely wrong?
Thanks again
Robin

Controlling Main Movie Timeline Via A Movie Clip
hi all,

i need some help figuring this out. i created a bunch of frame labels for my main movie timeline to layout the sections of my website (i.e., "home", "news","gallery", etc.). now, i am able to "jump" to the different sections of the site when i clicked on the buttons that i have on the main movie. for example, i assigned the the following codes to the "news" button to go to that section:

on (release) {
gotoAndStop("news");
}

here's the problem: i have also created a short animated movie clip at the beginning of the main movie timeline that, once the animation is done playing, a button appears that allows user to click and enter the site. with the same line of code above assigned to the button (with the "news" word changed to "home" for home page), when clicked, it only goes back to the beginning of the animation instead of the home page section?!

please help! thank you!

michael

Button In Movie Clip To Main Timeline
I have a button(A) that opens a movie clip which contains a button (B). I want button B to go to and play a frame on the main timeline, NOT a frame in the movieclip. Is this possible?

If not, what I am aiming for is a menu of buttons, that are rollovers from which another menu pops up with buttons you can click.

Help!
Thanks

Button In A Movie Clip To Trigger Main Timeline
I have a little problem...I have a navigation menu that is a movie clip containing buttons. I want each button to go to a specific frame on the main time line. But I can't seem to make it work. Does anyone have any ideas?

I tried

on (release) {
gotoAndPlay ("home");
}

But its probably trying to find that frame label within the menu timeline.

http://www.sodiumhalogen.com/new

Button In Movie Clip To Return To Main Timeline
This is similar to the question just posted. I have a movie clip with buttons in it. When a button is pressed I want to exit the movie clip and go to Scene 2 and what ever frame corresponds to that button.

I scripted a button:
on(release) {
gotoAndStop ("scene 2", 1);
}
This works when you are in the movie clip pressing the buttons but on test movie nothing happens.

I tried
on (release) {
unloadMovieNum(0);
gotoAndStop ("Scene2", 1);
}
on test movie the screen goes blank. Apparently it unloads the movie clip but does not go to scene 2 or anywhere else for that matter.

Thank you for any ideas you can give me.

Listbox, Within A Movie Clip, And A Button On The Main Timeline
Hey guys, I've been a silent user of this site for ages, but now comes the time when I have to ask a q' of my own.

I have a List Componant (menu1), which undergoes a motion tween, within the movie clip (drop_down), this list contains the names of the other scenes, and is designed to allow the user to pick what scene to play, which eventially leads back that that scene.

Then I have a button, called goButton, on the main timeline, which needs to allow the user to actually go to the scene in question. Below is the code that im currently using, but im fairly sure i need to start afresh as apposed to edit this, but any help would be much appreciated, the person who actually figures this out gets my eternal gratitude (this is for a fairly major project).

The Code That Is On The Same Timeline As The List Component:


PHP Code:



menu1.addItem({label:"0.357", data:"0.357"});
menu1.addItem({label:"7&7", data:"7&7"});
//and then loads more after that

var listHandler:Object = new Object();
listHandler.change = function(evt:Object)
{
    switch (evt.target.selectedItem.data)
    {
    case "0.357" :
        trace("0.357")
        //_root.superSelect = "0.357";
        //break;
    case "7&7" :
        trace("7&7")
        //_root.superSelect = "7&7";
        //break;
    default :
        trace("something else")
        //trace("unhandled event: "+evt.target.selectedItem.data);
        //break;
    }
}
my_list.addEventListener("change", listHandler);




The Code That Is In The Button:


PHP Code:



on(release)
{
    if (megaSelect == "null")
    {
        gotoAndPlay("Preamble", 1);
    }
    else if (megaSelect == "0.357")
    {
        gotoAndPlay("0.357", 1);
    }
    else if (megaSelect == "7&7")
    {
        gotoAndPlay("7&7", 1);
    }
    else if (megaSelect == "Alabama Slammer")
    {
        gotoAndPlay("Alabama Slammer", 1);
    }
}





As you can see im currently trying to pass the variable megaSelect from the list to the button, preamble is meary an empty scene that occures between the loading scene and the Main Menu scene, any help what so even will be greatly appreciated. To see the Flash in its current, highly unfunctional state, lol, have a look at http://www.wickedmixer.com/mixer.html

Button Inside A Movie Clip Controlling The Main Scene?
Hi, I have a button inside a movie symbol that is on the main scene.

When it is clicked I want to move to a certain frame on the main scene.

I have double clicked on the movie symbol and attached this script to the button:

on (release) {
tellTarget ("this._parent") {
gotoAndPlay(5);
}
}

but it doesnt do anything.

What is wrong?

Thanks.

Button In Movie Clip Not Activating Label On Main Timeline Help Please
i have created a movie clip containing a sroller using actionscript, in this movie clip in this there is a another movie clip containing the pictures and buttons on separate lavers (the bits that scroll)

i have set up one instance of the button which has a onrelease gotoandplay action to scene1, (frame label) project 1

this should move the main timeline to the label and trigger another movie clip, but dosent can anyone shed any light on this

regards jason

i would be more than happy to email the flash document if someone is prepared to take a look

How Do I Script A Back Button From The Main Timeline To A Movie Clip?
Movie clip plays, when it reaches the end there is a stop action. Two buttons are displayed, each one takes you to a different page (in the main timeline, have on(release) _root.gotoAndStop for the buttons)..

On the two pages that the buttons take you to (on the main timeline) I want to put a back button on each to take you back to the movie clip and tell it to go to the last frame of the movie clip and stop. I'm pretty sure I know how to do that, but the problem is I have more than one movie clip: how do I script the back button to send you back to the last movieclip you viewed?

A Button In A Movie Clip Controlling The Main Movie
I have a button in a MC, i want it to tell the main movie to go to (& stop at) a frame labelled "hr". why doesn't this work?: -

on (release) {
_level0.gotoAndStop("hr");
}

TY in advance

Making The Main Timeline Play From A Button Embedded In A Movie Clip
How does one make the main timeline play from a button embedded in a movieclip that is on the main timeline?

How Do I Target A Text Field On The Main Timeline From A Button Within A Movie Clip?
Hi people.
I checked the archives and the tutorials but could not find the answer. Or at least I wasn't smart enough to figure it out......

I have a text box with an instance name textbox. I assigned a layer (AS) with the following code. The text loads fine.

// copy which is loaded
loadVarsText = new loadVars();
loadVarsText.load("mywriting.txt");
textbox.text = loadVarsText.var1;
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
textbox.html = true;
textbox.htmlText = this.var1;
} else {
trace("not loaded");
}
};

This is the AS which I assigned to the movie clip containing the pulldown buttons:

The pull down button menu works fine as well...... Please hang with me. The next paragraph should show my error(s)......

// pulldown menu
onClipEvent(load){
previouslyOver=false;
}
onClipEvent(enterFrame){
currentlyOver=this.hitTest(_root._xmouse,_root._ym ouse,true);
if(!previouslyOver and currentlyOver){
previouslyOver=true;
this.gotoAndStop("On");
} else if (previouslyOver and !currentlyOver){
previouslyOver=false;
this.gotoAndStop("Off");
}
}

I now want to replace the text on the main time line with a new text from the pull down menu button movie clip which holds several buttons.

The code for each button currently looks like this:
The text doesn't load into the text field? Not sure what the target path should look like? Please help somebody.

Thanks a lot, Henrik

// Code for text button
on (press) {
_root.loadVarsText.load("historicevents.txt");
_root.textbox.text = loadVarsText.var1;
loadVarsText = function(success) {
if (success) {
trace("done loading");
textbox.html = true;
textbox.htmlText = this.var1;
} else {
trace("not loaded");
}
};

Loaded Clip Controlling Main Timeline...
I am having a strange little glitch which I can't seem to makse sense of:

I have a main movie timeline which loads in an external clip of a map on frame 10. When you click on a particular area of the map, this external clip sends the main timeline to another frame which loads another clip (using _level0.gotoAndPlay(75)

...at least this is how it works when testing from Flash. However, as soon as I run the movies in my browser (from Safari or Firefox), it stops working. It will not send the main timeline to another frame. I've trid using _root as well as _level0, but no luck.

Any ideas?

Thanks!

Mc Button Controlling Main Timeline?
I have to utilize a button within a MC which tells the main timeline [scene 2] to go to frame 2, but when I use:

On Release{
gotoAndStop ("Scene 2", 2);
}

Nothing happens.


Any advise appreciated.

Button Inside MC Controlling Main Timeline
Hello,

I have a movie clip on Scene1 of my timeline and inside that MC is a button, how can I set it up so that when that button is clicked the main timeline moves ahead one frame? Everytime I try to advance the main timeline one frame it only moves the MC ahead one frame!

Thanks!

Controlling Main Timeline From A Nested Button
dont know if i phrased that right or not but heres what i have a nested movie clip that has this actionscript:

on (rollOver, dragOver)
{
gotoAndPlay(16);
}
on (rollOut, dragOut)
{
gotoAndPlay(23);
}
on (release)
{
_root.link = 2;
_root.play();
}

Now everything works but i am having problems on the main timeline. i need it to gotoAndPlay frame 84 on the main timeline. This is the actionscript that came with the thing im learnign from. and to me it makes no sense. So what woudl i change to make this a little more sensible all i need is help with the on (release) portion.

what exactly is the root.link = 2 supposed to achieve is this a better method of doing something i am not familliar with? all i can think of is that is saying go to the second frame label. but i dont know thanks for the input.

Boom

Controlling Main Swf Timeline From Button In External Swf
so i've searched the archives and it doesn't seem that anyone has had problems with this. i think it's a really simple answer but i'm flash-stupid so if this is a silly question, i apologize and hope for an answer! my project is due tomorrow and i just barely got my preloader to work.

anyway, i have a main swf that controls all of my external swfs. i have a keyframe every 5 frames that has a movieclip on it. the movieclip calls the external swf with loadMovie("bedroom.swf", mh_bedroom) (as an example) . the thing is, every external swf is like a movie that continues like a story (except the story is separated into 10 swfs). so i have a button in my first external swf that is:

on (release) {
_level0.bedroom.gotoAndPlay("67");
}
when i click it, it just gives me a blank white screen. i want the button to call the main timeline (the one that holds all of the movieclips for the external swfs) so that it will go to a specific frame that holds the next movieclip/external swf that is supposed to play.

i hope that made sense. and i hope it's an easy fix that i just can't realize!

any help asap would be REALLY appreciated! thank you!

Controlling Movie From Main Timeline
okay, here's the plot:

I've got a movieclip of an airplane.
The whole clip is the plane retracting and putting out the landing. Now The first part until frame 10 is retract.
I need to make the movie play the 1st 10 frames and then stop. The gear is up then. If the gear has to go down, It needs to play frame 11 till 20 and stop on 20.
This has to be done from the main stage, or another object like a button.

I tried tell target, but that wont work or maybe I didnt get it right.

(or should I go to the newbies forum)

Controlling Main Timeline From Placed Movie Menu
hey,

I'm trying to make a simple site with multiple scenes for each section. I want to have the same menu in each scene by making it a movie that is placed in the main timeline. How can I make the buttons on the placed movie switch to different scenes on the main time line, ala _parent and _root.togo?

thanks,

Controlling Main Timeline From Loaded Movie
I have loaded an external movie onto the main movie in a movie clip called "mainholder" - In the main timeline on the main movie there is a "stop" command on frame 1. From the loaded movie, I want to control the main timeline and tell it to go to frame 2. Can someone tell me the actionscripting to do this, I have tried several commands and getting frustrated. ;-)

Thanks

Controlling The Main Timeline With Buttons In Movie Clips
alright i have some buttons in a movie clip as a navigation bar, and i have no clue how to get it to work on the main timeline. i can control the movie clip with the main timeline, but not the reciprocal...some help would be greatly appriciated or however you spell it.


P.S.....im hot.

Buttons In Movie Clips Controlling Main Timeline
Greetings

Ive been having problems getting buttons within a movie clip to control the main timeline and switch scenes. Ive tried everything from _root.gotoAndPlay to with(_parent) and such. If anyone has any tutorials or hot fixes for this please post.

Movieclip Buttons, Controlling Movie From Main Timeline...
I have some buttons inside a m.c., and I when you click on these buttons they load external swf's. Now, I am trying to place all the code for these buttons on the main timeline instead of inside the m.c.

I tried a few things--

partc_btn.onRelease = function(){
loadMovieNum("partc.swf", 1);
}

medicareBTN_mc.partc_btn.onRelease = function(){
loadMovieNum("partc.swf", 1);
}

any suggestions????

thanks,
hutch

Buttons In Movie Clips Controlling Main Timeline
Greetings

Ive been having problems getting buttons within a movie clip to control the main timeline and switch scenes. Ive tried everything from _root.gotoAndPlay to with(_parent) and such. If anyone has any tutorials or hot fixes for this please post.

Movieclip Playhead Event Controlling Main Movie's Timeline?
Is this possible?

The app I'm developing has a rather complicated situation, like this, involving different navigations and "screens" within each movie clip:



main movie > mc1 > mc2

On certain frames of mc2, there are a bunch of stopped movie clip animations. Pressing a corresponding button makes one of those movie clips play. Let's call it mc3.

I want this to happen: Once the last frame of mc3 plays, I want the entire flash movie to gotoAndPlay a different scene ("Scene 3", to be exact...)

I'd like to avoid using '_root' since this entire monstrosity will eventually be treated as an external SWF and loaded into an even bigger, deeper flash movie. (the main navigation).

Nothing I try with my hunt-and-peck knowledge of AS seems to work.
Would the actionscript even go inside mc3, or somewhere else? That's what I was trying for a long time...

Control Main Timeline With Movie Clip In Main Movie,,
I could really need your help on this.

http://www.flashkit.com/board/showth...hreadid=465355

Movie Clip Timeline Vs. Main Timeline
Ok, i have made a movie clip in Swift 3d and have imported it into Flash MX. Now it is in the first frame as flash will place it there and what i would like to have happen is to tell frame 1 that when the movie clip's timeline ends and stops(frame 90) to then move the parent timeline to continue with stuff
If any one reads this please help or refer me to a MX book that is worth the valuble time we think we have!
Mike

Loading Movie Into Main Timeline From Movie Clip Within Main Movie
Hi there,

I'm having major difficulties loading external SWF's into my main movie. The button actions are in a movie clip within the main movie. I've used the following AS to load in my external SWF files on higher levels:-

mybutton_bn.onRelease {
loadMovieNum("two.swf",1);
unloadMovieNum(2);
unloadMovieNum(3);
unloadMovieNum(4);
unloadMovieNum(5);
}

Similarly, my external text files are not loading!

myLoadVars = new LoadVars();
myLoadVars.onLoad = function() {
my_txt.htmlText = myLoadVars.myHTMLdata;
}
myLoadVars.load("textfile.txt");


All works fine until I upload to the server. It's really driving my around the bend. Any suggestions will be gratefully received.

Many thanks

Q.

Controlling Main Movie From A Loaded Clip
here's my problem: i've loaded a movie clip into my main movie, and when it finishes playing, it needs to tell the main movie to gotoAndPlay. what am i missing? right now, my script is this: "_parent.gotoAndPlay("stopped");" i've tried plenty of different combinations of _parent, _root, etc.

any help would be appreciated.

Controlling Different Movie Clip On The Main Stage
hey I was wondering how would you controll different movie clip on the main stage, the moive clip I have has naviagtion buttons. But when it comes to previewing the fla file I can't seem to access those buttons on the main stage, please HELP

Controlling A Movie Clip Timeline
I am using a loaded movie clip in my movie. This script is on a button:

loadMovie("largeWorks_mc.swf",_root.largeWorksE_mc);

Why can''t I control this loaded movie clip from a button in another movie clip:

large1_btn.onPress = function (){
_root.largeWorks_mc.gotoAndStop(5);
}

Controlling Movie Clip On Timeline
Hi, newbie question.

If I put a movie clip on the main time line and that movie clip has its own time line, is there a listener I can use to detect when the movie clip I put on the main time line is finished (reached its last frame).

Thanks.

Can I Preload A Movie Clip That Is On Main Timeline?
Ive seen this done, and now I need to do it. I want to do a percentage preloader for a movie clip. I think my nesting is wrong. Here is the script as it is not working. If anyone knows how to do this, you will be helping me save the world. The crap below might be totally off. Feel free to bust on me.

cmov is the MC I want to load.

total = 250;
download = int(_root.cmov.getBytesLoaded() /1000);
if (download>=total) {
tellTarget ("_root.cmov") {
gotoAndPlay (2);
}
} else {
play ();
}

Control Main Timeline From Within A Movie Clip? Help
Please help...
I have a video game on the main timeline of a scene. The scene label is "Game"... before the game starts, I have frame 1 of the main timeline attach the movie clip "Instructions" and play it. Once instructions reaches the end, I have Flash remove the video clip(works) and I want it to go back to the main timeline(Game) and play frame 2. What command do I use to have it do this? I tried:

Game.gotoAndPlay(2);
_root["Game"].gotoAndPlay(2);

BUT it Doesnt Work! I assume because "Game" is the Scene name, not a movie clip name... Any ideas on how to do this??

THANK YOU!

Controling A Main Timeline From A Movie Clip
I am simply trying to tell my main timeline to go to another scene from a movie clip. I have used:

tellTarget (_parent) {
gotoAndPlay ("scene2", 1);
}

but it just won't work. I can control the current scene using this script but not change scenes.

Any idea what the problem is?

Attaching Movie Clip To Main Timeline
I have made a movie symbol that I would like to play in the main timeline. When I place the movie symbol in the timeline it doesn't play. Am I missing something? Actionscript?

Any help would be appreciated.

Main Timeline Control From A Movie Clip
we got a problem, we want to jump to specific keyframe in the main timeline from a button in a movieclip. Please tell us how?

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