Topic: Using a Actionscript 2 falsh page

Hi! im using a flash actionscript 2 page
Im wondering what script i should use instead of the one that came with the SimpleViewer v2  :(

The following steps describe how to load SimpleViewer into a container movie:

Create a new gallery folder by using one of these methods or by making a copy of the 'web' folder in the Pro download.
Create a new ActionScript 3 FLA in the gallery folder. This will be your container movie.
Paste this code into the first frame of the FLA.
var svAPI:Object; //svAPI is the object to call API methods on
var svLoader:Loader = new Loader();
svLoader.contentLoaderInfo.addEventListener(Event.INIT, onViewerInit);
svLoader.load(new URLRequest("simpleviewer.swf"));

* Fired when preloader is available
* Can set gallery flashvars at this point
function onViewerInit(e:Event):void{
Object(svLoader.content).addEventListener("svComplete", onGalleryLoaded);
var options:Object = Object(svLoader.content).embedOptions;
options.galleryURL = "gallery.xml";

* Fired when gallery has completely loaded. API is now available.
function onGalleryLoaded(e:Event):void{
svAPI = Object(svLoader.content).api;

Publish your FLA. You should see your gallery loaded into the container movie.
For more sample code showing how to interact with the loaded gallery, check the example FLA.


Re: Using a Actionscript 2 falsh page

Embedding SimpleViewer-Pro in Flash requires the embedding movie to be ActionScript 3 and requires Adobe Flash CS3 (or later) authoring software. Embedding SimpleViewer-Pro in Flash requires a basic level of Flash authoring experience. … dding.html

To use AS2 you would need to use a as2 to as3 bridge such as swfbridge.

Mike Richards
SimpleViewer Support Team.