This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > January 2005 > scrollpane component





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author scrollpane component
danacton...

2005-01-23, 7:15 am

Hi, still pretty new to components and flash 2004, I have made a portfolio with
the scrollpane component. My mind is boggled because it works fine as defined
on my computer's IIS, but when I put it online, the .swf files that are
supposed to scroll in the scrollpane - are sitting on top of the scrollpane,
instead of inside of it. What is going on here, and why would it work locally,
and not on the Web. For an example, you can see what I mean at:
http://www.dansworth.com/portfolio/...ext_effect.html A second problem
I'm having with loading a scrollpane can be seen at the same site at URL below.
In this case the scollpane seems to load the swf file when you click the
button, but only after you refresh the page anywhere from 4 to 5 times. Does
anyone know how to fix this issue? Is this a caching problem? I don't get it.
On this page I have some large files that I've converted to .swfs and I have a
loader for each - using the preloader component. When the button is clicked
the loader page loads, but it just sits there. If I refresh the page a few
times, it will then load...
http://www.dansworth.com/portfolio/...ScrollPane.html
I'll gladly send any files to anyone who requests them, - the thing that is
baffling me is why they work locally. Do I need to use absolute paths for
this component on the web???? All of the paths I've used are relative, and the
..swf that is the scoll content, the scollpane itself, and the html page the
scrollpane is embedded into, are all seemingly linked correctly. Thanks ahead
as always, Dan
http://www.dansworth.com/portfolio/...ScrollPane.html

rlc5611

2005-01-23, 12:22 pm

It is a quirk (shall I say bug) in the scrollpane. When you load content to the
pane, the component has to decide how big the thing is to determine how big the
scrollbars should be (or if they are even needed). Downloading from the web,
the info on the clip contents are not available soon enough for it to do what
it needs to do. You can use the progress to check the progress and then
invalidate and redraw the scrollpane once you are sure the load is complete but
even the progress or complete function is flawed for complicated reasons. Read
this thread:
http://www.macromedia.com/cfusion/w...?catid=194&
threadid=859647 Look at metric 152's comment on invalidate.

danacton...

2005-01-23, 12:22 pm

thank you - im going there immediately

rlc5611

2005-01-23, 12:22 pm

If you have any trouble, let me know.
FuseFlash

2005-01-31, 12:56 pm

Ever wonder why ScrollPane rhymes with scroll PAIN???

:frown;

Now we all know why!!

Have you noticed on your scroll pain whether or not the content loads the
width or height of whatever is being called into the scrollPane? In my case
external .swf's - Whenever I get the error (Scrollbars not appearing - The
content being loaded returns height and width as undefined when using a
listener on the 'complete' event from the scrollPane (Bytes Loaded is however
correct and the movie does load and work) - If I manually invalidate with a
button or something I receive the masking error (but at least it loads).

if (myScrollPain.content.height == undefined){
myScrollPain.refreshPane()
}
--- When used in the listener this code does work but causes an infinite loop
on slower machines - so that's bombed!

It will be great to find out if anybody else has experienced the undefined
height thingy when they get this error?



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews