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




Movieclips That Control Timeline



I need to play the main timeline using actionscript in a button contained in a movieclip. My movieclip is a dragable button and when it hits an area it is supossed to run the main timeline.
This is the script I'm using on the button but it doesn't work:

on (press) {
startDrag("/box", true, 401, 186, 669, 383);
}
on (release) {
stopDrag();

if (_root.box, hitTest(_root.area2)) {
gotoAndPlay("Scene 1", 5);
}
}


I have no actions on the movieclip

Thanks in advance!



FlashKit > Flash Help > Flash ActionScript
Posted on: 01-18-2006, 04:32 PM


View Complete Forum Thread with Replies

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

Sound Control With Pause Button As Well As Timeline Control
Hi there

I have a flash page, with a ambient track playing. I added a pause and play button. So you press the button then it stops, then you press it again then it plays...

So now i want to make it so that if you go to the 'WORK' page on the site, wich is on its own frame, and wich has different buttons linking to it, then i want the sound to switch off when i am on the work page as well.
So if the background ambient music plays, and you go to work then the sound switches off. Untill you switch it back on again
How is the best way for me to do that?

Why Do Movieclips Inside Movieclips Have Different _x And _y Than The Timeline?
I'm confused, why does a MC inside another MC have different _x and _y values than the main timeline?

What I am trying to do right now is animate a MC inside another MC then get the main MC holding everything to move where that new MC ended animating at (it's part of a game I'm making.)

I know it's confusing but Flash shows the cursors current X and Y in the info panel, which is the same as the main timeline. Yet inside the movieclip, an x of 76 and a y of 277 on the timeline is -195 and -30.9 (respectively) inside the MC.

How do I fix it so I can get the _x and _y values to match up so I can tell the main MC to reposition itself to the new X and Y (of the inside MC)

How To Control The Main Timeline From An MC Timeline?
May an action in a movie clip's timeline or within an OnClipEvent target the scene's main timeline, say, forcing the swf to go to its third frame, for example? Thanks for any idea.
P.S. Actionscript 1.0

Control Of Main Timeline From Another Timeline
Working in Flash Pro 8 (on a Mac), I've got a movie clip on the main timeline. Within the movie clip is a button which, upon pressing, reveals a series of three more buttons.

My objective here is that when you press any one of those given buttons that are within the single button that is within the movie clip an instance of which is on the main timeline that it will take you back to a specific frame on the main timeline.

I am having a devil of an unsuccessful time with the concept of connecting back to the main parent timeline from a child timeline.

Any words of direction on how this is accomplished would be, as usual, appreciated.

Christian Seaborn
seaborn.christian@gmail.com

How To Get All Movieclips From One Timeline
Hi everyone,

I'd like to loop through all movieclips in a timeline but don't know, how many of them are on this timeline at a certain frame (nor do I know the instance names).
Best thing would be an array or collection - just like all properties of a movieclip.

The goal is to stop all mc's with a "pause"-button - and of course start them again with "continue".

Does anybody know an answer or a hint to this problem?

tia
Edi

Timeline And Movieclips
Could someone please explain how I step into and out of a movieclip's timeline when the movieclip is placed into a single frame on the main timeline?

At present when I step through the movieclip itself it plays fine but when I add the movieclip to the main timeline and try to play it the clip appears to be skipped over.

Any help would greatly be appreciated.

Help With Timeline In Movieclips,
I have a movieclip on level1 in my movie.

The main timeline level0 is stopped,

but after this movie on level1 finishes playing, I want it to go to Scene 2

the problem is, placing goto andplay scene 2 frame 1 ( or _root.goto.andplay. bla bla) at the end of the movieclip doesn't work.

any ideas? advice?

Thankyou VEry much

--wyatt

Movieclips And Timeline
Attached is a small file of what I am trying to do. I do not know if this is the right way to do this. I am trying to make a animated movieclip and put it on the
main timeline on frame 1 and then on frame 2 of the main timeline have it disapear and another movieclip apear. Just learnig Flash.telekes@rcn.com if you want to email me.

Help With Timeline In Movieclips,
I have a movieclip on level1 in my movie.

