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

Soulty: Here is the flas, but if you wait a littl longer I´m sure that ericinho is going to get something good for us.

Ericinho: Oh man, writen words seem so harsh…

Now that I look back to my previus post I see a totally different meaning, it looks kinda of bossy and mean. Real sorry man! I didn´t mean this. I apologize to you, you have done nothing wrong.

If you will I will work on that on the weekend too to help you better.

Plz accept my apologies. I´ll delete this post.

Friends?:slight_smile:

=)

Hope all is good between you 2, since i asked Guig0 to come and help you ericinho.

A community is not a community when we can’t all talk to each other and work out each others problems , big or small, lol,

man that sound very gay but there some truth in there (what i said not the gay part, lol)

ANYWAY, umm Guig0 , umm The fla’s? lol, Thats kool though ill wait till what ericinho can bring out after this weekend, iam in no hurrry, since Ive just finished my course got nuthin else I have to do!!!, what a great feeling :slight_smile:

:slight_smile:

Guig0, don’t worry man, no offense taken!!! :slight_smile:
I appreciate your help a lot, and also Soulty’s as matter a fact :smirk:

obviously I would love it if you too could take a look at it this weekend, so we could compair notes after the weekend.

anyhow, I will experiment this weekend and hopefully I can post there a working sollution on Monday. If not I am sure you can help me out :slight_smile:

[off-topic]

Soulty, in Brasil they have the coppa America as the equivalent of the Champions League in Europe.

Personally I am a huge Ajax Amsterdam supporter… Thanks to your fellow countryman Joey Didulica we snatched a point from Valencia this past wednesdag :slight_smile:

[/off-topic]

Glad you guys understand. :slight_smile:

About the project: we will get there!:evil:

to ericinho: você é brasileiro? de onde? e está aonde agora? Eu sou carioca.

=)

Real Madrid, all the way, lol,

i watch alot of football, English , spanish , italian , champions league, uefa cup , what ever is on,

Favourite teams are , Manchester Utd

Real Madrid!!! RAUL AND RONALDO!!! How can u go wrong!

Juventus , DAVIDS is unbelievable sometimes

Oops!
forgot to attach them! and now they´re at work. what fool I am:)

I´ll try to do something here at home.

=)

I mixed some of ericinho ideas in this, the courtain effect is in a layer on the main.fla and content is loaded on a movieClip on a layer below. I think that this is quite simple to understand, if guys have any trouble to understand I´ll be more than glad to explain. :slight_smile:

Take a look:

=)

thanx dude, it looks good, ill try it for my own fla’s, not tonight though, too tied from basketball, ill let you know how it goes when i get it done, thanx for your help.

Guig0: Eu no sou de Brasil, mim sou dos Paises Baixos :slight_smile:

and my portuguese is kinda rusty :wink:

Back to business my friends :slight_smile:

  1. Thanks for the .fla Guig0… I hate to say this… but I couldn’t open it (flash mx file I guess), while I only use Flash 5 :stuck_out_tongue:

hopefully the code can be also used for Flash 5?


  1. Anyway, I spend my entire sunday morning experimenting with variables, but it doesn’t work. I have an idea why, but I need you to explain me what I am doing wrong.

Okay, I will give a summary of my tries…

a.) on the last frame of the external loaded SWF I put the following action:

stop ();
if (_root.thumbclip ne “” or “1”){
_root.thumbcover.gotoAndPlay(“close”);
}else{
_root.thumbclip = “”;
}

With this code I intended the following:

  • okay, the current example.fla worked fine till the moment the SWF started loading & playing. Cause clicks (and set vars) after that were not remembered because in the last frame of the old example file I cleared the thumbclip var with _root.thumbclip = “”;

  • So, my idea was to have on the last frame of the external SWF check if the thumbclip var was still that of the SWF playing (value 1 = swf 1 and so on), if yes (no buttons would have been clicked while the SWF was playing) the var should be set to “”. If no it should gotoandplay the cover with the new var set.

Didn’t work and I reckoned that checking for also the “” state of the thumbclip var was nonsense, since in any case that is never the case. So: if (_root.thumbclip ne “1”){

b.) since after this I couldn’t click anythng anymore, I assumed that for some reason the thumbclip var was not set to “” anymore. So I changed the code to this:

if (_root.thumbclip == “1”){
_root.thumbclip = “”;
}
else{
_root.thumbcover.gotoAndPlay(close);
}

So basically I turned it around, made it more logic.
Still didn’t work, though it did set the thumbclip var to “”. But it didn’t remember the clicks during the playing of the SWF.

c.) Then it dawned to me that obviously the coverMC could never play until the thumbclip var was set to “” since this was fixed like this in the onRelease action on the button on the main.

So I guessed that I would have to set the thumbclip var in any case on “” if I wanted to get the coverMC to play again.

The only way to do this I guess is to set another var onRelease, which is being used within the external SWF.

So it would be then something like this:

  1. first I’d set the thumbclip var to “” (so the coverMC can play again)

  2. when someone clicks the button the var for the right external SWF is being set (with nextMovie2 = “thumb1.swf”;). So that is being taken care of as well.

  3. so the only thing to do now is to make sure that when someone clicks one of the buttons, a second var is set for the SWFs. But ofcourse, since you set in the last frame of the SWF the

thumbSWFclip = “1”;

in the last frame of the external SWF 1 (in this case) it checks for this var.

stop ();
_root.thumbclip = “”;
if (_root.thumbSWFclip ne “1”){
_root.thumbcover.gotoAndPlay(“close”);
}
else{
gotoAndStop;
}

Just to make sure I put in frame 3 of the SWF (in this case swf1)

thumbSWFclip = “1”;
_root.thumbclip = “1”;

so dammit, all vars are set as solid as a house :wink:

and it works…:slight_smile: almost…:frowning:

Because ofcourse in the period between the external SWF setting the var to “” in its last frame and the new SWF (3) setting it again to 1,2 or 3, there is the coverMC. And when the new SWF loads because during playing of the previous one a button is clicked, no onRelease has been and therefore no thumbclip var is set. So when the coverMC plays, you can click and the new coverMC will interrupt the old one.

Confusing huh :stuck_out_tongue:

Just click button 1, wait till the SWF1 is playing and then click button 2.
When the cover of SWF2 starts sliding in, click again on a button, and you see that the grey slider replays.

maybe in the cover I could put an action which checks if the same coverMC is already playing and then blocks this? Or with a var???

So that is the only thing I have to figure out to avoid… anyone???

Thanks a lot :slight_smile:

But now it is in F5.:slight_smile:

Take a look, all variables are F5 compatible.

About your last post: Yeah! Very confusing.
I think you´re having trouble passing and retrieving variables, other than that it´s all ok :slight_smile: , now seriously, I think You´re not retrieving variables values cause the code that ask the vaues is not updating it self, it ask once and never again.

=)

yup, it will be a wonderful day when I finally learn to describe my flash antics to the point instead of these huge volumes of words :wink:

uhm, I don’t think what you say is the problem really :slight_smile:

my method is the problem.

basically what my code does is this:

I use two vars. One to make sure that people cannot restart the CoverMC while that cover is still playing, by pressing another button.

At first I simply cleared this var at the last frame of the external SWF. But obviously, it then doesn’t remember any of the clicks made while the SWF is playing/loading. And this can result in the ext. SWF and the rest of the content not matching.

So avoid that I used the If function, together with a second var which works fine.

The problem is this:

Two onRelease situations:

ad. 1 someone clicks when CoverMC and SWF are finished playing

ad. 2 someone clicks while the SWF is playing

both clicks set the two vars. However, the ad. 2 click var is being removed in the last frame of the ext. SWF (necesarry, because if thumbclip is not “”, the new coverMC cannot play).

And since it is being removed, the following selection (cover + SWF) is played without the var that protects the coverMC from being interupted by a buttonclick.

Ofcourse, this won’t happen often, but hey, I just want the code to be foolproof :slight_smile:

So what I have to do is maybe a third var that prevents this from happening???

