Controlling Main Timeline From External Swf
Any help with this would be much appreciated.
Here's the problem. I've got a site that's loading several swfs from a main timeline into levels. So far so good. However, because I've got clicked state son buttons and other areas to reach those navigation areas I need to be able to tell a loaded external swf to target the clicked state of the navigation clip on the MAIN timeline. I've searched through the forum and found my solution only it won't work! I know I need to use _level0 rather than _root - I'm just wondering if I'm looking so deep with a/s it's not happening (the clicked state of abutton is 3 or so movie clips donw. Code below (top bits just a rollover thing specific to the loaded movie):
on (rollOver) {
gotoAndPlay("over");
}
on (rollOut) {
gotoAndPlay("off");
}
on (release) {
loadMovieNum("content_latestnews.swf", 1);
_level0.nav.navclip.button6.gotoAndPlay("clicked") ;
}
Thanks in advance!
FlashKit > Flash Help > Flash ActionScript
Posted on: 04-24-2006, 09:12 AM
View Complete Forum Thread with Replies
Sponsored Links:
External SWF Controlling Main Timeline
Hi all --
I have a main SWF file that I am loading a smaller, external SWF file into (with loadMovie, if you care to know). Within that smaller file, I have a button -- ideally, this button should trigger an action within the main SWF file.
My problem is that I cannot get the external SWF file to control an action within the main SWF. I'm guessing there must be a way to do this, but I'm having some trouble here.
Thanks in advance... please advise!
View Replies !
View Related
Controlling Main Swf Timeline From Button In External Swf
so i've searched the archives and it doesn't seem that anyone has had problems with this. i think it's a really simple answer but i'm flash-stupid so if this is a silly question, i apologize and hope for an answer! my project is due tomorrow and i just barely got my preloader to work.
anyway, i have a main swf that controls all of my external swfs. i have a keyframe every 5 frames that has a movieclip on it. the movieclip calls the external swf with loadMovie("bedroom.swf", mh_bedroom) (as an example) . the thing is, every external swf is like a movie that continues like a story (except the story is separated into 10 swfs). so i have a button in my first external swf that is:
on (release) {
_level0.bedroom.gotoAndPlay("67");
}
when i click it, it just gives me a blank white screen. i want the button to call the main timeline (the one that holds all of the movieclips for the external swfs) so that it will go to a specific frame that holds the next movieclip/external swf that is supposed to play.
i hope that made sense. and i hope it's an easy fix that i just can't realize!
any help asap would be REALLY appreciated! thank you!
View Replies !
View Related
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!
View Replies !
View Related
Controlling Main Timeline ?
Hi,
I'm having serious problems in trying to control the main timeline (as in scene 1, where you start from) from within a movie clip. The scenario at the moment is that I've got a list of buttons in a movie clip, that clip is within another movie clip which is placed on the main time line. So basically what I'm trying to do is that when any of those buttons are clicked it should play that movie clip and at the end of it should jump to a corresponding scene depending on which button was pressed. I tried using variables but couldn't get it working.
Does anyone here have any ideas how I can make it work?? By the way this happens to be an urgent problem so any quick responses would be majorly appreciates !
Thanks,
Usman.
View Replies !
View Related
Controlling Main Timeline From MC
Hello,
I have a button nested in a Movie Clip. I want this button to control the the main timelines in one of my scene. When I use the following script:
on (release){
gotoAndPlay("presentation",1);
}
or
on (release){
_root.gotoAndPlay("presentation",1);
}
It doesn't do anything. If I try this script:
on (release){
_root.gotoAndPlay(1);
}
It will go to the first frame of my original or top scene which I have named splashScreen, not the one in which the Movie Clip is contained. If anyone knows how to script this correctly, it would be much appreciated!
Thanks!
View Replies !
View Related
Controlling Main Timeline...
Hello!
I am trying to make it so that when a movie clip plays, it will change the keyframe of the main timeline... does that make sence?
I need the gotoAndPlay() code that goes in between the () I'm trying to move onto frame 2 (in the main timeline) If I put in a (2) it'll take me to frame 2 in the movieclip...
Anyway, if this makes sence, I would really appreciate some help!!!!!
--Jacob1234
View Replies !
View Related
Controlling MC's On Main Timeline
So I have 8 productMC's on my main timeline in flash CS3 (using AS 2.0)
When I click one product I want the that MC to play and the other 7 MC's to either be set to _alpha=0 or be disabled
Once the MC is open I have a "view" and "back" MC within that MC and when back is clicked I want it to reset everything back to the way it was
I have tried to do all of this from the main timeline with AS but for some reason my back button isn't resetting anything and my view button won't go away
Here is what is on layer 1 on the main timeline
ActionScript Code:
_root.viewMC.onRollOver = function () { //only want this to show onrollover
_root.viewMC._alpha = 100;
}
_root.viewMC.onRollOut = function () { //hide viewMC on rollout
_root.viewMC._alpha = 0;
}
_root.prod1MC.onPress = function () {
//main MC is pressed it will set all other MC's AND viewMC to _alpha 0
_root.prod1MC.gotoAndPlay(11);
_root.backMC._alpha = 100;
_root.viewMC._alpha = 0;
_root.prod2MC._alpha = 0;
_root.prod3MC._alpha = 0;
_root.prod4MC._alpha = 0;
};
_root.backMC.onPress = function () {
//when the backMC is pressed it resets everything back to the alpha 100
_root.prod1MC.gotoAndPlay(2);
_root.prod2MC._alpha = 100;
_root.prod3MC._alpha = 100;
_root.prod4MC._alpha = 100;
};
This is working 1/2 way and my problem is that the viewMC keeps showing up on rollover even when I have it set to _alpha=0 when the prod1MC is pressed
And when you click the back button it doesn't reset the _alpha to 100
HELP
View Replies !
View Related
Controlling Main Timeline
I am looking for a way to tell the main timeline to gotoAndPlay at a certain labeled frame from within a movieclip on stage. This was as simple as could be in AS 2.0, but is proving to be impossible in AS3.0. What I want to have happen is that when the movie reaches the end in the movieclip on stage the it then will gotoAndPlay on the main timeline.
Why is this so difficult? And why is this not documented in any manuals or discussions? Sometimes I really hate AS 3.0.
Does anyone have any suggestions?
View Replies !
View Related
Controlling The Main Timeline Within A MC
Please assist!!
Im trying to control the main timeline from a button inside a seperate MC. eg: The navigation is a movie and when a link is clicked I want it to jump to a specific frame on the main timeline of the whole movie.
It sounds basic - I tried "_root.Level2" but this isn't working - Level 2 is the frame Label I have given.
Loads of thanks if you can help!
Thanks in advance
View Replies !
View Related
Controlling Movie From Main Timeline
okay, here's the plot:
I've got a movieclip of an airplane.
The whole clip is the plane retracting and putting out the landing. Now The first part until frame 10 is retract.
I need to make the movie play the 1st 10 frames and then stop. The gear is up then. If the gear has to go down, It needs to play frame 11 till 20 and stop on 20.
This has to be done from the main stage, or another object like a button.
I tried tell target, but that wont work or maybe I didnt get it right.
(or should I go to the newbies forum)
View Replies !
View Related
Controlling The Main Timeline From Nested MC's
Here's the problem. I have a MC (MC1) on the main stage. Inside the MC (MC1) there are actions and another MC (MC2) that is controlled by the actions. Inside of MC2 there are buttons for the navigation of the site. My question is how do I make these buttons contol the main timeline and goto a different scene. Please help.
View Replies !
View Related
Controlling Sound On The Main Timeline?
Okay, here's my problem...
I have a background music loop that's being controlled by buttons in a movie clip on the main timeline (using ON/OFF buttons and the linkage from the music loop in the library -- and Actionscript of course).
BUT... on the main TIMELINE I have multiple streaming voice-overs that I need to be controlled by another ON/OFF buttons, but the catch is if the user decides to turn OFF the voice-over on the main TIMELINE, and then turn it back ON again, I need the voice-over to pick up where the timeline currently is on the timeline. The reason for this is that I have animations that go with voice overs.
Someone mentioned to me to do a script that would just set the volume on the main timeline to "0", but I don't know how to go about creating an actionscript for that...
Any help is much appreciated!
Thanks,
Tim
View Replies !
View Related
Controlling Main Timeline From Movieclip
I've inserted a button within a movieclip, and I need it to control the main timeline, specifically jump to a different scene.
Here's the script...
on (rollOver) {
gotoAndPlay ("1");
}
on (rollOut) {
gotoAndPlay (23);
}
on (release) {
gotoAndPlay ("Brief", 1);
}
It's the last one thats the problem. "Brief" is a scene on the main timeline. But it's just not working. Any ideas?????? (the first two, "rollOut" and "rollOver" are on the movieclips timeline)
Thanks!
View Replies !
View Related
Controlling Main Timeline From Loaded Swf.
I have a index.swf loaded into a level on my main timeline.
loadMovieNum (index.swf, 2)
This loades fine. I need the index.swf to stop the main timeline it is loaded in. this is the code i have used before and it worked, this time it does not.
on (release) {
_root.level0.stop();
}
Please help. thanks
Dawn
View Replies !
View Related
Controlling The Main Timeline From A Child
ok i know this sounds super simple but why wont it work
i can control the main timeline from one MC with a button for that scene but i cant get it to jump to another scene using the same method
ie
code:
on (release) {
_root.gotoAndPlay("somelabel");
}
//works
//but
on (release) {
_root.gotoAndPlay("some_scene", "somelabel");
}
//doesn't work
ideas on whats wrong?
pulling my hair out here
see attachment for simplified version
View Replies !
View Related
Controlling Slides On Main Timeline.
Hi,
Right now I got three slides playing after one another(with information in text box). Problem with this is that some people (senior citizens ) can't read it all in that time period. I can make the slides last longer with more frames but then it will be too slow for some other users.
What I want is to make play and stop button on the stage for the actual movie. I looked on this forum and else on internet to find any help but I can't(they all have info on stoping sounds but not the actual movie). I want to put buttons like 'play' and 'pause' so that those old people can click on pause and take there time!
Please help me.
Thanks.
View Replies !
View Related
Controlling The Main Timeline From A Loaded MC
Hi guys... im back i asked this question the other day and the solution i got didnt quite work so i decided to repost and be as descriptive as possible -my problem is i have my main movie "TuffSite" and in it i have various scenes... into which i have empty movie clips that will hold various parts of my design in movie clips on my stage, in this case, i have my "menu_clip" loading into "menu_holdr" and in "menu_clip" i have my buttons -id like them to effect "TuffSite" lets say i want a button to go to and play frame 1 of a scene called Design in the main movie "TuffSite" i'll paste the code bellow but i owondering if the fact that im loading a movie clip into a movie clip and tryin to effect a movie a couple of layers up? i used to the following code which seemingly should work:
on (release) {
_root.TuffSite.gotoAndPlay("Designs")
}
as i understand it the root is refering to my main movie... so the only reason i can think of is that i've missed a "level" or something -any ideas, im gettin pretty Freaked out man!!!
View Replies !
View Related
Controlling Nested MCs In Main Timeline
I'm not sure what the best way tio animate this is...
I am trying to write my actionscript more efficiently (externally rather than inside the movie clip symbols), but seem to keep running into problems.
I have clips of crab characters throwing and catching a disc. the throw, the catch, and the disc are all seperate movie clips with tweening. I have frame labels in the different keyframes and a Stop action at the end of each clip. The disc actually has two stops, one for the path out and one for the return path.
The parent timeline holds these clips in a frame with a Stop action on it. I would like to be able to write the AS in the parent AS layer. So far though, I cannot get the frame events to trigger. An example of what I have tried is:
if(this.CrabPinch1._currentframe=="P1") {
this.discClip.play():
}
if (this.discClip._currentframe=="midpoint"){
this.CrabSnatch.play();
}
All of the clips have instance names
Ideally, I would like to write this as a function to apply to the clip to make it loop until the user selects something else. I may wish to use this to create clips with 3 or 4 crabs tossing this disc. However, I am simply struggling to get tese clips just to talk to each other. In the past I would write on the clip itself. However, i would like to use more efficient and dicernable methods in my new projects.
If there is already something posted, please let me know but I could not locate something this specific.
Thanks in advance
View Replies !
View Related
Controlling Main Timeline From Child
Hi everyone,
I'm in need of some advice. I'm looking to control the main time line from a movie clip loaded into a level. Here's the deal:
I'm loading a swf file into level 10 of the maintime line using a load movie level script. I'd like a button on the child timeline to go to frame 6 of the main time when it's clicked. I'm struggling with the code.
Here's what I have
on (release) {
_root.parent_gotoAndPlay(6);
}
View Replies !
View Related
Problems Controlling MC From Main Timeline
Hi all,
I have a fairly basic problem that I'm sure is pretty easy to solve if you know how:
I'm working on a game, in which I would like to implement a fade to black and back to transparent effect in between various parts of the game.
So say from the main menu once the user clicks 'start game', I want to fade the whole thing to black, then switch screens, then reduce the alpha of the fader to reveal the game.
I've created an MC that is basically a transparent screen, that tweens in to black, waits a few seconds, then tweens out to a 0 alpha again.
My problem is that I can't seem to get the code to understand when the screen is at black so I can do the screen switcheroo.
Should I set up a flag, and put some code in the middle of the MC (which I would like to avoid if possible), or can I use ._currentframe to determine when the MC is in the right position?
Alternatively would the whole fade thing be easier to do using just AS?
Thank you people!
View Replies !
View Related
Controlling Main Timeline From Dynamic .swf
OK, this could be a very simple answer, but...
I have a main.swf which plays, then stops, loads a dynamic .swf... And what I want is, from either the dynamic .swf or the main one, when the dynamic .swf is finished, the main .swf will continue/play.
Thanks in advance for any help given.
View Replies !
View Related
Controlling Main Timeline With Loaded Swf
I am loading an external swf into an empty mc on the main timeline. When the animation in the loaded swf finishes, I want to move to a different frame on the main timeline. Somehow I need to use the loaded swf to tell the main timeline to go to a new frame.
Putting a "gotoandPlay" and pointing at _root from the loaded swf doesn't seem to do the job. any ideas?
View Replies !
View Related
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
View Replies !
View Related
Controlling Main Timeline From Placed Movie Menu
hey,
I'm trying to make a simple site with multiple scenes for each section. I want to have the same menu in each scene by making it a movie that is placed in the main timeline. How can I make the buttons on the placed movie switch to different scenes on the main time line, ala _parent and _root.togo?
thanks,
View Replies !
View Related
Button Inside MC Controlling Main Timeline
Hello,
I have a movie clip on Scene1 of my timeline and inside that MC is a button, how can I set it up so that when that button is clicked the main timeline moves ahead one frame? Everytime I try to advance the main timeline one frame it only moves the MC ahead one frame!
Thanks!
View Replies !
View Related
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!
View Replies !
View Related
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!
View Replies !
View Related
Mc Button Controlling Main Movie Timeline?
Hi
Ive got my buttons enclosed inside Movie clips (because the buttons have an animation on rollover and rollout) but i cant make these buttons control the main timeline.
Ie. when i rollover the button the animation works but when i click the button it doesnt make the main timeline GoTo the relevant point.
The MC has a layer with the animation (fading in and out of block for roll over and rollout) which lasts for 15frames. And a layer above it with a button which has the following code:
code:
on (rollOver) {
gotoAndPlay(2);
}
on (rollOut) {
gotoAndPlay(9);
}
on (release) {
gotoAndPlay("Scene 1", 4);
}
Any suggestions?
many thanks
Michael
View Replies !
View Related
Mc Button Controlling Main Movie Timeline?
Hi
Ive got my buttons enclosed inside Movie clips (because the buttons have an animation on rollover and rollout) but i cant make these buttons control the main timeline.
Ie. when i rollover the button the animation works but when i click the button it doesnt make the main timeline GoTo the relevant point.
The MC has a layer with the animation (fading in and out of block for roll over and rollout) which lasts for 15frames. And a layer above it with a button which has the following code:
code:
on (rollOver) {
gotoAndPlay(2);
}
on (rollOut) {
gotoAndPlay(9);
}
on (release) {
gotoAndPlay("Scene 1", 4);
}
Any suggestions?
many thanks
Michael
View Replies !
View Related
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.
View Replies !
View Related
Controlling Main Timeline From A Nested Button
dont know if i phrased that right or not but heres what i have a nested movie clip that has this actionscript:
on (rollOver, dragOver)
{
gotoAndPlay(16);
}
on (rollOut, dragOut)
{
gotoAndPlay(23);
}
on (release)
{
_root.link = 2;
_root.play();
}
Now everything works but i am having problems on the main timeline. i need it to gotoAndPlay frame 84 on the main timeline. This is the actionscript that came with the thing im learnign from. and to me it makes no sense. So what woudl i change to make this a little more sensible all i need is help with the on (release) portion.
what exactly is the root.link = 2 supposed to achieve is this a better method of doing something i am not familliar with? all i can think of is that is saying go to the second frame label. but i dont know thanks for the input.
Boom
View Replies !
View Related
Controlling Event Handlers From Main Timeline?
I am trying to keep my code all in the same place - on the main timeline...
but on events can only be controlled from the instance itself??
ex:
Code:
_root.datamovie.dsgproduct.onClipEvent(enterFrame) {
_root.datamovie.dsgproduct.title_arrow.gotoAndStop ("selectnow");
}
I know this probably looks horrible but having all events on all different mcs all over the show is soooo bad!
Please help with any ideas?!
Cheers!
View Replies !
View Related
Controlling Event Handlers From Main Timeline?
I am trying to keep my code all in the same place - on the main timeline...
but on events can only be controlled from the instance itself??
ex:
Code:
_root.datamovie.dsgproduct.onClipEvent(enterFrame) {
_root.datamovie.dsgproduct.title_arrow.gotoAndStop ("selectnow");
}
I know this probably looks horrible but having all events on all different mcs all over the show is soooo bad!
Please help with any ideas?!
Cheers!
View Replies !
View Related
LoadMovie File Controlling Main Timeline
Here is my dilema, thanks in advance for any help.
I have created an interface with navigational buttons and a movie clip into which I use the loadMovie actionscript command to load .jpg files. What I'd like to do is create a series of thumbnail buttons in another .swf file that I load into the movieclip. If I do this, can the buttons in this loadMovie .swf control the timeline of the main interface? I'd like to still use the main timeline for my primary actionscripting if possible and the new buttons only to advance the main timeline.
I'm using Flash MX Pro 2004
View Replies !
View Related
Controlling Main Timeline Through Externally Loaded Swf
I'm missing something...here's the setup:
navbar.swf (a navigation window) loads into the main timeline, placed into a container called navguide. There are buttons in navbar.swf that I want to control the main timeline, moving it from section to section of the main site (button called "newsbutton" should move the playhead to a News section this time, which is placed on frame 5). The code I have in the main timeline so far is this (on frame 1, _root timeline):
Code:
stop();
loadMovie("scoreboard.swf", scoreboard);
loadMovie("navbar.swf", navguide);
navguide.newsbutton.onPress = function(){
_root.gotoAndStop(5);
}
No blatant typos, as far as I can find, because the effects on the newsbutton (loaded from navbar.swf) work fine. But when I click the newsbutton, nothing happens. What am I missing?
View Replies !
View Related
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.
View Replies !
View Related
[CS3] AS2, Controlling Embedded Timelines From Main Timeline
If anyone can help with some hints, I would surely appreciate it.
I have a movie that demo's how a product works, and is going to be used for live, projected presentations. Each of my sequences are developed as single mc's on main timeline. It's easy enough from me to call a stop action using a controller located in each mc with the onRelease command.
some of my sequence mc's contain child mc's embedded ing them. I would like to know how to control all mc's, in all sequences, from main timeline. This doesn't seam like it should be that difficult, but for the life of me, everything I can think of, doesn't work.
Can anyone help?
TIA.
James
View Replies !
View Related
Controlling Main Timeline From Loaded Movie
I have loaded an external movie onto the main movie in a movie clip called "mainholder" - In the main timeline on the main movie there is a "stop" command on frame 1. From the loaded movie, I want to control the main timeline and tell it to go to frame 2. Can someone tell me the actionscripting to do this, I have tried several commands and getting frustrated. ;-)
Thanks
View Replies !
View Related
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?
View Replies !
View Related
Controlling Loaded Movies From Main Timeline
I'm using loadMovie to load SWF movies into levels and movie clip "markers".
How can I control the loaded movie from a button on the timeline?
For example, when my users click a main timeline button, I'd like the loaded movie to jump to a frame, fade out, and unload itself...
Thanks!
View Replies !
View Related
Loaded Clip Controlling Main Timeline...
I am having a strange little glitch which I can't seem to makse sense of:
I have a main movie timeline which loads in an external clip of a map on frame 10. When you click on a particular area of the map, this external clip sends the main timeline to another frame which loads another clip (using _level0.gotoAndPlay(75)
...at least this is how it works when testing from Flash. However, as soon as I run the movies in my browser (from Safari or Firefox), it stops working. It will not send the main timeline to another frame. I've trid using _root as well as _level0, but no luck.
Any ideas?
Thanks!
View Replies !
View Related
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
View Replies !
View Related
STILL Problem Controlling Main Timeline With Movie Clip
Okay, here's what I need to have happen.
I have a picture album. When a button is clicked, I want it to give a certain value to a variable and then go play a movie clip of a "page turning", and then assign the movie clip an action at the end of the page turn that says if that variable equals "this", then go and play a certain frame in the main time line. Then different buttons will each play the page turn and then go to a different frame according to what variables I assigned them.
Here's what I've got for the button:
on (release) {
_root.a=="1"
_root.gotoAndPlay ("turn")
}
and this is on the last frame of the movie clip:
if (_root.a == "1") {
_root.gotoAndPlay("Scene 1", "page2");
}
The movie clip just loops, and doesn't go play what I want even when there's a stop command at the end, it just stops on that frame in the clip.
What am I doing wrong?
View Replies !
View Related
|