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




Passing A Variable From A Movie Clip To The Main Timeline



Hi,I'm having trouble passing a variable from a movie clip in my flash file to the main timeline.I have a movieclip with the instance name IntroNav which contains several buttons. Clicking a button sets the variable "page" to a specific name, i.e. page = "home"However, outside of the movie clip, on the main timeline I am unable to call this variable, and "page" seems to have no value.Can anyone tell me why this is and how to solve it?Thanks



Adobe > Flash General Discussion
Posted on: 08/06/2007 05:15:46 AM


View Complete Forum Thread with Replies

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

Passing Variables From The Main Timeline To A Movie Clip.
Hi. I have (successfully) taken variables from a txt file and had them display in some dynamic text boxes on the main timeline of my movie, BUT, I would like them to show in a movie clip (within that movie) instead of showing on the main timeline/movie. The movie is here (the variables aren't shown there) and what I wanna have done is have the variables load up in the main timeline, but when the user presses the launch shoutbox button, I want the variables to be shown in there, get me? So how would I go about passing the variables from the timeline to that movie clip?
Thanks in advance, Chris.

How Can I Target A Variable Used In A Movie Clip On The Main Timeline?
I use a variable in a movie clip to keep time and on the main timeline I wnat to have a message at the end of the program telling you how long you've taken. How can I get the value from the variable in the movie clip to be targetted?

Passing Variable From MC To Main Timeline
I have 2 frames in my main timeline both with stop actions. The first frame has a movie which is basically an intro. At the end of this intro movie i wanted to specify a variable so that the main timeline would play to frame 2. It seemed simple enough with the _global setting but i cannot get it to work with that or _root. In my main timeline in the first frame i have:

if(z < 13) {
stop();
}else if(z == 13){
gotoAndStop(2);
}


In the MC that sits in the first frame I've tried:

_global.z = 1;
_root.z = 1;

at the end of that MC but neither of those pass varibles to the main timeline (i've been using trace). I'm starting to think my Flash MX is posessed because i've read posts on this board which say how to use global variables but it isn't working for me. Please help. I've spent too many hours on this one problem.

Thanks!

Help With Variable Passing To Main Timeline
on main timeline, I declared a varibale;

var nextSection:String;
nextSection = "sample1";

and I have a MC with 20 frames
on the 10th frame

parent.content_mc.gotoAndStop(parent.nextSection);

but I am getting all sorts of errors,

1119: Access of possibly undefined property nextSection through a reference with static type flash.displayisplayObjectContainer.

would some-one explain why this is and how I can correct it ?

attached the fla also.

Thanks in advance.

Passing A Variable Change From A MC To The Main Timeline. Help?
I want to change the status of a variable that has been introduced on the main level, from a movie clip!

The variable is 'fin' , the variable fin is set to NO when a button is rolled over (which starts a movie clip), I DONT WANT ANYOTHER BUTTONS TO WORK UNTIL THAT MC IS FINISHED PLAYING...

SO at the end of that movie clip I want to change fin to "YES" ,

HOWEVER, of course the normal fin="yes" didnt work and neither did _root.fin="yes" ....can someone please help me?

thanks ! tv

Passing Variables From An External Movie To Main Timeline
So I've been fighting Flash (8 if you're curious) for a good half-day and even the internet is letting me down. I'm still in the learning stages, so I'm convinced it's something I'm just totally too dumb to have missed -- if anyone could send me in the right direction, I'd be forever grateful. I'm not going to be able to sleep 'til I figure this out!

So my project is setup like so: I've my main flash file, and it loads external .swfs into a movieclip on the main timeline at _root.content using the loadMovie function. In the first frame of external swf, variables are defined for number of bytes loaded, number of bytes total, and percent loaded. When the percent loaded variable (currently named as loadPercent) reaches 100, the movie begins. No problems there.

Then I have a loading bar on my main timeline. It is set to appear only when an external movie is loaded. Dynamic text fields display the bytes loaded, total bytes, and percent done accurately (path used from within the loader clip is _root.content.loadPercent). That works fine.

But when I try to write ActionScript containing if-statements that reference this variable, it fails to evaluate it correctly. I'm trying to use the loadPercent variable, but I've also tried creating a new one in the main timeline by referencing the bytesloaded/totalbytes variables. That also fails. I've tried declaring the loadPercent as a _root variable from within the external swf, and that didn't work. I tried declaring it as a global variable. No dice. I've tried using it in all kinds of different places, none of which work. Usually it seems to evaluate itself as either undefined, or as the formatted "100" that displays as dynamic text -- except that the variable held all that formatting, HTML-style, too. (I have since eliminated THIS problem by using different variables entirely for the two.)


The strangest part of ALL is that when I export and get the player to list my variables, _root.content.loadPercent SHOWS UP CORRECTLY. (As _level0.content.loadPercent, but this doesn't work for me either, if I try to use it.)

My wits are totally ending. If anyone knows any way to either a) obtain those two variables regarding the external swf from the main timeline or b) pass the variables properly from the external swf into the main timeline, please let me know.