More clear now??? I sure hope so :beam:


about your code…

haven’t figured out what causes the problem, but first of all it doesn’t remember the clicks while the cover/swf are playing.
But that should just be a matter of vars.

the other thing is that when you click a couple of buttons while the cover/swf are playing, the Flash file ‘hangs’, in any case on my system. When the buttons are clicked, the content doesn’t load anymore, so maybe also a var that is not being emptied anymore???

thanks :slight_smile:

haven’t figured out what causes the problem, but first of all it doesn’t remember the clicks while the cover/swf are playing.
But that should just be a matter of vars.

the other thing is that when you click a couple of buttons while the cover/swf are playing, the Flash file ‘hangs’, in any case on my system. When the buttons are clicked, the content doesn’t load anymore, so maybe also a var that is not being emptied anymore???

the first part was intentional. I thought it was best this way, but if you prefer the other we can do that too.

the second, well, that´s true. but you have to click like a mad man to to that.:slight_smile:

=)

I am a trigger-happy left mousebutton clicker my friend :slight_smile:

i think by the way I have found a sollution for my problem.

wouldn’t it work if I would set in the code on the last frame of the ext. SWF in the if function a new thumbclip var?

this would only happen if someone would have clicked while the SWF was playing, and then in any case automatically it will play the new selection

stop ();
_root.thumbclip = “”;
if (_root.thumbSWFclip ne “1”){

// so here something like: _root.thumbclip = “4”;

_root.thumbcover.gotoAndPlay(“close”);
}
else{
gotoAndStop;
}

or not?

Yeah! I think it works.

=)

eureka! :wink:

yup, it seems it works like a charm :slight_smile:

thanks for your help Guig0! :slight_smile:

and ofcourse also to Soulty. If you have questions about my version, just post em here :slight_smile:

Nice file!:slight_smile:
Thanks!

=)

Nice work ericinho, looks like this is the one!

though :-\

I implemented it in my site though its working fine but i have one problem, Ive posted up my site for testing purposes, (I dnt really want alot of people to see it yet , cause i havent finalised it,) i am having a problem, I am using ericinho method of code and construction,

and what is happenin is that when you first go into the site, it loads the external (all good) but as soon as you click on a button it does the weirdest thing, it actually goes back to frame 1 of the .root movie and replays the animation and then when you click on the same button again, it will work, same goes for all buttons, then it will work fine until you empty temp internet files???

Most code is the same , the only difference would be thumbcontent i changed to content. and probably the major thing i changed would be i made a few more buttons than you did so i pushed the variable up, and the extra variable was 6 instead of your 4. though that was all worked out fine.

Why this is weird is that the actual swf itself works fine, its just that when its posted it does this??

here is the link and plz, dnt be 2 harsh about the errors on there cause it aint finished yet, had to hand something in for final week at tafe, so made me hurry it (that and i had my wisdom teeth out , Lost all my Wisdom :smirk: )

http://members.optushome.com.au/paulsoultis/

mmm, I am not quite sure what your problem is.

when I check, I do notice that despite clicking one of the four sections, I each time get the welcome swf.

and apart from that, you say, that if you play the swf local it works, but online it doesn’t function properly.

Did you already try to put my .fla/swf online and see if that has the same problem. If not, that would rule out already some options…

tough one. Please post your entire .fla, cos I fear that it’s the only way for us to check what is going wrong.

I can imagine you are hesitant to do this, so else mail it to us?!

I would be surprised if I can figure out what the problem is, but hey, I would be happy to try :slight_smile:

Mind you, I only do flash 5 :slight_smile:

eric_ajaxmania@hotmail.com

yeah i thought i would, but your right, dnt really want to do that, ummm, is there any suggestions that you can tell me what is causing this, so i can check up?

i added my email addy.

it’s near impossible to do this without taking a look at the code.

however, maybe our Brasilian friend has a clue without seeing the code, so you might want to wait for that before mailing?

either way it is fine with me.

maybe you can describe more detailed how you build up the flash file, what happens and post the relevant pieces of code.