Flashblocks Flash CMS
Welcome, Guest
Please Login or Register.    Lost Password?
Auto open Gallery and First full-size image (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: Auto open Gallery and First full-size image
#1844
admin ()
User Online Now Click here to see the profile of this user
Flashblocks Birthdate: 2005-02-14
 
Auto open Gallery and First full-size image 1 Year, 7 Months ago
Add this code to the same frame where your gallery or galleries are located.
Pass the gallery Editblock movie clip that you wish to open, to the openGallery function:
openGallery(galleryMovieClip)



Code: :

 openGallery(gallery1) // AUTOMATE THE OPENING OF A GALLERY AND // THE OPENING OF THE 1ST IMAGE IN THE GALLERY function openGallery (openGallery) { var autoOpenCount=0 var p this.onEnterFrame = function  () { if ((autoOpenCount++)==20openGallery.onPress() // OPEN GALLERY else if (autoOpenCount==40) { // OPEN 1st FULL SIZE IMAGE var gal _root.theGallery for (var 0gal.NumberOfPicsn++) { var = eval(gal ".p" n) if (p.galleryNum == gal.currentGallery) { p.onPress() break } } delete this.onEnterFrame } } }

 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop

Thank you