# The sound gets cut , i dont understand y

**URL:** <https://forum.kirupa.com/t/the-sound-gets-cut-i-dont-understand-y/11623>\
**Category:** Uncategorized\
**Created:** [January 20, 2003, 10:26am UTC](https://forum.kirupa.com/t/the-sound-gets-cut-i-dont-understand-y/11623 "2003-01-20T10:26:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pares101](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@pares101](https://forum.kirupa.com/u/pares101)\
**Post date:** [January 20, 2003, 10:26am UTC](https://forum.kirupa.com/t/the-sound-gets-cut-i-dont-understand-y/11623/1 "2003-01-20T10:26:49Z")

</div>

well i have the preloader component and now i want to put music in the background but when i put the music in the background it gets cut off for some reason i dont know why but i included the source file to see if u guys can help me

heres the example

[www.autodaze.com/test.html](http://www.autodaze.com/test.html)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 20, 2003, 10:47am UTC](https://forum.kirupa.com/t/the-sound-gets-cut-i-dont-understand-y/11623/2 "2003-01-20T10:47:28Z")

</div>

how did you add the sound?

Did you use a external movie for the background sound

or did you just put it in the timeline?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 20, 2003, 8:09pm UTC](https://forum.kirupa.com/t/the-sound-gets-cut-i-dont-understand-y/11623/3 "2003-01-20T20:09:57Z")

</div>

i just put it in the timeline

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 20, 2003, 8:28pm UTC](https://forum.kirupa.com/t/the-sound-gets-cut-i-dont-understand-y/11623/4 "2003-01-20T20:28:41Z")

</div>

the .fla can be reached at [www.autodaze.com/test.fla](http://www.autodaze.com/test.fla) just click on SAVE or OPEN when u do that

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 20, 2003, 10:09pm UTC](https://forum.kirupa.com/t/the-sound-gets-cut-i-dont-understand-y/11623/5 "2003-01-20T22:09:38Z")

</div>

sheeeeeeeesh. 4 megs of an .fla. And not only that. The pictures section on that site is 4 megs as well. maybe you wanna tone it down a little with file size

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 20, 2003, 10:18pm UTC](https://forum.kirupa.com/t/the-sound-gets-cut-i-dont-understand-y/11623/6 "2003-01-20T22:18:55Z")

</div>

The reason is because you have your sound on your timeline. When you put it on the timeline, you have to have enough keyframes to let the song completely play. To get around this, put an empty MC somewhere on your first frame.

its actions should be :

```php

onClipEvent (load) {
   testSound = new Sound(this);
   testSound.attachSound("sublime");
   testSound.start(0, 1);
}

```

and then you need to go into your library panel. Find the sublime song you have in there, and right click it. Choose “linkage”. when that window is open, you need to select “export for actionscript”. You can put a name to it now and name it “sublime”.

Then you can export your movie and everything should work fine!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 20, 2003, 11:53pm UTC](https://forum.kirupa.com/t/the-sound-gets-cut-i-dont-understand-y/11623/7 "2003-01-20T23:53:53Z")

</div>

hey danno got a unrelated question for you ,

How do you put code in a post, “php”

I heard you have to enter it one line at a time, this right or how do you do it?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 21, 2003, 12:00am UTC](https://forum.kirupa.com/t/the-sound-gets-cut-i-dont-understand-y/11623/8 "2003-01-21T00:00:26Z")

</div>

see the button below “font” that says “php” hit that. I don’t do that I just do this :

{php}

my code here

{/php}

but use brackets instead of those… use “[” & “]” instead of {.

Danno~
