tag:blogger.com,1999:blog-926838900470134457.post1146796682519905170..comments2023-04-27T05:51:03.473-07:00Comments on No Idea What I'm Doing: Project Jumper Part 6: Sound; Bleeps Bloops and Frustrated ScreamsChipacabrahttp://www.blogger.com/profile/07733152134515137655noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-926838900470134457.post-83310693639045601842011-01-21T21:42:47.529-08:002011-01-21T21:42:47.529-08:00Yep, you can't use octet-stream. Basically, yo...Yep, you can't use octet-stream. Basically, you embed things as octet streams if it's a format that Flash doesn't know. That will embed it as raw data, which you are then responsible for interpreting.<br /><br />For sounds, you want Flash to actually process it or it won't know that it's an mp3 file, and it won't know how to play it.<br /><br />FD shouldn't be including the mimetype bit when you insert an .mp3 file. But computers are mysterious things, and I can't guarantee it'll always get it right. :DChipacabrahttps://www.blogger.com/profile/07733152134515137655noreply@blogger.comtag:blogger.com,1999:blog-926838900470134457.post-28496369736694498532011-01-21T11:31:19.189-08:002011-01-21T11:31:19.189-08:00One issue that I ran into. When you import the .wa...One issue that I ran into. When you import the .wav-->.mp3 sound effect into FlashDevelop, then it gives you this:<br /><br />[Embed(source = '../die.mp3', mimeType = 'application/octet-stream')]public var dieSound:Class;<br /><br />But this gave me the error:<br /><br />[Fault] exception, information=TypeError: Error #1034: Type Coercion failed: cannot convert Player_dieSound@510d161 to flash.media.Sound.<br /><br />Turns out you need to delete the mimeType in the Embed, so just change it to:<br />[Embed(source = '../die.mp3')]public var dieSound:Class;<br /><br />More info here: http://flixel.org/forums/index.php?topic=1642.0Brice Morrisonhttps://www.blogger.com/profile/14335687810064250345noreply@blogger.comtag:blogger.com,1999:blog-926838900470134457.post-1683386776329198202011-01-21T11:29:04.629-08:002011-01-21T11:29:04.629-08:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/03067325142947790903noreply@blogger.comtag:blogger.com,1999:blog-926838900470134457.post-90430812981284224432011-01-06T15:14:00.774-08:002011-01-06T15:14:00.774-08:00What Evgenii said.What Evgenii said.Tigran Mnatsakanyanhttps://www.blogger.com/profile/00259838566910147170noreply@blogger.comtag:blogger.com,1999:blog-926838900470134457.post-76130363027095428962011-01-06T04:56:45.024-08:002011-01-06T04:56:45.024-08:00thank you! very helpful!
look forward to continui...thank you! very helpful!<br /><br />look forward to continuingEvgenyhttps://www.blogger.com/profile/08666673210604376822noreply@blogger.com