DraggablePane question

Alright, hrm…this one’s difficult to explain.

Basically, I’m using the Flash UI Components Set 2 “DraggablePlane” to try and create a pop-up links page that calls text from an outside textfile. The problem is, it seems to only be able to call a movieclip as the scroll content, which means that the text that I call is limited in size/shape based on the size/shape of the dynamic textbox that I have declared as a movieclip. What I need it to do is have the file be able change the size of that box (“scroller”) to reflect how the text is wrapped in the textfile. The .fla is here.

Oh, and here’s the news.txt file.http://www.theinsanity.net/news.txt

I know the solution’s something simple, I just can’t see it.

You flash guys dig aliteration right? C’mon, help out.

http://www.kirupa.com/developer/mx/dynamic_scroller.htm

???

yeah, I’ve read it. It doesn’t help the problem I’m having, because I cant target the white space where the text is displayed.

I looked at your fla and I think I know what you’re saying. I know of no way to have a movieClip resize itself to a dynamic text box inside of it based on the text it’s pulling in.

I didn’t understand the ‘can’t target the white space’. If all you are going to have is text, why not just add a scrollbar to the textbox itself and scrap using the scrollPane?

*Originally posted by Freddythunder *
**I didn’t understand the ‘can’t target the white space’. If all you are going to have is text, why not just add a scrollbar to the textbox itself and scrap using the scrollPane? **

Ah, well it’s simply because of this code from the tut:

loadText = new loadVars();
loadText.load(“news.txt?RND=”+random(99999999999999), 0);
//creating the loadVarsText function
loadText.onLoad = function() {
[COLOR=red]scroller[/COLOR] .htmlText = this.newstext;
};

I figured that if I could find out what the white area is called, I could replace “scroller” with it, put that AS on the first frame, and it would work as it did in the tut here on kirupa. In any case, the reason I didn’t want to scrap the component is because it can resize, minimize to just the bar, and close itself, all of which I don’t know how to code. I guess I could accomplish the same with javascript, but it’d be sticky.

What I’m really looking for is I have a JS button on my website, that when the user clicks on it brings up my 300x300 (ish) flash on top of whichever site is in the background (with no window borders or anything visible), that can then be manipulated (i.e. resized, etc). For now I’m just going to do the links page this way, so yeah it just needs to be text, but it needs to call the text from an outside textfile for easy editing.

Ah-ha! I understand now. I also see why you would need the scrollPne then. I’m not sure if you can do it or not, but I think that Flash can find the length of the text file, but don’t know if that can be used to resize a movieClip. Hopefully one of the smart ones here will get this post. Sorry I couldn’t help…:*(