ScrollPane HELP!?

This is a discussion on ScrollPane HELP!? within the Macromedia Flash forums in Adobe Tools category; 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......

Go Back   Application Development Forum > Adobe Tools > Macromedia Flash

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 05-19-2008, 05:31 PM
jamocamac
Guest
 
Default ScrollPane HELP!?

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...

Reply With Quote
  #2  
Old 05-19-2008, 05:59 PM
clbeech
Guest
 
Default Re: ScrollPane HELP!?

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?

Reply With Quote
  #3  
Old 05-19-2008, 06:15 PM
jamocamac
Guest
 
Default Re: ScrollPane HELP!?

[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)??






Reply With Quote
  #4  
Old 05-19-2008, 08:03 PM
jamocamac
Guest
 
Default Re: ScrollPane HELP!?

anybody?
Reply With Quote
  #5  
Old 05-19-2008, 08:40 PM
clbeech
Guest
 
Default Re: ScrollPane HELP!?

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.

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 11:48 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.