A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: 1 swf controlling another swf on the same page

  1. #1
    Junior Member
    Join Date
    Nov 2002
    Posts
    26

    1 swf controlling another swf on the same page

    i have two seperate SWF files and both will be displayed on the same html page at the same time. i want both of their animations to be synchronized. is there anyway to have one swf check the other and see if it's done loading then tell it to play? any help or suggestions would be appreciated. thanks.
    -ray

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    TYou would use Local Connection to communicate between two swf's on the same html page...

    http://actionscript.org/tutorials/in...ns/index.shtml

    Although it would probably simpler if you expanded the stage in one of the and loaded the other into it with loadMovieNum(). Its easier to comminicate then ( or combine the two movies in the same fla ).

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

  3. #3
    Junior Member
    Join Date
    Nov 2002
    Posts
    26
    thanks pellepiano
    this is pretty cool. i never knew about local connections. =)

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