A Flash Developer Resource Site

+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Hi!

    Ok i have my main movie and in a layer i have an MC with an instance name of "themepics". Now i have a button with an action of 'on click' go to and play frame 95......it runs through an animation and ends at the 'stop' action frame 107).......on mse release I also have an action of 'tell target "/themepics" go to and play frame 2. That all works really well and the mc goes through and does its thing (it has < arrow buttons > for ppl to go through my themes)

    when ppl go through all my themes and get to the end of the MC I want the MC to unload and basically to go back to the 94th frame on the main time line and stop (so that the scene before the animation and MC playing can be returned)

    I have been trying for hours to work out the right action code or setup to get this to happen but just cant work it out!

    Can some clever lil devil out there help me??

    Cheetah

  2. #2
    Member
    Join Date
    May 2001
    Posts
    59

    hmmmmm

    Wow, it's tough to say. To be honest, it's kind of confusing....especially for those of us who can't see the fla. So, you know this thing better than anyone...you've got to keep up the trial and error. Take a break from it, and rethink it from scratch. You can make it do what you want it to do. It might simply be a matter of targeting. Try different ways. Also, when you are unloading the thing, what code are you using. I thought that two quotes "" indicates that it should unload itself. Or you can play with setting the variables and making the thing not be visible. Keep trying.

  3. #3
    Well I can get the MC to unload my problem is getting it to unload and then being able to get back to frame 94 in the main time line (which has a stop action) and wait for user action to start another MC?? Sorry i am rather new at this but it seems like i cant get the control back from the MC and cant get back to the main timeline??


  4. #4
    Member
    Join Date
    May 2001
    Posts
    59

    hmmm again

    now i'm confused even further. You are implying that your movie leaves it's main timeline, but in fact it never does. The movie clip that you have on the stage is running on it's own timeline totally independent of the main timeline. The only interaction that occurs is what you tell it do in your actionscript. So if you have a stop command at frame 94 or whatever, and on that frame you have this movie clip....and at the end of this movie clip...the thing tells itself to leave...then, you should be left with whatever you had on that frame 94 on the main timeline. Do you follow? Maybe ,it's the way you are making the movie clip leave that is the issue. You referred to it as unloading, but that usually refers to swfs, not movie clips. You can have a set variable at the end of your movie clip that tells it to disappear, with the visibility or alpha commands. You know? That might just work. But don't try to put code in the movie clip that tells the main time line where to go. The main time line will just chill at the place you want to stop at....the movie clip is the one making the guest appearance on the stage.


  5. #5

    Re: hmmm again

    Originally posted by katnipped
    now i'm confused even further. You are implying that your movie leaves it's main timeline, but in fact it never does. The movie clip that you have on the stage is running on it's own timeline totally independent of the main timeline. The only interaction that occurs is what you tell it do in your actionscript. So if you have a stop command at frame 94 or whatever, and on that frame you have this movie clip....and at the end of this movie clip...the thing tells itself to leave...then, you should be left with whatever you had on that frame 94 on the main timeline. Do you follow? Maybe ,it's the way you are making the movie clip leave that is the issue. You referred to it as unloading, but that usually refers to swfs, not movie clips. You can have a set variable at the end of your movie clip that tells it to disappear, with the visibility or alpha commands. You know? That might just work. But don't try to put code in the movie clip that tells the main time line where to go. The main time line will just chill at the place you want to stop at....the movie clip is the one making the guest appearance on the stage.

    Ok i am probably not using the right terms mainly because I dont know them! lol ok I will try and explain it right sorry for being so confusing...

    Yep I am still playing with it and agree the problem is not the MC....what i want the main time line to do is it plays through to frame 94 and then stops the user then has a choice of four buttons to press (which starts an MC) in the button action i not only have the MC to start playing but another 10 frames that plays an animation as the MC is starting (this all works great)......

    The problem is once they have finished with the MC I want the main stage to go back to frame 94 and not stay at frame 105 (where it stays while the MC is playing)

    If you want me to upload the movie for you to have a look at how it plays that would be great!

    can it be done?

  6. #6
    Member
    Join Date
    May 2001
    Posts
    59

    okay

    Now it seems to be more clear to me. So the problem is that when you activate these movie clips, you also make the main timeline go an additional ten frames in what I assume is some sort of transition animation. This is a bit of a complicated way of doing things, but you still can achieve what you want. There clearly is a way for you to target the main time line from a movie clip. So the actionscript that you are putting at the end of the movie clip needs to be adjusted and played with. Flash five is new and different, and I myself am still unclear with the targeting system. There is more than one way to do it too...I would just play with the following target methods, until one works. Trial and error. In the movie clip, when it's done, you have to tell the main movie to go to and stop at 94. You have to find it by saying ::_root, then go to and stop 94, or i believe _parent, go to and stop, will do the same thing. The issue is targeting the maintime line from a movie clip. Or try....using the targeting button, when you go to tell target, at the bottom is a little icon that looks like a cross hair, press it and try to locate the maintime line. If all these methods don't work...try to restructure what you are trying to accomplish. Maybe put your ten frame animation in the movie clip. Or maybe have your buttons load swfs onto the mainstage, instead of activating movie clips. It's all about problem solving. Let me know.

  7. #7

    Smile

    Thanks for all your help katnipped

    I got it worked out now i should have posted a note saying that sorry!


  8. #8

    Smile

    sorry katnipped i should have let you know how it was done yes i targeted the main frame using the tell target _root got to and stop at 94 i was close when someone gave me the answer i was saying tell target go to and PLAY 94 lol!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts




Click Here to Expand Forum to Full Width


HTML5 Development Center