Thanks!


s.

Linking To A Variable On Main Timeline From Inside Clip?
I guess the title says it all, but if I have a frame script that's a couple levels in (inside 2 movie clips), how can I link to a variable on the main timeline?

On the frame inside the clips is just a simple "var mainvariable = 3;"
But the Dynamic text field named "mainvariable" resides on the main timeline.

I can't really figure out how I'd use a _root or anything to get there. I'm sure I'm missing something obvious. Can you help?

Thanks!

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!

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

Passing Variable From External .swf Into Main Movie..
I'm loading an external swf, titled "arial.swf" into a placeholder MC on my main movie "font_typer.swf".

The variable in font_typer.swf is user_input

I want to pass the value of user_input into my external .swf so when it is loaded into the main .swf I can use the variable's value in it.

Ideas?

Passing A Variable From Preloader To Main Movie
So here's my issue, and I suspect the answer is really simple, but I tried the simple way and that didn't seem to work. Basically I have an HTML file that loads a preloader SWF "loader.swf" this preloader then loads up the main movie called "ccc.swf". Now the deal is that the HTML file sends a variable to loader.swf when it loads up, and I need that variable then passed on to ccc.swf.

I have tested and confirmed that the var chosenUnit exists in _root of loader.swf...now how do I pass it along...

BTW, I have already tried a simple:
_root.container.chosenUnit = _root.chosenUnit
I placed this code in three different locations within my preloader code and it still didn't work.

here is the code in the preloader:

code:
// Hides displayed elements
this.reelmc._visible = false;
this.loadbar._visible = false;
percent_display = "";
//create a new movieclip to load
//the external movie into
this.createEmptyMovieClip("container",10);
//load the external movie into the new movieclip
container.loadMovie("ccc.swf");
//check the download status of the external
//movie once every frame
this.onEnterFrame=function(){
//trace the percentage of the movie that has loaded
percent=(this.container.getBytesLoaded()/this.container.getBytesTotal())*100;

if(!isNan(percent)){
// trace(percent+"% loaded");
if (percent == 0) {
percent_display = "";
} else {
percent_display = Math.ceil(percent) + "% LOADED.";
}
this.loadbar._visible = true;
this.loadbar._xscale = percent;
if (percent > 1) {
this.reelmc._visible = true;
}
container.stop();
} else {
// trace("0% loaded");
}
if(percent == 100){
delete this.onEnterFrame;
this.reelmc._visible = false;
percent_display = "";
this.loadbar._visible = false;
loadMovieNum("ccc.swf",0);
}
}
stop();


Let me know if you have any ideas! Thanks!

chigasakigaijin

Passing Variable From Main Movie To Loaded Swf?
hello all,

i am using flash cs3,i have a main movie that load many swf using a document class..

i need to pass "userid" variable from the main movie to loaded swf so they can change their content dynamically,i need your help



thanks in advance



cheers;

Anthony youssef

Passing A Variable From External Swf To Main Movie?
Hi -

I have a main movie, one frame long with one variable defined in the first frame called movieCount. (_root.movieCount=0; ) with a dynamic text field that displays this number.

I then have a movie clip in the first frame of the main movie also that simply loads an external movie into it using loadMovieNum(this works and the movie does load and play).

All I'm trying to do is update the movieCount variable of the main movie from the external swf that's loaded. On the first frame of the external movie I have (_root.movieCount=1; ). This doesn't seem to be working.

I've tried various configurations to no avail. I have a feeling I'm just doing something wrong in relation to paths.

Any help is appreciated! Thanks.

Passing Variable From Main Movie To Loaded Swf?
hello all,
i am using flash cs3,i have a main movie that load many swf using a document class..
i need to pass "userid" variable from the main movie to loaded swf so they can change their content dynamically,i need your help

thanks in advance

cheers;
Anthony youssef

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.

Passing Variables From A Loaded Movie Clip To Main?
All,

Not sure why this is beating me up, but it is...
I can't seem to load a movie clip, and then pass some variables from that loaded movie clip back to through stage_mc it is loading into - to the SubClip.

The structure is as follows:

Main
>SubClip
>>Stage_mc

Where the new movie clip is loading into stage.

I need to pass two variables from the loaded clip into the SubClip.
Simple vars to fill some dynamic text in SubClip.

Any help or a push in the right direction would be appraciated.

I've done the whole _root.myvar thing, _parent, and _global.
without luck..

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 ();
}

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

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?

