| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hello all... I'm working on a portfolio and need some help. I am using a scrollPane, linked it to a movie clip which has the thumbnails, which I made buttons. These button thumbnails load a new .swf movie in the center of the page which contains the larger resolutions image. Now here lies the problem, I can't/don't know how... to get the .swf to unload when I change pages(different frame). Please HELP!?!?! P.S: If anyone knows how to lightbox these images, that would be kickass too... |
|
#2
| |||
| |||
| you could change the content of the scrollPane by simply changing the contentPath property with a button, rather than moving to a new frame with a different instance - doing so will cause it to load the new content. 'lightbox' - are you referring to making them 'light up' when you like rollover the thumbnails or something? |
|
#3
| |||
| |||
| [q]Originally posted by: clbeech you could change the content of the scrollPane by simply changing the contentPath property with a button, rather than moving to a new frame with a different instance - doing so will cause it to load the new content. I'm sorry, I don't quite understand. How do I do this??? What button do I change the content path of the ScrollPane with a button *by button, do you mean the button used to change pages (frames)?? |
|
#4
| |||
| |||
| anybody? |
|
#5
| |||
| |||
| well ok - you have a series of 'buttons' as the thumbnails right - so you really don't need to change between frames on the timeline - all you need to do is change the contentPath property of the scrollPane instance from the buttons onPress handler - so the first thing to do is make sure you have an 'instance name' on the scrollPane - with it selected look in the properties panel on the left there is a box - type in a name like: my_sp - now you can 'point' to it with your codes. so you've said that you have the thumbs within a MC instance right? so in that MC make a new layer -called actions - then select the first frame and open the actions panel. this is where you would apply the codes to respond to the buttons (thumbs) that exists there with something like this: stop(); thumb1.onPress = function() { _root.my_sp.contentPath('theFileName1.swf'); } thumb2.onPress = function() { _root.my_sp.contentPath('theFileName2.swf'); } ...etc do this for each thumbnail button - then when the button is pressed it will load the new content into the scrollPane window instance without having to change frames or unload the previous file. the names 'thumb1' and 'thumb2' are arbitrary and should be the instance names of your buttons - yep you need to give those instance names as well - but they (including the scrollpane) can be any name that works for you, as long as you use the same name when referencing that instance in your code. |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.