The main timeline level0 is stopped,

but after this movie on level1 finishes playing, I want it to go to Scene 2

the problem is, placing goto andplay scene 2 frame 1 ( or _root.goto.andplay. bla bla) at the end of the movieclip doesn't work.

any ideas? advice?

Thankyou VEry much

--wyatt

Movieclips And The Main Timeline
Have a preloader in a movieclip placed on the timeline.
Now it calculates the percentage which is fine and works.
Now when the movie loads and percentage gets to 100 there
is a button placed within the movieclip to continue to a label named MUSIC on the main timeline.
the button is not working. What is the correct code
to be used for this script to get the moviclip to recognize the label "MUSIC" on the main timeline.
sorry not at home unable to give the code......

Movieclips Apearing In Timeline
Is there a way that we can preview the movieclips on the main timeline in flash? Instead of going in the movieclip to see houw long the duration of the animation is and then setting the correct number of frames on the timeline.
Its just such a tedious process that would be much easier if i could just see the movieclip animate on the timeline instead of constantly seeing the first frame of the mc.

Number Of MovieClips In The Timeline
hi Friends ,
how to find the total number of movieclips in main Time line?..

Thanks and Regards
Karthick Raj.S

MovieClips In Timeline Levels Again.. Help. Still.
OK i've posted this a couple times but nothing has worked,

I'm trying to get the movie to go to Scene 2 at the end of a movieclip.

Below is an example of what I'm trying to do.

_root.gotoandplay doesn't work

and neither does gotoandplay

so i'm stuck. still, any help or advice on where i could find help would be real awesome. Thanks!

--wyatt

Animated MovieClips On A Timeline..
I have a series of thumbnails that I have made into movieclips so that I could animate them. I have named all the instances. I have a main jump page to go to a particular picture. Each picture has a set of thumbnails (movie clips) that are animated on each. When I built it, they work fine by themselves, but when I created my "jump page" the smaller thumbs lose their overstate and onRelease. My actionscript loads on the jump page and to a frame that I request with no problem, but. Why is my actionscript not working?

stop();


mike.onRollOver = over;
mike.onRollOut = out;
mike.onRelease = down;

function over() {
this.gotoAndPlay(2);
}

function out() {
this.gotoAndPlay(5);
}

function down() {
this._root.gotoAndPlay(101);
}

john.onRollOver = over;
john.onRollOut = out;
john.onRelease = down1;

function over() {
this.gotoAndPlay(2);
}

function out() {
this.gotoAndPlay(5);
}

function down1() {
this._root.gotoAndPlay(110);
}

gretchen.onRollOver = over;
gretchen.onRollOut = out;
gretchen.onRelease = down2;

function over() {
this.gotoAndPlay(2);
}

function out() {
this.gotoAndPlay(5);
}

function down2() {
this._root.gotoAndPlay(120);
}

johnathan.onRollOver = over;
johnathan.onRollOut = out;
johnathan.onRelease = down3;

function over() {
this.gotoAndPlay(2);
}

function out() {
this.gotoAndPlay(5);
}

function down3() {
this._root.gotoAndPlay(130);
}

george.onRollOver = over;
georoge.onRollOut = out;
george.onRelease = down4;

function over() {
this.gotoAndPlay(2);
}

function out() {
this.gotoAndPlay(5);
}

function down4() {
this._root.gotoAndPlay(140);
}


pablo.onRollOver = over;
pablo.onRollOut = out;
pablo.onRelease = down5;

function over() {
this.gotoAndPlay(2);
}

function out() {
this.gotoAndPlay(5);
}

function down5() {
this._root.gotoAndPlay(150);
}

MovieClips In Timeline Levels Again.. Help. Still.
OK i've posted this a couple times but nothing has worked,

I'm trying to get the movie to go to Scene 2 at the end of a movieclip.

Below is an example of what I'm trying to do.

_root.gotoandplay doesn't work

and neither does gotoandplay

so i'm stuck. still, any help or advice on where i could find help would be real awesome. Thanks!

--wyatt

