View Full Version : MX2004 Pro / ScrollPane
popovich
06-08-2005, 05:09 PM
Hello gurus,
I am having problems with the MX2004 ScrollPane. I use FlashMX 2004 Professional for developing stuff. It works o'right in Mozilla/Explorer at my PC. My boss checked the site with WinXP, IE6, Flash 7.0.19.0 and the scrollpane objects would not display correctly. I cannot locate the problem, 'cause it runs fine on my machine.
Could you please help with this? is there some evident solution I am missing?
Address to check (I do not link the site directly for loggin and security reasons): v e r t u . r u / t e s t
Sections on the site to check:
- products (the second from the left), then any of the collections, then specifications (bottom left, looks like XAPAKTE...)
- press (first from the right), press-releases
- for owners (second from the right), first submenu, any further link (signature or model 2005)
I do appreciate any help. This is pretty urgent, as the site should launch the day after tomorrow. :/
Cheers,
A
charlieFlash
06-08-2005, 07:18 PM
I just checked and it looked like there were scrollbars and content. (Win XP, IE v6)
popovich
06-09-2005, 10:58 AM
this is actually a problem. I got another comment from someone telling me to "use scrollbars to avoid running over the bottom of the page". Apparently, she hasn't seen the scroll thing. Dang.
Can a wrong placement of the component do the bad thing? I am also using skin - maybe this is the problem? Maybe the component should pop up on the stage earlier or something? Does it need to fully load before being rendered?
This is still very urgent.
Thanks to any replies, guys.
popovich
06-09-2005, 12:07 PM
quick news:
I've found out that loading the movie with the scrollPane wouldn't render the scrollPane (even, if it is present on a scene before, where it won't be rendered). BUT if I go somewhere else on the scene and then go to that frame with the scrollPane back it WILL render properly. So the question I am asking myself - does it really need to be preloaded? refreshPane() in the same frame of the main timeline doesn't help either. Any ideas?
popovich
06-09-2005, 02:21 PM
This seems to work....
In the same frame of the timeline on the separate layer:
--------------------------
TS.setStyle("borderStyle", "none");
TS.drawFocus = false;
completeListener = new Object;
completeListener.complete = function() {
TS.hide();
TS.redraw(true);
TS.invalidate();
TS.reveal();
}
TS.addEventListener("complete", completeListener);
--------------------------
where TS is "TheScroller" aka scrollPane. Pretty much ado about nothing, though.... :/
Cheers.
popovich
06-09-2005, 03:22 PM
NO! This doesn't work either.
I also find some threads all over the net with the same problem - the content will not scroll — it is just revealed unscrolled. And there are NO answers to this question. What's up?
Ok. So I am this far to do the following. In the scrollPane Actions:
--------------------
on(complete){
setStyle("borderStyle", "none");
drawFocus = false;
invalidate();
reveal();
}
on(progress){
hide();
}
--------------------
The funny thing is that any and every variant works with Mozilla. But not in IE...
Frustratin'.
sleekdigital
06-09-2005, 03:28 PM
Can we see a bit more of your code .. specifically, where you are loading content into the scroll pane
sleekdigital
06-09-2005, 03:34 PM
When I loaded the page the first time, I did not get the scroll bars, but the second time I did. This suggests to me that on(complete) is not firing when you think it is... when the content is fully loaded. Since it was already in my browser cache the second time, there was no load delay and thus it worked. What you might do is use your own load check to know when to call invalidate(); and reveal(); Here is the sort of load check I usually do ...
var curLoaded = c.getBytesLoaded();
var total = c.getBytesTotal();
if (total > 15 && curLoaded == total && c._width > 0) {
// now the content in clip "c" is loaded
}
popovich
06-09-2005, 03:47 PM
It works again. But I don't know for how long.. :/
OK. The content was a separate .swf file which I was pointing at in the parameters of the scrollPane (properties Panel). After the last step I tried doing the same with the script
on(load){
contentPath = "the_text_and_nothing_more.swf";
...
}
which didn't work either.
Now I have imported the MovieClip from that separate .swf to be loaded into the library of the main movie and linked it for export. I have now the following code in the scrollPane Actions with contentPath referring to the MC in the library (and not a separate .swf file):
on(load){
contentPath = "TEXT_asc_tech";
setStyle("borderStyle", "none");
drawFocus = false;
_y = 66;
redraw(true);
reveal();
}
Mind, that with _y = 66 I was trying to load the content, move it around the scene and redraw (didn't help before, but I am leaving it there for now). Yeah, I don't know, how moving around could help, but who knows...
It seems to work now. Let's see, if it works later.
The issue with a .swf being loaded into scrollPane, I presume, remains unresolved.
// PS!
@ sleekdigital
you've answered while I was writing this. could you clear your cache and try again? it seems to work for me now.... if it doesn't, I will have to think of yet something different.
sleekdigital
06-09-2005, 04:02 PM
I have not had any problems with loading stuff into the scroll pane. However, I do things a little different than you describe. Here is what I generally do...
get a reference to the scroll content clip, something like... scrollClip = myPane.content;
create a new empty clip in the scrollClip ( the reason I do this is because I am often loading more than one thing into the content area)
use load movie to load the content into the new empty clip
use the load check I described before and call mypane.invalidate() when content is finished loading
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.