Controling Movie Clips Timeline
I have a movie clip of a meter that movies when a song is being playing. I have a timeline in this movieclip with frame 1 showing movement, and frame 5 showing just a static image.
How do I interact with it from the main timeline? What I tried was meter_mc.gotoAndStop(5);
This didn't seem to do it though.
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 12-22-2006, 01:48 AM
View Complete Forum Thread with Replies
Sponsored Links:
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?
View Replies !
View Related
Controling The Timeline In A Loaded Swf. Movie File.
I need some help with some script.
In my main timeline I've got a frame action with this script in it:
stop();
loadMovie("custome.swf,here);
(I have a movie clip on the stage with an instance name of "here" that i load all the swf. files into.)
In my main timeline my navigation contains a button with this script:
//this tells the timeline to go to frame "custome" wich has the loadMovie action in it. It also tells the movie "custome.swf" to go to frame "test" and stop.(but that's not how it ends up working)
on(release){
_root.gotoAndStop("custome");
_root.here.gotoAndStop("test");
}
The first time i click on the button it loads the movie just fine, but does not got to the frame inside the movie i want it to. Unless i click on the button a second time. So it seems to only work when the movie is loaded.
I'm trying to get the movie to load and go to a frame inside the movie at the same time. Is this possible? Does any of this make sense?
If anyone can help It would be greatly appreciated.
View Replies !
View Related
Controling A Parent Timeline From A Loaded Movie
Hi Guys,
I've got a movie that is loading a random swf into a clip.
Each random swf contains a different photograph which pans and then fades out.
What I need to do goto the first frame in the parent timeline and start the whole process again.
My questions are:
A) How do I reference the parent timeline, I've tried:
_parent.gotoAndPlay(1);
but it doesn't seem to work.
B) What's the best way to unload the movie once it's run it's course bearing in mind it uses the following random code to load it:
url = "image" + Math.round(Math.random()*1) + ".swf";
loadMovieNum (url, 1);
thanks in advance
--Neil
View Replies !
View Related
Controling Movie Clips
first i want to say thx for taking a look at this post.
ok I have uploaded a screenshot so you can see what i'm working on but not sure how the boards handle them so here is the url-> http://www.liveslate.com/brad/suit.jpg
ok so here's what i would like to do and would appreciate ANY help possible.
I would like to have the red circle be dragable over the smaller image and control the movie to the rights position so that the location of the circle is enlarged to the right.
I plan on the text at the bottom and at the left being one movie clip that changes the information given when certain areas are highlighted. which i believe i know how to do.
can someone please give me a point in the right dirrection? If it is helpfull i can supply the beginnings of the fla that i have created.
i only have about a week and a half to get this figured out so any help would be appreciated more than i can say.
thanks
View Replies !
View Related
[F8] Controling Movie Clips
hi,
i am new in flashkit , and hello to you all..
well i have a problem. i am trying to do photo gallery with categories and i ll make movie clips for each category . but i dont want them to appear till i call them in main stage. how can i control them ?
movie clips will look like this :
http://rapidshare.de/files/32812093/photo_gallery.rar
View Replies !
View Related
Controling Movie Clips
Hi
I'm in need of some help!
I have a string called my_string("tiger")
I use my_string.charAt() in a loop
and populate my_list["t","i","g","e","r"]
I attachMovie using my_list with movieclips of the same name
called t i g e r and they all appear on the stage so far so good.
problem bit...
in each clip on the first frame is a variable called my_num and I want to make each clip have a different value using another list my_nums[10,11,3,5,6] in a repeat loop but when i check with a trace my_num is undefined
I dont seem to be able to get the attached movies to do anything, I try to change x and y alpha etc but there is no response. its ok when im creating them, i can set x and y etc, but not afterwards, I have put them on the _root so there isnt any long paths to muck up.
anybody got any ideas
cheers
W_lingo
View Replies !
View Related
Controling Movie Clips From Buttons Within Them
greetings - 1st time posting here so please tell me if this question belowng in a different forum.
i have a movie clip consisting of 3 objects that scrolls across the screen. I am trying to make it so that when the user mouses over one of the objects in the movie clip, that clip stops playing and when they mouse out, it starts up again.
I am using the 'tell target' action for this but the button seems to be ignoring it. Is there some rule that prohibits objects embedded in a movie clip from controling that clip?
I am able to control the movie clip using another instance of that button outside of the movie clip and I am able to execute other actions (not controlling the movie clip) from that button when it is embedded in the movie clip.
Any help would be greatly appreciated.
-d
View Replies !
View Related
Controling Movie Clips With Buttons
Dear Anybody
Fron the main scene of my movie I’m trying to stop a movieclip running using a button
Currently I have a stop button with the command
on (release) {
stopAllSounds ();
stop ();
}
Which stops the sound and the main timeline but the movie clip carries on running..
I have stopped the movieclip by converting the stop button into a movieclip and using an instance of it with ‘on clip event as follows’
onClipEvent (mouseUp) {
_parent.stop();
}
onClipEvent (load) {
stop ();
}
onClipEvent (mouseUp) {
gotoAndStop (2);
}
Which is fine apart from I can’t then seem to create a rollover effect on the movieclip ‘button’
As a new scripter any help is very welcome!
Thanks
Mark Waterfield
View Replies !
View Related
Controling Duplicated Movie Clips
please could some one help me as this has been bugging me for days now.. i have duplicated a movie clip with the following lines :
for (i=0; i<=nosBoxes; i++) {
_root.box.duplicateMovieClip("box"+i, 1);
}
Now what i can't work out is how to contol/position the newly created boxes..
Also do you know where i could get some decent tutorials on scripting interactive graphics, i can't find any anywhere!! Any help would be greatly appreciated.
View Replies !
View Related
Dam Another Issues Controling Movie Clips, HELP
I have a external .SWF file that plays within a movie clip called “Quote”
The movie clip “Quote” code on frame one looks like:
loadMovie("OpenQuote.swf", 3);
When the external.swf file finishes playing how do I move to the next frame in the movie clip “Quote”.
The external.swf file was created in Swish, but any code I seem to add with in Swish is not moving to the next frame. So I just want to know when the dam thing ends, then I will have code outside of Swish move to the next frame in the “Quote” movie clip.
Again thank you for all of your help as I learn Flash.
Murphie
View Replies !
View Related
Controling Duplicated Movie Clips
hi, i'm developing a shooting game, in which i am duplicating the bullet (ship) to shoot at a guy.
i have an array as you can see here.
Code:
for (i=1; i<=50; i++) {
_root.ship[i] = new shipparent();
duplicateMovieClip(_root.ship, "ship"+[i], i);
_root.ship2._x = _root.gun._x;
_root.ship2._y = _root.gun._y;
}
}
in stead of using ship2, i would like to use what ever is the next unused ship... and im not quite sure how to do this.
does any body else know?
thanks a bunch
View Replies !
View Related
Controling Outside Movie Clips From Inside A Different One
hello, I wrote a message earlier and could not get my code to work. I am trying to control a movie clip named "mensroomMovie" that is on the main time line of scene 1 when a button is pushed inside of a movie clip named "womensroomMovie" it looks something like this:
this.stop();
function gotoFrame(event:MouseEvent):void
{
this.gotoAndStop(10);
this.parent.getChildByName("womensroomMovie").gotoAndStop(10);
};
enterButton.addEventListener(MouseEvent.CLICK,gotoFrame);
the second line inside the function does not work and the code works fine without that second line. Can anyone suggest anything. Thanks a lot
Edited: 05/31/2007 at 11:19:35 PM by robert113
View Replies !
View Related
Problems Controling Movie Clips With Buttons
I have 5 separate buttons in my main movie, each controlling 5 separate movie clips. When clicked each button plays its corresponding movie clip.
Here's my problem...Can somebody tell me how to script the buttons so when a different button is clicked, the movie clip that is currently visible/active will play in reverse, back to it's starting point and play the new button's corresponding movie clip normally. Hope this makes sense. Thanks.
View Replies !
View Related
Controling Movie Clips Within DHTML Frames
I've posted question before but all i've got was a very complex answer, and though i'm new to all this, i need more simplifed solution....
What action should I use and how?
I have dhtml paga with 2 frames:
1."menu2) menu.swf
2."screen") screen.swf
how do I make screen.swf button in "screen" frame open 5th frame of the menu.swf in "menu" frame ?
Thank you
__________________
Buby
View Replies !
View Related
Controling Duplicate Nested Movie Clips
in my movie I have a movie clip that is nested about 4 layerys deep. this movie clips parent clip is duplicated dynamicly. I need to be able to control this clip. it works hard coded:
mcScroler.scrolerMCS.r1.c2.gotoAndPlay("on");
this will work fine but when I try to
so the way it works is movie clip rx gets duplicated based on mv and named as r1,r2,r3,etc... inside this clip are 13 clips named c1,c2,c3,etc... those are what I want to control
if I hard code it
mcScroler.scrolerMCS.r1.c2.gotoAndPlay("on");
it controls it. how ever as r1 and c1 are dynamicly genereated in the for loop bellow I have set rw and cl to be the generated names of the mc but it does nothing I have tried String(="r"+a), eval(="r"+a) tryed
mcScroler.scrolerMCS.r+a.c+j.gotoAndPlay("on");
totaly lost on how to make this work
hope this makes some sense
oh and tracing cl rw returns the corect name but it just does not target it when put in the mc stacking order
thanx
//amount of movies to be duplicated
mv=7
for (a=0; a<mv; a++) {
for (j=0; j<14; j++) {
var rw="r"+a
var cl="c"+j
trace("cl "+cl);
trace("rw "+rw);
mcScroler.scrolerMCS.rw.cl.gotoAndPlay("on");
}
}
View Replies !
View Related
Controling Movie Clips From Main Scene
ok, i could also control the clips with onClipEvent, but one of the clips i want to control is inside another clip that is on the main stage. I hope that makes sense.
hi,
I have a movie wherein I would like to control (gotoAndStop() actions) two clips from a frame action if possible. When the user clicks a button the main movie goes to another frame, I would like the movie clips to go to another frame as well.
hope that makes sense.
Thanks,
pjustice
View Replies !
View Related
Controling Other Movie Clips Or Loaded Movies
Hi, I don't really know how to search for this answer, but I know it must have already been asked.
How can I address a certain movie.clip or loaded movie from inside another movie clip? By assigning names to every movie I want to control?
The situation is: I have a movie with lots of movieclips (most of them fading in/out), then I load an external swf by clicking a button (this button fades out). Then in this newly loaded movie I have a button that let me go back (unloading the swf). But I also need to right a code so that the previouslly faded out button fades in again. The problem is that it is outside the external swf and worst... the fading sequence is inside a movie clip.
I know there are countless ways of doing what I'm doing without having to control a clip from inside another clip. But I wanted to learn how to do it (if it is possible at all!)
View Replies !
View Related
Attaching Randomly Movie Clips From The Library And Controling Them By One Function
hi,
i have a very important project to do, and i'm so confused...
there are 2 main questions i can't deal with:
1. i want to add randomly movieclips from the library to my stage , but I didn't succeed (the FLA i made is attached-i really don't understand what i did wrong)
2. let's say i succeed to add the above mentioned movieclips.
how can i controll multiple movieclips by onley one function???
(especially if they were added to the stage by attachMovie method)
(what I want to do is to:
* make the movieclips move from the upperborder to the bottom, and to make them dissappear when they reach there (ofcourse this should occure till the game is over)
* change the movie clip color if it being touched by the hero of the game.
i know how to do it in generaly, but i am totaly clueless when i ned to do it for all the movieclips, especially if they are being attached to the stage onley by their linkage name.
i will be very very gratefull to any help in any kind (especially if you will direct me to tutorials in this subject or FLA files that may help).
thanks in advance.
View Replies !
View Related
Attaching Randomly Movie Clips From The Library And Controling Them By One Function
hi,
i have a very important project to do, and i'm so confused...
there are 2 main questions i can't deal with:
1. i want to add randomly movieclips from the library to my stage , but I didn't succeed (the FLA i made is attached-i really don't understand what i did wrong)
2. let's say i succeed to add the above mentioned movieclips.
how can i controll multiple movieclips by onley one function???
(especially if they were added to the stage by attachMovie method)
(what I want to do is to:
* make the movieclips move from the upperborder to the bottom, and to make them dissappear when they reach there (ofcourse this should occure till the game is over)
* change the movie clip color if it being touched by the hero of the game.
i know how to do it in generaly, but i am totaly clueless when i ned to do it for all the movieclips, especially if they are being attached to the stage onley by their linkage name.
i will be very very gratefull to any help in any kind (especially if you will direct me to tutorials in this subject or FLA files that may help).
thanks in advance.
View Replies !
View Related
Please Help With Movie Clips And Timeline
I am creating a flash file with 4 movie clips. I don't know how to control them on the timeline. Here's what I want to do.
1. I want to start the flash movie out with MovieClip1 and have this clip loop throughout the whole flash movie.
2. I want to then have MovieClip2, 3, and 4 play one after the other each one stopping after it has played.
I am new to all this, so please be specific with instuctions on actionscripts.
Thank you!!
View Replies !
View Related
Movie Clips Timeline
I have 3 movie clips that are on seperate layers in my main timeline. Each move is 165 frames long. I want to place them so that when one finishes playing, the next one begins and so on.
The problem is that I can't get it to work that way except by dragging each MC layer out 165 frames. I want to keep my main timeline relatively short and thought there would be some kind of action script that I could use.
I tried using a "stop" action at the end of each clip layer on my main timeline; however, I don't know how to get the playhead to progress past the "stop" action.
View Replies !
View Related
Movie Clips And Main Timeline
When scrolling through the main timeline, I am only able to view the
first frame of each movie clip I've inserted (my layers are made up of
movie clips with no other objects in the main timeline). These views
change with each keyframe, but leave me with an inaccurate
representation of what is happening as I drag the slider across the timeline. I am able to view the outline of
the shape in the movie by clicking the view outline box next to the
lock, but this still does not show me what is going on in the movie
frame by frame. Is this normal, and can it be
changed?
Also, if I want to export only part of the movie for test, is this
possible?
Any help would be most appreciated.
View Replies !
View Related
Help Movie Clips Don't Play In Timeline
hey guys,
I'm designing a movie with some simple animation in the timeline. On the last frame ( frame 100), I inserted a movie clip that contains 50 frames worth of animation. When I press enter and play the timeline, the cursor stops at frame 100 and only shows what's in the first frame of the movieclip.
If however, I insert a frame at frame 150 of the movie on the main timeline, the movie clip plays when I "test movie".
This can't be the way it's done! How am I supposed to design a movie if I can't preview what the user is going to see in my timeline? Adding blank frames to to the timeline in order to compensate for the length of the movie clip seems crazy.
Please help me! How does one work with movie clips in such a way as to allow their preview within the timeline. I'm kinda confused, please help clear my head on this one.
Thank-you very much!
Artane
View Replies !
View Related
Pause A Timeline/movie Clips
Hey everyone,
I am creating a slideshow presentation in flash, I have a previous/pause/play/next buttons. I am having a problem getting the pause button to function properly, here is what I am trying to achieve. I want to stop all movie clips and timelines when the pause button is pressed. (the control buttons are in a movie clip that sits on the main timeline) Is what is the best approach to achieving this?any links or advice would be greatly appreaciated.
Thanks,
-Jeff
View Replies !
View Related
[MX] How Do You Controlling A Timeline Using Movie Clips?
Hello everyone, I was making a drop-down menu movie clip for my flash game. So I made all the features of the drop down menu movie clip, but when I added the script in the button inside the drop-down movie clip, the buttons wouldnt take me to the main scene!
This is the script I added in the button which was in a movie clip, (I am trying to make the button let the user go to the main timeline and scene "Account", label "RK Theatre".
on (press, release) {
gotoAndStop("Account", "RK Theatre");
}
But whenever I click the button inside the movie clip in "Test Scene", the button does nothing and doesnt bring me to the "Account" and label "RK Theatre" scene.
Help would be great, thanks because I have tried everything to make it work and it won't.
View Replies !
View Related
Help Movie Clips Don't Play In Timeline
hey guys,
I'm designing a movie with some simple animation in the timeline. On the last frame ( frame 100), I inserted a movie clip that contains 50 frames worth of animation. When I press enter and play the timeline, the cursor stops at frame 100 and only shows what's in the first frame of the movieclip.
If however, I insert a frame at frame 150 of the movie on the main timeline, the movie clip plays when I "test movie".
This can't be the way it's done! How am I supposed to design a movie if I can't preview what the user is going to see in my timeline? Adding blank frames to to the timeline in order to compensate for the length of the movie clip seems crazy.
Please help me! How does one work with movie clips in such a way as to allow their preview within the timeline. I'm kinda confused, please help clear my head on this one.
Thank-you very much!
Artane
View Replies !
View Related
Movie Clips On Main Timeline
HI! I'm using Flash MX and I'm not very good at it. So I would appreciate your help! Anyway, I'm making a movie w/ no interactivity and I want to put a series of movie clips on the main time line, each to play after the previous movie clip is done. The only way I can make it work is to put the movie clips in keyframes and then allow all all the frames for the movie to play. My movie is way too long and I know there has to be a better way! I'm trying to figure out the action to assign to the keyframe that will play the movie clip within that one frame and when it's done, go on to the next movie clip. Is that possible?
Thanks to anyone who can help!
View Replies !
View Related
OO Code And Movie Clips On The Timeline
My group builds apps by creating movie clips which are precisely positioned on the timeline and adding an action to the first frame of the movies' timelines to include external Actionscript files to define properties and functions. This works fine for building self contained objects, but doesn't seem capable of taking advantage of object oriented design principles, like inheritance. Ideally, I would like to build objects, like cars and bicycles for instance, and have both inherit code from a parent vehicle class. Any suggestions on how I can do this given the movies are already instantiated on the timeline?
View Replies !
View Related
Removing Movie Clips From The Timeline With AS 3.0
Try this test:
Creat a new Flash movie with 2 bank keyframes.
Draw a rectangle on the first frame, convert it to a movieclip and give it an instance name of testSym
Add this code to the first frame:
////////////////////////////
removeChild(testSym);
testSym = null;
/////////////////////////
and then this code to the second frame:
//////////////////////
trace ("FORCING GC");
try {
new LocalConnection().connect('foo');
new LocalConnection().connect('foo');
} catch (e:*) {}
stop();
// this forces the garbage collector but is not recommended for published products
///////////////////////
give the rectangle movie clip 2 blank keyframes too. Put this code in the first frame:
///////////////////
trace("I'm still here");
/////////////////////
and this code in the second:
///////////////////
gotoAndPlay(1);
///////////////////
Now run the movie - I assumed that the clip would be marked for garbage collection and collected by the forced collect, but it still persists - presumably because it was put statically on the timeline?
Is there any way around this? Surely there must be a way to remove movie clips that have been placed statically on the timeline at design time rather than adding everything using code? Can anyone help?
View Replies !
View Related
Help Movie Clips Don't Play On Timeline
hey guys,
I'm designing a movie with some simple animation in the timeline. On the last frame ( frame 100), I inserted a movie clip that contains 50 frames worth of animation. When I press enter and play the timeline, the cursor stops at frame 100 and only shows what's in the first frame of the movieclip.
If however, I insert a frame at frame 150 of the movie on the main timeline, the movie clip plays when I "test movie".
This can't be the way it's done! How am I supposed to design a movie if I can't preview what the user is going to see in my timeline? Adding blank frames to to the timeline in order to compensate for the length of the movie clip seems crazy.
Please help me! How does one work with movie clips in such a way as to allow their preview within the timeline. I'm kinda confused, please help clear my head on this one.
Thank-you very much!
Artane
View Replies !
View Related
See Movie Clips In The Main Timeline?
Is it possible to view the position of elements in the main timeline that are held within a movie clip. For example all elements must be at frame one in order to see the movie content. If A space was given in the movie clip, we would not be able to see the position of elements, hope all this makes sense, but is it possible.
I have navigational buttons held within a movie clip. The buttons come with a animation, and start at frame three in the movieclip, except I need to position this acurately with the rest of my design, but dont have a visual for this.
Hopefully someone can explain.
Trev
View Replies !
View Related
Movie Clips On Main Timeline
HI! I'm using Flash MX and I'm not very good at it. So I would appreciate your help! Anyway, I'm making a movie w/ no interactivity and I want to put a series of movie clips on the main time line, each to play after the previous movie clip is done. The only way I can make it work is to put the movie clips in keyframes and then allow all all the frames for the movie to play. My movie is way too long and I know there has to be a better way! I'm trying to figure out the action to assign to the keyframe that will play the movie clip within that one frame and when it's done, go on to the next movie clip. Is that possible?
Thanks to anyone who can help!
View Replies !
View Related
Movie Clips Working In The Main Timeline.
I know how to make a movie clip. but what I am confused about is. how do you get the movie clip to animate in the main timeline?
I try just adding the clip by dragging it from the library but it doesnt animate. it just sits there on the first frame of the movie clip.
how do I get it to animate on its own without having to manually do it. because if I do that, what is the point of making movie clips. I am obviously missing some step here. Please advise.
View Replies !
View Related
Playing Movie Clips One After Another On Main Timeline
Hi,
I have a series of movie clips that I'd like to add to the main movie timeline, all on separate layers. I want one clip to play after another, as opposed to having them all play at the same time...Do I need to write some code to allow that to happen?
For example, I'm creating a mini movie, with opening credits, ending credits and everything in between. Each segment is an individual movie clip. I dragged an instance of each clip onto the main stage, separate layers, all on frame one. I'd like for the clip in layer one to play first followed by the next clip in layer two, etc.
Please Help
Thanks
View Replies !
View Related
Buttons That Control Timeline In Movie Clips..
I am well able to control my main timeline with buttons, but what I am trying to do is control the timeline in a certain movie clips..
For example there is a shoe and I have 3 different elements (laces, leather and sole) and I would have a 3 corresponding buttons that would change the colors for each shoe element.
Thanks for the help!
Im a newbie here!!!
View Replies !
View Related
[CS3] Targeting Multiple Movie-clips From Timeline
Hi there,
Probably a dumb question but I want to target a bunch of different movie clips instances from the main timeline. Basically I have an enlarged pixel that when rolled over becomes more opaque. I have one of these set up and named "pixel". I want to duplicate this on the stage so I have around 100 odd but want to target all of them with the same code. Something similar to this:
this.pixel.useHandCursor = false;
this.pixel.onRollOver = function() {
pixel.gotoAndPlay(2);
}
this.pixel.onRollOut = function() {
pixel.gotoAndPlay(11);
}
Hopefully someone can help.
Cheers in advance,
James
View Replies !
View Related
How A Button Communicates With A Movie Clips Timeline?
On the main timeline I have a button and a movie clip. The movieclip has an instance name of "contentArea". When you click the button, I want to gotoAndPlay frame 20 of my movieclips timeline. I can't seem to figure how to write that AS. Please help!
I would think the AS would go something like this (this obviously does not work though)
ActionScript Code:
on (release) {
contentArea.gotoAndPlay(20);
}
Thanks for the help!!
View Replies !
View Related
Controling The Timeline
Hi all
Im new to this actionscript 3 business and imtrying to have a go I have been playing about with some code and I have a set of buttons in my flash file and i have written some code to tell them to go to frame label in their own time line, so when you hover over the button gets bigger and then smaller.
this is the code for the buttons
--------------------------------------------------------------------------
readytab.addEventListener(MouseEvent.CLICK , readytabClick);
function readytabClick(event:MouseEvent):void
{
trace("youve pressed the button");
var spendURL:URLRequest = new URLRequest("http://www.igloo-design.org/testflash/arr_pages/ready_to_buy.html");
navigateToURL( spendURL , "_self");
}
readytab.addEventListener(MouseEvent.ROLL_OVER , readytabRollOver);
function readytabRollOver(event:MouseEvent):void
{
readytab.gotoAndPlay("front");
}
---------------------------------------------
if you look at the link below you will see that the flash file rotates several bits of information that relate to each button.
What I want to happen is when I hover over the button I also want the timeline to be directed to the relevant label in the main timeline
I tried copying what id already done and changing the frame labels but it didnt seem toi work
http://www.igloo-design.org/testflash/
View Replies !
View Related
Controling Timeline?
i have a project that has a video file imported in, the whole project is 100 frames and in frame 50 the video start to play, but i want to stop the timeline so the video plays and the resume playback on the timeline when the video stops? how do i go about doing this? any help would be appreciated. thanks.
View Replies !
View Related
|