Results 1 to 2 of 2

Thread: Loading a swf into a container

  1. #1
    Join Date
    Dec 2007
    Location
    Mississauga
    Posts
    166
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default Loading a swf into a container

    I am trying to do something and am getting very lost in the process.

    I have a stage with thumbnails on the left and a blank MC called "container" on the right. I have seen this done before where when I click the thumbnail on the left a swf movie will load into the container, reason for this is my swf movie is not the same size as my stage and I have a square set up for the movie file.

    Does anyone know how to do this?

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Code:
    container.loadMovie( "/path/to/loaded.swf", level_number );
    container.loadMovie loads the prescribes swf in an MC named "container"

    "/path/to/loaded.swf" is the URL path to the movie swf you want to load

    level_number is the stacking order of the movie, higher numbers = higher placement, like a z-index. If you are only loading one movie at a time, you MAY leave that off if you prefer.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •