PDA

View Full Version : Ghostwire ScrollBar


pinkshiro
07-17-2006, 12:34 PM
Hi there,

I am using ghostwires scrollbar component (http://ghostwire.com/) for a flash website.

I have my flash designed for flash 6 viewer.

If the scrollbar is loaded on first frame that is loaded, everything runs sweet. But I have added a preloader, alocated in it's own scene. Once the movie has loaded, I switch the scene2, frame 1 - where the scroll bar is loaded.

This is where it gets...odd. If I view it in flash (ctrl + enter), it works sweet. As soon as I try to open it by going to the swf file and double clicking it, the scrollbar shows as 'disabled' unless you click on the dynamic text box it is allocated too. Same thing happens with internet explorer. I have tried removing the preloader scene to make scene2 the only scene, and this corrects the problem. but I need the preloader there. It looks as if it needs to be on the first scene to work properly. WTF is up with that?

Oh, and it works fine in firefox...again, wtf? I can also change it to flash 7 compatible...but I dont want to do that.

Any thoughts?

fx2ooo
07-17-2006, 01:56 PM
Try putting an instance of the scrollbar on the first frame of your movie (first scene). Just put it somewhere off stage, so it's loaded from the beginning. Think that should work.

pinkshiro
07-17-2006, 11:44 PM
i tried it, and unfortunately it didnt work...

in this thread, someone has the same problem. but still no solution.

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

Why would it be disabled?

some aditional bits of info - I am loading external html into the textbox, using the following code...

//tell Flash to display special characters
System.useCodepage=true;

// set the text field to use HTML tags
Field1.html=true;

//create a new "LoadVars" object
myLoadVar = new LoadVars ();

//load the contents of the text file into the LoadVars object
myLoadVar.load("textfile.txt");

//check to see if the loading is completed and, if so, put the contents in the text field
myLoadVar.onLoad = function (success){
if (success == true) {
Field1.htmlText=myLoadVar.myText;
}
}



this code sits inside a movieclip which is on frame one of scene 2.

and yet another link to the same problem, except this time, the user explains it way better than me - but their solution doesnt help?

http://board.flashkit.com/board/archive/index.php/t-349665.html

Basically, it would appear the scrollbar attaches itself to the (empty) textbox immediately, i.e. before the .txt file loads, which means that it decides there is no cause for it to scroll (if that makes sense!). Then, when the text file loads, even if it is larger than the original textbox container the user does not have the option to scroll.

fx2ooo
07-18-2006, 09:30 AM
Yes, thier explanation is correct. That's what's happening to you as well. Try loading your text in frame 1, with your success function sending you to frame 2. Put your text field and scrollbar on frame 2, and set your text without the if statement:

Field1.htmlText = myLoadVar.myText;