dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Calling a swf issues (action script 2)

  1. #1
    Junior Member
    Join Date
    Oct 2008
    Posts
    19

    Calling a swf issues (action script 2)

    OK.... i have a header made in flash, its 950 x 175 px. For every button in the header a swf is called in into a specif frame. The problem is that when the swf loads it does but not full size of 950 x 650 but it loads in the same header size. How can i make this work, hit the button and swf comes in in full size ?

    this is the code of one of the buttons in my header:

    var container:MovieClip = createEmptyMovieClip("container", getNextHighestDepth());

    var mcListener:Object = new Object();
    mcListener.onLoadInit = function(target_mc:MovieClip) {
    trace("movie loaded");
    target_mc.gotoAndStop(155);
    };

    var MCL:MovieClipLoader = new MovieClipLoader();
    MCL.addListener(mcListener);

    MCL.loadClip("Diving.swf", container);

  2. #2
    I know nothing.
    Join Date
    Feb 2008
    Posts
    315
    Set the original header size to 950 x 650, then try it again. Your container needs to be the same size as the movie you're loading, otherwise it's going to get cutoff.

  3. #3
    Junior Member
    Join Date
    Oct 2008
    Posts
    19
    I once made it happenned..... so it is possible, just cant remember how.

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