A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Communicating between 2 Flash movies on 1 html page

  1. #1
    Junior Member
    Join Date
    Aug 2000
    Posts
    24
    Does anyone have an example somewhere where I could see how to communicate between separate .swf files


    I have a webpage where 1 flashmovie contains a button and
    when you press that button, another flashmovie should receive some kind of command and do something.

    That is, the first flash movie on the webpage should send something to the second one.

    This should run on Internet Explorer, so both Javascript and VBscript are available...



    Anyone have an idea ?


    Thanks,

    Bart

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    1,180
    Hi..

    For a detailed explanation look at the first link. The second link has a downloadable library which has a function your after:

    http://www.moock.org/webdesign/flash...ml#2directions

    http://www.ashzfall.com/examples/flash/fscom/

    Good luck.

  3. #3
    Junior Member
    Join Date
    Nov 2000
    Posts
    7

    Talkin between movies

    Check out this site:


    SEMIOTICA


    Once you have clicked on a link to enter the site, you will have 2 Flash movies on the same document, at the same time.
    One will be the navigation tool on the left, this uses fsCommand to cause a javascript function within the HTML document to change the other movies URL.
    It looks something like...

    function MOVIEID_DoFSCommand(command, args) {
    document.all.MOVIEID.movie = "newmovie.swf";
    }


    Of course it is more flexible to get the string of the new movie as one from the args passed.

    any problems email:
    antonyp@rsonsmail.co.uk


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