To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 06-30-2007, 02:10 PM   #1
Heirattic
Senior Member
 
Join Date: Nov 2004
Posts: 286
[F8] load external swf with sound

I have a site im making, and created the site sounds/music in a seperate swf.

I wanted to know how do I load this into my site in the first frame, and then have it play looped without restarting should someone go back to the first frame? (you know so the sound doesnt play again over whats playing already)
Heirattic is offline   Reply With Quote
Old 07-01-2007, 08:15 AM   #2
a_modified_dog
FK'n_dog
 
a_modified_dog's Avatar
 
Join Date: Apr 2003
Location: "aaarf"
Posts: 9,176
Code:
// external movie-
_global.sndtrk = new Sound(this);
sndtrk.attachSound("my_trk");
sndtrk.start(0, 999); // seconds offset, loops

// main movie
function init(){
if(!running){
loadMovieNum("external.swf" 1000);
running = true;
}
};

init();
very similiar to code i posted to your other thread
a_modified_dog is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash Newbies

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:58 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.