Groups | Blog | Home
all groups > flash (macromedia) > may 2004 >

flash (macromedia) : Weird scrollpane component problem!



MIGhunter
5/28/2004 11:23:40 PM
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]




rlc5611
5/29/2004 3:36:28 AM
This sounds more like a Flash version player problem. Can you compare what
version you are publishing to against what plugin version the faulty computer
is using? I had a lot of these kinds of problems when I switched to MX 2004.
AddThis Social Bookmark Button