Preloading Linkage Sound Prob.
Last edited by fappy : 2002-05-17 at 04:47.
I've have some sound on my mainmovie using the linkage... but when preloading the main movie, it first loads the sound because i use linkage... so the fist 15 du to 50 seconds nothing happens... The solution.. using a external swf for the sound that loads into a mc. But the problem is that i'm fermiliar with the preloader that is inside the first scene of the external swf. So if i go to options/sound i won't see that it is still loading.. Solution... swf preloader that is inside the mainmovie that loads the externl swf using the OnClipEvent. That also display the %percent value inside a txtBox... but how...
This is how i load in external swf at the moment: This is the action i assigned to the button that loads the swf into the mc
code: ------------------------------------------------------------------------ on (release) { loadMovie ("external.swf", "_root.holder"); } ------------------------------------------------------------------------
the external SWF is build with 2 scenes, in scene 1 is the preloader in scene 2 the content. The preloader on scene 1 is build like this... I've placed the following script in frame2 on scene1(preloader)
code: ------------------------------------------------------------------------ if (_this.getBytesLoaded() >= _this.getBytesTotal()) { _this.gotoAndPlay("loaded"); } percentLoaded = Math.round((_this.getBytesLoaded()/_this.getBytesTotal())*100); loadingText = "Loading content..." + percentLoaded + "%"; ------------------------------------------------------------------------
and placed a textfield called "loadingText"
on frame 3 is the following script.
code: ------------------------------------------------------------------------ _this.gotoAndPlay("check"); ------------------------------------------------------------------------
on frame 8 is the action "play"
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Preloading, Sound, Linkage, First Frame
If someone could help me with preloading sound. I know there has been several posts. I have read all of them.
All I can find is to use external .swfs using loadmovie. Can attachsound not be used at all when preloading because of the linkage in the first frame?
Thanks,
Andrea
Linkage And Preloading
Hi everyone..
I've got a problem with some symbols from my library that I've set to export. I've just found out that any such symbols will always load up on the first frame, no matter what you've got in your movie, and how it is arranged..
my question is this - is it possible to get the elements of my preloader to load into memory before the linked assets load in? At the moment my preloader doesn't appear until 70% of the way through, as most of my swf is made up of linked assets........
*****frustrated*******
if this aint possible, can anyone come up with a decent workaround? I've been rackin my brains for about 5-6 hours now, and it hurts
Preloading Linkage
ok so i need to preload an external swf. lets just call it main.swf.
in it, it has several mc's and components using linkage to load on the first frame and export for actionScript.
These components are using XML to load variables / content / other swfs
Now. Loader.swf loads main.swf into level 0 using loadMovieNum
why level 0 you ask and not level 1 ? The mc's and Components using the XML need it to be on level 0.
so how the feck am i going to preload this ?
Thanx a million in advance!
Shadetoo
Linkage And Loading / Preloading
K, since Macromedia's documentation on flash isnt that great and i cant find the answer i need to see if anyone else out there has got this figured....
Does a flash movie load differently when a library has objects with linkage? Right now my movie appears to be loading all the items with linkage before it plays a single frame, which is bad because i have a TON of linkage sounds and its screwing up my preload bar....
any help/ experience from someone out there in this?
Linkage And Preloading Problem
Hi there,
I'm making a flash movie that is using actionscript to dynmically attach movieclips to the timeline. This means that the linkage options need to be set to export in the library and the movie clip given a unique identifier.
So far so good.
However, when I come to show the streaming, my preloader is rendered useless because any movie clips with their linkage options set to export appear on the first frame. This means I've got 256k on the first frame of the movie (although it only actually contains a piece of text saying 'please wait'). This means 56k users will have to wait over a minute before they even see the preloader!
I could change the way I've dealt with the sound, but it means a lot of work in a short deadline. Is there a simpler way to work round this... Or can someone explain linkage export to me. I fear I may be a bit slow! ;-)
Thanks if you can help.
Ben.
Linkage And Preloading Problem
I have a .wav file linked to action script in my library and that all works fine but when I use the bandwidth profiler and try to see how my file will preload on the web it loads for a while with out showing my preloader, then it shows the last 1/4 of the loader in action. I'm thinking that this has to do with how flash loades objects. Does flash load linked objects first then goes to the first frame of the time line? I have chross checked my preloader and other action script to make shure there are no bugs. Any info on the subject would be great.
Linkage And Preloading Trouble
I have made this flash, multimedia thing that lets the user compose their own frame... lots of gifs etc. bout 400k, so i need a preloader. I have made and know how to make a preloader for most things but because I have used so many movieclips that are exported for actionscript into the first frame(linkage) I cant get a preloader infront of it. even if I put preload code in a seperate scene infront of my main scene it still wants to load all the clips first. If i dont export them for action script in the first frame my buttons are dead and there is no linkage at all??????????????? help
Preloading External SWF With Linkage
Hello! I am hoping someone on the boards will be able to help me with this problem. I am using a really pageflip cool program that someone was kind enough to write and share, that includes a preloader in a seperate swf file from the main swf. The problem is that the preloader does not seem to work. When I try to use the preloader it does not show, and just downloads the main swf. I am not completely sure, but I think the problem may be linkage since in the main SWF there are movies that use 'export in first frame'. If I uncheck this, then the movie will not run right. How do I get the preloader to load the movie before playing, and not just show a white screen during while the main swf downloads?
I have tried the various answers and tutorials on this site, but I can't get any of them to work right
Thank you for any help/direction you can give!
test url:
http://www.vividlilac.com/test3/
Preloading A Movie That Uses Linkage
Hi there all you guys!
I have this movie in which I load from the library 20 mp3s using Linkage. Everything works fine. If I add the preloader these mp3s will load on the first frame so normally that my preloader won't start from the begining it actually starts from 47%.
I did another movie that has a blank container that loads that big swf into and I use this movie as preloader...clasic solve to the linkage things preloding.
But now I have another problem...my sounds don't start. So if I won't use this new movie as preloader all the sound work just fine but the preloader doesn't . If I use the new movie to preload the preloader is just fine but the sound won't start.
Code used to add a sound object (in the main movie):
Scene5_sound = new Sound();
if (Scene5snd_playing!=true) {
Scene5snd_playing=true;
Scene5_sound.attachSound("Scene5Snd");
Scene5_sound.start(0,1);
if(_global.audio=="on"){
Scene5_sound.setVolume(70);
}
else{
Scene5_sound.setVolume(0);
}
}
1. Movie (in which I have the sounds) structure:
_root.main_mc so all the content is in a movie that is on the first frame.
2. Preloader movie has a container_mc (instance name) with this clasic code:
total=_root.container_mc.getBytesTotal();
loaded=_root.container_mc.getBytesLoaded();
kbloaded=int(loaded/total*100);
if(kbloaded==100){
gotoAndPlay(22);
}
percentage=Math.round(_root.container_mc.getBytesLoaded()/_root.container_mc.getBytesTotal()*100);
So basicaly my question is why all the sound are not working when using the new movie as preloader...to solve the linkage preload case.
Thanks a lot!
Dragos.
Regards,
Dragos.
Linkage; Preloading Problems
ActionScript Code:
function checkLoad(){
var lBytes = _root.getBytesLoaded();
var tBytes = _root.getBytesTotal();
var percentLoaded = Math.floor((lBytes/tBytes)*100);
loader.bar._xscale = percentLoaded;
loader.percent.text = percentLoaded + "% ";
if (lBytes>=tBytes && tBytes>0) {
if (count>=12) {
clearInterval(checkProgress);
play();
} else {
count++;
}
}
updateAfterEvent();
}
checkProgress = setInterval(checkLoad, 50);
stop();
hey guys.. i recently have a problem with my preloader.. it started out fine.. the bar starts loading from around 10 percent..
but after me preloader scene.. i attached a soundobject using the linkage stuff i learned...
and suddenly my preloader as of the first frame shoots to 64k thus making my preloader bar start from 50%...
i took out the linkage.. and there .. it works...
wats a good alternative way of attaching a sound then??
thanks!!
Preloading Problem With Library Linkage...Please Help
Please help me, i got a big problem with "library linkage action" and preloading...My swf files is nearly 250 K and there is nothing on the scene, everything is standing in the library, if i need one of these movie clips i call it with linkage name from the library...But when i starting preloading, there is nothing happening on the swf file until the all items loading...And most important that, i think library items loads first in the swf files everytime, is that possible...Please help
F8 Preloading Random Linkage Items
I've created a random movieclip loader from an array of library linkage items. After shuffling the array I randomly select the first 3 items and use the attachmovie method to attach them every 15secs.
My question is this: Can I preload the 3 random clips only? I may have up to 12 clips in the array and don't want to 'load in first frame' all these clips - the file size will be huge! Is there a way to preload the 3 random clips only?
My code is as follows:
function shuffle(items,b){
return random(2);
}
var items:Array = new Array("lib1", "lib2", "lib3", "lib4", "lib5", "lib6");
items.sort(shuffle);
var nr=0;
stage.attachMovie(items[2], "areas", 1);
timer = setInterval(pause, 15000);
function pause(){
if(nr > 2){
nr=0;
}
stage.attachMovie(items[nr], "areas", 1);
nr++;
}
Any help would be much appreciated.
Cheers
Preloading With AttachMovie()/linkage (Fla5)
Hi,
I`ve seen this problem discussed in several places but I`ve only ever seen solutions for Flash MX not Flash 5- so appologies if this has been done before.
Basically I have a movie which i preload. The movie uses quite a few MCs which are attached during the movie using attachMovie(). These MCs have a linkage property set to export the clips. In flash 5 there is no option to NOT export the clips before the first frame, as a result it seems that this prevents the preloader from showing at the outset (before about 85% of the movie has loaded in my case!).
I`ve tried several things including: placing the attached MCs offstage to allow the preloader to 'see' them; using a '_framesLoaded' varient of a preloader with the MCs on incremental frames; and loading the main movie into another movie which deals with the preloading. I`ve so far had no joy :-(
so my question is whether or not it is actually possible to preload a movie which itself uses attached MCs/linkage in Flash 5, or do I need to upgrade to MX for this - surely there has to be a way!?
any help with this will be wildly appreciated!
I`ve attached the .FLA file in case it will be useful in solving this problem.
thank you all,
andythegorilla.
Preloading Movieclips With Linkage Names?
Hi guys,
I have a flash movie with a lot of linked movieclips in my library (mc's with linkage names). I have a preloader in the beginning of the flash movie. However, the preloader doesn't show until (I guess) all those linked movieclips are downloaded first. Then the preloader starts showing, starting at something like 40% . How can I include the linked movieclips in my preloading, such that the preloader shows straight away, from 0% ?
Thanks
Symbol Linkage + Preloading Problems Solved
I had trouble when trying to display preloading information on movies that had exported symbols from their libraries, in my case sound clips if you are trying to control that sound using ActionScript.
My solution was to create a seperate 30x30 movie with the sound clip imported. Export that sound as you would in the main movie and in frame one place the following script:
sSound = new Sound(_root);
sSound.attachSound("LinkedSound");
In frame two place the following script:
stop();
_level0._root.sSound_loaded = true;
These scripts allow the sound object "sSound" to be controlled externally by the host movie. Because the linked symbol must load before even the first frame, the variable _root.sSound_loaded wil be set to "true" in the main movie only when its done loading.
In the host movie simply use the following command to load the sound movie into level1 (above the current layer):
loadMovieNum ("sSound.swf", 1);
From the host movie you can issue commands such as "_level1.sSound.setVolume(x);" to control the volume of the clip, "_level1.sSound.start(0,1);" to start it, or use any other Sound object commands you desire.
Additionally you can query the preload status of the movie whilst it's loading in a similar manner by using the command "_level1.getBytesLoaded();", but for complete peace of mind ensure to check the variable "_root.sSound_loaded"
Once again this gives the flash developer ultimate control over exported symbols in your movie's libraries.
[linkage] Preloading Linked Sounds From Library
hi there,
i know flash has problems with preloading files that use linkage... i know it has something to do with 'export in first frame'. because when you have that checked you can preload it because its on the same frame as the preloader...
but if i dont have it checked it isnt exported and when i click a button i cant hear anything...
does anybody know how to work around this? how must i preload / link my embedded sound files?
thanks for helping!
How To Use A Value Of A String Variable As A Sound Class (as Linkage Name Of A Sound File)?
Hi,
I need to use the value of a string variable as a linkage name of the sound imported in the library, I have this code:
var SoundArray:Array=new Array;
SoundArray[0]="S1";
SoundArray[1]="S2";
SoundArray[2]="S3";
var MySound = new SoundArray[0];
B1.addEventListener(MouseEvent.CLICK,PlaySound);
function PlaySound(event:MouseEvent) {
MySound.play(0,0);
}
where S1,S2,S3 is the name of the classes in the linkage name for the 3 sound files in the library.
I get this Error for the highlighted line of code:
TypeError: Error #1007: Instantiation attempted on a non-constructor.
at Untitled_fla::MainTimeline/frame1()
[F8] External SWF Preloading Little Prob...
Hello folks,
i got a little prob... i can't find the other post that i manage to
use as a tutorial i got a link there that sent me to this great site
http://gotoandlearn.com/, i used the tutorial about
"External SWF Preloading" and did everything, but one thing did go right:
the ' % ' symbol is the only thing that appears, but not counting then after a few seconds (the load ends)
the swf shows, here is the final code:
PHP Code:
var mcl:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();
mclL.onLoadProgress = function(target,getBytesLoaded,getBytesTotal) {
loader.percent.text = Math.round((getBytesLoaded/getBytesTotal)* 100) + "%";
loadpercent = "0%";
};
mclL.onLoadInit = function() {
loader._visible = false;
loader.percent.text = "";
};
mcl.addListener(mclL);
mcl.loadClip("gsb_test.swf",holder);
Preloading External Mp3 Prob In IE
Hiya,
I've been experiencing something odd... I have searched the forums, but as of yet have been unable to find anything that could help me out. Here's the deal:
I have created a Flash file that loads external .MP3s [from a totally diff server btw]. It preloads them first, and when sufficient data has been loaded, they start streaming... It all works just fine when testing it from within Flash MX [ctrl+enter], and it also works just fine in Mozilla Firefox... but, it doesn't in IE... Help!
In IE the .MP3s load BEFORE the preloader, and since they are BIG files, this freezes up the explorer for a while, until they are loaded, then it simply shows "100% loaded" and starts playing.
I sincerely hope anyone is able to tell me why it all works perfectly in Firefox and Flash [in a .EXE projector it all works just fine too] but not in IE.
I am using the following code to load the files:
ActionScript Code:
myMusic = new Sound(music);
myMusic.loadSound("http://www.filename.mp3", true);
And just the regular getBytesLoaded and getBytesTotal as I would for preloading anything else [which always works just fine too btw]
Any insight whatsoever would be really appreciated!
Thanks,
Martijn
P.S. Using Flash player 6
Sound Linkage ... Sound Distorted
I imported different mp3's in the library which I link for export in actionscript.
I then use the following actionscript (examplea) :
music = new Sound();
music.attachSound("sound2");
music.start(0,999);
The problem I have is that through linkage the mp3 sound are all distorted ! Anyone else having this problem ? Any solution ?
Thanks,
Smalco
Sound Linkage
I am tring to add linkage properties to an imported wav file. What I want to do is be able to change the audio file that is imbedded/linked into the swf file by changing the wav file and keeping the same name obviously. Can this be done? I can't figure this out. Thanks.
Sound Linkage
Is there a maximum number of sound files that can be linked to movie clips in one Flash file?
I am using empty movie clips and sound linkage to control approximately 50 sound files. I am using a separate MC for each sound file (and the first set of 10 worked fine) but many new sound clips are not playing. I have checked spelling time and again and cannot see anything out of place.
Thanks!
Sound Linkage
Hi all, I come up to a problem on sound linkage. I have a wav file in my library and I have set a linkage name so that i can control it with actionscript in a button. Let say, I save this movie with a name "soundtest". After a testing, the sound can play after i press the button. But when I use another movie to load this "Soundtest.swf" to level 2, the button doesn't work, no sound is play. Could anyone tell me what problem I have make. Down below is the script I use:
on (press) {
soundObj = new sound(mylinkage)
soundObj.start();
}
Sound Linkage
hi,
I want to use my speech in flash. when I import the soudn the pitch of sound changes automatically which I dont know how to improve. But i dint find any of this forums' memeber expert enough to tell me the solution. Now i have changed my mind. I wll really appreciate anyone who could tell me how to link the .wav file without importing it inside the flash.. that could link with a particualar frame on runtime. kindly help; this time
Sound Linkage
I want to use the Behavior action function "Stop Sound" cuze I want to stop a specific sound that has been playing from a previous scene. But I don't get what they meant when they ask for the linkage ID and the name of the sound instance. can someone explain this to me please?
Sound Linkage Id
Hi every1
I have created an 8 channel virtual drum machine but at this moment all sounds are static. I would like to select other sounds.
I have used the attach sound method. Disavantage is that you need to use an linkage identifier to link your sound.
So I was wondering if I could select other sounds dynamically by means of selection through a combo box or so. But I don't have any idea how I could link them dynamically.
So if someone has a nice example of this (and how comboboxes work - did not yet use any component so far), please let me know.
thx
Generator & Sound Linkage
Has anyone out there imported sound into flash via Generator? If so, what is up with the linkage? How does that work? Im going to go hunting on Macromedia's site ina second, but I thought I'd see if any chaps out there had an answe to this one. Thanks guys.
PRELOADER And SOUND LINKAGE HELP
OKay here's the thing,
i'm trying to preload a a movie, which has the sounds setup to be exported to symbols (LINKAGE);
now when i don't link the sounds; the preloader works freakin sweet
but when i link the sounds the preloader takes up half the load, so the preloader animation and loadbar doesn't show up at all till it's like at 50% i.e.
if the file is 94kb then the loader(in the bandwidth profiler) shows up as 47k so nothing shows up on the screen until those 47kb loads up.. and then the preloader is at least 50% done by that time....
i need help, to get around this
here is the code as it is in my actions layer:
------FRAME 1----------
loadpercent = "0%";
loadBytes = "0 of " + Math.round((_root.getBytesTotal() / 1024) * 1) / 1 + " Kb";
-----FRAME 2----------
loadPercent = (Math.floor(_root.getBytesLoaded()/_root.getBytesTotal()*100)+"%");
loadBytes = (Math.round((_root.getBytesLoaded()/1024)*1)/1+" Kb of "+Math.round((_root.getBytesTotal()/1024)*1)/1+" Kb");
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
loadPercent = "100%";
loadBytes = (Math.round((_root.getBytesLoaded()/1024)*1)/1+" Kb of "+Math.round((_root.getBytesTotal()/1024)*1)/1+" Kb Loaded");
gotoAndPlay ("main", "start");
}
-------FRAME 3------------------
gotoAndPlay(2);
the loadpercent and loadbytes display within text boxes and the loadbar works through _xscale
please help me.. how can i get the preloader to only be the 2-4k that it is, and display the full loadbar with sound linkage active.. HELP!!!!
Linkage, First Frame, Sound
Please help a newbie
I have read the 1000 postings for this problem and I'm still having problems. I need some help.
My preloader doesn't start until 30% as you all know is the problem. Can someone spell it out a little clearer. I've even used OLDNEWBIES mypreloader3.fla and had some problems...the music doesn't play at all
Here is my .zip fla for help;
http://www.rickfowlerphoto.com/andrea/main_movie.zip
It is playing here: (skip the intro movie...sound doesn't even play)
http://www.alatentimagephotography.com
I'd really really appreciate the help. I have spent numerous hours trying to figure this out. Any other sugguestions to how I have it would also be greatly appreciated!!
Thanks,
Andrea
Sound Linkage/flash MX + 5
hi
in my scene i ve got 3 layers: action, musik-loop und stop-action. in my library i got a sound which i linked ("linkage"); there i specified the "identifie", i gave it "dr" as a "name". in the same menu i clicked "linkage"-export for actionscript, -export into first frame .
i want to play my soundloop (from frame 2 on). at the beginning (on frame 1) the volume should be set to 0 (no sound),
from frame 2 on, for ex., set my volume to 100,
on frame 5 volume to 0, or maybe stop my loop.
on frame 10 i want to create a fadeout by using an if-condition.
to test the whole thing, i created a "gotoNextFrame"-button on his own layer (my 4th testlayer).
in future i want to control my soundloop with a play-button, that turns into a stop button, if clicked.
my script is built with help of the flash-reference, but the program-own flash reference doesn`t tell me where to put my script on/in; into mc or frame ?
at the moment my scripts are placed into an MC that`s placed on the action layer.
on frame 1:
onClipEvent(load)[
i=0
s=new Sound("dr");]
frame2:
onClipEvent(enterFrame)[
i=100
s.setVolume(i);]
frame5:
onClipEvent(load)[
s.setVolume(0);] -oder?: i=0
s.setVolume(0);]
loop stop would be?:
mySound.stop("dr");
frame10 (fadeout):
onClipEvent(enterFrame)[
if (i>=0)[
s.setVolume(i--);
_root.gotoAndPlay.prevFrame();]
if (i<=0)[
_root.gotoAndStop(1);]]
on stop ebene:
frame1-stop
frame3-stop
frame6-stop
please help me!!! i m actually a designer who respects good actionscript, but i don`t know how to do it all by myself.
maybe there are even better solutions than mine, but it has to be exported in flash 5, (and no "stopAllSounds").
biiiiiig thanx to all outside the flashy world!
Problems With Sound Linkage On MX
I am building a movie that contains allot of sound objects,
that i export using linkage.
the problem is that the first frame is so big due to all those sounds,
that by the time that the preloader movie comes in it's all over.
So i tried to export the sound not in first frame,
but then it doesn't work. The sounds are not there to use.
Any idea how sounds work when exporting not in first frame?
Sound Object And Linkage
I have several frames in my movie. Each frame has different audio. I have built a movie clip that I called soundObject and placed it on a frame that lasts the entire movie. Here is the code that I have put on soundObject MC:
onClipEvent(load){
num=_root._currentframe;
playSound="VO"+num;
thisSound= new Sound(this);
thisSound.attachSound(playSound);
thisSound.start();
}
onClipEvent(enterFrame){
if(_root._currentframe<>num){
num=_root._currentframe;
playSound="VO"+num;
thisSound.stop();
thisSound.attachSound(playSound);
thisSound.start();
}
}
Under linkage on my audio files I have checked linkage and export in first frame and titled them VO1, VO2, etc.
This all works fine, each page has the correct audio.
The problem happens when a page doesn't have an audio file with it. For example if there was a VO1, and not a VO2, VO1 would play on page 1 and page 2. How could I get nothing to play on page 2?
Thanks for your help.
_t
Loading Sound With Linkage
Hi there
can u help plz???
I´m give a name for a sound file on the linkage option, for me to use it on actionscript, but i´m having a problem loading the file, it start to load before my loading code starts!! I let the "export on first frame" checked on the linkage propreties. If I uncheck it, the movie loads normaly, but the sound dont play... :/
thank u all
Mike
Linkage And Sound Issue
using flash mx 2004...
Hey everyone! I just changed my linkage setting for my sounds (MP3's).
I unchecked the "export in first frame" box because it was messing with
my preloader. Now my preloader works fine but my sounds don't work.
When you click on my "Play" button nothing happens. I am sure I am just
missing some simple step here (hopefully!). I have this standard code
(sound behavior) on my play button:
//Play Internal Sound Behavior
if(_global.Behaviors == null)_global.Behaviors = {};
if(_global.Behaviors.Sound == null)_global.Behaviors.Sound = {};
if(typeof this.createEmptyMovieClip == 'undefined'){
this._parent.createEmptyMovieClip('BS_mymusic',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.mymusic = new Sound(this._parent.BS_mymusic);
} else {
this.createEmptyMovieClip('_mymusic_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.mymusic = new Sound(this.BS_mymusic);
}
_global.Behaviors.Sound.mymusic.attachSound("music .mp3");
if (true) {
_global.Behaviors.Sound.mymusic.start(0,1);
}
//End Behavior
}
Thanks for the help!
[CS3] Problem With Sound Linkage
Hi, got a problem hope someone can help me with.
I've got a large flash intro movie with sound which weighs around 600kb.
The intro actualy loads fine but the other page components around it take too long to load so I've tried making a transparent small movie with a simple "loadMovie" action in it, so the HTML will first load a small 1kb movie and not the larger one. But here's the problem- the large movie has the sound in the library and not on the timeline, it has an export to actionscript selected on the linkage panel because I want to be able to stop and replay it easily. When I loaded it by itself it plays fine, but when it loads into the container movie the sound won't play. I suspect it has something to do with the sound export because when I put the sound in the container movie's library it plays again, but then the container movie also weighs 600kb which is off course not the intention. Is there anyway to bypass it without using runtime sharing, where I need to know all the movies final URL's?
Thanks
[CS3] Linkage For Dinamic Sound
hello,
I want to load a dynamic sound into flash and give him a linkage I would like to get some information about that...
explain: I want to replace the sounds that I have into my flash that load by the linkage into the scene,
thanks
Export Sound- Linkage
Ok i have a layer on my movie dedicated to music. I placed sound in, editted length etc. Now, I have it streaming and when I export the movie it is only 150k with a full movie and .mp3, great. When i go into library and click linkage export on the music symbol it makes it 7000k, why does it do this and does it make a difference exporting the symbol because I can hear the sound over the internet without having to export the symbol? What is the purpose of exporting the sound through library under linkage anyways?
Sound Linkage Question?
When linkage, i choose export in Actionscript without checked export in first frame. The sound not play.
If I checked both export in Actionscript and in first frame, the sound work well. But if i have a preloader in first frame,it not work properly 'cause of bandwidth(the loading appears late(often after> 50 %)) .
Any idea? Thx U,
---
What is the function of export in runtime sharing. How it works?
Linkage Of A Sound File
Hi,
I am trying to use a sound via attachsound in my flash file. The problem is, the sound is "exporing into the first frame" and causing my preloader not to load. So I removed the "Export in First Frame" checkbox in Linkage Properties. And now the sound will not export at all. Can you please tell me how I can make the sound to export, but not in the first frame?
Thanks,
Sravani
Sound Linkage Issue?
Hey,
Alright I have sound linkage on my buttons, and when I publish the swf in Flash and rollover over the buttons I have the can hear the 'Sound',,, BUT for some reason when i preview the swf on my website u can not hear any rollover over sound!!!????? Anyone no how to solve this problem???
Sound Linkage Issue?
Sound Linkage Issue? Hey,
Alright I have sound linkage on my buttons, and when I publish the swf in Flash and rollover over the buttons I have the can hear the 'Sound',,, BUT for some reason when i preview the swf on my website u can not hear any rollover over sound!!!????? Anyone no how to solve this problem???
Sound Linkage Loading
I have a bunch of sounds in my movie however to make a preloader I turned of ("Load into first Frame") in their linkage (So the preloader wouldn't lag) but now when I use Sound.attachMovie to get them they dont play. Is there a way to load them into the 3rd frame instead of the first without writing a line of actionscript for each sound??
PRELOADER And SOUND LINKAGE ISSUES
OKay here's the thing,
i'm trying to preload a a movie, which has the sounds setup to be exported to symbols (LINKAGE);
now when i don't link the sounds; the preloader works freakin sweet
but when i link the sounds the preloader takes up half the load, so the preloader animation and loadbar doesn't show up at all till it's like at 50% i.e.
if the file is 94kb then the loader(in the bandwidth profiler) shows up as 47k so nothing shows up on the screen until those 47kb loads up.. and then the preloader is at least 50% done by that time....
i need help, to get around this
here is the code as it is in my actions layer:
------FRAME 1----------
loadpercent = "0%";
loadBytes = "0 of " + Math.round((_root.getBytesTotal() / 1024) * 1) / 1 + " Kb";
-----FRAME 2----------
loadPercent = (Math.floor(_root.getBytesLoaded()/_root.getBytesTotal()*100)+"%");
loadBytes = (Math.round((_root.getBytesLoaded()/1024)*1)/1+" Kb of "+Math.round((_root.getBytesTotal()/1024)*1)/1+" Kb");
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
loadPercent = "100%";
loadBytes = (Math.round((_root.getBytesLoaded()/1024)*1)/1+" Kb of "+Math.round((_root.getBytesTotal()/1024)*1)/1+" Kb Loaded");
gotoAndPlay ("main", "start");
}
-------FRAME 3------------------
gotoAndPlay(2);
the loadpercent and loadbytes display within text boxes and the loadbar works through _xscale
please help me.. how can i get the preloader to only be the 2-4k that it is, and display the full loadbar with sound linkage active.. HELP!!!!
Sound - Linkage - Export For Actionscript
Hey,
question-
-if i have a sound in my library that i want to export to be able to call with actionscript, is there a way for it to work WITHOUT having to export to the first frame?
I'm wanting to call the sound on a button press.
If it has to be done this way, i can make a preloader mivie separate to avoid the lag on preload, but just wanna make sure i'm learning as i go.
BTW-
- i do know that i can add sound in the authoring tool when i make my buttons, but i'm experimenting a little. I have one button that is the white key of a piano and one that is the black key. I used several instances of the one symbol to make a keyboard and have recorded a full octave range of a piano. I wanna try to attach the sound thru script on each of the instances to call the appropriate sound. On release, the sound will stop. Same would be true for rollOver and rollOut
thanks,
-myk
[Edited by mykrob on 09-05-2002 at 01:43 PM]
Sound-linkage (using FlashMX / Exp. In Flash5)
hi
in my scene i ve got 3 layers: action, musik-loop und stop-action. in my library i got a sound which i linked ("linkage"); there i specified the "identifie", i gave it "dr" as a "name". in the same menu i clicked "linkage"-export for actionscript, -export into first frame .
i want to play my soundloop (from frame 2 on). at the beginning (on frame 1) the volume should be set to 0 (no sound),
from frame 2 on, for ex., set my volume to 100,
on frame 5 volume to 0, or maybe stop my loop.
on frame 10 i want to create a fadeout by using an if-condition.
to test the whole thing, i created a "gotoNextFrame"-button on his own layer (my 4th testlayer).
in future i want to control my soundloop with a play-button, that turns into a stop button, if clicked.
my script is built with help of the flash-reference, but the program-own flash reference doesn`t tell me where to put my script on/in; into mc or frame ?
at the moment my scripts are placed into an MC that`s placed on the action layer.
on frame 1:
onClipEvent(load)[
i=0
s=new Sound("dr");]
frame2:
onClipEvent(enterFrame)[
i=100
s.setVolume(i);]
frame5:
onClipEvent(load)[
s.setVolume(0);] -oder?: i=0
s.setVolume(0);]
loop stop would be?:
mySound.stop("dr");
frame10 (fadeout):
onClipEvent(enterFrame)[
if (i>=0)[
s.setVolume(i--);
_root.gotoAndPlay.prevFrame();]
if (i<=0)[
_root.gotoAndStop(1);]]
on stop ebene:
frame1-stop
frame3-stop
frame6-stop
please help me!!! i m actually a designer who respects good actionscript, but i don`t know how to do it all by myself.
maybe there are even better solutions than mine, but it has to be exported in flash 5, (and no "stopAllSounds").
biiiiiig thanx to all outside the flashy world!
Sound Linkage Problem With Flash Mx
I am building a movie that contains allot of sound objects,
that i export using linkage.
the problem is that the first frame is so big due to all those sounds,
that by the time that the preloader movie comes in it's all over.
So i tried to export the sound not in first frame,
but then it doesn't work. The sounds are not there to use.
Any idea how sounds work when exporting not in first frame?
Sound Linkage? Export In First Frame?
mmm ok, ive got a littly mixer going
here:
http://ijsr32.infj.ulst.ac.uk/~10214...j-ni/mixer.swf
and the sounds are in the library and there linked to the button and exported on the first frame.
only problem is my loader doesnt show up until it nearly loaded.
My question is is there any way to export the sounds on the 10th frame say?
thanks
Slinky
Question About Sound Loading Via Linkage
hi to all. i want to know how can i insert a large sound clip to a movie (via library linkage), that doesn't load at the begining on the timeline. i want to control the soundclip via scripting, though everytime the sound clip loads first - on a first frame, even before a preloader. the preloader must loads itself up first. i want to know how to solve this. i want to keep all in one file, you know. thnx in advance for your help/hint.
creedence
LoadMovie And Sound Object Linkage
Hey guys,
Using Flash MX.
Ive made a small movie which attatches a sound from the lib and then raises or lowers the volume on or off upon a button...now this works fine stand alone...but when I try and loadMovie this into another movie, it wont load.
I have no ideas why. Im sure itll be something silly and stupid, but this is my first time playing with the sound object, so its a little beyond me.
If anyone can help, itd be greatly appreciated.
Find attatched. Ive cut the full length MP3 out and just thrown a small one in.
Cheers.
BeerJ
|