Old 23-01-2008, 05:45   #1 (permalink)
mid-ori
Senior Member
 
mid-ori's Avatar
 
Join Date: Oct 2003
Posts: 162
ExternalInterface and swf's

Hi,

I'm having some problems with ExternalInterface.

What happens it loads in the swf, but then when i click another button it won't load in a different swf. Its proberly something small, the annoying part is it works for loading in flv's.

Any help appreciated.

---------CODE--------------

import flash.external.*;

// The name of the Flash variable to be called in JavaScript
var flashFunction:String = "callSlide";
var instance:Object = null;

// Callback function executed by the name of variable
var realFunction:Function = playSlide;
ExternalInterface.addCallback(flashFunction, null, realFunction);
function playSlide(slide:String):Void {
loadSlide.loadMovie(slide);
}
_root.createEmptyMovieClip("loadSlide", 1);

---------END CODE--------------
  Reply With Quote
Old 23-01-2008, 06:53   #2 (permalink)
mid-ori
Senior Member
 
mid-ori's Avatar
 
Join Date: Oct 2003
Posts: 162
update, its not a problem in the flash, so this is all okay
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8