Why Can't I Control My MovieClips?
I have 5 different buttons that control how a movieClip called "facultymenu" proceeds. I set up everything the way I should have (I hope), and lo and behold...nothing happens. So, I tried something simpler, like removing all the "if" statements, just to make sure that the movie could be controlled...no go. So, I have a simple button, that is supposed to send my MC with the instance name of "facultymenu" to the label "jinksstart". But, nothing happens. I tried using just the gotoAndPlay(2), but nothing happens. I haven't had this problem before, so does anyone know why I would now? The buttons are on the main level of the movie (well, in the main timeline, anyway), and the MC I'm trying to control is also on the maintimeline. So, I have this going on on the first button:


Code:
on (release){
facultymenu.gotoAndPlay("jinksstart");
}
I've also tried:


Code:
on (release){
facultymenu.gotoAndPlay(2);
}
The MC has a "stop()" command in the first frame.
I've even tried changing the name of the instance to something that isn't the name of the MC, like "bob", but nothing is happening. Does anyone know what I'm doing wrong here? Am I just totally forgetting something simple?

-CJElven

Control Movieclips
Hi there,

I have a question about movieclips... I made a movieclip that contains a mouse over / out action that controls that movieclip itself. But now I want to add a script to that same action that controls another movieclip, so not the same movieclip. Can anybody tell me how that works?

Thx
Joost

How Can You Control All Your Movieclips
How can I tell all my movieclips in Scene1 to br turned to alpha = 0 in actionscript.

I started with
welcome_mc._alpha = 0;
res_mc._alpha = 0;
info_mc._alpha = 0;
veh_mc._alpha = 0;
prot_mc._alpha = 0;
terms_mc._alpha = 0;

Then I added the _root in front

_root.welcome_mc._alpha = 0;
_root.res_mc._alpha = 0;
_root.info_mc._alpha = 0;
_root.veh_mc._alpha = 0;
_root.prot_mc._alpha = 0;
_root.terms_mc._alpha = 0;

_root doesnt work
what about global functions? I'm so confused I just want all those _mc to be turned to alpha = 0 through out scene 1 all frames.

Control Movieclips
Hello i want to know, how can i control a moviclip from an external swf in my main movie

thank, hope u got my question

Control Movieclips
Hello,

can any one tell me, what is the best way to control colors of movie clips with color picker?
I have example in attache file.

I wanna change color with color picker. When I start movie, color of MC's will be grey but in frame 30 some mc's will change color(depends what you pick with color picker).

in frame 1:
all objects( 1 to 17) = grey

in frame 30:
object1,2,3,4 change color
object 5,6,7,8,9 are blue
all other object who wasn't pick are grey

i hope i was understandable

by

Control Movieclips......
i've a couple of mc on the main time along with the a mc which has stop ,play,rewind.. as buttons..

i want to control a movie clip which is being played with these buttons...

i've all the mc named, but i'm unable to think of how to get the mc instance name which is being played so that i can perform stop, play operations on it...

any help would be appreciated..

thanx
kumar

Playing Movieclips In Main Timeline
I asked this question in the MX forum but nobody gave me any useful advice apart from the file size wasn't big enough to make it play slowly.
I'm using MX. basically my problem is this. I have a webpage I've made in flash, on the first frame I have a preloader (the loading with the dots thing) and I've scripted onto it, goto and stop on frame two. on frame two I have an instance of an animation which is 150 frames long. on the animation itself I have a stop action, and a goto and stop on scene 1 frame 3. BUT when I play the swf it just loops the animation on frame 2 and never gets to frame 3. If I make the frame one action a goto and play then it jumps straight to frame 3.
PLEASE someone help me. I'm feeling SO dumb here. I'm sure it must be something basic I have got wrong.
thanxs heaps

Co-ordinates Of Movieclips On Main Timeline
I have two movie clips, one called 'panel', the other 'box'. Both have registration points set to top left 0,0. I put one instance of each on the main timeline, their registration points roughly on the same location, with 'box', which is smaller, on top of 'panel'. Since 'box' will be draggable, I wanted to find a way to check if 'box' is inside the boundary of 'panel'.

