Hi everyone,
I have a map that is rather large (1200px across). What I would like to do is show only a small section of the map at a time and use scrollbars (horizontal and vertical) to navigate around.
how do i use the scrollpane but instaed of importing an external swf, how would i use a library meber as my viewable source…i might be having problems as it is not on the root layer but i am not sure being a new user…also, how do i chenge the components skins…when i try to make an instance i fall short…not quite sure where to go…again i feel ignorant so thanks in advance to any help.
mrblair:jail: locked in a world of flash nightmares
To display a movieclip from your library in the scrollpane, make sure the movieclip has a linkage ID. To do so, right click (PC) or ctrl click (mac) the MC symbol in your library and click properties (or linkage). Check the box next to ‘export for actionscript’ and give it a name in the ‘identifier’ field. Then set your scrollpane’s contentPath parameter to the same name you entered as the identifier. This should work for you.
As for skinning the components, it’s more trouble than it’s worth until you’re really comfortable with flash. The components that come w/ the latest versions of flash come with a predefined theme called the “Halo” (not the video game though ) theme. You can change the color scheme of this theme quite easily though and this usually serves well the purpose of making things look nice on your site/in your app.
Where [COLOR=DarkRed]componentName[/COLOR] is the instance ID of the component you’re interested in changing the theme color for, and [COLOR=RoyalBlue]color [/COLOR] is either the hex value of the color you wish to use (ie 0xFF0000 for red, 0x00FF00 for green, 0x0000FF for blue, etc…), or one of the three pre-defined color constants (which are: “haloGreen”, “haloBlue”, and “haloOrange”)
fantastic mate that is great, not sure why but i am still not able to apply a movie clip from my library into the scroll pane…i have tried what you suiggested but it is not working…i will keep plugging away though chad and see how i get on, thanks mate.