Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help! When scrolling the text is highlighted. 1

Status
Not open for further replies.

GGROD

Programmer
Feb 7, 2002
68
US

First page called "Home" I have scrolling text. When I move the scroll bar it highlites the text.

I used the Developement Panels --> Components --> TextArea Component to create this text area.

Seems that this is only happening when I have this text area in an externaly loaded swf.

I have a main movie that loads external swf files.

In my external swf files I use the text area component to display the text. The text is loaded dynamically from an external xml file. So it all looks like this:

main.swf --> external.swf --> text.xml

When I view the text in the external.swf it is fine. But when I see it from my main movie it gets highlighted.
 
Just a guess here but make sure that you have the textArea component added to the library of the main.swf. (add it to the stage and delete it)

If that is already done set the editable property (in the properties box or component inspector) to false.

Wow JT that almost looked like you knew what you were doing!
 
I was hopping that would work. But it didn't.

Any other suggestions?
 
Would be happy to take a look at the code for you if you want to zip it up and post it. Otherwise I'm out of ideas. :-(

Wow JT that almost looked like you knew what you were doing!
 
Ok.

It's two .fla files and an xml file.
 
Hmm. I just created another main swf file and it worked fine. Seems there is something wrong with my original.
 
Figured it out.

On my publish setting I was publishing it for Flash Player 6. Once I changed it to Flash player 7 it works. But publishing it for flash player 7 breaks my preloader. Any solution for the pre loader for version 7?

 
Code:
onClipEvent (enterFrame) {
	var loading:Number = _root.getBytesLoaded();
	var total:Number = _root.getBytesTotal();
	//trace("loaded="+loading+", total="+total);	
	var percent:Number = Math.round((loading/total)*100);
	//per = int(percent);
	percentageDisplay = percent+"%";//<--change the name of your text box variable to percentageDisplay
	loadBar._width = percent;
	if (percent>99) {
		_root.gotoAndPlay(2);
	}
}

Wow JT that almost looked like you knew what you were doing!
 
Would this also work for the preloaders I need for the different swfs I load on a button click?
 
It should.

BTW... I was able to get your movie size from over 128k down to < 8 k just by getting rid of all the stuff you aren't using. To do that click on the library menu (top left of library) and choose select unused. It makes a big difference in your case.

Wow JT that almost looked like you knew what you were doing!
 
I use the same code but change the "_root" to "this". Didn't work.

If there is more simple code out there for preloaders I'd like to know.

Code:
onClipEvent (enterFrame) {
    var loading:Number = this.getBytesLoaded();
    var total:Number = this.getBytesTotal();
    //trace("loaded="+loading+", total="+total);    
    var percent:Number = Math.round((loading/total)*100);
    //per = int(percent);
    this.percentageDisplay = percent+"%";//<--change the name of your text box variable to percentageDisplay
    this.loadBar._width = percent;
    if (percent>99) {
        this.gotoAndPlay(3);
    }
}
 
You should probably refer to whatever level your swf is loading on. _level1, _level2, etc...

So if you are using loadMovieNum("mymovie.swf",1); The preloader for that movie will have to refer to _level1.


Wow JT that almost looked like you knew what you were doing!
 
is there a function that will return the current level?

I'm not familuar with levels in Flash.
 
If you are using loadMovieNum to load your external movies you are assigning the level with the number after the URL. In the example above the level is 1. Are you loading your movies a different way?

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top