A Flash Developer Resource Site

Results 1 to 20 of 20

Thread: im trying to add a song to a looped flash i made importing as .swf but the sound

  1. #1
    Member
    Join Date
    Apr 2001
    Posts
    65
    doesnt come out when i play it in explorer, am i doing something wrong? please help!! thank you

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    Your song swf needs 2 frames If I remeber right... I'll look at it.

    Okay I looked at it your imported SWF needs to be the same length as the Movie and you need to set your imported Movie to loop the sound.

    I hope that helps...

    [Edited by johnie on 01-26-2002 at 02:39 PM]

  3. #3
    Member
    Join Date
    Apr 2001
    Posts
    65

    hmmm...

    ill just load two blank frames? that should work probably! maybe...i dont know hahah thanks johnie

  4. #4
    Member
    Join Date
    Apr 2001
    Posts
    65
    well, i tried adding a blank frame the only thing it did was play the beginning of the song over and over and over, hmmm...do i have to insert the amount of blank frames that will match up the length of the song? that doesnt seem right.

  5. #5
    Member
    Join Date
    Apr 2001
    Posts
    65

    one more question also johnie

    do you know of any programs that will convert avi to .swf? ive got the one to convert .sft to avi. But say ive got my friends on cam jumping dirtbikes and i want to turn it into flash see what im saying? thanks man!

  6. #6
    Member
    Join Date
    Apr 2001
    Posts
    65

    okay, i modified my song, its 40 seconds.

    i inserted 50 plus frames, so it would just go over the time of the song. i saved it as an .swf file, (does it have to be the same size as my other flash movie i want to add it to?) and i imported it into my other movie, now it plays but just the beginning because the movie i imported it into is only like 3 frames but i have it going over and over, how can i make my song keep going? instead of starting over?

  7. #7
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    The length of the sprite SWF (SWF Object) has to be longer than the length of the sound or have a stop action in it and be set to loop the sound. Also you have to stop the main movie from reloading the sprite. You do this by adding a goto and play action at the end of your main movie so that it doesn't hit the frame you imported your sprite (SWF object) on.



  8. #8
    Member
    Join Date
    Apr 2001
    Posts
    65

    shoot.

    i tried adding a "go to frame 1 and play" action at the end of the main movie, still a no go! any suggestions?
    also, which frame do i "import flash movie as object" to? thanks alot for the help!

  9. #9
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    Where have you imported the SWF object at?

    Are you using load movie?

    or import SWF as object. If you are using import SWF as object then the first frame that you see that bounding box is where it was imported at.

    also if you want you can email me at [email protected] and I can look at the file.

  10. #10
    Member
    Join Date
    Apr 2001
    Posts
    65

    okay johnie

    i sent the .swf sound file, and the fun file which is where i want to insert it! thanks

  11. #11
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    Okay, I looked at your file...

    And I figured out another feature improvement for KM... If it can't find a dependancy let the user find them...

    Anyhow what it apears you will need to do.


    1. CLick on the Frame Menu and hit insert Blank Frame. Now Click on Frame view, its the 3'rd view button in the interface, and move the blank frame up to the first frame position using the up button.

    2. Click on the renumber frames button.

    3. On your new Blank Frame 1 click on the insert SWF Object button. Choose your sound SWF.

    4. Copy this bounding box.

    5. Goto the next frame and paste to end.

    6. Now goto your last frame and add a Goto and play Frame 2 action.

    Alternativly you could also Load your sound SWF into Level 2 in step 3 and skip steps 4 and 5.

  12. #12
    Member
    Join Date
    Apr 2001
    Posts
    65

    thanks alot!

    right on im gonna see if it works!

  13. #13
    Member
    Join Date
    Apr 2001
    Posts
    65

    yes!!

    thank you very very much it works!!

  14. #14
    Member
    Join Date
    Apr 2001
    Posts
    65

    one more question.

    now, if i want the .swf file to stop playing how would i make that work? i mean, after the song is over? thanks again johnie you're really helping me out

  15. #15
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    By placing a stop all sounds action on the last Frame of your sound SWF. Likewise you could also time it off the main timeline.

  16. #16
    Member
    Join Date
    Apr 2001
    Posts
    65

    ahhh yes.

    okay i will try that thank you!

  17. #17
    Member
    Join Date
    Apr 2001
    Posts
    65

    hmmm..

    for some reason i cannot find my main timeline, or change the statistics on my .swf file. i have no idea why. i found the "score" but it only lists the stuff, doesnt give me any options to alter a the .swf file. sheeit.

  18. #18
    Member
    Join Date
    Apr 2001
    Posts
    65

    hmmm..

    for some reason i cannot find my main timeline, or change the statistics on my .swf file. i have no idea why. i found the "score" but it only lists the stuff, doesnt give me any options to alter a the .swf file. sheeit.

  19. #19
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    In 2.8.X you only have 1 Timeline per SWF more or less. KM 3 will be different.


    Couple of ways to do this in 2.8.X...

    These work regardless if you used Load Movie or imported as an Object

    1. Open up the FUN file that contains your sound. If your FUN file is as long as the Sound CLip simply add a Stop and a Stop all sounds action in your Movie.

    2. Simply not allow your Sound SWF loop. This is done by not setting the SWF to loop sounds and having a stop in your SWF.

    This works if you have Loaded the Movie

    1. If your Main Movie is as long as the music then you can use Unload the loaded Movie on your last frame. This is done with the Unload Action.

    2. If your main Movie is shorter you can script a counter to time it.

    timer+=1;if(timer==80){unloadMovie(_level2)}

    3. Likewise you can script it to stop all sounds on the loaded level:


    timer+=1;
    if(timer==80){_level2.stopAllSounds();}


    If you Loaded your Movie as an object these work

    1. Actions Script a timer to stop the sounds on MC.

    timer+=1;
    if(timer==80){swf1.stopAllSounds();}


    2. You can also unload Level 0 from the clip and it is also effective.


    timer+=1;
    if(timer==80){swf1.unloadMovie(_level0);}


    Well those are the ways I can see to do this. You need to realize that some of those values need to be adjusted.

  20. #20
    Member
    Join Date
    Apr 2001
    Posts
    65

    hey thanks alot

    thank you very much for helping me out, im gonna try it right away!

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