How To Visualize The Movie Clip In The Main Timeline
Helo,

I cant visualize the movieclip reproduction in the main timeline...

Somebody knows how can i do that?

Thanx so much



:confused:

How Do I Refer To The Main Timeline From A Movie Clip?
how do i refer to the main timeline from a movie clip?

How To Control The Main Timeline In A Movie Clip?
I tried _root.gotoAndPlay(3); in a frame of my movie clip, but it seems to have no effect.

Is there somebody who could show me the right way to do it?

thanks

Link From Movie Clip To Main Timeline
I have a links in a movie clip that need to go to scenes in my flash movie:

on (release) {
_root.gotoAndStop("Home", 1);
}

I thought adding _root. would allow the link embedded in the movie clip to find the scene "Home" frame number 1 on the main timeline - but this isn't working.

Thanks for any help.

From Movie Clip Back To Main Timeline?
I want to break up a long movie into 3 smaller movies so they are easier to manage. Not sure on the best way but here is my thinking..

Put the first movie in frame 1 on the timeline with a stop, 2nd movie on frame 2 and 3rd movie on frame 3. I put an action at the last frame of my first movieclip so that when that movie finished it would go to frame 2 of the maintimeline which would start the second movieclip.

So if i use gotoAndPlay(2); on the last frame of the movie clip it goes to frame 2 of the current movie. How do I go to frame2 of the main timeline so that is starts the next movie instead of frame 2 of the current movie?

Thanks,
-GB

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.

Control Main Timeline From Within A Movie Clip
Is it possible to control the main timeline from within a movie clip without a button? Basically what I am doing is, I have snow using Actionscript on the main timeline, actually I have two snow effects. One is just regular snow, the other is snow that "sticks" and plies up when it hits a MovieClip.

Then, I have a couple other movie clips on the main timeline as well. One is a changing background and the other is snow at the bottom of the screen piling up.

I have 3 frames on the main timeline that keep looping to produce the snow, then inside the movieclips I have about 215 frames. Now, at the end of one of those movie clips, I want the one that was piling up snow to fade out, along with the snow effect that was piling on top of it. What I did was created another scene. However, I can't get to that scene from inside of a movie clip without a button, can I?

Thank you very much in advance.

Movie Clip Back To Main Timeline?
Here is what my Timeline looks like to help show what im saying


And here is the site in action http://scrivener07.i8.com/

OK. I want it to when you click the Enter button the enter button fades out and it does that fine. then I have a shape tween thats a trastion for an intro movie box. and it does that fine. then right after that in the gray frame is where the intro movie clip is. I got it to play by putting
Code:
GotoandStop(21);
in the frame just before the gray frame. So there, the movie clip plays fine. but now after the movie clip iin the gray frame is Finished. btw stop(); is at the end of that clip. it just stops. now I want it to continue onto the rest of the main timeline to the next shape tween. So how do I tell the Movie clip to go back to Frame 22 on the main timeline? I know you guys here are really smart and cool and I love you all. So please help me. Thanks in advanced

Scrivener07

Trying To Run Code Within A Movie Clip From The Main Timeline
here is the fla file - http://www.grokinfullness.com/example.fla

I am trying to run code that is located in the actions layer of a movie clip from the main timeline. I want to do this because I will have 10 identical movie clips that will all have to be manipulated the same way and I do not wish to have to resort to copying and pasting everything.

In the actions layer of the main timeline I put the following code -

stop();

test_mc.insertText();

In test_mc (located in a separate layer in the main timeline) I put a dynamic text box called myTest_txt and the following code in a separate layer -

stop();

insertText = function()
{
myTest_txt.text = "test" ;
trace( "testy test test" );

}

When this is run "test" should appear in the textbox and you should get the trace. Unfortunately, this does not happen. Any ideas on what I should do to make this work?

Having A Movie Clip Play The Main Timeline
How can i make a movie clip play the main time line?

Can A Movie Clip Control The Main Timeline?
ok, heres the deal, im making a game in which if you hit the movie clip (path_mc) you go to the next level (the next frame). The script is on the player.
heres what my script looks like:

onClipEvent (enterFrame) {
if (this.hitTest(_root.path)) {
//action to get to timeline{
nextFrame()
}
}
}

i need a way to preform an action from movie clip to timeline
i tried _parent.timeline, _root.timeline is there any way i could set timeline as a variable?
please help.
thanks in advance.

Movie Clip Not Playing In Main Timeline?
let me get straight to the point - I think it's a bug.

Have you had this problem. I have a moviclip with some text tweened, it is inside another movieclip, and that movie clip is on the main timeline. With I view the swift, I can't see the text. But if I test the movie clip with the text "test scene", it works perfectly, it only doesn't work if I view the whole movie. The text seems to be there but I can't see it, becuase my cursor changes into a text thingy (no it is not hidden behind something else), it is in front. There is noothing wrong with my file, I have looked at every single possible avenue.

