PDA

View Full Version : Could anyone help me on this one...?


xxlm
04-08-2004, 02:18 AM
Still with my scrollPane problem.
After a week I found that i used the wrong component (for FMX and not FMX2004 :p ).. Anyway.
So I started something, but some stuff are strange.

When I'm doing

//adding a container
pList.spList.contentPath = "empty";
//attach in this container two line
pList.spList.content.attachMovie("line", "line", 1);
pList.spList.content.attachMovie("line", "line1", 2, {_y:pList.spList.content._height});

Thing goes fine. I mean the scrollbar is here and so I can scroll.

BUT if I'm doing this

//adding a container
pList.spList.contentPath = "empty";
//attach in this container one line
pList.spList.content.attachMovie("line", "line", 1);
button.onRelease = function () {
//on release add a line
pList.spList.content.attachMovie("line", "line2", 3, {_y:pList.spList.content._height});
//refresh the pane
pList.spList.refreshPane();
}

it doesn't work.
I mean all disappear.

Any idea?

fla sample attached...

Thx mates

xxlm
04-09-2004, 05:20 AM
So anyone???