OK, I did this in 2 ways. The first time I used the text pane and realized it
wouldn't let me do what I want. Here is the link:
[URL=
http://portfolio.indiana.edu/migomez/pohanka/pohanka_main.html]textpane[/UR
L] Goto the saturn section.
Since I couldn't add what I wanted I used the scrollpane. The example can be
found here:
[URL=
http://portfolio.indiana.edu/migomez/pohanka/ph2.html]scrollpane[/URL] The
problem is that on my computer and my friends computer it works great. But, I
checked it from a work computer and instead of a scrollpane, I get an image
overlapping the rest of the page. It isn't in the scrollpane at all. I used
the scrollpane component to build this application. Is there something that I
am doing wrong? How can I fix it so that the scrollpane works on any computer,
anywhere?
Here is the messed up version:
[IMG]
http://portfolio.iu.edu/migomez/oops.jpg[/IMG]
Here is the correct version:
[IMG]
http://portfolio.iu.edu/migomez/right.png[/IMG]
As for how I did it, I used the scrollpane component. All you do is tell it
the file and it loads it for you. I am using logo.swf, which is in the same
folder as the rest of the site. I left all the options to the default and
added this actionscript to the main timeline:
[quote]scrollListener = new Object();
scrollListener.scroll = function(evt) {
txtPosition.text = myScrollPane.vPosition;
};
myScrollPane.addEventListener("scroll", scrollListener);
completeListener = new Object();
completeListener.complete = function() {
trace("logo.swf has completed loading.");
};
myScrollPane.addEventListener("complete", completeListener);
[/quote]