search and find function

  • brentjlaf
  • Student
  • Student
  • User avatar
  • Posts: 67

Post 3+ Months Ago

What I am trying to do is search a dynamic text box that loads different info.

and suggestions would be appriciated

Code: [ Select ]
finder.onRelease = function() {
    Selection.setFocus("_root.mainText_txt.htmlText");
    var inputterString:String = _root.inputter;
    var inputLength:Number = inputterString.length;
    textStart = textVar.indexOf(inputter, 0);
    if (inputLength>0) {
        textEnd = textStart+inputLength;
    } else {
        textEnd = 0;
    }
    if (textStart>=0) {
        Selection.setSelection(textStart, textEnd);
    } else {
        Selection.setSelection(0, 0);
    }
    _root.textEnd = textEnd;
};
findNext.onRelease = function() {
    Selection.setFocus("_root.mainText_txt.htmlText");
    var inputterString:String = _root.inputter;
    var inputLength:Number = inputterString.length;
    textStart = textVar.indexOf(inputter, _root.textEnd);
    if (inputLength>0) {
        textEnd = textStart+inputLength;
    } else {
        textEnd = 0;
    }
    if (textStart>=0) {
        Selection.setSelection(textStart, textEnd);
    } else {
        Selection.setSelection(0, 0);
    }
    _root.textEnd = textEnd;
};


/*
// Search
search_btn.onPress = function()


{trace ("HELLLLLLLOOOOO");
function searchLocal(eventData) {
var searchVar:String = "";
if (mainText_txt.htmlText == undefined) {
searchVar = "Not Found";



} else {
searchVar = mainText_txt.htmlText;
}
}
};

if (searchword = mainText_txt);
{
}
else (var searchword ="Not Found" )

}
*/


//bg sound
profileSound = new Sound(this);
profileSound.attachSound("bgsound");
profileSound.start(0, 99999);

//declare text
mainText_txt.html = true;
mainText_txt.background = true;
mainText_txt.border = true;