I used some text boxes on the main timeline to check their co-ordinates, and put in actions such as:
boxTY = _root.box.boxshell._y;
panelTY = _root.panel._y;

where boxTY and panelTY are text boxes designed to show the top y position of box and panel, and boxshell is the background in 'box'.

I thought their value would be similar since I put them on near the same location. But they differ by nearly 200. This seems so illogical, but there must be an explanation. Can anyone tell me how to get the comparable co-ordinates of the two movie clips on the main timeline, so that I can check their position relative to each other? is this possible?

Movieclips Independant Of Main TImeline
Maybe I'm just not 'getting' it, but it's supposed to be that movieclips are independant of the main timeline. So here is a situation that should work:

I have a movieclip with an animation. I need this animation to loop forever. So, I place it in a movieclip. The main timeline has a fade in on that movieclip, and then is told to stop, by adding a actionscript "stop;" to the frame after the fade in. However, the movieclip isn't playing.

If I remove the "stop;", and then add 200 frames to the main timeline, I see it animate, but not forever, so it seems to me that it's animating only until the end of the main timeline. Isn't it supposed to keep going? I'd like the movieclip to keep animating, but the main timeline to stop.

Thanks, and sorry if this really is a dumb question. I can post the fla if necessary, but it has client data in it, so I'll export it to another if needed.

Nested Movieclips And Timeline Conflicts... :S
Lo again.

Still working on my Flash MX 2004 project, and I've run into another problem.

I have a main tmeline with one frame. One layer contains functions that are called by MCs nested inside a MC on the main timeline named 'container' (this is just to constrain the movieclips to a certain area of the screen).

The 'container' mc also has one frame. All it really contains are 3 MCs that reference the functions on the main timeline and use them to move at random speeds and in random directions. This aspect works fine, so far.

