Reply
Actionscript 2 - sound problem
Old 03-31-2008, 06:37 PM Actionscript 2 - sound problem
Extreme Talker

Posts: 249
I am create Flash menu. This menu have atached on each button simple sound lenght 1.08 seconds. The pages are very light and when I click on button only half or less sound is comming out before I get new page. This stop my sound. I am not very good in AS and I don't know how to play full sound track and then start to load a new page. I was try some functions from Internet but without result. Any help is welcome.

Here is my AS:

Code:
on(release) { 
clickSound = new Sound(); 
clickSound.attachSound("CLICK"); 
clickSound.start(); 
getURL("o_nama.php", "_self"); 
}

Shivaji
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
When You Register, These Ads Go Away!
     
Old 03-31-2008, 06:57 PM Re: Actionscript 2 - sound problem
vectorialpx's Avatar
Super Talker

Posts: 128
Name: irimia octavian
Location: Romania
you play the sound and redirect why?
trie to add the sound at the up button frame... is more simple
__________________
my photos, my website, creation lab
vectorial pixel web services :: and, sorry for my English !
vectorialpx is offline
Reply With Quote
View Public Profile Visit vectorialpx's homepage!
 
Old 03-31-2008, 07:15 PM Re: Actionscript 2 - sound problem
Extreme Talker

Posts: 249
Quote:
you play the sound and redirect why?
This is photographer store and sound is cameara click. The sound is not playing all time. I would like to play sound when button is pressed down and then start to redirect on right page.
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Old 04-01-2008, 05:44 AM Re: Actionscript 2 - sound problem
vectorialpx's Avatar
Super Talker

Posts: 128
Name: irimia octavian
Location: Romania
you can make 2 buttons: with and without sound on UP..
anyway... in the actionscript


// on the frame:
sunet = new Sound();
sunet.loadSound('external_sound.mp3');
// it loads with the page

// on the button
on (press) {
sunet.start();
}
on(release){
do_something else... redirect or else
}
__________________
my photos, my website, creation lab
vectorial pixel web services :: and, sorry for my English !
vectorialpx is offline
Reply With Quote
View Public Profile Visit vectorialpx's homepage!
 
Old 04-01-2008, 06:19 AM Re: Actionscript 2 - sound problem
Extreme Talker

Posts: 249
Thanks, I will try ASAP.
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Old 04-01-2008, 06:51 AM Re: Actionscript 2 - sound problem
Extreme Talker

Posts: 249
Ahhhh, it is not work. Again I got page before sound finish. I need some type of delay but I don't know how to.
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Old 04-01-2008, 10:40 AM Re: Actionscript 2 - sound problem
vectorialpx's Avatar
Super Talker

Posts: 128
Name: irimia octavian
Location: Romania
aa... you need the sound to be finished

on (release) {
sunet.start();
sunet.onSoundComplete = function() {
getURL('or_what_ever');
}
}
__________________
my photos, my website, creation lab
vectorial pixel web services :: and, sorry for my English !
vectorialpx is offline
Reply With Quote
View Public Profile Visit vectorialpx's homepage!
 
Old 04-01-2008, 12:35 PM Re: Actionscript 2 - sound problem
Extreme Talker

Posts: 249
Thanks a lot vectorialpx, I got it! It is not working with
sunet.loadSound('external_sound.mp3');
but I am include your function in my script. What the best, yesterday I am try the same think but it is not work because I didn't close and reopen window. I am just refresh and this is reason why is not work properly. Small mistake big problem. Thanks again.
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Reply     « Reply to Actionscript 2 - sound problem
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14294 seconds with 13 queries