Topic: Embeding simpleviewer swf in actionscript 2

I am using   sv Builder pro version v2.1.0

I am having flash project with actionscript 2

I am using the following code of yours for embeding the photogallery in to my project which use Actionscript 2

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;

Kindly help me to solve this issue as I recomended my company to invest on pro version to make photo gallery visible.

Re: Embeding simpleviewer swf in actionscript 2

Embedding SimpleViewer-Pro in Flash requires the embedding movie to be ActionScript 3 and requires Adobe Flash CS3 (or later) authoring software. … html#flash

Steven Speirs
SimpleViewer Support Team

Re: Embeding simpleviewer swf in actionscript 2

You could try using something like SWFbridge for communicating between AS2 and AS3, but we only support AS3.

Mike Richards
SimpleViewer Support Team.