PDA

View Full Version : Ghostwire OnComplete event problems


mcmcom
07-07-2004, 11:23 PM
I am using the latest ghostWire scrollPane component. its pretty nice, but again, I am getting similar problems to the MX2K4 ScrollPane.

I have a formatting function. Basically it centers the content in the scrollPane.

Here it is:

_global.format = function() {
//center the stuff
var sWidth = stage.width / 2;
var cWidth = cnt._width / 2;
var cntX = sWidth - cWidth;
cnt._x = cntX;
cnt._y = 50;
}

When called from a button it works great. However, I want this to happen
at startup. The scrollPane has ONE event. onComplete(). My thought is that this event would possibly run oh i don't know, last perhaps. After the content is loaded in the scrollPane. So I created an event listener to listen for the onComplete event. It did it, listened and activated the format code, but right after that, it left aligns it again!

It seems to go like this:

1. load the movie
2. load scrollPane Content
3. Center the content
4. Finsh loading the pane
5. Stuff the content back to the left.

There are no other events I can use on this pane and it's driving me nutters!
Any ideas?

THANKS IN ADVANCE !! ! ! !
MCM

mcmcom
07-08-2004, 04:03 AM
if you could be so kind as to read this post:

http://www.actionscript.org/forums/showthread.php3?t=50326

farafiro
07-08-2004, 07:16 AM
I'm sorry but what isthe 'ghostWire scrollPane'?

farafiro
07-08-2004, 07:20 AM
I will close this one


People might say too much moderation, but I don't really care when it comes to the crossposting... :D The threads merged... :mad: