Caption bug after loading a file

Can someone take a look at this www.emma.artefakt.be , look at the flag button, when you rollover the caption works but after you click any button, the caption appears at the place where you clicked before ??!!? :h: Could you help ??

yep;)

Post a .fla?

scotty(-:

Yep, thanks, forgot that, here you go www.artefakt.be/main.zip

:wink:

Weird, I opened and tested your fla and it works?? Even if I make a swf ‘home.swf’?

scotty(-:

uh :h: I just tested it here and it doesn’t work, can you see it online ?

Ubik - you got an interesting one here!

Like you say - works offline, but I see that your online version holds the caption elsewhere and not on the flag rollover.

Will have a look and see if I can help…

It doesn’t work offline for me ! Strange it works for you ?!

I think it has to do with the home.swf you load. You have a scrollbar there with a drag function I suppose and by default Flash can only drag one object at a time (for multiple draggable objects check senoculars prototype at http://proto.layer51.com/d.aspx?f=845…)

I think this will work: remove the startDrag in the caption layer and change the code on the caption like this

onClipEvent (enterFrame) {
	_x = _root._xmouse;
	_y = _root._ymouse;
	if (_parent.x == 1) {
		this._alpha = 100;
	} else {
		this._alpha = 0;
	}
}

Hope that helps;)

scotty(-:

oh oh ! Nice one scotty ! :wink:
Indeed i have my scrollbar in home that works with startdrag and your trick did it !! You’re the king once again :thumb:
Thanks,

Ubik

no problem:thumb:

@Ubik - glad scotty was able to sort it :slight_smile:

@scotty - so… when did love strike you? And why? :wink:

Hey Cello,

two weeks ago…:love:
and I still don’t know why, but :love:she:love: sure is great:lol:

scotty:love:

All the best then scotty - am pleased for you; there’s no better feeling than :love: