A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Linking 2 Projector files

  1. #1
    Junior Member
    Join Date
    Nov 2004
    Posts
    6

    Linking 2 Projector files

    Hi There,

    I need to be able to start a projector file which will run its course and on the last frame call another projector file to start automatically.

    Can this be done? Would greatly appreciate your help.

    Thanks

  2. #2
    Running Plodding & Limping SpockBert's Avatar
    Join Date
    Jun 2002
    Location
    London
    Posts
    593
    Why would you need to open another flash projector?

    say you have A.swf and made it into a "ProjectorA.exe" and like you said you wanted to start "ProjectorB.exe" afterwards...

    you could just use the 1st projector to load up "B.swf" on _level0 i.e. totally replacing the content of the first movie.

  3. #3
    Junior Member
    Join Date
    Nov 2004
    Posts
    6
    Thats sounds like what I need. How would I do that?

  4. #4
    Running Plodding & Limping SpockBert's Avatar
    Join Date
    Jun 2002
    Location
    London
    Posts
    593
    Well just make your movies as normal and put this code on the last frame of the first movie@

    loadMovie("B.swf",_level0);

    Make sure "B.swf" is in the same directory as your projector file and it will load fine.

    The only possible complication is if your 2 movies, A and B are different screen sizes.

  5. #5
    Junior Member
    Join Date
    Nov 2004
    Posts
    6
    Thanks, they do happen to be different screen sizes and also different speeds.

    Would making them both full screen sort this out?

  6. #6
    Running Plodding & Limping SpockBert's Avatar
    Join Date
    Jun 2002
    Location
    London
    Posts
    593
    ahhh, beginning to see why you wanted 2 different projector files now!

    If the sizes and framerates are different they'll revert to whatever the settings og the 1st movie was, so:

    Movie A, 500x300 24 fps

    Movie B, 300x300 12 fps

    If you started off with A and then loaded B at level0, B would have a 200 pixel gap on the right side and it would run at 24fps.

    Any particular reason why they must have different frame rates?

  7. #7
    Junior Member
    Join Date
    Nov 2004
    Posts
    6
    I am using fla which I created a while back which has music timed with the on screen action.

    I am also using Flash MX built in Presentation templates. They have different frame rates.

    I want to swith out of the presentation into my movie and then back again.

    The presentation is 12 and the music movie is 28...arrrgg!

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