//declare home style
startStyle = new TextField.StyleSheet();
startStyle.load("flashstyle.css");
mainText_txt.styleSheet = startStyle;
// show intro text styled via CSS
mainText_txt.htmlText = "<body><title>Welcome</title><br /><p> Click the Object of the Solar System Below for more information. </p></body>";
//buttons
home_btn.onPress = function() {
    if (mainText_txt.scroll == 0) {
        return;
    }
    mainText_txt.scroll = 0;
};
up_btn.onPress = function() {
    if (mainText_txt.scroll == 0) {
        return;
    }
    --mainText_txt.scroll;
};
down_btn.onPress = function() {
    if (mainText_txt.scroll == 0) {
        return;
    }
    ++mainText_txt.scroll;
};
//sun
sun_btn.onPress = function() {
    var myStyle = new TextField.StyleSheet();
    myStyle.onLoad = function(done) {
        if (done) {
            _root.mainText_txt.styleSheet = myStyle;
            mainText_txt.htmlText = "<body><title>The Sun</title><p>The Sun is the Solar System's parent star, and far and away its chief component. It is classed as a moderately large yellow dwarf. However, this name is misleading, as on the scale of stars in our galaxy, the Sun is rather large and bright. Stars are classified based on their position on the Hertzsprung-Russell diagram, a graph which plots the brightness of stars against their surface temperature. Generally speaking, the hotter a star is, the brighter it is. Stars which follow this pattern are said to be on the main sequence, and the Sun lies right in the middle of it. This has led many astronomy textbooks to label the Sun as average; however, stars brighter and hotter than it are rare, whereas stars dimmer and cooler than it are common. The vast majority of stars are dim red dwarfs, though they are under-represented in star catalogues as we can observe only those few that are very near the Sun in space.</p><p>The Sun's position on the main sequence means, according to current theories of stellar evolution, that it is in the prime of life for a star, in that it has not yet exhausted its store of hydrogen for nuclear fusion, and been forced, as older red giants must, to fuse more inefficient elements such as helium and carbon. The Sun is growing increasingly bright as it ages. Early in its history, it was roughly 75 percent as bright as it is today.[8]Calculations of the ratios of hydrogen and helium within the Sun suggest it is roughly halfway through its life cycle, and will eventually begin moving off the main sequence, becoming larger, brighter and redder, until, about five billion years from now, it too will become a red giant.</p><p>The Sun is a population I star, meaning that it is fairly new in galactic terms, having been born in the later stages of the universe's evolution. As such, it contains far more elements heavier than hydrogen and helium (;metals; in astronomical parlance) than older population II stars such as those found in globular clusters. Since elements heavier than hydrogen and helium were formed in the cores of ancient and exploding stars, the first generation of stars had to die before the universe could be enriched with them. For this reason, the very oldest stars contain very little ;metal;, while stars born later have more. This high ;metallicity; is thought to have been crucial in the Sun's developing a planetary system, because planets form from accretion of metals.[9]</p><p> The heliospheric current sheetThe Sun radiates a continuous stream of charged particles, a plasma known as solar wind, ejecting it outwards at speeds greater than 2 million kilometres per hour, creating a very tenuous ;atmosphere; (the heliosphere), that permeates the solar system for at least 100 AU. This environment is known as the interplanetary medium. Small quantities of cosmic dust (some of it arguably interstellar in origin) are also present in the interplanetary medium and are responsible for the phenomenon of zodiacal light. The influence of the Sun's rotating magnetic field on the interplanetary medium creates the largest structure in the solar system, the heliospheric current sheet.[10]</p><p>Earth's magnetic field protects its atmosphere from interacting with the solar wind. However, Venus and Mars do not have magnetic fields, and the solar wind causes their atmospheres to gradually bleed away into space.</p></body>";
            mainText_txt.scroll = 0;
            return;
        }
    };
    myStyle.load("flashstyle.css");
};
//mercury
mercury_btn.onPress = function() {
    var myStyle = new TextField.StyleSheet();
    myStyle.onLoad = function(done) {
        if (done) {
            _root.mainText_txt.styleSheet = myStyle;
            mainText_txt.htmlText = "<body><title>Mercury</title><p> HELLLO Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
            mainText_txt.scroll = 0;
            return;
        }
    };
    myStyle.load("flashstyle.css");
};
// venus
venus_btn.onPress = function() {
    var myStyle = new TextField.StyleSheet();
    myStyle.onLoad = function(done) {
        if (done) {
            _root.mainText_txt.styleSheet = myStyle;
            mainText_txt.htmlText = "<body><title>Venus</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
            mainText_txt.scroll = 0;
            return;
        }
    };
    myStyle.load("flashstyle.css");
};
//earth
earth_btn.onPress = function() {
    var myStyle = new TextField.StyleSheet();
    myStyle.onLoad = function(done) {
        if (done) {
            _root.mainText_txt.styleSheet = myStyle;
            mainText_txt.htmlText = "<body><title>Earth</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
            mainText_txt.scroll = 0;
            return;
        }
    };
    myStyle.load("flashstyle.css");
};
//moon
moon_btn.onPress = function() {
    var myStyle = new TextField.StyleSheet();
    myStyle.onLoad = function(done) {
        if (done) {
            _root.mainText_txt.styleSheet = myStyle;
            mainText_txt.htmlText = "<body><title>Moon</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
            mainText_txt.scroll = 0;
            return;
        }
    };
    myStyle.load("flashstyle.css");
};
//mars
mars_btn.onPress = function() {
    var myStyle = new TextField.StyleSheet();
    myStyle.onLoad = function(done) {
        if (done) {
            _root.mainText_txt.styleSheet = myStyle;
            mainText_txt.htmlText = "<body><title>Mars</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
            mainText_txt.scroll = 0;
            return;
        }
    };
    myStyle.load("flashstyle.css");
};
//jupiter
jupiter_btn.onPress = function() {
    var myStyle = new TextField.StyleSheet();
    myStyle.onLoad = function(done) {
        if (done) {
            _root.mainText_txt.styleSheet = myStyle;
            mainText_txt.htmlText = "<body><title>Jupiter</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
            mainText_txt.scroll = 0;
            return;
        }
    };
    myStyle.load("flashstyle.css");
};
//saturn
saturn_btn.onPress = function() {
    var myStyle = new TextField.StyleSheet();
    myStyle.onLoad = function(done) {
        if (done) {
            _root.mainText_txt.styleSheet = myStyle;
            mainText_txt.htmlText = "<body><title>Saturn</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
            mainText_txt.scroll = 0;
            return;
        }
    };
    myStyle.load("flashstyle.css");
};
//uranus
uranus_btn.onPress = function() {
    var myStyle = new TextField.StyleSheet();
    myStyle.onLoad = function(done) {
        if (done) {
            _root.mainText_txt.styleSheet = myStyle;
            mainText_txt.htmlText = "<body><title>Uranus</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
            mainText_txt.scroll = 0;
            return;
        }
    };
    myStyle.load("flashstyle.css");
};
//neptune
neptune_btn.onPress = function() {
    var myStyle = new TextField.StyleSheet();
    myStyle.onLoad = function(done) {
        if (done) {
            _root.mainText_txt.styleSheet = myStyle;
            mainText_txt.htmlText = "<body><title>Neptune</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
            mainText_txt.scroll = 0;
            return;
        }
    };
    myStyle.load("flashstyle.css");
};
//pluto
pluto_btn.onPress = function() {
    var myStyle = new TextField.StyleSheet();
    myStyle.onLoad = function(done) {
        if (done) {
            _root.mainText_txt.styleSheet = myStyle;
            mainText_txt.htmlText = "<body><title>Pluto</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
            mainText_txt.scroll = 0;
            return;
        }
    };
    myStyle.load("flashstyle.css");
};
//comet
comet_btn.onPress = function() {
    var myStyle = new TextField.StyleSheet();
    myStyle.onLoad = function(done) {
        if (done) {
            _root.mainText_txt.styleSheet = myStyle;
            mainText_txt.htmlText = "<body><title>Haley''s Comet</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
            mainText_txt.scroll = 0;
            return;
        }
    };
    myStyle.load("flashstyle.css");
};
//sedna
sedna_btn.onPress = function() {
    var myStyle = new TextField.StyleSheet();
    myStyle.onLoad = function(done) {
        if (done) {
            _root.mainText_txt.styleSheet = myStyle;
            mainText_txt.htmlText = "<body><title>Sedna</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
            mainText_txt.scroll = 0;
            return;
        }
    };
    myStyle.load("flashstyle.css");
};
//eris
eris_btn.onPress = function() {
    var myStyle = new TextField.StyleSheet();
    myStyle.onLoad = function(done) {
        if (done) {
            _root.mainText_txt.styleSheet = myStyle;
            mainText_txt.htmlText = "<body><title>Eris</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
            mainText_txt.scroll = 0;
            return;
        }
    };
    myStyle.load("flashstyle.css");
};
  1. finder.onRelease = function() {
  2.     Selection.setFocus("_root.mainText_txt.htmlText");
  3.     var inputterString:String = _root.inputter;
  4.     var inputLength:Number = inputterString.length;
  5.     textStart = textVar.indexOf(inputter, 0);
  6.     if (inputLength>0) {
  7.         textEnd = textStart+inputLength;
  8.     } else {
  9.         textEnd = 0;
  10.     }
  11.     if (textStart>=0) {
  12.         Selection.setSelection(textStart, textEnd);
  13.     } else {
  14.         Selection.setSelection(0, 0);
  15.     }
  16.     _root.textEnd = textEnd;
  17. };
  18. findNext.onRelease = function() {
  19.     Selection.setFocus("_root.mainText_txt.htmlText");
  20.     var inputterString:String = _root.inputter;
  21.     var inputLength:Number = inputterString.length;
  22.     textStart = textVar.indexOf(inputter, _root.textEnd);
  23.     if (inputLength>0) {
  24.         textEnd = textStart+inputLength;
  25.     } else {
  26.         textEnd = 0;
  27.     }
  28.     if (textStart>=0) {
  29.         Selection.setSelection(textStart, textEnd);
  30.     } else {
  31.         Selection.setSelection(0, 0);
  32.     }
  33.     _root.textEnd = textEnd;
  34. };
  35. /*
  36. // Search
  37. search_btn.onPress = function()
  38. {trace ("HELLLLLLLOOOOO");
  39. function searchLocal(eventData) {
  40. var searchVar:String = "";
  41. if (mainText_txt.htmlText == undefined) {
  42. searchVar = "Not Found";
  43. } else {
  44. searchVar = mainText_txt.htmlText;
  45. }
  46. }
  47. };
  48. if (searchword = mainText_txt);
  49. {
  50. }
  51. else (var searchword ="Not Found" )
  52. }
  53. */
  54. //bg sound
  55. profileSound = new Sound(this);
  56. profileSound.attachSound("bgsound");
  57. profileSound.start(0, 99999);
  58. //declare text
  59. mainText_txt.html = true;
  60. mainText_txt.background = true;
  61. mainText_txt.border = true;
  62. //declare home style
  63. startStyle = new TextField.StyleSheet();
  64. startStyle.load("flashstyle.css");
  65. mainText_txt.styleSheet = startStyle;
  66. // show intro text styled via CSS
  67. mainText_txt.htmlText = "<body><title>Welcome</title><br /><p> Click the Object of the Solar System Below for more information. </p></body>";
  68. //buttons
  69. home_btn.onPress = function() {
  70.     if (mainText_txt.scroll == 0) {
  71.         return;
  72.     }
  73.     mainText_txt.scroll = 0;
  74. };
  75. up_btn.onPress = function() {
  76.     if (mainText_txt.scroll == 0) {
  77.         return;
  78.     }
  79.     --mainText_txt.scroll;
  80. };
  81. down_btn.onPress = function() {
  82.     if (mainText_txt.scroll == 0) {
  83.         return;
  84.     }
  85.     ++mainText_txt.scroll;
  86. };
  87. //sun
  88. sun_btn.onPress = function() {
  89.     var myStyle = new TextField.StyleSheet();
  90.     myStyle.onLoad = function(done) {
  91.         if (done) {
  92.             _root.mainText_txt.styleSheet = myStyle;
  93.             mainText_txt.htmlText = "<body><title>The Sun</title><p>The Sun is the Solar System's parent star, and far and away its chief component. It is classed as a moderately large yellow dwarf. However, this name is misleading, as on the scale of stars in our galaxy, the Sun is rather large and bright. Stars are classified based on their position on the Hertzsprung-Russell diagram, a graph which plots the brightness of stars against their surface temperature. Generally speaking, the hotter a star is, the brighter it is. Stars which follow this pattern are said to be on the main sequence, and the Sun lies right in the middle of it. This has led many astronomy textbooks to label the Sun as average; however, stars brighter and hotter than it are rare, whereas stars dimmer and cooler than it are common. The vast majority of stars are dim red dwarfs, though they are under-represented in star catalogues as we can observe only those few that are very near the Sun in space.</p><p>The Sun's position on the main sequence means, according to current theories of stellar evolution, that it is in the prime of life for a star, in that it has not yet exhausted its store of hydrogen for nuclear fusion, and been forced, as older red giants must, to fuse more inefficient elements such as helium and carbon. The Sun is growing increasingly bright as it ages. Early in its history, it was roughly 75 percent as bright as it is today.[8]Calculations of the ratios of hydrogen and helium within the Sun suggest it is roughly halfway through its life cycle, and will eventually begin moving off the main sequence, becoming larger, brighter and redder, until, about five billion years from now, it too will become a red giant.</p><p>The Sun is a population I star, meaning that it is fairly new in galactic terms, having been born in the later stages of the universe's evolution. As such, it contains far more elements heavier than hydrogen and helium (;metals; in astronomical parlance) than older population II stars such as those found in globular clusters. Since elements heavier than hydrogen and helium were formed in the cores of ancient and exploding stars, the first generation of stars had to die before the universe could be enriched with them. For this reason, the very oldest stars contain very little ;metal;, while stars born later have more. This high ;metallicity; is thought to have been crucial in the Sun's developing a planetary system, because planets form from accretion of metals.[9]</p><p> The heliospheric current sheetThe Sun radiates a continuous stream of charged particles, a plasma known as solar wind, ejecting it outwards at speeds greater than 2 million kilometres per hour, creating a very tenuous ;atmosphere; (the heliosphere), that permeates the solar system for at least 100 AU. This environment is known as the interplanetary medium. Small quantities of cosmic dust (some of it arguably interstellar in origin) are also present in the interplanetary medium and are responsible for the phenomenon of zodiacal light. The influence of the Sun's rotating magnetic field on the interplanetary medium creates the largest structure in the solar system, the heliospheric current sheet.[10]</p><p>Earth's magnetic field protects its atmosphere from interacting with the solar wind. However, Venus and Mars do not have magnetic fields, and the solar wind causes their atmospheres to gradually bleed away into space.</p></body>";
  94.             mainText_txt.scroll = 0;
  95.             return;
  96.         }
  97.     };
  98.     myStyle.load("flashstyle.css");
  99. };
  100. //mercury
  101. mercury_btn.onPress = function() {
  102.     var myStyle = new TextField.StyleSheet();
  103.     myStyle.onLoad = function(done) {
  104.         if (done) {
  105.             _root.mainText_txt.styleSheet = myStyle;
  106.             mainText_txt.htmlText = "<body><title>Mercury</title><p> HELLLO Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
  107.             mainText_txt.scroll = 0;
  108.             return;
  109.         }
  110.     };
  111.     myStyle.load("flashstyle.css");
  112. };
  113. // venus
  114. venus_btn.onPress = function() {
  115.     var myStyle = new TextField.StyleSheet();
  116.     myStyle.onLoad = function(done) {
  117.         if (done) {
  118.             _root.mainText_txt.styleSheet = myStyle;
  119.             mainText_txt.htmlText = "<body><title>Venus</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
  120.             mainText_txt.scroll = 0;
  121.             return;
  122.         }
  123.     };
  124.     myStyle.load("flashstyle.css");
  125. };
  126. //earth
  127. earth_btn.onPress = function() {
  128.     var myStyle = new TextField.StyleSheet();
  129.     myStyle.onLoad = function(done) {
  130.         if (done) {
  131.             _root.mainText_txt.styleSheet = myStyle;
  132.             mainText_txt.htmlText = "<body><title>Earth</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
  133.             mainText_txt.scroll = 0;
  134.             return;
  135.         }
  136.     };
  137.     myStyle.load("flashstyle.css");
  138. };
  139. //moon
  140. moon_btn.onPress = function() {
  141.     var myStyle = new TextField.StyleSheet();
  142.     myStyle.onLoad = function(done) {
  143.         if (done) {
  144.             _root.mainText_txt.styleSheet = myStyle;
  145.             mainText_txt.htmlText = "<body><title>Moon</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
  146.             mainText_txt.scroll = 0;
  147.             return;
  148.         }
  149.     };
  150.     myStyle.load("flashstyle.css");
  151. };
  152. //mars
  153. mars_btn.onPress = function() {
  154.     var myStyle = new TextField.StyleSheet();
  155.     myStyle.onLoad = function(done) {
  156.         if (done) {
  157.             _root.mainText_txt.styleSheet = myStyle;
  158.             mainText_txt.htmlText = "<body><title>Mars</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
  159.             mainText_txt.scroll = 0;
  160.             return;
  161.         }
  162.     };
  163.     myStyle.load("flashstyle.css");
  164. };
  165. //jupiter
  166. jupiter_btn.onPress = function() {
  167.     var myStyle = new TextField.StyleSheet();
  168.     myStyle.onLoad = function(done) {
  169.         if (done) {
  170.             _root.mainText_txt.styleSheet = myStyle;
  171.             mainText_txt.htmlText = "<body><title>Jupiter</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
  172.             mainText_txt.scroll = 0;
  173.             return;
  174.         }
  175.     };
  176.     myStyle.load("flashstyle.css");
  177. };
  178. //saturn
  179. saturn_btn.onPress = function() {
  180.     var myStyle = new TextField.StyleSheet();
  181.     myStyle.onLoad = function(done) {
  182.         if (done) {
  183.             _root.mainText_txt.styleSheet = myStyle;
  184.             mainText_txt.htmlText = "<body><title>Saturn</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
  185.             mainText_txt.scroll = 0;
  186.             return;
  187.         }
  188.     };
  189.     myStyle.load("flashstyle.css");
  190. };
  191. //uranus
  192. uranus_btn.onPress = function() {
  193.     var myStyle = new TextField.StyleSheet();
  194.     myStyle.onLoad = function(done) {
  195.         if (done) {
  196.             _root.mainText_txt.styleSheet = myStyle;
  197.             mainText_txt.htmlText = "<body><title>Uranus</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
  198.             mainText_txt.scroll = 0;
  199.             return;
  200.         }
  201.     };
  202.     myStyle.load("flashstyle.css");
  203. };
  204. //neptune
  205. neptune_btn.onPress = function() {
  206.     var myStyle = new TextField.StyleSheet();
  207.     myStyle.onLoad = function(done) {
  208.         if (done) {
  209.             _root.mainText_txt.styleSheet = myStyle;
  210.             mainText_txt.htmlText = "<body><title>Neptune</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
  211.             mainText_txt.scroll = 0;
  212.             return;
  213.         }
  214.     };
  215.     myStyle.load("flashstyle.css");
  216. };
  217. //pluto
  218. pluto_btn.onPress = function() {
  219.     var myStyle = new TextField.StyleSheet();
  220.     myStyle.onLoad = function(done) {
  221.         if (done) {
  222.             _root.mainText_txt.styleSheet = myStyle;
  223.             mainText_txt.htmlText = "<body><title>Pluto</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
  224.             mainText_txt.scroll = 0;
  225.             return;
  226.         }
  227.     };
  228.     myStyle.load("flashstyle.css");
  229. };
  230. //comet
  231. comet_btn.onPress = function() {
  232.     var myStyle = new TextField.StyleSheet();
  233.     myStyle.onLoad = function(done) {
  234.         if (done) {
  235.             _root.mainText_txt.styleSheet = myStyle;
  236.             mainText_txt.htmlText = "<body><title>Haley''s Comet</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
  237.             mainText_txt.scroll = 0;
  238.             return;
  239.         }
  240.     };
  241.     myStyle.load("flashstyle.css");
  242. };
  243. //sedna
  244. sedna_btn.onPress = function() {
  245.     var myStyle = new TextField.StyleSheet();
  246.     myStyle.onLoad = function(done) {
  247.         if (done) {
  248.             _root.mainText_txt.styleSheet = myStyle;
  249.             mainText_txt.htmlText = "<body><title>Sedna</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
  250.             mainText_txt.scroll = 0;
  251.             return;
  252.         }
  253.     };
  254.     myStyle.load("flashstyle.css");
  255. };
  256. //eris
  257. eris_btn.onPress = function() {
  258.     var myStyle = new TextField.StyleSheet();
  259.     myStyle.onLoad = function(done) {
  260.         if (done) {
  261.             _root.mainText_txt.styleSheet = myStyle;
  262.             mainText_txt.htmlText = "<body><title>Eris</title><p> Fusce nec quam eleifend nunc aliquam blandit. Phasellus mattis. Vivamus semper accumsan felis. Sed cursus, urna sed rutrum tempus, urna risus sodales lacus, sed ornare neque dui at nibh. Proin arcu neque, fermentum vel, tincidunt a, interdum et, sapien. Vivamus elementum, lectus vitae blandit pellentesque, magna leo condimentum diam, non pellentesque risus diam eget nunc. Etiam feugiat nibh nec nibh. Praesent laoreet dignissim lectus. Morbi odio lectus, nonummy ut, aliquam ac, congue nec, erat. Sed molestie sapien sit amet urna. Phasellus euismod facilisis ipsum. Nullam pretium orci eget erat. Suspendisse eu felis. Praesent vehicula tempor tortor. </p></body>";
  263.             mainText_txt.scroll = 0;
  264.             return;
  265.         }
  266.     };
  267.     myStyle.load("flashstyle.css");
  268. };
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • classified
  • Expert
  • Expert
  • User avatar
  • Posts: 540
  • Loc: Bahrain

Post 3+ Months Ago

holy cow ...
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

so ... what exactly is the problem?

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 10 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.