Can anyone fix this?

Can anyone take a few moments to check this flash site. Everything works fine, but if you click the button for the ‘intro’ when you’re on the intro (first page), the text fade kind of sticks and you get two lots of text on top of each other.

I’ve checked the code again and again but I can’t spot the glitch.

Any help will be greatly appreciated.

Cheers.:slight_smile:

fla too big so you can download it here;

http://www.mymarcel.com/hyp.fla

you have different things overlapping each other in the same frame

Yes, this is intentional. The main body of the site is in one frame. All the elements have _alpha=0 and are faded in or out as neccessary. The actions on the buttons should make any visible elements fade out and the required one fade in.

My only thought is; is there any difference between setting the alpha as zero using the properties panel and setting it using code?

Thanks

I know that setting it using code you can set it to below zero; could be handy if you need a pause before the object starts getting visible.

Cheers Fluffy. I actually used setInterval for that because I think it allows a little more control.

Everything with the general operation of the site is fine, it’s just this little glitch where if you press the button for the page that you are already on it screws up.

Bump!! :wink:

As much as i hate doing this;

Bump again:)

Someone must have some idea.

The site in question http://www.londonhypnotherapy.com

The fla is on the first post.

you might want to check out your FAQ page, it kinda bugs for me, when you scroll the arrows it cuts off text and questions :slight_smile:

i was thinking about your site, and what you could do is disable the current button so that the person cant click it again and stuff up your site? I know its a quick fix but it should work…

myButton.enabled=false;

tag that at the end of each buttons script (with their individual instance names over myButton) so that when they click a button it becomes inactive…

then put

myButton1.enabled=true;
myButton2.enabled=true;
myButton3.enabled=true;

on each button with myButton1,2,3 being the instance names of the other 3 buttons, so when you click a button, it deactivates itself and activates the other 3…

(you might want to start off with intro button being disabled as that loads up first, just tag the “instanceName.enabled=false;” intro frame 1 or something)

im sure someone else could help you better witht his, but hey, tis only like, 4 or 5 lines across 4 or 5 buttons, most of which is copy paste :slight_smile:

Cheers for the response YoSHi, That was exactly the knid of solution I was looking for and it’s the kind of thing i find I need to do quite alot, so you’ve really helped!

Regarding the FAQ section;

The reason it’s not so robust and the text gets cut off is that the movement instigated by pressing the buttons is merely to shift the text MC up or down by x amount. So if you press the button before it has reached the correct position it goes out of phase and ends up screwed up. I’d like to use targets, I guess something like,

target= textMC_y+100;

But then I think you’d get the same problem.

Any suggetions,

Thanks again for your time and knowledge :slight_smile:

you could possibly set the text on certain whole numbers, use the clicks to increment/de-increment(is that even a word?!?) the _y value and have it forced to a whole number (using one of the rounders), like, each time its clicked it increments till it gets to the next faq then stops… not sure how to use targets properly yet so i wont even bother trying to explain to someone else :slight_smile: hehehe, but you could probably do it with the increment/variable check, and even have it so one click increments till it finds the right spot, meanwhile disabling the scroll buttons… would only be for 2 secs, and once _y value=acceptable then have the scroll buttons enable again…

hehehehehehe, i should stop typing now, im starting to confuse myself

Yeah… That’s it! The idea of disabling the buttons is the right idea. that way there can be no erronious clicks. So infact you gave me one piece of advice that was applicable to both situations. Smart YoSHi. Thanks a lot for your time. I’ll let you know how I get on.

np bro :slight_smile: good luck