Google Answers Logo
View Question
 
Q: ActionScript - Dynamic Photo Gallery ( No Answer,   1 Comment )
Question  
Subject: ActionScript - Dynamic Photo Gallery
Category: Computers > Programming
Asked by: tomisina-ga
List Price: $12.50
Posted: 14 Mar 2006 19:30 PST
Expires: 13 Apr 2006 20:30 PDT
Question ID: 707408
Hi, I?m having some problems making a dynamic photo gallery in Flash
8.  I have one main swf called Photos.  This swf has two holders,
called BigPicHolder and AlbumHolder.  When you click on one of the six
albums on the side (only the first one does anything) it loads a swf
called Thumbs into the album holder.  That swf is supposed to load a
photo into BigPicHolder and load different photos into BigPicHolder
depending upon which of the scrolling buttons you click on.  This
doesn?t work and it boils down to 3 problems:

1)
Is this the proper way to load one of the thumbs into the button?
(ButtonInstance).(Loader Within Button).loadMovie("(Thumbnail Photo)")

It?s not doing it?s job then because this isn?t working.
B1.PicLoader.loadMovie("1.jpg");

2)
Another problem I am having is when I click on a button such as B1
above? It is not properly loading it?s corresponding BIG picture into
BigPicHolder.  This isn?t happening because I am not navigating the
file hierarchy properly?

this.B1.onRelease = function(){
	_root.BigPicHolder.loadMovie("~/BIG/1.jpg");
}

The tilde does not refer to the root directory as I?m use to in UNIX. 
I could hardcode in Album1 where the tilde is, but then I?d have to
modify that for every single Thumb.swf.  Is there anyway I can wite
that so it know?s where it?s starting from and then navigate to the
BIG folder?

3)
I haven?t been able to load any of these photos into the BigPicHolder,
but I know when they load it?ll be ugly because I haven?t worked on
the dimensions at all? and because it wont be centered at all.  Is
there a way I can constrain the photo I?m loading to certain
dimensions and center it with Actionscript?

I have the files here so it?s easier to understand the problem:

http://www.andrew.cmu.edu/user/tbs/Flash/Photos/

Thank you.
Answer  
There is no answer at this time.

Comments  
Subject: Re: ActionScript - Dynamic Photo Gallery
From: coreylucier-ga on 09 Apr 2006 06:35 PDT
 
Something to look at for convenience...
http://www.oman3d.com/tutorials/flash/load_images_bc/

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy