1. I do not think Flash TextFields support all HTML tags but rather a
subset. I believe the subset is anchor, bold, break, font, image, italic,
list, paragraph, text format, span and underline.
For background color you may want to change the text field instance
property.
myTextField_txt.background = true
myTextField_txt.backgroundColor = 0x000000
2. Not sure what menu means in terms of Flash objects as they can be
MovieClips or Components.
But for MovieClips with instance names you can reference variables at
various levels in Flash. You need to think in terms of nested "instance
named" timelines as one approach.
myMovieClipOnRoot.message = "Hello World"
myMovieClipOnRoot.myMovieClipInsideIt.message = "Hello World"
3. How are pages handled?
a. All in the same Swf.
1. Each in a MovieClip
2. Each on a frame on the main time line.
3. Combinations
b. In multiple Swfs loaded in by a master Swf.
c. Combinations of all of the above
--
Lon Hosford
www.lonhosford.com May many happy bits flow your way!
[quoted text, click to view] "TMLDaCo" <webforumsuser@macromedia.com> wrote in message
news:dm81rp$1e$1@forums.macromedia.com...
I'm a beginner with MX 2004 Prof. so bare with me. :o
I want to pass a variable from the previous page to a menu in my movie,
which
in turn, passes the same variable to the movie clip that corresponds with
the
menu item that is clicked. It sounds easy enough to me, but I don't know
ActionScript and I don't know exactly where to begin. I thought about using
a
client-side cookie, but I can't depend on cookies being turned on.
Also, I'm using a style sheet on a text field, and I can't seem to get the
background the color I want, (black). (See attached code)
Here's the movie I'm working on. I haven't put a preloader on it yet, so
it
starts rather abruptly after loading. (344kb)
http://www.tonylail.com/SportsTracker.html Any ideas or comments would be appreciated. Thanks.
// create the new StyleSheet object
var styles = new TextField.StyleSheet();
// define styles for <html>, <body>, and <td>...
styles.setStyle("html",
{fontFamily: 'Arial,Helvetica,sans-serif',
fontSize: '12px',
color: '#99FF66'});
styles.setStyle("body",
{ color: '#000000' });
styles.setStyle("td",
{fontFamily: 'Arial,Helvetica,sans-serif',
fontSize: '10pt',
color: '#99FF66'});
// set the TextAreaInstance.styleSheet property to the newly defined
// styleSheet object named styles
MainPg.styleSheet=styles;
MainPg.html=true;
// Load text to display and define onLoad handler
var myVars:LoadVars = new LoadVars();
myVars.load("Main_old.htm");
myVars.onData = function(content) {
_root.MainPg.text = content;
};