One of the 3 MCs (the one I'm using to test the higher functions on - the other 2 just move randomly at the moment) has several frames, on each of which is residing a stop(); action. Each of these frames has text that descibes which direction the clip is facing (left, right, up or down) and what speed it's travelling at (stationary, walking, running or sprinting). What I want to do is nest animations in these frames which play when called. So far, the single-frame text boxes work fine, but the simple walk_forward animation nested in the appropriate frame doesn't get past frame 1 (I inserted a trace("stuck on frame 1!"); message to test this).

I think the problem may have something to do with the fact that the _root and _root.container MCs have only one frame, whilst the walk animation is on 16 frames - either that, or the stop(); action on the walking animations's _parent. clip is interfering with things ... but all my attempts to figure it out have failed. Anyone got any ideas? I've attached that .fla in case you need it to figure out what the heck I'm on about...

Movieclips Calling The Main Timeline
ppl,

having some issues with getting a movie clip.

at frame 10 (on the maintimeline) a movieclip is loaded and begins to play. there is a stop(); command on the main timeline whilst the moviclip is playing.

i then have a frame called "begin" which i want the movieclip to return to and play from once it has finished.

in the movieclip, at the end i have the script gotoandplay("begin").

i thought this was the method used, but what actually happens is the movieclip loops and doesnt return to the maintimeline at "begin"

any ideas ??

External .as Referencing Timeline MovieClips
Hi,
I have a flash file which has an Movieclip "Inventory" in the library that is linked to its own external class file that is responsible for its behaviors. Within this movieclip there is another clip that is on the stage called "LevelIndicator".

I'm trying to get the external class "Inventory" to refer to "LevelIndicator" but i'm not sure how to target it in the code of the external class.

for example i have the following function within the Inventory class:
function getLevel():Number{return LevelIndicator._y;}

Actionscript produces an error saying there is no property with the name LevelIndicator.

Is it possible to target these clips, or would they have to be attached within the class itself?

Referencing Movieclips On Main Timeline
Hi, I know this issue has been talked about a considerable amount on here and other places. I did my fair share of searching and trying a few different methods.. but nothing has worked for me yet.

I have movieclips I created sitting on the stage of the main timeline with instance names deck, titles, stats, and ui.

In frame 2 of a movieclip INSIDE the ui movieclip, I'm trying to reference the movieclips sitting on the main timeline.

I do not have a main document class- its making its own when i run the swf.


Code:
this.parent.stats
// this throws an error: 1119: Access of possibly undefined property stats through a reference with static type flash.display:DisplayObjectContainer.

this.root.stats
// this throws an error: 1119: Access of possibly undefined property stats through a reference with static type flash.display:DisplayObject.
So I also tried creating a dummy mc on the nested movieclips stage and using it to access the root.. and after that failed I tried tying the movieclips on the main timeline to a classname and adding it to the stage with code so i could type it as a movieclip.. no luck there either.. examples below


Code:
dummy.root.stats
//throws the same error as above

var stats:MovieClip = new Stats();
addChild(stats);
//didn't change a thing
As you can see I'm stretching quite a bit What's the correct to do this from code on the timeline? I'd like to not have to make this completely class based if possible.. is that the only way?

Thanks for any suggestions!
Alan

Call A MovieClips Timeline While In Another MovieClip
Ok this is going to be hard to explain but i will try my best.

I have a button inside a MovieClip with an instance name of "playBTN". When you click a Button inside Continue named "pHit" I want the function to gotoAndStop(2) inside a movieclip on the main timeline named "selectContainer"

I have tried everything so far like "parent.selectContainer.gotoAndStop(2)" and "root.selectContainer.gotoAndStop(2)" but i keep getting the Variable undefined error. Any help on how to the scope works?

Code: First code is inside MovieClip "playBTN"


Code:
pHit.buttonMode = true;
pHit.addEventListener(MouseEvent.CLICK, select); //pHit is the MovieClip inside MovieClip "playBTN"

function select (e) {
_parent.selectContainer.gotoAndStop(2);
}
This Code is inside movieClip "selectContainer"

Code:
trace("It Worked");

AS3 Plays All Movieclips In Timeline Before A Given Frame?
Ok, I am going to try to explain this problem as best I can, but it is kind of hard to put into words... It seems like a bug to me, but I could be wrong, maybe this is the way AS 3 supposed to work.

I have 4 movieClips in my library named "MC1","MC2,"MC3","MC4" Each with 2 layers and 2 frames, on Layer 2 is just a textfield that says what movieclip it is, Like "MC1" which spans 2 frames, on layer 1 I have trace commands...

On frame 1
trace("MC1 Start") //this obviously changes to MC2 Start...etc with whatever movieclip i am in

on Frame 2
trace("MC1 Stop")

On the Stage timeline here is what I have

Frames 1-4 -- Blank
Frames 5-10 -- MC1
Frames 10-14 -- MC2
Frames 15-19 -- MC3
Frames 20-24 -- MC4

If in frame one I say--

gotoAndStop(15)

which is where MC3 resides, here's what I get in the output window:

MC1 Play Start
MC2 Play Start
MC3 Play Start
MC3 Play Stop

If I put:

gotoAndStop(20)

Which is where MC4 resides, heres what output says:

MC1 Play Start
MC2 Play Start
MC3 Play Start
MC4 Play Start
MC4 Play Stop

So in AS3 if you go to a frame number each and every movieclip before that given frame is loaded into memory and the first frame plays?!? Is this how it is supposed to work?

The reason I even started examining this, is because if you have an embedded sound in any of those movieclips and you go to frame 20, all embeded sounds before that clip will play as well. Am I missing something here, or is this a bug? Please let me know. If there are any questions about the problem, I will be happy to provide an .fla.

Thanks

Controlling Timeline With Movieclips (_parent ?)
ActionScript Code:
_parent.gotoandStop("game",2)




I have the above code in the last frame of an mc...I am trying to get the timeline to go to frame 2 when the mc reaches that frame....what's going on? Thanks in advance .

Using Timeline MovieClips In An Extended Class
Hello

I have written a class that uses some movieClips that are laid out on the time. I want to extend this class for some special scenarios and am coming up with a complie error. That the instance name reference I use in the first class is undefined.

This is simplified code of the first base class


Code:
package{

import flash.display.MovieClip;

public class PopupTag extends MovieClip{

function PopupTag(){
myTimelineMovieClip_mc.x = 10;
myTimelineMovieClip_mc.y = 10;
}
}
}
And this is the class I want to extend the above class


Code:
package{

public class SpecialPopupTag extends PopupTag{

function SpecialPopupTag(){
}
}
}
I get this error
1120: Access of undefined property myTimelineMovieClip_mc.

Controlling Timeline With Movieclips (_parent ?)
ActionScript Code:
_parent.gotoandStop("game",2)




I have the above code in the last frame of an mc...I am trying to get the timeline to go to frame 2 when the mc reaches that frame....what's going on? Thanks in advance .

Control Movieclips From AttachMovie
i have a 150frames movieclip (split) in library.

is that possible to control the 150frames attached movieclip (split1) by gotoAndPlay and gotoAndStop?

like this:

initB = new Object();
initB._x = 200;
initB._y = 200;
initB._visible = false;
_root.attachMovie("split", "split1", 2, initB);

can i still control the split1 attached movieclip to gotoAndPlay(50) or _visible = true?

Using Actionscript To Control Movieclips?
Thanks in advance to anyone to helps out with this... I'm still learning my way around flash.

My question is this...

Is it possible to use actionscript to link the pressing a button to a specific frame in a movie clip?

My problem here is this... a portfolio I am building for a client is set up with thumbnails on the left side of the page and the larger image they have clicked on, on the right side of page. When the user clicks "return to main menu" I want both thumbnails and large image to fade away. No problem with the thumbnails because they always remain in the same position and on the screen so I can fade those away... but it's impossible for me to know which larger image is loaded at the time.

So again... is there a way to use actionscript to jump to a specific frame in an embedded movieclip? This way I can apply an alpha property to the clip no matter which frame it is on.

Thanks again!

Using Buttons To Control Movieclips...
Hey,

I'm trying to tell a movieclip to go to a certain frame and play using a button. The movieclip is on a different layer than the button..

I am using

on (release) {
_root.stage.goToAndPlay("stage1,50")
}

where stage is the layer that the movieclip i want to control is on, and stage1 is the name of the movieclip. 50 being the frame number I want to play.

Anyone know why this isnt working?

[f8] Depth Control On Movieclips
Hi,

wondering if someone is able to confirm something for me...

I've been playing with someone else's fla.file and been trying to teach myself about the throw mc option. Basically i've got 10 squares which load on to the main screen and you can throw them around - but they dont jump to the front...


I've been trying to make this happen by adding this to the movieclip, but it's not working

code: on (rollOver){
mx.behaviors.DepthControl.bringToFront(this);

I've had a look at the main "as" which came with the file and seen this

code: for (var i = 0; i < kNbrBalls; ++i) {
var mc = this.attachMovie("superball_mc", "mc"+i, 1+i);

not sure what this is exactly but would i be right in thinking the reason why the movieclips aint jumping to the front when you click on them is because their not on the same level?


any help very much appreciated, thanks

[F8] How Can I Get Control Of My Duplicated Movieclips?
This is my problem: it wont work!

code for scene1:


Code:
fire=false;
counter=0;
cannon.onEnterFrame=function() {
var dx=_xmouse-this._x;
var dy=_ymouse-this._y;
var radians=Math.atan2(dy,dx);
degrees=radians*180/Math.PI;
this._rotation=radians*180/Math.PI;
//points at your mouse.

if (fire==true) {
duplicateMovieClip(shell,shell+counter,counter++);
shell._x=this._x;
shell._y=this._y;
shell._rotation=this._rotation;
}
}
onMouseDown=function() {
fire=true;
}
onMouseUp=function() {
fire=false;
}


code for the shell movieclip (the bullet):


Code:
onClipEvent(enterFrame) {
xd=5*Math.cos(this._rotation/180*Math.PI);
yd=5*Math.sin(this._rotation/180*Math.PI);
this._x+=xd;
this._y+=yd;
}


code for an enemy:


Code:
onClipEvent(enterFrame) {
if (this.hitTest(_root.shell+counter)) {
this.gotoAndStop(2);//destroyed.
}
}


why doesnt this work???

Please help...

Buttons To Control Movieclips
Heres what i got. I have an area of buttons that control an area to the side of it that bring up pics. So you click a button, it brings up a pic corresponding picture on the left. Im tired of making seperate SWFs, is there a way i can just make the button bring up a movie clip of just that picture

How To Control MovieClips On Events?
Forgive me if this has been answered elsewhere -- I've been Googling like mad but can't find a solution to my problem.

Here's my code:

package {

import flash.display.*;
import flash.events.*;

public class Gate extends MovieClip {

private var gateButton:MovieClip;

public function Gate() {

var gateButton = addChild(new Hotspot());
gateButton.x = 907;
gateButton.y = 905;
gateButton.width = 235;
gateButton.height = 350;
gateButton.addEventListener(MouseEvent.CLICK, gateButtonClickHandler);

}

private function gateButtonClickHandler(event:MouseEvent):void {

trace("clicked " + this);
this.nextFrame();

}
}
}

The problem is it doesn't go to the next frame if I click the button I created. I can put this.nextFrame() in the main Gate() function and it will go to the next frame, but for some reason it doesn't work in the event handler function, although the trace("clicked") displays "clicked [object Gate]" as expected and I don't get any errors. What am I missing here? TIA

Buttons To Control Movieclips
Heres what i got. I have an area of buttons that control an area to the side of it that bring up pics. So you click a button, it brings up a pic corresponding picture on the left. Im tired of making seperate SWFs, is there a way i can just make the button bring up a movie clip of just that picture

How To Control Timeline Of The 2.swf..
how to control timeline of the 2.swf file loaded to the 2.html
from 1.swf. file in the 1.html?
i want to go from 1.html (src = 1.swf)
to the 2.html (src = 2.swf) ...easy
but i want to choice 1st or 2nd frame from the 2.src
i used for the button in 1.src this code:
A HREF=javascript:MM_controlShockwave(','2.html','Go toFrame','2')
but it doesn´t work
t.f.y.h.

Control Timeline From Mc Within Mc?
I am having a bit of a nightmare with this:

I have a button placed on the last frame of a movie clip contained within another movie clip placed in frame 2 of my main timeline.

How can I make the main timeline play when the button is pressed/released???

Here is the current code on the button:

code: on (press, release) {
_root.gotoAndPlay("3");
}


I know there is something missing... but what is it!!!

any help much appreciated!
Diggz

Mc's Timeline Control
How do i control a mc's timeline from the main timeline.
Love to know how it's done...

Timeline Control
Here is one for you,

i can control from sence to scene, that nice and easy as we all probably know.......

the problem is when i go inside a movie clip, then inside another how do i (with the aid of a button) get back to the main time line?

have done it before and thought it was something along the line of back a dir in normal html format: ../

but having no luck.........


thanks

Can't Control Timeline
Hi,

I'm using the following script on a button that takes the user from the end of my scene's timeline to the beginning - kinda like a refresh button. (the name of the scene is "main").

on (release) {
unloadMovieNum(1);
unloadMovieNum(2);
gotoAndPlay("main", 1);
}

The code works fine except that once it starts playing on frame 1, it doesn't stop. It just keeps playing my movie, ignoring every stop along the way while playing every other action it comes across.

Anyone know why this is happening?

cheers, jen

Timeline Control
I was wondering if it's possible to play different segment of the timeline?

For example, when i click on a button, i want it to go to
frame 30-40, and then 50-60.

Is it possible to do that using only one button(without any actions on the timeline)?

Timeline Control?
I was wondering if it's possible to play different segment of the timeline?

For example, when i click on a button, i want it to go to
frame 30-40, and then 50-60.

Is it possible to do that using only one button(without any actions on the timeline)?

Timeline Control
I am working onn quite a simple website that requires buttons to nvaigate to different frames within a nested movie clip. The problem is that when clicking on the logo (top left) the movie jumps alternately between the correct frame and the next frame(section) along the timeline.

The other buttons go to the correct frame and stay there, it is just this logo button that won't consistently go to the correct frame.

Any help would be appreciated.

Cheers,
Jamie

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