{F5} a true challenge : who can help me to get this script working?

Hello all,

This might be a bit confusing at first, but hopefully I can make clear what I want to do:

imagine a framework in which an animated picture is shown (= external SWF loaded).
i have 4 buttons, and whenever I click on one of them, a MC (cover) plays over the existing picture (like a fadeout effect), then loads the new animated picture (remember, external SWF) into the framework, and then plays the fade-in anim.

What I would like to create is:

1. When I press one of the 4 buttons and the external SWF is not yet finished loading, that SWF is automatically replaced by the new external SWF (i guess it does that standard)…

HOWEVER, when the SWF is already loaded and playing, when clicking one of the 4 buttons, Flash has to wait till the existing SWF is finished playing (only a few seconds) and after that automatically start playing the cover MC followed by the new SWF.

And if whichever external swf is not fully loaded and played till the last frame yet, the Cover mc cannot interrupt it and play, but it has to check/wait that the last frame of the external loaded swf is played, and then play.

**2. **Furthermore when one of the 4 buttons is pressed, it also has to check if currently the Cover mc (there is only one) is finished playing, so reached the final frame of that, before the Cover MC can be triggered by one of the 4 buttons to play and interrupt the animation that is still playing from the previous button press.

Are you still there?
Great! :slight_smile:

Okay, I attached a .FLA (coversequence.fla) which does this more or less (in any case with the CoverMC), however, I cannot get it to work with externally loaded SWF files :frowning:

In the post below, I will include my .FLA test, which is simplified, works with the Cover MC, holds the cover MC when both Cover or SWF are playing/loading, but (big but), when the new SWF is playing, it does not remember the ‘new click/input’ for after the external SWF is finished loading… so nothing happens.

The problem is as you might have guessed is that on each click a section is loaded. when people click while the new SWF is loaded and playing, the section changes, but the now wrong SWF is visible.

Hopefully you can help me out. Thanks anyway!

my humble attempt…

Hey been going through your attempt, looks good, been trying to figure out how to do that for a while.

So the buttons are all good, but i was just wondering is it possible to load a external movie in the target without clicking on a button and have the opening animation like loading on a frame. for example loading a home external swf at the start of a site which has closed panels, and then having the panels open and the external swf load into the target, and from there the buttons will be used.

well kinda anyway, all i did was load the home.swf in the target as a frame action and changed the home.swf to have the preloader and opening animation. while i made another home2.swf where this is activated by the home button and will use the closing and opening method along with the other section to the site.

so working fine now.
thanx.

lol :smiley:

uhm, no problem mate :slight_smile:

but uhm, anyone who can solve my problem as well :slight_smile:

mmm, at least let me know if I made myself clear about what is the purpose of this lenghth post :slight_smile:

lol, not really dude, when i first read your post i thought it was something about external movies and having a closing and opening animation, and i think your saying the problem is that when you press a button only after the animation is complete you can press another button, well even if its not complete it will play that buttons animation after the previous one is complete.

but for me its no big trouble, not for what iam using it for, maybe big post scare people sometime , sometimes they dnt want to read so much, i cant talk i do it as well (write long messages i mean).

Hopefully one of the flash actionscript pros can help ya on this.
best of luck

i get your problem now, if you click on another button while the buttons selected is loading it will load the another button’s content. ok, still dont know , lol,

though when the movie IS loaded and the animation plays, so you dnt have to make the user wait till the animation is finished to be able to select another button i put the code

_root.thumbclip = “”;

on frame 3 on each external swf. still dosent fix the other problem though.

Check out the file , umm kinda works, well when you select a button when its in the loading process and select another button it restart and does the loading sequence again and loads that selected movie, i was guessing maybe that where u placed the load external movie that there was to much time where the variable could change so i put that code again in before it

_root.thumbclip = “”;

lol, and it seemed to work, dnt think its very good, but yeah something.

lol

oh dear, yeah i feared that my description was hardly accurate.

thanks for your efforts in any case.

however, it didn’t solve the problem, but simply shifted it :slight_smile:

I use the action thumbclip = “”; to tell Flash no vars are set anymore (after clicking one of the four buttons, a var is set). As long as a var is set, the cover MC cannot be played (that’s what I want). By using your _root.thumbclip = “”; you empty the var, and thus the new coverMC can be started while it is still playing, which I don’t want.

thanks already for your effort Guig0 :slight_smile:

good idea, but bad execution, I think that was what you were saying :slight_smile:

didn’t quite understand your remark that the coverMC would always be under the loaded SWF, since it was all placed on _level0 ?

I guess if I point out that the coverMC does slide over the loaded SWF, I’d make a fool of myself, right?

So I won’t :stuck_out_tongue:

wouldn’t this work???:

on each of the 4 buttons I should put a set var specifically for the SWF.

on the last frame of the swf i should put a check for the var, if the var is filled it should go and play the coverMC + swf after it’s finished. If the var is not filled, it does nothing.

till the last frame of the loaded SWF nothing happens, cos it doesn’t know what to do with the var.

for the rest I would keep what I have now, since it works for the cover MC

or again nice idea, but no sigar :wink:

Hey ericinho , so where is Guig0 going to post the message, he said something about meeting us some where, are we going to stay on this thread or mine?

and yes Guig0 i have looked at the whole code, but iam still pretty unsure on when section 0 is called, there is no button asigned to it or a even a frame label. so you got me there.

but still i am intrested if i could c your version of ericinho’s try.

I have noticed a few errors on your project. Let me re-plan it for ya and tell me if this is what you want:

A- You have a main movie, and a bunch of other secondary movies to be loaded on the main one by a click of button.

B- You want that every time a new movie is loaded that a courtain effect hide the unloading the old movie and the new movbie loading process.

So what you have to do:

1- Create your movies (all of them with preloaders);
2- Create a movie for the courtain (close/open effect);
3- Use variables to trigger the load commands and the close/open effect;
4- Load all content movies in the same level and the courtain one level above.

I have done a set of .FLA´s that do that, but it will be hard for you guys to understand, let me finish the translation and simplification (my codes are kindaof messy) and I´ll post it here and try to explain it to you.

=)

=)

Looks good to me, lol, nice selection of images,

but anyway, yeah looks alright the swf i mean , lol

dnt know where ericinho is though.

hey cool.
i will take a look at the fla’s :slight_smile:

question, why not load the swf in one layer (at the same level) and in a layer higher, you load the coverMC?

okay, took a look at it, but i think you’ve missed my problem :slight_smile:

  1. taking your example, when I press option 1 and the courtain kicks in, I can interrupt that by pressing one of the other buttons. This is exactly what I don’t want to happen.

when clicking a button, the courtain + swf should continue to play (without being interupted) and after they are done, then the new one should play :slight_smile:

  1. what is the advantage of this method over the one I proposed earlier?

thanks in any case a lot for your help!

didn’t ask for a full tutorial anywhere though :slight_smile:

anyway, this weekend i will give my idea (posted earlier) a go.
with my file I am half way there, probably best to start from there instead from scratch with yours, especially since it seems we both got a simular approach.

I will let you know on monday if I could manage.

thanks so far

well anyway, guess this didnt work out,

GuigO just wondering if you sent a attachment with the fla’s to curtain zip cause i only got swf.

other than that everything is all good, thanx again for your help GuigO. btw you watching the champions league? what team u support if you do?