A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: link a movie within movie

  1. #1
    Member
    Join Date
    Sep 2002
    Posts
    53

    link a movie within movie

    I saw people doing this. They create a button, and link to animation directly onto the site itself while the animation is located on the other site.

    From example, i upload my animation with the button i said just now on testing.com, then i upload my real animation on newsgrounds.com, from testing.com, when i click the button, it link directly to the animation in newsgrounds.com without opening another IE windows or change the screen.

    The real example is here.
    http://www.sticksuicide.com/ss/asylum/view.asp?id=3733

    Can someone tell me how to do it?

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    You can use loadMovie to load a swf from another site into your main swf. hers some general info on loadMovie.

    There are two ways of loading external files into Flash. Either you can load swf files into _levels or into movieclip targets.

    _levels only exist in the Flash player. They are like layers but for swf files The Flash player is like a overhead projector where the plastic films you put on top of each other are like the swf files in the player. There are 16000 available levels

    //To load a external swf into a _level from a button. The number 1 being the level to load into.

    on(release){
    loadMovieNum("myExternalFile.swf",1);
    }

    Movieclip targets are what it sounds like. A empty movieclip placed on the stage just for the purpose of loading a swf file into it. The advantage is that you can place it anywhere, manually ( as opposed to swf's in _levels) and also can control what othe objects shoeld be on top or beneath.

    Usually you give the movieclip an instance name of container.

    //To load a external swf into a target movieclip from a button ( both being on the main timeline ).

    on(release){
    container.loadMovie("myExternalFile.swf");
    }

    Note that the external files top left corner will load at the center of the empty movieclip.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Member
    Join Date
    Sep 2002
    Posts
    53
    Thank you so much...

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