Music.swf Loading Into Main.swf Problem
Hi folks,
I got a Music.swf which just plays the musicloop, now I want to load it into the Main.swf: _root.PlaceMusic.loadMovie("Music.swf"); It gets loaded, but the Music dosen't plays, why that? any suggestions?
FlashKit > Flash Help > Flash ActionScript
Posted on: 08-22-2002, 08:43 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Loading Music Seperate Of The Main Feature
What I'm trying to do is make 2 flash files (swf), one with the main feature and the other with the sound track I have playing in the background, then have them load at the same time and play out like normal.
How Do I Get My Music To Fade In When My Main Movie Is Finished Loading?
There, the question asks most of it.
I am having trouble, I need to make an external .swf that loads my background music once my main movie has finished loading.
Let's call them "intro.swf" for the main movie, and "audio.swf" for the music of course.
I also want the music to fade out when I hit a "mute" button and fade back in when I hit the "unmute" button.
I have been reading some tut's on this but I am getting mixed up.
Please help!
Thanks,
How? Loading Seperate Music Player .swf Into Main Site Prob.
hey all!
Ok something that I still don't really understand, have tried to modify afew flas but with no luck.
Anyhow to the point. I have a main fla file with all my content in it and a litlte music player that plays 3 to 4 external swfs with music &animated LEDs in it. Anyways right now the music player itself is built into my main fla file. I would like to move the player a little bit so its coordinates change.However obviously when i do this and test movie the external music swfs that load have little LED moving animations and the 2 files just dont match up, so they load into the wrong area. I also tried to move the LED elements exactly the same amount as i did with changes in the main fla in moving the music player graphics but still not working. Do you think these files are working with "tell targetting" or? Im sorry im awful with code so..
Any good and simple tutorials for a numb nut like me would be appreciated on this topic so i can understand whats really going on here. Normal logic doesnt seem to be getting me all that far.
Tks!
Main Flash Loading External Swf Then Back To Main
SOLVED
Heres a rather complicated situation I am in.
I put together an after effect file and exported it as an swf. Work perfectly. There is no FLA
In my flash file, frame 1 is a preloader. Frame 2 is an Action script that says
loadMovieNum("page1.swf", 1);
And voila, the movie start to play.
Problem is, it doesn't go back to the main on frame 3.
Solution-
Using sorenson squeeze theres an option to load/unload movies that you compress into swfs. There was a stop at the end of my movie with no fla file.
Music Stops After First MC On Main Timeline?
Hello!
My animation has a song and the animation needs to sync up with it!
So I created a movie clip for the sound and within the frames of that MC I revealed the entire wav(the little music line thing).
I dragged this song MC to the MAIN timeline on its own layer, set it to stream, and it completely stops playing the song as soon as it gets to the end of the first MC (where the second MC is supposed to pick-up).
Why? Anything I can do to make it play throughout the animation?? Afterall, now all MCs are dragged onto one main timeline?!
Please help...thnx!
michelle
Preloading Music With Main Movie
Hello,
Im still working on my music problem. I am loading a external mp3 in with my preload code and it doesnt seem to preload the music with the rest of the movie...
When I load my movie on the server and watch through the intro the music loads right on time, but when I hit the skip intro button the music doesnt play. Which I believe, watching the intro give the file enough time to download the song into cache, but skiping the intro doesnt, which means my preloader code isnt preloading the music correctly. Any help is greatly appreceated.
Here is my code:
ActionScript Code:
// Load Music
soundtrack = new Sound(_root.soundObject);
soundtrack.loadSound("soundtrack.mp3", false);
// get size and calculate %
soundLoaded = _root.soundtrack.getBytesLoaded();
soundTotal = _root.soundtrack.getBytesTotal();
sofar = _root.getBytesLoaded();
total = _root.getBytesTotal();
percent = (sofar+soundLoaded)/(total+soundTotal);
percentdisplay = Math.floor(percent*100)+"%";
// when done preloading: start
if (percentdisplay == "100%") {
_root.gotoAndPlay("start");
}
And on the frame I want the music to play the code is
ActionScript Code:
onClipEvent (load) {
_root.soundtrack.onLoad = soundPlay();
function soundPlay() {
_root.soundtrack.start(0, 0);
}
}
Play Music In Main Movie From External SWF
hi
i have created an swf that i am using as a music box thing (contains all the actionscripting for it to work and music). this works fine on its own.
i can load it into my main movie into the correct empty MC, but it doesn't work, no music plays.
the code i have used in the main menu is:
PHP Code:
loadMovie("kol_musicbox.swf",musicEmpty_mc);
how do i get it to play the music?
please help
chris
Streaming Music Slowing Down Main Movie..
Hi All. I have a main flash movie (40fps) and within it on level 1 another flash movie loads that plays a song (10fps)..which I used swiftmp3 for. When the music track is loaded and playing the main animations and page are Slooooow. any idea's all you genius's? thanx much!
Loading Main MC Inside Main MC
Hello, Can I ask a question? I have fiinsihed Lazaro Claiborne's
tutorial on "Building A Simple Website."
It works great. My question is - if this makes sense: I want
to put a main2.swf inside my main.swf. Inside of main.2, I
wanted it to have a menu that would also call a .swf file(s)?
I want to make a site on space for my kids at school. In
going to some of these sites, they get lost with overkill
of data. My kids attention level is the third grade. I can
keep their focus really good with Images as I try to teach
them this section of science.
I wanted Main to hold a menu of Planets, Nebulas, etc.
When I click Planets to open that .swf, I wanted a menu in
that .swf to show each planet close up for them to see one
by one.
I saw some things in the forum that seem to come close, but
I dont know enough yet to know if they actually fit what I am
trying to ask?
Thank You - Skyler A. 1/20/07
Loading A Movie From A Movie On Main Timeline, To A Specific Frame On Main Time Line
I need help loading a movie from a button in a movie on the main timeline. To a specific frame on the main timeline.
i.e. I have a navigation movie, in it is a load of buttons. I want to load separate movies to a blank movie on a specific frame on the main timeline.
I guess I am having target problems, I can load the movie in the main timeline, but not the frame i want it or the the blank movie in that frame.
Loading .swf Files While Main Movie Clip Is Loading
Hello,
I know How to do a Loadmovie command, but I can only get it to work when I goto the Movie Clip that I have that command in. For ex:
In movie clip B I have a command: loadMovie ("Submovie.swf", "_root.MovieClipB");
Which works fine.
What I want to do is while movie clip A is playing I what a command to Start the Load movie function into MovieClip B.
I have tryed many diff. commands and Cannot get it to work
Any help?
Thanks
Loading Main Timeline Diff. From Loading External Swf's?
Last edited by enkriptid : 2008-06-30 at 04:16.
hey peoples, im still learning how to load things , my methods are working so far..
what ive been doing to load external swfs is using a intermediate "loading swf" that works between the main timeline and the desired swf to be loaded.. so far it works and is simple enough for me to work with now, but my question is, how do i go about preloading the main timeline if there are mc's being exported .. i tried my previously mentioned method but no dice.. if theres a rock-solid technical answer id like that..my goal is to have most of my site(illsci.com) in actionscript .as files, doc. classes and xml as of now so im looking for a method i can implement using script if i can, if there is one. perhaps a metatag trick of some sort
[AS] Loading Main Image While Loading Thumbnails
Hello,
I've got a custom gallery of sorts going on and there's a problem with it... There's 146 photos that have thumbnails loaded in and when clicked open up a larger photo in the presentation.
What happens is while the thumbnails are loading, if one that has loaded is clicked, the main image movieclip runs, but the photo itself doesn't load. It won't load until all the thumbnails are loaded in.
Is there a way to tell the clip to load it too? Or interrupt the thumbnail loading process then restart once the loaded image has completed?
Here's what I'm using...
[Thumbnail loader]
ActionScript Code:
stop();
var tSpacer:Number = 100;
var imagesT:Array = [];
var imagesM:Array = [];
var thisWid:Array = [];
var thisHgt:Array = [];
var imgNum:Number = 0;
var loadthis = "http://www.hpiracing.com/swf/2007/b2v/photoloader.php";
var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = parseMe;
import flash.display.*;
function loadBitmapSmoothed(url:String, target:MovieClip)
{
// Create a movie clip which will contain our
// unsmoothed bitmap
var bmc:MovieClip = target.createEmptyMovieClip("bmc", target.getNextHighestDepth());
// Create a listener which will notify us when
// the bitmap loaded successfully
var listener:Object = new Object();
// Track the target
listener.tmc = target;
// If the bitmap loaded successfully we redraw the
// movie into a BitmapData object and then attach
// that BitmapData to the target movie clip with
// the smoothing flag turned on.
listener.onLoadInit = function(mc:MovieClip)
{
mc._visible = false;
var bitmap:BitmapData = new BitmapData(mc._width, mc._height, true);
this.tmc.attachBitmap(bitmap, this.tmc.getNextHighestDepth(), "auto", true);
bitmap.draw(mc);
};
listener.onLoadStart = function(targetMC:MovieClip)
{
//trace("started loading "+targetMC);
targetMC._parent.mc_photoPreloader._visible = true;
targetMC._parent.mc_photoPreloader._width = 0;
};
listener.onLoadProgress = function(targetMC:MovieClip, lBytes, tBytes)
{
targetMC._parent.mc_photoPreloader._width = (lBytes/tBytes)*100;
};
listener.onLoadComplete = function(targetMC:MovieClip)
{
border._visible = false;
targetMC._parent.mc_photoPreloader._visible = false;
};
// Do it, load the bitmap now
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(listener);
loader.loadClip(url, bmc);
}
function parseMe(success:Boolean):Void
{
trace("XML Loaded");
if(success)
{
thisChild = this.firstChild.firstChild.childNodes;
numItems = thisChild.length;
//trace(thisChild);
//trace("Loading " + numItems + " XML entries...");
for(i=0; i<numItems; i++)
{
//trace(thisChild[i].childNodes[1].firstChild.nodeValue + "
");
randMax = 5;
var rotRand:Number = random(randMax);
var rotRand2:Number = random(randMax);
if(rotRand > (rotRand/2))
{
rotRand2 = -(rotRand2);
}
mc_photoholder.attachMovie("mc_photoLoader", "mc_photoLoader" + i, mc_photoholder.getNextHighestDepth());
mc_photoholder["mc_photoLoader" + i].mc_photoPreloader._visible = false;
mc_photoholder["mc_photoLoader" + i]._y = (tSpacer * i) - 5;
mc_photoholder["mc_photoLoader" + i]._x = rotRand2;
mc_photoholder["mc_photoLoader" + i]._rotation = rotRand2;
//trace("Loading clip " + thisChild[i].childNodes + " into " + mc_photoholder["mc_photoLoader" + i].mc_photohere);
imagesT.push(thisChild[i].childNodes[0].firstChild.nodeValue);
imagesM.push(thisChild[i].childNodes[1].firstChild.nodeValue);
thisWid.push(thisChild[i].childNodes[2].firstChild.nodeValue);
thisHgt.push(thisChild[i].childNodes[3].firstChild.nodeValue);
//var thisWid:Array = [];
//var thisHgt:Array = [];
}
loadImages();
}
}
function loadImages():Void
{
var imgTotal:Number = imagesT.length;
//trace("imgTotal = " + imgTotal);
loadImg = imagesT;
loadBigImg = imagesM;
widths = thisWid;
heights = thisHgt;
for(j = 0; j < imgTotal; j++)
{
thisMc = _root.mc_photobarleft.mc_photoholder["mc_photoLoader" + j];
thisMc._highquality = 2;// = true;
thisMc.which = loadBigImg[j];
//trace("W = " + widths[j] + " and H = " + heights[j]);
thisMc.thisWid = widths[j];
thisMc.thisHgt = heights[j];
//trace("Which = " + thisMc.which);
loadBitmapSmoothed(loadImg[j],thisMc.mc_photohere);
thisMc.onRelease = function()
{
//trace("MC was clicked.");
var bigPicHolderMC:MovieClip = _root.mc_photoBigAnim.mc_bigPhotoHolder.mc_photoBigLoader;
var bigPicMC:MovieClip = bigPicHolderMC._parent._parent;
var bigPicFrameNo:Number = bigPicMC._currentframe;
//trace("Current Frame = " + bigPicFrameNo);
if(bigPicFrameNo == 1)
{
bigPicMC.play();
}
bigPicMC.which = this.which;
bigPicMC.thisWid = this.thisWid;
bigPicMC.thisHgt = this.thisHgt;
//trace("Which = " + this.which);
bigPicMC.unloadPhoto();
bigPicMC.loadBigPic();
}
}
}
mc_photodragger.onPress = function()
{
this.startDrag(false,108,0,108,250);
}
mc_photodragger.onRelease = function()
{
this.stopDrag();
}
mc_photodragger.onReleaseOutside = function()
{
this.stopDrag();
}
mc_photodragger.onEnterFrame = function()
{
//trace(this._y);
}
mc_photoholder.onEnterFrame = function()
{
//0 - 250
var maxDrag:Number = 250;
var curDrag:Number = mc_photodragger._y;
var perc:Number = Math.round(((curDrag/maxDrag)) * (this._height - maxDrag - tSpacer));
//trace("Perc = " + perc)
this._y = -(perc);
}
trace("Loading XML");
myXML.load(loadthis);
[Main Image Loader]
ActionScript Code:
var which:String;
var thisWid:Number;
var thisHgt:Number;
var maxRight:Number = 500;
var keepmoving:Number;
var playStatus:String;
mc_bigPhotoHolder.mc_photoPreloader._visible = false;
mc = new MovieClipLoader();
preload = new Object();
mc.addListener(preload);
function loadBigPic()
{
var thisTarget:MovieClip = this.mc_bigPhotoHolder;
//trace("W = " + this.thisWid + " and H = " + this.thisHgt);
mc.loadClip(this.which, thisTarget.mc_photoBigLoader);
//trace("New num = " + (Number(this.thisWid) + 20));
var bgWid:Number = Number(this.thisWid) + 20;
var bgHgt:Number = Number(this.thisHgt) + 50;
var thisY:Number = Math.round((maxRight - (bgWid - 20))/2);
trace("Moving photo to " + thisY);
thisTarget.mc_photoBigBg._width = bgWid;
thisTarget.mc_photoBigBg._height = bgHgt;
thisTarget._x = thisY;
thisTarget.mc_photoPreloader._y = bgHgt - 20;
}
preload.onLoadStart = function(targetMC)
{
//trace("started loading "+targetMC);
targetMC._parent.mc_photoPreloader._visible = true;
targetMC._parent.mc_photoPreloader._width = 0;
};
preload.onLoadProgress = function(targetMC, lBytes, tBytes)
{
targetMC._parent.mc_photoPreloader._width = (lBytes/tBytes) * thisWid;
trace("thisWid = " + thisWid);
};
preload.onLoadComplete = function(targetMC)
{
border._visible = false;
targetMC._parent.mc_photoPreloader._visible = false;
};
Please let me know if it can be done.
Thanks!
Loading Main Swf While Loading Swf Is Running, Is That Possible?
Hi
I have one intro movie, called intro.swf. In it is one button which allows to skip the intro.
If you skip or if the intro is over you'll jump to site.swf.
Now I wonder if there is a way that the site.swf loads while the intro is running. So if the intro is skipped or over it wan't take as look to load the site.swf
The site is online http://www.arjero-webdesign.lu
Loading Movie Into Main Timeline From Movie Clip Within Main Movie
Hi there,
I'm having major difficulties loading external SWF's into my main movie. The button actions are in a movie clip within the main movie. I've used the following AS to load in my external SWF files on higher levels:-
mybutton_bn.onRelease {
loadMovieNum("two.swf",1);
unloadMovieNum(2);
unloadMovieNum(3);
unloadMovieNum(4);
unloadMovieNum(5);
}
Similarly, my external text files are not loading!
myLoadVars = new LoadVars();
myLoadVars.onLoad = function() {
my_txt.htmlText = myLoadVars.myHTMLdata;
}
myLoadVars.load("textfile.txt");
All works fine until I upload to the server. It's really driving my around the bend. Any suggestions will be gratefully received.
Many thanks
Q.
Loading .txt In A .swf Which Is In A Main .swf.... ... Please
hi !
I know...I've seen other posting with the similar problem but I can't figure it out...
I have a main.swf file that successfully load a within.swf file.
That within.swf loads the external text.txt file when alone but not when I try from the main.swf
All files are in the same folder
I have the following in the within.swf :
loadVariables("text.txt", "within.swf");
and in the main.swf:
loadMovie("within.swf",MCzonecible);
Anybody can help ?
thanks....
[MX] Loading Different .swf's Into Main
Ok, so here's my site so far:
http://www.afaphotography.com/Jina/test.html
When the main movie loads, it automatically loads in a smaller movie which is the intro of the transitioning pictures. However, I need for whenever the menu is opened that when you click on the corresponding button, the movie for each button loads in place of the current one playing. Does this make sense?
[F8] //loading Swf Into Main Swf ?
Hi,
I'm trying to load two swf files. one called home and the other news onto my my main swf which is index.
this is my AS.
_root.createEmptyMovieClip("home_MC",0);
loadMovieNum("home.swf", "home_MC");
news_mc._x = 233.9;
news_mc._y = 45.0;
_root.createEmptyMovieClip("news_MC",0);
loadMovieNum("news_cdata.swf", "news_MC");
news_mc._x = 24.9;
news_mc._y = 484.0;
But it opens two explorer windows, instead of loading on the index.
Do I have to get it to load like ... _self and If I do, where do I put it in. ?
I appreciate your help.
A
Loading Another .swf On The Top The Main .swf File
hi. does anyone know if i want to load a movie file(not movie clip) on the top of the main one, what should i do? As i know i can use the load movie action, and set it to load on other levels, however, the movie is always appear on the top left corner. is there any actionscript i can use to set the movie's position that i want to know on the top of the main one? thanks.
Loading .swf Into Main Movie.
Having some trobles. I am trying to load a message board into my main movie. We did
on (release) {
loadMovie ("http://www.web-eleets.com/new/Board/board1.swf", "empty", "GET");
gotoAndPlay (225);
}
It wont load the movie :/ Anyone have some suggestions?
Peace,
Mustang97
Loading My Main Movie, 101
How do I make my main movie reside in its own window so that it's not embeded into the HTML page? Meaning, a flash window, not a URL.
In other words, I want the main movie to exist in a separate window on top of the HTML index page.
If this makes sense, I would appreciate some suggestions.
Thanks in advance.
Loading Swf On Main Stage
I have my menu in a mc. I want it to load a swf into the main stage area. Also I would need it to unload the previous swf everytime a new button is pressed. How owuld I go about doing that.
Loading In A Swf- And The Main Stage
Hello, I have a swf loading into my main movie. In the swf I have movie and at the last key frame I have it tell target / go to frame a and stop. The swf alone works fine, but when I load it into the movie it does not work. I am assuming that / goes to the main movie stage rather then the main stage of the swf. How can I get it to go to the main stage of the swf. thanks in advance- Dave
Loading An External Swf Into Main Swf
Hi there,
I've been trying to load a external file into my main swf.
The file loads into the main file, but now the main content is gone.How come?other issue the preloadbar I can't see functioning.
this is what i did:
make an empty mc.Placed the file on the main scen timeline.
gave it an instancename visual.
the button from the main swf I gave the code:
on(release){
loadMovie("visual.swf", "visual");
}
Loading External Swf Into Mc Of Main Swf
Alright, I'm going to try to explain this the best I can.
First off, here are the files I'm dealing with:
1. guestbook.php
2. guestbook.txt
3. guestbook.swf
4. main.swf
I have a form on guestbook.swf that sends the data to guestbook.php which then reads and writes to guestbook.txt. Guestbook.swf works fine as a standalone movie - it'll read the text file and then display the data in the dynamic text box named 'guestbook'.
However, when I try to load guestbook.swf into a movie clip named 'content' from main.swf the data is not being shown in my dynamic text box ('guestbook'). I'm pretting sure it has something to due with a targeting issue, but I'm not sure how to do this.
Here is the code that I think is causing the problem (action for submit form in guestbook.swf):
on(release){
if(name eq ""){
warning = "You forgot your name!";
}else if(message eq ""){
warning = "Don't forget to leave a message.";
}else{
submit = "yes"
numHigh = 5;
numLow = 0;
_root.content.guestbook = "Loading new data...";
loadVariablesNum("guestbook.php", 0, "Post");
}
}
I've tried changing '0' to "_root.content.guestbook" in loadVariablesNum but when I tested it out, as soon as I click on submit it opens up another window with the address guestbook.php. I want the data to load in text box 'guestbook' not in another window.
I hope that all makes sense. Please help, I'd really appreciate it. I'm new to Flash.
Thanks.
Loading SWF To Main Stage?
I have 3 seperate swf files one is the main movie and the other are a audio file saved as a swf and another is a image with animations. So I want to load the main movie first then load the audio and next the image with animations one right after another but not at the same time. How would I go about doing this best?
Loading A Swf In An Swf And Placing That Into A Main Swf.
I've read some help on this, but can't seem to get mine sorted.
I've just learned to use the loadmovie command and it works find for me when simply loading one swf into another, but adding a third has proved disasterous.
I have a movie called "p_staff.swf" and it has a list of buttons in it and some animation. When you hit the button "gareth" I want it to load "gareth.swf" into that swf - which it does happily enough if I test "p_staff.swf", but when I want "p_staff.swf" into my main movie "mainf.swf" then it loads "p_staff" and if I click on "gareth" it just goes blank.
The code I'm using in "p_staff.swf" is:
loadMovie("gareth.swf","_root.hold_gareth");
"hold_gareth" is my blank movie clip to load it into.
The code for mainf.swf is:
loadMovie("p_staff.swf","_root.holderstaff_mc");
Any help would be appreciated.
[F8] Loading .swf Into Main Movie
Hey everyone,
I'm trying to load a .swf into my movie (which is actually a website). So far, it works but it automatically puts the .swf in the top left-hand corner. How can I make sure the .swf only loads where I want it to be? Can I use a placeholder or something so that the swf only loads there? Thanks so much!
Loading Url In Main Body
Please help me on this:
I have a flash map in my header and there are links in different regions. And when I click on any of those link an url opens in a particular area of the same page (say in the main body).
In above case I am able to do everything except I am not able to open the url in a specific area of the page. I am able to open it in different page and same page but not in a specific are in the same page.
How do I do that please help me.
Thanx in advance.
Loading HTML That Contains A SWF Into A Main SWF
Hi all,
Newbie here. That's why have all these problems.
I found 2 free resources consisting of music player and guestbook. They can only be used if you include certain code in the HTML.
The guestbook would be loaded if user clicks on the guestbook link. It will not be loaded in the main swf untill user clicks on it.
the music player will be loaded once intro ends in the main swf.
Both the free stuff above references a JS script in the HTML file.
How do I proceed to incorporate both of them into my main SWF?
Headache now. Thanks in advance.
Loading Several SWF's Into One Main With Preloaders
Hello everyone, as you can see im new here. Not new to the site, just first time i have made an account and felt the need to post, most other times my questions have been aswered in other posts. Unfortunatly this time i cannot find my answer anywhere on here (bits and pieces maybe) My problem is as follows:
I am trying to make a modular fully flash site. I have broken down pieces into several small swf's and components that i then need to load into a main SWF. each component will display a progress bar (flash standard component) as it loads. So far i have it set up at follows
tier1-component timeline
tier2-holder timeline (5 swfs get loaded here)
tier3-main timeline (holdertimeline then gets loaded here 50 or so frames down the timeline as i need to play an animation first)
so its coded like this (which doesnt work at all and want to perhaps use moviecliploader?)
base component:
ActionScript Code:
loader.contentPath = "Site PNG's/csbox.png";
pBar.setStyle("themeColor", "0x333333");
pBar.conversion = 1024;
pBar.source = loader;
pBar.mode = "polled";
loader.load();
which works fine on its own as a progressbar component and a loader component are on the stage there. This simply loads a png as you can see.
holder timeline:
ActionScript Code:
loadMovie("specrec.swf", "specrecholder");
loadMovie("mainbox.swf","mainholder");
loadMovie("csbox.swf", "box1");
loadMovie("wc3box.swf", "box2");
loadMovie("codbox.swf", "box3");
that is the best way i could find to load the individual swf's (components) into empty movie clips on the stage. Problem is this - all the progress bars move at the same speed, no matter what. and some of the images load well before the bar is full (which makes me think its applying it to one load and copying the bars state to the rest ignoring what i actually want it to do) Secondly faulting this is this - If i hit ctl+enter twice to preview with bandwitdth profiler on at throttled speed i see it first loads something? (percentage in the profiler goes to 100%) then you can see in the profiler see here and its obvious those are the SWF's loading into that first, only AFTER all those read 100% do they start to show up on the stage and the progress bar goes (erronomously as i mentioned before) but they do load...just takes nearly 30 seconds before they start to load? i thought that was the purpose of a preloader! ugh...
main timeline:
ActionScript Code:
var my_ldr:mx.controls.Loader;
var my_pb:mx.controls.ProgressBar;
my_pb.source = my_ldr;
my_ldr.autoLoad = false;
my_ldr.contentPath = "MOCK.swf";
// when autoLoad is false loading does not start until load() is invoked
my_ldr.load();
it is my hope that this page has a blank screen with a loading bar, which will load the nav intro animation, then one that animation is done play a bit, (to open the doors on the BG and display the content) then load the content(mock.swf at this time) onto the screen, and each component as it loads does so with its own unique progress bar. I have seen this before on a few flash sites, where components are loading all over the place on the stage each with their own progress bar, and finish at different times and things like that...someone please help me im going crazy!!!!
Cheers!
][
Loading SWF From A Loaded SWF Into The Main SFW
Hi guys (long time)
I'm loading a small SWF (I'll name it SWF2) into a scrollPane (which acts as a mask) in my main flash movie. From within SWF2 (once its loaded) I'm loading yet another (bigger) SWF (let's call it SWF3).
Now, if I load SWF3 (from within SWF2) using this:
loadMovie("SWF3.swf", 1);
SWF3 loads into the MAIN flash mc - but not within the scrollPane), which is what I want. However, SWF3 is positioned to the default top left, and I want to position it elsewhere.
Here is the prob:
If I do this:
createEmptyMovieClip("container",1);
loadMovie("SWF3.swf", "container");
(I've also tried creating the container mc in "_parent")
SWF3 gets loaded into the scrollpane (like SWF2) which is no good as the scrollpane itself is positioned in the far right of the MAIN flash.
I want to load SWF3 into the main flash movie (but not within the scrollpane). Loading the SWF into level 1 achives this but leaves me without the ability to position it, so if anybody knows of a workaround I'd be grateful to read it
As always, cheers!
Loading A Swf In An Swf And Placing That Into A Main Swf.
I've read some help on this, but can't seem to get mine sorted.
I've just learned to use the loadmovie command and it works find for me when simply loading one swf into another, but adding a third has proved disasterous.
I have a movie called "p_staff.swf" and it has a list of buttons in it and some animation. When you hit the button "gareth" I want it to load "gareth.swf" into that swf - which it does happily enough if I test "p_staff.swf", but when I want "p_staff.swf" into my main movie "mainf.swf" then it loads "p_staff" and if I click on "gareth" it just goes blank.
The code I'm using in "p_staff.swf" is:
loadMovie("gareth.swf","_root.hold_gareth");
"hold_gareth" is my blank movie clip to load it into.
The code for mainf.swf is:
loadMovie("p_staff.swf","_root.holderstaff_mc");
Any help would be appreciated.
Best Way To Keep Loading Content To Main?
hi there!
well my problem is:
i have a main swf with 5 menus and i want to , when i click on one buton the meuns will apear ( they have exactly the same size as the main movie)
im trying with loadMovie but i cant make it work cause, when i load the new menu, i cant go back to the main one.
any idea of how to make this in the best way plz?
thank you very much in advance!
Loading SWF From A Loaded SWF Into The Main SFW
Hi guys (long time)
I'm loading a small SWF (I'll name it SWF2) into a scrollPane (which acts as a mask) in my main flash movie. From within SWF2 (once its loaded) I'm loading yet another (bigger) SWF (let's call it SWF3).
Now, if I load SWF3 (from within SWF2) using this:
loadMovie("SWF3.swf", 1);
SWF3 loads into the MAIN flash mc - but not within the scrollPane), which is what I want. However, SWF3 is positioned to the default top left, and I want to position it elsewhere.
Here is the prob:
If I do this:
createEmptyMovieClip("container",1);
loadMovie("SWF3.swf", "container");
(I've also tried creating the container mc in "_parent")
SWF3 gets loaded into the scrollpane (like SWF2) which is no good as the scrollpane itself is positioned in the far right of the MAIN flash.
I want to load SWF3 into the main flash movie (but not within the scrollpane). Loading the SWF into level 1 achives this but leaves me without the ability to position it, so if anybody knows of a workaround I'd be grateful to read it
As always, cheers!
Loading Swf Into Main Timeline.
Hi,
I have set up a button on the main page to load a outside .swf (MAD.swf) into an empty movie clip sitting on the main page. The load works fine but I lose functionality in the .swf. For instance, the swf has several buttons on it that change _alpha with a Rollover. When the swf is loaded independantly, all rollovers work, however, when loaded within the main .swf (JGF.swf) no rollovers work.
Any ideas?
I have placed a copy of the two .fla's on my webspace at www.stuff.glenpatrickryan.com
Any help would be greatly appreciated!
-Glen
Loading 3rd Swf From 2nd Swf Inside Main Swf
Can anyone help me?
I have a main.swf which loads a second swf from a button click. This second swf has buttons which load more swf's into a movie clip called content with the instance name "loadinfo".
By itself, this second swf loads the other swf's when the buttons are clicked, and they 're visible. When I load the second swf into the main swf and try to link to the other swf's they're not visible or they're just not loading. Here are some examples of code I tried that work outside the main.swf.
on (release){
this.loadinfo.loadMovie("loadlinks/test.swf");
}
on (release){
loadinfo.loadMovie("loadlinks/test1.swf",_root);
}
on (release){
loadinfo.loadMovie("loadlinks/test2.swf","_root");
}
on (release){
loadMovie("loadlinks/test3.swf",loadinfo);
}
If you could shed some light it will be greatly appreciated.
Thanx,
pamartins
Main SWF Is Not Loading Other Swf Attributes
I have a main SWF that loads in other swf's with:
a.loadMovie("player.swf");
While the entire loaded SWF apears to get loaded: ns object loads video, mouse over animations work, XML loading works. The actions assigned to those buttons are not working...parenting???
example: 2
b.loadMovie("menu.swf");
The animations on my buttons work but the sub nav which is a series of different MC's will not load...
Loading A Swf Into Main Movie (another Swf)
[if you find it faster to use MSN, my acc is sugar_addict_500@hotmail.com]
hey... Matt here. I need a bit of help... i have a swf, the main SWF. It is called index.swf
now, in that swf, i want to load another swf (how do i do that firstly?) second, there is a loading bar on the root of the directory, that i want to use to display the download progress of the swf being imported. PLEASE help me. Thanks's'z'z in advance, Matt...
Also, if you can help me with this, is there a way to cache the swf's that are downloaded, for future? Thanks's'z'z in advance, again, Matt...
Loading External Swf To A Main Swf
When I load a swf to my main swf, my loader bar doesnt work, its the same loader bar that I use lately for all my loading needs but it doesnt want to work when the swf is being loaded to a main swf.
Im using: _root.movie.loadMovie("littlevideo.swf") to load the swf to the main swf and the loading bar has this code inside it:
onClipEvent (load) {
this._xscale = 0;
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
this._xscale = percent;
//gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
}
}
the loader bar doesnt show any progress at all and stays in the first frame always, although it should continue once it finished loading. this the website with the examples:
not working: http://dulcerecords.com/livetest.htm (external swf)
working: http://pressurerecordsinc.com/ (same code, same bar, but not loaded externally)
Loading Music
CAN I LOAD MUSIC ?
IF SO HOW CAN I PLAY IT ?
Thanks in advance
Loading Music
hello .
i am trying to load mp3's from the server ..
without any luck !
does anyone have some knowledge with this ?
here is what i have thus far
Code:
on (release) {
_root.mySound = new Sound();
_root.mySound.loadSound("Thievery.mp3", true);
_root.mySound.start("Thievery.mp3", 1);
_root.mySound.setVolume(100);
myText = "Streaming music";
_root.mySound.onSoundComplete = function() {
playing = false;
myText = "finished";
};
}
i thought this would work ,but to no avail ,it doesnt .
cheers
Loading Music
Ok here's the deal,
I've been working on this music player for 2 days or so, it's designed for a blogring site like xanga, so that the user can choose which music the player plays but then the visitors on the site can't change it, so that rules out asking which files to load in the interface. And unfortunately I'm the only person I know with flash, so they wouldn't be able to change it for themselves if I embed it in the programming. Is there anyway that the music files loaded could be determined through strings in html or JavaScript? Like, they could just change the path that was mentioned in the html code and the player would play that instead?
Thanks.
Music Loading Bar
I need a loading bar with percentage shown. I want the bar to show the loading of a streaming mp3. Check http://mp7.zapto.org to see the problem.
Loading Music
Hey everyone
A friend of mine wrote this cool piece for my website, and I'd like to use as an intro music.
However I realize that it might be annoying for returning visitors to hear it over and over again, so I'd like to create a "stop" button in order to make it stop playing. (I want it to start playing automatically when the website loads)
I'd normally know how to do this (I think), but for some reason my flash crashes when I try to import stuff, so I need to use a loader.
Could you guys please tell me how to load music from an outside file, say a .wav?
Thanks in advance!
Loading Music
I am designing a flash site for someone at the moment, and I need to play nineteen 1 minute preview MP3s for a new albumn launch. They want very good sound quality for all of the tracks and there are 19 of them so it is increasing the size of the movie too much.
I am currently just using markers to jump to each track on the timeline, but really need to know how to either choose to only load a track when it needs to play rather than when the flash website is loading or some other way to load the site seperately to all of the audio tracks.
I am really confused by this so any suggestions on this would be much appreciated. If it helps at all the site is www.w-s.fr.
Thanks
Steve
Loading Music?
What is the best way to have music in a movie and still keep it small?
|