Is There Anyway To Get A Button Inside Of A Movie Clip On One Timeline To Play Anothe
Is there anyway to get a button inside of a movie clip on one timeline to play another movie clip on the same timeline? Right now everything is in one timeline in one frame in layers. If anyone can help I would greatly appreciate it. Thanks.
FlashKit > Flash Help > Flash ActionScript
Posted on: 05-09-2002, 12:24 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Making Main Timeline Play From Button Inside MC
Hello,
i think the title says it all.
I have done this a million times, but for some reason I seemed to have missed something.
My button is inside a movie clip, the AC on the button is this...
on (release) {
gotoAndStop(6);
_root.play();
}
_root.play(); isnt working....
Movie Clip Inside Movie Clip - Control From Timeline
hello all.
i have a movieclip (instance name: mov1) with a movieclip (instance name: mov2) inside of it.
mov1 is on my main timeline. I want to control mov2 from the main timeline. how can i do it?
i am trying what i thought would work which is
_root.mov1.mov2.stop();
Controling The Timeline Inside The Movie Clip
Need help!
I have a movie clip and I want to control the timeline. For instance if I push the "<LEFT>" button, then the frame should go from the first(which is stopped) to the second(stopped too)frame. Give me advice.
Thanks,
Sorry for my English.
Kris
Controlling The Timeline From Inside A Movie Clip
Very very simple to most of you im sure...but i'm just learning AS3 and need some basic help...
I have a button in my movie clip that I want to be able to control the main timeline with.
I'd started with this:
++++++++++++++++++++++
nextbutton_mc.addEventListener(MouseEvent.CLICK, onClick);
function onClick(event:MouseEvent):void
{
play();
}
nextbutton_mc.buttonMode = true;
++++++++++++++++++++++
...but this obviously only controls the movie clip itself as opposed to the main timeline level. How can I control the main timeline?
Thanks in advance.
Controlling The Timeline From Inside A Movie Clip
Very very simple to most of you im sure...but i'm just learning AS3 and need some basic help...
I have a button in my movie clip that I want to be able to control the main timeline with upon clicking.
I'd started with this:
ActionScript Code:
nextbutton_mc.addEventListener(MouseEvent.CLICK, onClick);function onClick(event:MouseEvent):void{play(); }nextbutton_mc.buttonMode = true;
...but "play();" here obviously only controls the movie clip itself as opposed to the main timeline level. How can I control the main timeline? What would I put in place of "play();" to start a stopped timeline?
Thanks in advance.
Control Main Timeline From Clip Inside Movie
Have a movie clip on my timeline(its a button)
_root.home.onRollOver = function(){
_root.home.gotoAndPlay("over");
_root.home.back = false;
_root.home.play();
}
_root.home.onRollOut = function(){
_root.home.gotoAndPlay("out");
_root.home.back = false;
_root.home.play();
}
_root.home.onRelease = function(){
gotoAndPlay("main", 1); }THIS IS WHAT I CANT GET TO WORK
When I click the button nothing happens. Ive tried..
_root.gotoAndPlay("main", 1);
gotoAndPlay("_root.main", 1);
gotoAndPlay(_root."main", 1);
Ofcourse none of theese worked.
How Do I Make A Movie Clip Play In The The Timeline?
Hey all,
I am still kinda learning flash but this is one thing i havent donw before. Im trying to make an intro for my site and i want to have a movieclip playing on the time line. But i mean like on a single frame instead of every individual frame. Could someone please tell me how to do this
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 Symbol Won't Play On Main Timeline
Hi everyone,
I've created a movie clip symbol with it's own animation on its timeline. I've placed this symbol onto the first frame of the main timeline but when I test it, it doesn't play. There's no stop actions or anything on either timelines so I'm not sure why this is happening. I thought that the animation in a movie clip symbol will automatically play (i.e. if you test in a browser) once it's on the main timeline - is this right? Or am I doing something wrong. Maybe I need to tell it to play?
Appreciate any advice.
Tell Movie Clip To Play/stop From Main Timeline?
I have a main timeline that has a movieclip called "Clock". At one point in the main timeline I want the movieclip to play and at another point I want it to stop. I can't get script to control the movieclip.
Any tips?
Thank you so much for your time.
Telling A Movie Clip To Play At A Point On The Timeline?
Hello all,
I'm sure this will be an easy question for most of you but the last time I really worked in Flash was back in Version 4 and 5. At the moment I have a website with a series of buttons that go to different locations (frame labels) on the time line. For each frame label there is my website text that is displayed. What I want to do is have a sliding door animation that opens each time I click a button and go to the corresponding frame label.
As I have it now I simply have this door animation set up on the time line, I would rather just have a movie clip that plays over my text each time I enter the frame.
I tried to use the syntax:
Code:
door.play();
But I received errors. Can any one give me some help?
Thanks,
Steven
GotoAndStop / Play Inside A Movie Clip
Heya guys,
I have a majorly annoying flash problem!
I'm making a game. I have a movie clip that at the end of the movie clip's timeline has this actionscript in a frame:
_root.gotoAndStop(_root.fighthit);
I've defined the variable for "fighthit" and it works. So the main timeline goes and stops at the right frame.
I then added an intro in a new scene (with 100 frames for example) this scene playing before the main game.
Uh oh! Now flash thinks the frame, 300 in the main game scene is 200th frame. I.e. it's adding the 100 frames from the first scene.
Hmm. That's pissed me off - without having to add the 100 frames onto all my code, I wanted to know if there was an easier way!
So what I have now is two scenes -
"intro"
"game"
and have tried for ages to get some actionscript that's within a movie clip to control the main timeline if there are multiple scenes present.
so, for example, if I wanted to gotoAndStop at frame 20 in the scene game, how could I do this?
_root.gotoAndStop("game", 20);
I tried that^ and it doesn't work at all, same with frame labels.
It's really annoying! Can anyone help please!
Thanks in advance!
Controlling Navigation Of A Movie Clip Inside A Loaded Swf From Main Timeline
Hi,
I am using the two lines of code below in my main movie to laod another swf into level 50 of the main movie. I then want to control an instance of a movie clip inside the loaded swf called background but the second line (goto) does not work.
Code:
loadMovieNum ("desktops/"+backgroundimage, "50");
_level50.background.gotoAndStop(2);
The first line definately works fine.
Does this mean the hierarchy is such that I should be saying _level50.loadedswf_name.background.gotoAndStop(2)
In which case is there a way of giving the loaded swf an instance name when I load it. Or am I completely wrong?
Thanks again
Robin
Function And Target Problem (calling From Inside A Movie Clip's Timeline)
(Using Flash MX 2004 Pro, AS2)
I have a whole bunch of custom setInterval functions defined in an included AS file that have either a 'gotoAndPlay' or 'function()' action within. All of my setInterval functions that are being called globally from the main timeline of the movie work beautifully, however I have two calls that are calling their function from within a movie clip of the same timeline...they are not working, they're not even calling back to the function. Here's my function code in the AS file:
Code:
function cardRevealPause(){
gameLogic.gotoAndPlay("shuffle");
clearInterval(welcomeTimeOutIntervalID);
clearInterval(gameTimeOutIntervalID);
clearInterval(cardRevealPauseIntervalID);
}
Here's my global call code from within the movie clip 'gameLogic' timeline:
Code:
_global.cardRevealPauseIntervalID = (cardRevealPause, _global.cardRevealPauseInterval);
ANy thoughts as to why this won't work for me??? Thanks in advance!
Playing A Frame(s) Inside A Movie Clip From Actionscript On The Main Timeline
hello i was wondering if someone could tell me the correct syntax for playing a frame(s) inside a movie clip from actionscript on the main timeline.
I have tried: this.movie_clip.gotoAndStop("frame_name");
i don't want it to play, just stop on the frame (which does not contain any script).
also: gotoAndStop("this.movie_clip", "frame_name");
and: gotoAndStop(this.movie_clip, "frame_name");
please help!
thanks in advance
Al
Function And Target Problem (calling From Inside A Movie Clip's Timeline)
(Using Flash MX 2004 Pro, AS2)
I have a whole bunch of custom setInterval functions defined in an included AS file that have either a 'gotoAndPlay' or 'function()' action within. All of my setInterval functions that are being called globally from the main timeline of the movie work beautifully, however I have two calls that are calling their function from within a movie clip of the same timeline...they are not working, they're not even calling back to the function. Here's my function code in the AS file:
Code:
function cardRevealPause(){
gameLogic.gotoAndPlay("shuffle");
clearInterval(welcomeTimeOutIntervalID);
clearInterval(gameTimeOutIntervalID);
clearInterval(cardRevealPauseIntervalID);
}
Here's my global call code from within the movie clip 'gameLogic' timeline:
Code:
_global.cardRevealPauseIntervalID = (cardRevealPause, _global.cardRevealPauseInterval);
ANy thoughts as to why this won't work for me??? Thanks in advance!
Button Inside Movie Clip Inside Scrollpane Doesn't Work In Xml
This is sorta odd but I'm hoping somewhat easy to fix. This is in AS2 and is the last problem I have in a very small project of mine.
I have button called button01 inside a movieclip called movieclip01 which is the contentPath for a scrollpane called scrollpane01. I'd like the button to work, and depending on the code it will work in the normal .swf but won't when I embed my movie into xml.
If I put the code inside movieclip01
button01.onRelease=function(){
_root.gotoAndPlay("Frame Name");
}
It will work when I test it but not in the XML. So what I want to do is go to the main timeline where the scrollpane is and write the code there. That is where I'm stuck.
I've tried scrollpane01.movieclip01.button01 and tried movieclip01.button01 and also tried scrollpane01.button01. Just for giggles I also tried scrollpane01.movieclip01 but none of that works
Last night I had a similar problem with buttons inside a movieclip that was on the root stage. They worked in the swf but not when I embedded the file - so I found this which worked (typed in the root stage)
movieclip01.button01.onRelease=function(){
Behavior On Buttons Inside A Movie Clip Inside A Button.
I would like t create an animated button with menu inside, how do i do it.
something like on here http://www.demarchelier.net
hidden menu on left side (contents) but on flash. I have flash 8. any tutorial that explain how to do that ?
Please Help First Website Movie Clip Placed On Main Timeline Wont Play
Hi! if any one could please help me it would be greatly appreciated!
So im trying to make my first website in flash and ive ran into a problem. I have the main movie, my main time line. I have a few animations going on in this that were all created in that main time line. those work fine. however, i created two new movie clips (still inside the same .fla file) and animated them with thier own time line. I then thought you could just drag and drop these movie clips onto your main time line and they would play inside the movie. but when i press ctrl + enter, the dont play!
here are some points of intrest.
my main movie (the main time line) is 130 frames.
the movie clips i made inside the same .fla file are between 400 and 600 frames.
i placed both new movie clips on the 130th frame in the time line with their own layers.
also there is a layer for actions on the 130th that has stop();
i thought that maybe the time line had to be as long as those movie clips i created and so i extended it but they still didnt play.
im thinking action script is involved? please help me im getting pretty frustrated and im sure there is something simple to achieve this.
here is a link where you can download the source files im using. if you open the file the two movie clips i created are called front two and front one and are layers with the same name.
this board wont let me fully post my link cause the last word in it is s*h*i*t* so youll have to type it in your browser. its http://public.me.com/matts*h*i*t* (just remove the asterisks)
also i noticed that my file is huge. i used photoshop to create everything and them imported it into flash. is there a way i can reduce this size?
thank you sooo much! please help!
-Matt
Telling Main Timeline To Play Backwards From Movie Clip
Hi,
I am trying to tell flash from within a movieclip to start playing a specific frame within the main timeline only after it has finished playing the movieclip backwards. I can get the movieclip to play backwards fine but it's getting the main timeline to start from frame 1 which doesn't work. I have the following code on the first frame of the movieclip (which is called video) but it doesn't seem to do anything
onClipEvent (enterFrame) {
if prevFrame == 2 {
_root.gotoAndPlay(1);
}
else if {
_root.video.gotoAndPlay(2);
any suggestions?
Play() Inside Movie Clip - Scope Problem
I have a function on frame one of a movie clip that when called, plays the movie clip.
Similar to this:
function goPlay():Void{
this.play();
}
But it doesn't work? When I just use play() it plays the main movie clip (timeline).
What am I doing wrong?
Play() Inside Movie Clip - Scope Problem
I have a function on frame one of a movie clip that when called, plays the movie clip.
Similar to this:
function goPlay():Void{
this.play();
}
But it doesn't work? When I just use play() it plays the main movie clip (timeline).
What am I doing wrong?
Tween Inside A Button Inside A Movie Clip
Say I have 3 squares, from left to right, blue, red, yellow. The 3 squares together are a MC that move from off the stage on right, across the stage to line up on the left. Now say I want to make the left blue square a button so that when you roll over it, it has a orange frame and then when you press down on it it dims, and a larger version of it shows up above it. how would I do this? What i've done so far is made a button inside the MC, then on the down state of the button made a graphic button for the blue square, but it doesn't stay dimmed, and I don't even know how to make the larger blue square appear.
Is this too confusing?
please help.
thanks
Movie Clip Button Inside Movie Clip Button Is Driving Me Nuts
hellllllo everyone, this thing has been bothering me for weeks, i've been hiding from it for days but it always seems to come back and bug me..
this is the problem..
on my main timeline i have a movie clip button that plays over/out state within this clip and on the over state it also opens 8 other movie clip in this movieclip that i am hoping to make them clipable, i only made an over state for the first movieclip out of the eight, but it just wont do the rollover effect..
i think there is a better way to do this..if i need to start over..let me know..thanks!!!
i will attach the file please help me out! i am tired of hiding!
thank you again!!!!!
How Do You Get A Duplicated Movie Clip To Play Inside A Masked Layer?
In my movie that i have attached a screen grab of, you can see that half of the skeleton on the right is hidden behind the masked layer. When you press the add skeleton button, it duplicates the skeleton movie clip. The skeleton on the left is the duplicated movie clip and you can see that it is not covered by the masked layer. So does anyone know how I can duplicate it so it will be masked? The skeleton movie clips can be dragged and dropped.
Thanks
Button Inside Movie... Movie Is On Main Timeline
Hey all, I have this question that a lot of people have asked, but I never found an answer to this question.
I have a button, and that button is inside a movie clip, and this movie clip is on my main timeline. How can I reach the button?
Thanks and kind regards...
Somberlain
How Do I Get A Button To Play A Movie Then Go To Different Part Of The Timeline And P
I'm building a Flash site that uses loader components. The timeline is divided into 5 sections each with its own loader component with its own Instance name. I've had no problem creating buttons on the main timeline that 'go to and stop' at a particular section and allow a movie to load and play. However, sometimes I want a single button to 'go to and stop' at one section, play the movie then 'go to and stop' at another section and play that movie. Surely there must be a simple piece of action script to give the button the function I need?
I have Flash MX 2004.
Below is what I'm currently doing:
Each loader component has its own Instance name and is set to:
autoload: true, content path: (the appropriate .swf movie), scaleContent: False
The timeline is divided into ten frame sections. Each had a 'stop' command in 'Actions'. Each has a Frame Label title. To create the button command, I select the button, then go to 'Behaviour' - 'Movie Clip' - 'Go to and stop at frame or label'. Where it says: 'Choose the movie clip ...' I leave it on 'this' and I also leave 'Relative' selected. Where it says: 'Enter the frame ...' I type in the Frame label title.
Any ideas?
Cheers
Nick
Button: Pause Timeline/play Movie
Hello, let me describe what I would like to happen on my page, and perhaps someone could suggest the actionscript to accomplish it.
Currently, I have an animation which plays on the timeline, and embedded in the sequence are buttons that periodically enter/exit the screen. In each button there is a short movie clip in the Down state that should play on top of the timeline animation when the button is clicked.
The action that I am having difficulty with is pausing the timeline while the clip (inside the button) plays. In addition, (if possible) I would like the button not only to play the short movie clip, and pause the timeline, but also, trigger a video to load in a flash player after the clip ends.
I hope this makes sense! Maybe my imagination has gotten ahead of my know-how. Any help appreciated.
How Do I Get A Button To Play A Movie Then Go To Different Part Of The Timeline And P
I'm building a Flash site that uses loader components. The timeline is divided into 5 sections each with its own loader component with its own Instance name. I've had no problem creating buttons on the main timeline that 'go to and stop' at a particular section and allow a movie to load and play. However, sometimes I want a single button to 'go to and stop' at one section, play the movie then 'go to and stop' at another section and play that movie. Surely there must be a simple piece of action script to give the button the function I need?
I have Flash MX 2004.
Below is what I'm currently doing:
Each loader component has its own Instance name and is set to:
autoload: true, content path: (the appropriate .swf movie), scaleContent: False
The timeline is divided into ten frame sections. Each had a 'stop' command in 'Actions'. Each has a Frame Label title. To create the button command, I select the button, then go to 'Behaviour' - 'Movie Clip' - 'Go to and stop at frame or label'. Where it says: 'Choose the movie clip ...' I leave it on 'this' and I also leave 'Relative' selected. Where it says: 'Enter the frame ...' I type in the Frame label title.
Any ideas?
Cheers
Nick
[F8] Play Movie Clip Inside Another Movie Clip
Hi,
I have a movie clip inside another mc and I want to make the mc inside to play once the user rolls the mouse over it. The problem is that when user rolls mouse over, they can't reach the inside mc because they just roll over outer mc.
Is there any way to do this?
(tried:
Code:
outer_mc.inner_mc.onRollOver = function(){
outer_mc.inner_mc.play();
}
but did not work)
Any help will be very much appreciated.
E
A Button Inside A Movie Clip, Within A Movie Clip, Calling Another Scene:
Is it even possible?
I have been trying to do it for the last few days for a site I am working on.
I have done searches in many forums and it's foolish looking for an answer that way, because quite frankly every thread I opened was something to do with LoadMovie or GetURL, etc.
What I have right now is on the button in my Menu Bar Movie Clip:
on (release) {
gotoAndPlay(285);
}
Which plays a fancy little animation in the movie clip and then on the last frame of that movie clip I had:
gotoAndPlay("Contact", 1);
Which is the Scene for the "Contact Us" Scene named "Contact"
One would think that it would load up the scene and play at frame 1, however all that happens is it reloads the movie clip of the "Menu Bar" at frame 1 and starts over, not even realizing what I asked.
Anyways, I figured there's a script or something that tells it to look outside of the movie clip or to the _Root, or whatever.
If someone has a solution, it would be greatly appreciated.
Sorry I have no example to show, since I have yet to upload it. (It's my company's web site, and I don't think customers would want to see some half-arsed web site that's not complete.
Thanks in advance.
Control Movie Clip In Container From Button Inside Other Movie Clip
There are three movie clips involved in this question.
1. A main movie clip that has a target empty movie clip where an external swf loads.
2. A menu movie clip that is built from button symbols and has its own timeline.
3. The external movie.
When a user clicks on the menu, the external swf loads into the empty movie clip target. This part works fine. Here's the code:
on (release) {
loadMovie ("Lesson1.swf", "_root.container");
}
I want to use one external swf for all lesson, versus 20 external swfs. The problem I'm having is controling at what frame the external swf loads. I've tried adding --gotoAndStop (15) -- for example. I've also tried adding, gotoAndStop "_root.container" (15), but that doesn't work either. The gotoAndStop action ends up controlling the menu movie clip timeline instead of the movie loaded into the container. I figure this is because the menu mc has "embedded" buttons and it's own timeline.
Any help you can offer will be much appreciated.
Thanks
Sheila
Creating A Button To Open A Movie Clip From Inside A Movie Clip?
I'm using a hexagon menu to display some images. One image is placed on each slide of the hexagon menu (which can then be rotated left and right to see other "slides").
What I want to do now is to be able to click on the object (image) as a button and for it to go to another scene which shows the image blown up and some description next to it (which is another movie)
I have tried the following which doesn't seem to work:
Created an invisible button (or choosing the image as a button) and having
on(release) {
gotoAndPlay("scene 5", 1);
}
this doesn't work when I use it over the hexagonal menu, but when I move the button to somewhere else on the screen (not over the movie) it works.
Please can someone help with this - Ive been working on it flat out over the weekend and desperately want to make it work. any ideas would be appreciated!! thank you
Loading External Movie Clip With A Button Inside Another Movie Clip Help
Hi,
I am working on a scrolling thumbnail movie clip, that when you click on the thumbnail button inside the movie clip it will load an external movie clip. I have an empty movie clip on the main stage, and have been trying all sorts of code, but for some reason it doesn't like that I am inside a movie clip using buttons. It can't seem to find the external swf.
I have tried:
on (release) {
loadMovie (ithink.swf, "loader");
and
on (release) }
if (firstTime == true) {
loadMovie("ithink.swf", _root.loader);
firstTime = false;
} else {
_root.clicked = "ithink.swf";
_root.loader.gotoAndPlay("goback");
}
}
and so far nothing, for some reaosn when I click on a button outside of the movie clip with the above code it loads... and than the other works too, but if I click on the buttons inside the scolling movie clip first they won't work.
Any suggests or ideas!!?
I would really appreciate it... I am beyond frusterated!!
How To Play A Scene Through Nested Button Inside Movie
how will work a menu which is on main movie, in that main movie section I hv put button, In this button I hv put several menus (buttons) and I want to play next scene on that menu, I m in very tense they are not working.
on(release){
_root.gotoAndPlay("Scene3", 1);
}
and
on(release){
_parent.menu.gotoAndPlay("Scene3", 1)}
and lot more I hv tried but not get my result.
SO plz plz plz help me!!!
Using A Button In A Movie Clip To Control The Movie(and Not Movie Clip) Timeline
Ok i have a button placed in a movie clip. I want this button, when released, to go in another scene, frame one, on the movie(scene) timeline and not on the movie clip timeline.
So i tried: gotoAndPlay("mission", 1); (mission is the name of my scene)
But it goes to the frame 1 of my movie clip, It would be great if someone could tell me how i can control the movie timeline while my button is in a movie clip
thaks
Vakarm
Stop And Play Button For Movie Clip Within Moive Clip
hi i have problems with my buttons. i have got 2 fla files. 1) shell.fla 2) content.fla.
The shell.fla has a movie clip(name:holder) to load the content.swf. And within the content.swf i have got movie clip within movie clip.
Thru a search from the forum i came across this script
first frame:
Quote:
function stopAllClips(clip) {
clip.stop();
for (var i in clip) {
if(typeof clip[i]=="movieclip") {
if(clip[i]!=clip) {
stopAllClips(clip[i]);
}
}
}
};
function startAllClips(clip) {
clip.play();
for (var i in clip) {
if(typeof clip[i]=="movieclip") {
if(clip[i]!=clip) {
startAllClips(clip[i]);
}
}
}
};
for the button:
Quote:
on (release) {
if(!_root.stopped){
_root.stopAllClips(_root.holder_mc);
_root.stopped = true;
} else {
_root.startAllClips(_root.holder_mc);
_root.stopped = false;
}
}
everything works fine except after i pause and play, i doesn't play from where it has stopped. Anyone has got any ideas as to how i can solve this problem. Thanks very much.
A Button Inside A Movie Clip To Move Another Movie Clip
I'm building a web page and I have a button that I need to make two movie clips play. The button is inside one movie clip and in addition to it playing I want it to make another movie clip play. It doesn't seem to recognize the movie clip target names. Any help as to how this can be done would be much appriciated.
Thanx
Controlling A Movie Clip From A Button Inside Another Movie Clip.
I'm confusing myself just typing this.
I'm working on an interactive map. The map itself is a MC inside a container, but also contains all the buttons as well. On my main stage(scene 1 and menu) is a window(MC) that will show info and photo of building. Now if I create a button on the main stage I can control the movieclip(images) easily. But when I use a button from inside map(MC) it doesn't seem to recognize the (images.gotoAndStop(frame))command.
I'm just not sure what to put in order to be able to control the MC's timeline from within that map movieclip.
Sorry if this is confusing. Of course at the same time it might be a simple solution for most people here as well. At least that is what I'm hoping anyways.
Place Movie Clip Button Inside Movie Clip
Hi, I have searched the forum but cannot find exactly what I am looking for.
I have a movie clip of a map that I can zoom and drag and what I would like to do if possible is to have several other movie clips inside the first movie clip which when clicked go to and play at a given frame number on the timeline where a photo is displayed.
The 'several' movie clips will be small flashing red circles. Each one represents a place of interest and when clicked will display a photo of the place of interest.
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
[CS3.AS2] Button In A Movie Clip Link To Another Movie Clip And Play
what im doing is that making a button in a movie clip link to another movie and play/stop certain parts of that clip
lets say that there are 4 buttons are in movieA, and the other clip is called movieB
when the user clicks button1 in movieA, movieB will play from frame 1 to 5 and stop.
when user clicks button2 in movieA, movieB will play from frame 5 to 10.
and so on
so far my code for button1 is:
on (release){
this._parent.movieB.gotoAndStop(5);
}
on (release){
_root.movieB.gotoAndStop(5);
}
button2:
on (release){
this._parent.movieB.gotoAndStop(10);
}
on (release){
_root.movieB.gotoAndStop(10);
}
with this code, it just jumps to the designated frame.
what i want is to have it play from current frame to a designated frame
can anyone shed some light on this?
|