How do you make multiple functions work in Frame 1?
I have two DYNAMIC TEXT boxes with EXTERNAL HTML files with scrollbars and I have one textbox that will NOT APPEAR once I view the OTHER one in my site.
Working in Flash CS3 using Actionscript 2.0
Well here is my code in my file:
Frame 1:
// create a variable for a StyleSheet object and name it cssStyles
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
// load the external style sheet into memory
cssStyles.load("NewsFlash Info.css");
// after attempting to load the style sheet, execute the
// function and pass on whether loading was a success or not
cssStyles.onLoad = function (success) {
// if informed that the style sheet loaded successfully apply the
// style sheet to the dynamic text box textInfo and then load the
// external text file into memory and notify the myLoadVars function
// in keyframe intro if loading the text file was successful or not
if (success) {
webNewsinfo.styleSheet = cssStyles;
_root.myLoadVars.load("webNewsinfo.txt");
// if the style sheet did not load successfully
// display an error message in webNewsinfo
} else {
webNewsinfo.text = "An error occurred loading the requested content.";
}
}
mcStudyinfo TEXT SYMBOL: (on a action layer inside)
// create a variable for a StyleSheet object and name it cssStyles
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
// load the external style sheet into memory
cssStyles.load("NewsFlash Info.css");
// after attempting to load the style sheet, execute the
// function and pass on whether loading was a success or not
cssStyles.onLoad = function (success) {
// if informed that the style sheet loaded successfully apply the
// style sheet to the dynamic text box textInfo and then load the
// external text file into memory and notify the myLoadVars function
// in keyframe intro if loading the text file was successful or not
if (success) {
webNewsinfo.styleSheet = cssStyles;
_root.myLoadVars.load("webNewsinfo.txt");
// if the style sheet did not load successfully
// display an error message in webNewsinfo
} else {
webNewsinfo.text = "An error occurred loading the requested content.";
}
}
WebContentinfo TEXT SYMBOL: (on a action layer inside)
// create a variable for a StyleSheet object and name it cssStyles
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
// load the external style sheet into memory
cssStyles.load("NewsFlash Info.css");
// after attempting to load the style sheet, execute the
// function and pass on whether loading was a success or not
cssStyles.onLoad = function (success) {
// if informed that the style sheet loaded successfully apply the
// style sheet to the dynamic text box textInfo and then load the
// external text file into memory and notify the myLoadVars function
// in keyframe intro if loading the text file was successful or not
if (success) {
webNewsinfo.styleSheet = cssStyles;
_root.myLoadVars.load("webNewsinfo.txt");
// if the style sheet did not load successfully
// display an error message in webNewsinfo
} else {
webNewsinfo.text = "An error occurred loading the requested content.";
}
}
I have included my link to my temp address to get a better idea of my problem.
Instructions to help understand problem:
If you go to the NEWS button first in the nav bar you will notice when you click enter it will transition to a scrollable text box with text in it.
Then if you click on the CASE STUDIES button and go to the MAX Cat Packaging button You will see a scrollable text box to your right.
Go back to the News button and click ENTER again and it will transition to a blank white block with a unusable scrollbar.
What do I do to make both text boxes load and work correctly?
Is it my actioncode in frame 1? Please Help!
I have two DYNAMIC TEXT boxes with EXTERNAL HTML files with scrollbars and I have one textbox that will NOT APPEAR once I view the OTHER one in my site.
Working in Flash CS3 using Actionscript 2.0
Well here is my code in my file:
Frame 1:
// create a variable for a StyleSheet object and name it cssStyles
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
// load the external style sheet into memory
cssStyles.load("NewsFlash Info.css");
// after attempting to load the style sheet, execute the
// function and pass on whether loading was a success or not
cssStyles.onLoad = function (success) {
// if informed that the style sheet loaded successfully apply the
// style sheet to the dynamic text box textInfo and then load the
// external text file into memory and notify the myLoadVars function
// in keyframe intro if loading the text file was successful or not
if (success) {
webNewsinfo.styleSheet = cssStyles;
_root.myLoadVars.load("webNewsinfo.txt");
// if the style sheet did not load successfully
// display an error message in webNewsinfo
} else {
webNewsinfo.text = "An error occurred loading the requested content.";
}
}
mcStudyinfo TEXT SYMBOL: (on a action layer inside)
// create a variable for a StyleSheet object and name it cssStyles
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
// load the external style sheet into memory
cssStyles.load("NewsFlash Info.css");
// after attempting to load the style sheet, execute the
// function and pass on whether loading was a success or not
cssStyles.onLoad = function (success) {
// if informed that the style sheet loaded successfully apply the
// style sheet to the dynamic text box textInfo and then load the
// external text file into memory and notify the myLoadVars function
// in keyframe intro if loading the text file was successful or not
if (success) {
webNewsinfo.styleSheet = cssStyles;
_root.myLoadVars.load("webNewsinfo.txt");
// if the style sheet did not load successfully
// display an error message in webNewsinfo
} else {
webNewsinfo.text = "An error occurred loading the requested content.";
}
}
WebContentinfo TEXT SYMBOL: (on a action layer inside)
// create a variable for a StyleSheet object and name it cssStyles
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
// load the external style sheet into memory
cssStyles.load("NewsFlash Info.css");
// after attempting to load the style sheet, execute the
// function and pass on whether loading was a success or not
cssStyles.onLoad = function (success) {
// if informed that the style sheet loaded successfully apply the
// style sheet to the dynamic text box textInfo and then load the
// external text file into memory and notify the myLoadVars function
// in keyframe intro if loading the text file was successful or not
if (success) {
webNewsinfo.styleSheet = cssStyles;
_root.myLoadVars.load("webNewsinfo.txt");
// if the style sheet did not load successfully
// display an error message in webNewsinfo
} else {
webNewsinfo.text = "An error occurred loading the requested content.";
}
}
I have included my link to my temp address to get a better idea of my problem.
Instructions to help understand problem:
If you go to the NEWS button first in the nav bar you will notice when you click enter it will transition to a scrollable text box with text in it.
Then if you click on the CASE STUDIES button and go to the MAX Cat Packaging button You will see a scrollable text box to your right.
Go back to the News button and click ENTER again and it will transition to a blank white block with a unusable scrollbar.
What do I do to make both text boxes load and work correctly?
Is it my actioncode in frame 1? Please Help!