-
load external swf. file
Hi,
on Click of my button (instance name: "vierkant_btn") an external swf.file named "voorstelling.swf" should be loaded into my movieClip "container_mc" (instance name. I've put the following code on my button "vierkant_btn" :
function loadSwf(filename:String):Void {
container_mc.unloadMovie();
container_mc.loadMovie(filename);
}
vierkant_btn.onRelease = function() {
loadSwf("voorstelling.swf");
but it does not work!! I am working with flash 8, does anybody know how I can get this work?? Thx, i've wasted already two days with that...
-
Senior Member
I know this is nothing, but your posted code for the btn has no closing curly brace. That being said, I tried your code and it works, so my guess is that your error is associated with some other portion of code. HTH.
Wile E. Coyote - "Clear as mud?"
-
Hi Rob,
thx a lot, it does help! I will try the code in a new fla. file... thx again!
-
Senior Member
Hope you figure it out. Cheers.
Wile E. Coyote - "Clear as mud?"
-
Hey,
thx for your support again! I did it now differently, but it is working...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|