A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: load external swf. file

  1. #1
    Junior Member
    Join Date
    Oct 2007
    Posts
    6

    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...

  2. #2
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    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?"

  3. #3
    Junior Member
    Join Date
    Oct 2007
    Posts
    6
    Hi Rob,

    thx a lot, it does help! I will try the code in a new fla. file... thx again!

  4. #4
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    Hope you figure it out. Cheers.
    Wile E. Coyote - "Clear as mud?"

  5. #5
    Junior Member
    Join Date
    Oct 2007
    Posts
    6
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center