VirtualMV/Flash12 (CS6)/Journal/Content/Graphics/Fast loading Photo Album

From WikiEducator
Jump to: navigation, search

Fast loading photo album

This loads fast because all the photos are stored ouside the swf. So the page doesn't need to load any photos to start.

Instruction:

  • All photos should be in the same folder as the .swf.
  • Go to: Window/components/User Interface/Loader
  • Drag loader onto page and resize to desired size.
  • Create Instance name myLoader
  • Save swf.
  • Make as many buttons as there are photos.
  • On each button put in actionscript with corresponding photo name -
on(release){ 
myLoader.contentPath="dog01.jpg";
}
Screensave.jpg

Example: photoalbumTutorial.html, and Flash (fla) file photoalbumTutorial.fla (Note, you will need to create 6 files (flowers01.jpg ... flowers06.jpg of width 500px x height 375px)

Initial Contributor

2009 May: Kerry B.