I also tried creating a swf out of this movieclip with the text and then load the swf into a movie clip holder

var myMCL:MovieClipLoader = new MovieClipLoader();

myMCL.loadClip("text.swf", "textcontainer");

and it still doesn't work.

BUT, if I load this movie clip into the FIRST scene (root scene), it works. It only doesn't work when it is in another movieclip, which is where I need it. On my main timeline I have a movieclip called "site content" and all my content is in there, so it needs to be in there.

WTF is going on, can you guys help.

Also, on more question, with the exit command for a projector

on (release) {
fscommand ("quit");
}

It quits it straight away. Can I get it to quit after a certain time interval, like 5 seconds so I can hear the button sound and have a little animation before it closes.

Thanks guys

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.

[CS3] Playing A Movie Clip From Main Timeline
Hello friends

I have a problem trying to play another frame in a movie clip from a button on my main timeline. I made a scroll bar and I have Movieclips within many other movie clips. I am trying to play an animation which will change the content that the scroll bar has. However I cant get the movie clip to play another frame from my button on the main timeline. I know if you want a movie clip to play from the main timeline the code looks something like this:

on (release) {_root.pages.gotoAndPlay(2);}

But I think I am having problems because the the movie clip im trying to play is within two other movie clips. Is there code that can get me what I am trying to acomplish??

Thanks
djratlif

Movie Clip Symbols Vs Using Main Timeline
I have a Newb problem.

I think the main advantage to created a movie clip symbol as opposed to doing the animating in the main stage and timeline is that it can get very cluttered very easy. But I am really frustrated that you can't see the animation of movie clip symbols when scrolling through the through the frames in the main timeline. It makes working with movie clips next to impossible for me. I'm sure I'm not understanding something.

Can anyone help me with this?

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

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?

Movie Clip Continues Main Timeline When Done
Hey all,

Any help with this is much appreciated. Since the forums updated i haven't been able to search any topics. So if this question has been previously asked, I'm sorry.

Alright, I have the main timeline of stop just as a movie clip begins to play. When that clip is done, what is the command i put into the last frame of the timeline of the movie clip to make the main movie timeline get going again?

I'm sure this is simple to someone out there. Thanks in advance!

Movie Clip Continues Main Timeline When Done
Hey all,

Any help with this is much appreciated. Since the forums updated i haven't been able to search any topics. So if this question has been previously asked, I'm sorry.

Alright, I have the main timeline of stop just as a movie clip begins to play. When that clip is done, what is the command i put into the last frame of the timeline of the movie clip to make the main movie timeline get going again?

I'm sure this is simple to someone out there. Thanks in advance!

How To Get Back To Main Timeline From Movie Clip
Hi! I'm wondering how to exit a movie clip back to a specific frame in the main timeline. What code should I use for my actionscript? Thanks!

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

Passing A Variables Values From A Movie Clip To The Main Stage
Hi all,

Newbie here. I have been studying up a storm but the learning curve is steep.

I'm perplexed by passing variables from a movie clip to the main stage.

I have a movie clip with an instance name mc1 on the main stage. In that movie clip I declared a variable

c = 5;

on the first frame inside the mc1 movie clip.

I thought I could access that variable inside mc1 from the main stage by placing this on the first frame of the main stage:

x = _root.mc1.c;

Obviously I don't understand what is going on in terms of scope of variables because I keep getting an undefined statement in my variable x.

Some insight would be appreciated.


__________________
Thanks,
Greg

Control The Play On The Main Timeline From Within A Loaded Movie (not A Movie Clip)?
Question... I have a movie (main movie) that loads another movie (movie 2) automatically. Movie 2 contains a button that loads yet another movie (movie3). Now I’m having trouble with this next part... When movie3 loads I want "main movie" to stop where it’s at in the timeline and stop all other loaded movies until the user clicks another button where upon movie 3 will go away and "main movie" will resume. Movie 2 is like the paper clip guy in Word and movie 3 is my help movie. Therefore, it can be accessed at any point during the main movie and I don’t want to use a goTo command to jump to a frame label or scene. Does anyone have any idea how to control the play on the main timeline from within a loaded movie (not a movie clip)?

Movie Clip In Graphic Referenced By Main Timeline
I'm trying to place a scroll bar/text box smart clip atop a graphic being referenced by a button on the main timeline. the text box is declared as a variable and the smart clip loads a text file into the text box. I can get it to work within it's own scene, but in the main movie the text isn't loading into the textbox. For a reference I'm using the same navigaion as the Flashkit featured.fla and same movie structure. Any ideas?

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