# Can anyone fix this?

**URL:** <https://forum.kirupa.com/t/can-anyone-fix-this/21360>\
**Category:** flash\
**Created:** [May 20, 2003, 9:27pm UTC](https://forum.kirupa.com/t/can-anyone-fix-this/21360 "2003-05-20T21:27:30Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![biscuit](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@biscuit](https://forum.kirupa.com/u/biscuit)\
**Post date:** [May 20, 2003, 9:27pm UTC](https://forum.kirupa.com/t/can-anyone-fix-this/21360/1 "2003-05-20T21:27:30Z")

</div>

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.🙂

fla too big so you can download it here;

[http://www.mymarcel.com/hyp.fla](http://www.mymarcel.com/hyp.fla)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 21, 2003, 2:40am UTC](https://forum.kirupa.com/t/can-anyone-fix-this/21360/2 "2003-05-21T02:40:17Z")

</div>

you have different things overlapping each other in the same frame

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 21, 2003, 8:34am UTC](https://forum.kirupa.com/t/can-anyone-fix-this/21360/3 "2003-05-21T08:34:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 21, 2003, 10:13am UTC](https://forum.kirupa.com/t/can-anyone-fix-this/21360/4 "2003-05-21T10:13:54Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 21, 2003, 10:46am UTC](https://forum.kirupa.com/t/can-anyone-fix-this/21360/5 "2003-05-21T10:46:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 23, 2003, 8:23am UTC](https://forum.kirupa.com/t/can-anyone-fix-this/21360/6 "2003-05-23T08:23:59Z")

</div>

Bump!! 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2003, 8:40am UTC](https://forum.kirupa.com/t/can-anyone-fix-this/21360/7 "2003-05-29T08:40:31Z")

</div>

As much as i hate doing this;

Bump again:)

Someone must have some idea.

The site in question [http://www.londonhypnotherapy.com](http://www.londonhypnotherapy.com)

The fla is on the first post.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2003, 11:47am UTC](https://forum.kirupa.com/t/can-anyone-fix-this/21360/8 "2003-05-29T11:47:42Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 30, 2003, 2:19am UTC](https://forum.kirupa.com/t/can-anyone-fix-this/21360/9 "2003-05-30T02:19:33Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 30, 2003, 8:36am UTC](https://forum.kirupa.com/t/can-anyone-fix-this/21360/10 "2003-05-30T08:36:44Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 30, 2003, 12:44pm UTC](https://forum.kirupa.com/t/can-anyone-fix-this/21360/11 "2003-05-30T12:44:48Z")

</div>

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 🙂 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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 31, 2003, 12:33am UTC](https://forum.kirupa.com/t/can-anyone-fix-this/21360/12 "2003-05-31T00:33:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 1, 2003, 4:05am UTC](https://forum.kirupa.com/t/can-anyone-fix-this/21360/13 "2003-06-01T04:05:37Z")

</div>

np bro 🙂 good luck
