Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 17th, 2003, 06:36 PM
zerolimit zerolimit is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 5 zerolimit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to zerolimit Send a message via Yahoo to zerolimit
Unhappy Loading external music

Well I am trying to Load a external music SWF file and the file loads great but the music doesn't play. I am using this code
--------------------
on (release) {
_root.contents.loadMovie("data.swf");
}
--------------------

So now I dont know what to do. If you guys have any suggestions on what is the best way to load music the FASTES way to do if possible (Fastes I mean is the Loading time) If you guys know a better way please show me Thank you very much

Reply With Quote
  #2  
Old February 17th, 2003, 07:34 PM
zerolimit zerolimit is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 5 zerolimit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to zerolimit Send a message via Yahoo to zerolimit
some could please help I really need this

Reply With Quote
  #3  
Old February 18th, 2003, 01:05 AM
bret bret is offline
flash junkie
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: CO, USA
Posts: 172 bret User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 38 sec
Reputation Power: 6
Send a message via Yahoo to bret
hey man. what do you mean by external music .swf? Did you import the sound and drag it on to the layer? or did you use attachSound to attach the sound from the library, or did you load the sound in using the loadSound method?

1. if you have a timeline that is just sound, it should play automatically (it will act like a normal sound timeline)

2. if you used attachSound, you need to tell your sound object to play:

mySound = new Sound();
mySound.attachSound("bgmusic");
mySound.start();

3. if you used the loadSound, you have two options, one is to load the sound into a sound object, and the other is to set streaming to true. The latter way is probably the fastest method, although you can only control the volume and start/stop of the sound.

//load sound without streaming
mySound = new Sound();
mySound.loadSound("mymp3.mp3",false);
mySound.onLoad = function(){
mySound.start();
}

//load sound with streaming
loadSound("mymp3.mp3",true);

with streaming, it will automatically start playing once adequate info has been loaded.

cheers,

bret

Reply With Quote
  #4  
Old February 18th, 2003, 09:41 PM
zerolimit zerolimit is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 5 zerolimit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to zerolimit Send a message via Yahoo to zerolimit
Its not a external mp3 its a external swf file with muisc playing.

Reply With Quote
  #5  
Old February 19th, 2003, 01:28 AM
kingroy kingroy is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 1 kingroy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Try it :


on (release) {
_root.contents.loadMovie("data.swf",1);
}


or

on (release) {
_root.contents.loadMovie("data.swf","1");
}


may be first is right

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Loading external music


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway