| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Senior Member
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-------------- |
|
|
|
![]() |