dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: loading a swf into a mc

  1. #1
    Member
    Join Date
    Feb 2003
    Posts
    45

    loading a swf into a mc

    I am trying to load a swf file into a square mc that i have made and called frame. I have tried the following code:

    on (release) {
    frame.loadMovie(intro.swf);
    }


    but doesnt seem to work. Any ideas?

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Is "frame" the instance name of the movie clip on stage, or just it's Library name? You are aware that if you have any content in this holder clip, it will be replaced by whatever you load into it?

    http://www.kirupa.com/developer/mx/loading.htm

  3. #3
    Member
    Join Date
    Feb 2003
    Posts
    45
    yeah, the movie clip has the instance name 'frame'

    The movie clip is simply a box outline with nothing in.

  4. #4
    Member
    Join Date
    Feb 2003
    Posts
    45
    It might be worth pointing out that this code is the code for a seperate button that i want to load the movie into the clip when this button is pressed.

    Cheers

  5. #5
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Check the link posted above, or attach your .fla.

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