Toon posts:

[flash mx] Scrollpane probleem

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ok ..

Ik heb dus een scrollpane component. Daarin laad ik een movieclip in.
Ik heb de scrollbars uit staan. De movieclip is in width veeeel groter dan de scrollpane ( 2x zo groot).

Nu heb ik en button en als ik erop klik dan moet de scrollpane vanzelf scrollen naar een opgegeven x,y die ik opgeef.

Dus bijvoorbeeld scrollnaar(900,0). Dan moet de content in de scrollpane scrollen naar die x,y.

Weet iemand een voorbeeld hiervan? Of hoe de benaming hiervan?

  • JSchut
  • Registratie: Februari 2002
  • Laatst online: 21-08 08:30

JSchut

.....

Misschien dat je hier wat aan hebt: http://www.macromedia.com...script_dictionary329.html

Gevonden in de actionscript dictionary........

Om andere flash gerelateerde functies op te zoeken:
http://www.macromedia.com.../action_scripts_dict.html

[ Voor 27% gewijzigd door JSchut op 30-09-2003 14:29 ]

PSN jschut_82 | Xbox: JSchut82


Verwijderd

Topicstarter
thnx ... ik heb um nu werkend gekregen.

Nu heb ik weer iets. Standaard zet scrollpane de background op wit. Weet iemand een mogelijkheid om de bg gewoon weg te halen ?

  • JSchut
  • Registratie: Februari 2002
  • Laatst online: 21-08 08:30

JSchut

.....

mmmmm dat is lastiger....

Je zou denken dat dit moet werken......, maar heb het niet getest!
code:
1
_root.myscrollpane.boundingBox_mc._alpha=0


Nog ff verder gezocht:
to edit your scrollbar component - after dragging it to stage - open your
library and locate the "Flash UI Components" folder. open it and locate
"Component Skins" folder. open it and locate "FScrollbar Skins" folder. open
it and you'll see all the objects that make up your scrollbar - delete
"fsb_ScrollTrack.
En......
if you have a scrollpane, combobox and listbox on stage
( all sharing FBoundingBox ) and want individual control,
give each component an instance name and check for it,


var component = _parent;

component.registerSkinElement(boundingBox, "background");

component ==_level0.myPane ? boundingBox._alpha = 10 : null;
component ==_level0.myCombo ? boundingBox._alpha = 60 : null;
component ==_level0.myList ? boundingBox._alpha = 100 : null;

stop();

[ Voor 8% gewijzigd door JSchut op 30-09-2003 15:31 ]

PSN jschut_82 | Xbox: JSchut82


Verwijderd

Topicstarter
okay ...

nu heb ik weer een ander probleem

ik heb :

_root.scrollpane.setScrollPosition((700*3),0);

dit doet het nog wel ...

maar als ik doe

_root.scrollpane.setScrollPosition((700*4),0);

dan komt lijkt het alsof ik tegen het maximum aanzit dat hij wil scrollen. Iemand hier bekend mee ?

  • flashin
  • Registratie: Augustus 2002
  • Laatst online: 17-12-2023
700*3 = 2100
700*4 = 2800

misschien is 2800 wel over je max heen?

  • JSchut
  • Registratie: Februari 2002
  • Laatst online: 21-08 08:30

JSchut

.....

Er zit geen max aan het scrollen......

Probeer je niet verder te scrollen dan dat je pagina lang is.....?
Want dan scrollt ie waarschijnlijk helemaal niet!

PSN jschut_82 | Xbox: JSchut82

Pagina: 1