-
Hi folks,
Well I am stuck in particular problem and I am sure somebody of you can help me. I have a sound file in the library and I am using this file on timeline for different actions many times. I want to call the sound from the library. So that my movie size is reduced considerably, I am unable to figure out how to call a sound file from the library using actionscript. I am using flash 5.
Please bail me out!!!
Puneet
-
hi puneet,
if u r using f5 then i will suggest do not use sound file from library.
caus it load sound at frist fram and it affect on ur preloader.[small] if u r using for web [/web]
btw this is actions for loading sound
Code:
mysound = new Sound();
mysound.attachSound("track10");
mysound.setVolume(100);
one more thing press ctrl+L >> >> right click ur sound >> select linkage >> click Export this symbol >> give unique name in identifer box . here i used track10
-
Thanx milind
Thanx Milind,
Is there any other way to get the sound and also not increasing my file size.Milind, I got an idea what if call the sound in different scene...rather than 1st scene so...thereby not affecting our preloader
Puneet
FREE UR MIND
-
it dosent matter ur calling at frist scene or second.
when u r used attachsound it alway attached at frist frame of ur movie.
just check bandwidht profiler
open ur fla file & press ctrl+enter then go to view >> bandwidht profiler
or
file >> publish settings >> flash >> Generate size report
it will create txt file. check that file.
to avoid this use mx or load ur sound using external swf file or use ur sound without attachmovie action.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|