How To Make Sure Randomly Loaded Externals Swfs Are Fully Loaded [F8]
I am randomly loading external swfs into my main movie. I've got the random part working. However, I don't know how to make sure the random swf is fully loaded before jumping to a specific frame in my main movie.
I have a preloader inside each external swf, but I don't know how to make my main movie understand that the random swf is completely loaded before the main timeline should gotoandPlay("start").
What I Have So Far:
I have a blank MC (named "location") on the main stage, which I am using to hold the random swfs. On the first frame inside this MC, I have the following code:
choice = Math.round(Math.random()*2); switch (choice) { case 0 : location.loadMovie("image0.swf"); break; case 1 : location.loadMovie("image1.swf"); break; case 2 : location.loadMovie("image2.swf"); break;
}
Loading the random swfs is working perfectly. But after the external swf is fully loaded, I want to move onto a frame labeled "start" on the main stage. I just don't know how to make sure the random swfs are completely loaded before I say gotoandPlay("start").
I've tried piecing together bits from so many tutorials, and I just don't know what I need to do to make it work with my current code.
Thanks so much!
FlashKit > Flash Help > Flash Newbies
Posted on: 08-28-2007, 01:21 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[Flash 8] Swfs Appearing Before Fully Loaded?
I'm having a strange problem while preloading external swfs. I have about 6 external swfs that load whenever their respective button is clicked. Each swf will have a short animation that builds the page. Initially, i was testing the swfs with the full page assembled on frame 1.
Everything worked as it should until i started building the animations. Now, instead of the animation starting when the swf is fully loaded, it starts when the preloader is around 60%. This happens everytime at 60%. If I take the animation off and go back to 1 frame, it shows up when it's supposed too, at 100% loaded. I thought i could get around it by putting a stop on the first frame and telling the swf to play with onLodInit(), but it still shows up early with the stop() on frame 1. Just wondering if anyone else has ever experienced this weird problem?
Checking If Movie Loaded Into An Instance Has Fully Loaded B4 Playing
Hi,
I'm building a site that streams a series of small movies into some preset into instances on the _root timeline but are paused on an empty frame 1 until needed. So while the first movie is playing the second movie is already being loaded and is cued on frame 1 ready to play.
However, if the timeline tells the loaded movie (i.e. _root.content ) to play frame 2 before this movie has finished loading it will not play. This shouldn't happen because the movie loaded into _root.content should have loaded, but I need a failsafe.
Is there a way to run a routine once the _root timeline is finished to constantly check the status of the movie being loaded in _root.content and then play once it is loaded.
I've tried running this code in a routine:
if (_root.content._framesloaded >= _root.content._totalframes) {
_root.gotoAndPlay(2)
}
..but I'm not sure if it will work.
I really want to avoid a preloader (each movie is only about 10k big )
Any help would be greatly appreciated
Cheers
Detect When Loaded Movie Is Fully Loaded
hey all,
I am trying to load an external swf into a target. when the swf is completely loaded, i want to execute the next set of actions.
Now here is the bit i'm stuck. I am trying to develop my flash websites so that no coding is done within the child swfs.
so i would assume some code like this would work:
_root.holder.loadMovie ("child.swf");
if(_root.holder.getBytesLoaded ==_root.holder.getBytesTotal){
_execute some other command;
}
However it doesn't work!!!
So is there a way to detect when a specific child swf has fully loaded into a target (not _framesLoaded please!) and then set a variable to allow some other actionscript to kick in?
please help if you know,
using mx btw
cheers,
Kd
Manipulating Loaded Movies Before They Are Fully Loaded
Is there any way to manipulate a movie, e.g. play, stop, roll over etc. that has been loaded using loadMovie or loadMovieNum BEFORE it is fully loaded? From the LOADING movie that is. Not the LOADED movie...
If so. How?
How To Make 2 Loaded Swfs Communicate With Each Other?
This has quite a long background history, so I`ll first ask the question: how can I make a loaded SWF file activate a function inside another loaded SWF file - both in the same 'parent' movie, domain and directory - when the user clicks a 'link' on the first swf?
I'm new to actionscript, been only working with it for 2 months and I've been learning on the go. So far, so good, flash cs3 help has been useful, as well as this forum and other sites. My project is a website, no innovations, just simple info and light animations.
The site should have an intro page (I called it index), a preloader, then the actual site (home), with links to each specific area (pages). In home, a small slideshow movie clip should always be on the upper left corner looping images until the user clicks a link to a page, when the slideshow fades away. With this briefing, I made a file for the index, and a uiloader in it would get the home file and that 'should' be it.
My stage resizing event listener was working perfectly on home - standing alone - moving the slideshow exactly as it should. But when home was loaded inside index, the slideshow moved way more than it should never getting in the right place. After various unsuccessful attempts, I decided to move the slideshow into its own swf and load it directly in the index, together with the home file. This way, I managed to make it relocate precisely, but got myself the problem I'm asking here. I need to get the slideshow to fade away when the user clicks a page link, but they are separate files.
I tried to use a Loader.content based function, located at the index, but figures Flash help was not exactly clear on how I had to use it properly, so I did not manage to get it to work. It always reported an unspecified property.
I searched around here and over the net, found similar problems and their solutions but could not resolve my problem. I think this is a little too specific...
Does anyone has any suggestions?
Thank you all very much in advance for this, and for the other things I've already got to solve thanks to these forums.
Externally Loaded SWFs Make Movie Slower
I'm having a weird problem with some externally loaded SWFs that contain only audio. They were created with Squeeze 4.3.
When I load them into my movie they drastically slow down the animation of the entire movie. As soon as I stop the audio in the external SWF the rest of the movie's animation goes back to normal. But if I start the SWF again it slows down again.
My questions are:
- Is anyone else encountering the same problem with audio only SWFs?
- Does anybody have any advice on publishing settings for the audio SWFs that may fix the "slow down"? Or any other methods for publishing audio only SWFs?
How To Tell If A Jpg Is Loaded Fully?
Is there a way to tell, when using loadMovie() to dynamically load a jpg, when the jpg has been fully loaded?
I want to be able to perform actions *after* the jpg has been fully loaded, but I can't figure out how.
Check That A SWF Has Fully Loaded?
want to dynamically load a sequence of SWFs into a movie.
each movie is called inf1.swf... inf2.swf etc.
so I create a loop with "i":
loadMovie ("inf"+i+".swf", "_root.loader");
but.. how do I check if the SWF is fully loaded, so I can i++ and load the next one in the sequence?
I tried onClipEvent(data), but I think the SWF is streaming the data, because it registers as TRUE as soon as the SWF loads in..
anyone .... anyone....?
Loaded Swf Not Fully Functional
I loaded a .swf to a placeholder inside my main movie. And the .swf loads fine, but I have a button inside my movie that is supposed to load a object embedded in the loaded .swf and it doesn't.
(the object loads if I play the .swf by itself, but not when after I use the loadmovie command in my main movie.)
Unload A ,swf Before It Has Fully Loaded
hi guys
i am having trouble unloading a .swf from an mc before it has loaded.
i have four buttons. each loads a .swf (replacing the previous one) into the same mc on the main timeline.
but these .swfs are quite big, so if the user decides to select a different button and load another .swf i want the previous .swf to unload. i don't whether this is a bug within the flash 6 player; i was pretty sure this didn't happen in version 5.
if the user gets frustrated and keeps pusing buttons, the whole thing slows right down and can even bomb out!
many thanks
How To Tell If Movie Is Fully Loaded
I'm used to some outdated ActionScript techniques, I fear. I have a little loop at the start of my movie, and I only want to continue past the loop when everything is loaded. (In this case, to make an executable with many photos play more smoothly.)
root.framesLoaded generates an error. What's the proper method? I'm not having much luck with Search (here or in the docs).
Thanks in advance!
Wait Until Fully Loaded?
Hi,
My menus on my site are swf's that are loaded into the main swf when the appropriate button is clicked. However there can be a slightly 'uncomfortable' delay before a menu swf loads in. THey are quite small files and I want to keep them seperate from the main swf for an easier update,
so my question is, how can I preload all my menu swf's into my main site before the main site loads in? I have tried loading into empty 'holder' swf's but this went really quite wrong.
Any ideas would be great!
[F8 AS2] MCL: Swf Plays Before Fully Loaded
I'm using a preload function with the Movie Clip Loader. Everything works like it should except the external swf's will play before they are fully loaded. At first I only had one frame in each swf, and they wouldn't show up until 100%. Then i added some animations, and now they play out at around 60% loaded.
I know I can fix it with stop() on the first frame and tell it to play after 100%, but I'm wondering if anyone else has had this problem, or is it something common with MCL and i just wasn't aware of it.
Wait Until Fully Loaded?
Hi,
My menus on my site are swf's that are loaded into the main swf when the appropriate button is clicked. However there can be a slightly 'uncomfortable' delay before a menu swf loads in. THey are quite small files and I want to keep them seperate from the main swf for an easier update,
so my question is, how can I preload all my menu swf's into my main site before the main site loads in? I have tried loading into empty 'holder' swf's but this went really quite wrong.
Any ideas would be great!
Play Parts Of A Swf Before It Is Fully Loaded?
Is it OK to play the frames that have been loaded so far of a big swf that is still loading?
So for instance, I check _framesLoaded of the .swf and the frames of the portion I need to play are there so I play that piece.
Is Flash 5 designed for that or am I asking for trouble and should split the .swf into smaller .swf's and then wait until the movie of the portion I need is fully loaded?
Thanks!
How Do I Check If Jpeg Is Fully Loaded?
I know in Flash MX I can load in jpegs with loadMovie(). What I'm wondering is, how can I check (maybe using Actionscript?), whether that image is loaded (showing) or not?
Second question is: I notice that images loaded this way don't show up until they're 100% loaded, right? Is there a way to make it load progressively?
Thank you for any help,
~jimmy.
Ext Swf Not To Start Till Fully Loaded
hi
i have the script below thats working well for the preloader
to annouce the ext swf loading but it is still starting before
it's fully loaded and is stalling 3/4 thru as completes loading,
i want it to start later or start when its fully loaded....how do
i modify the script to do this......thanks
stop();
this.onEnterFrame = function() {
loading = _root.content.getBytesLoaded();
total = _root.content.getBytesTotal();
percent = percent-(percent-loading/total*100)*0.350000;
per = int(percent);
percentage = per+"%";
bar._width = per*1.310000;
if (percent>99.500000) {
_root.content._alpha = 100;
_root.content.gotoAndPlay(2);
play();
delete this["onEnterFrame"];
percent = 0;
}
};
Know When A LoadMovie Has Been Fully Loaded - But Not LoadClip
Hi,
Keyone.it, another member of the flashkit community created an amazing way to stop your swf files being cached (except a loader file). The technique envolves using the loadMovie command in flash on a php file; this php file loads in the swf file.
I now need to find out when the file has been fully loaded (and how much has been loaded preferably). I tried using the loadClip method but to no avail - unfortunatly this fails to load the movie via the php file.
So what can I do, thanks for any help !
[F8] Swf Movie Plays Before Fully Loaded
Hi there, i'm just trying to figure out how to keep a swf file(that i am loading externally) from playing until its fully loaded. Heres my code...
code: stop();
this.createEmptyMovieClip("introContainer", this.getNextHighestDepth());
var myListener:Object = new Object();
myListener.onLoadInit = function(): Void {
loading._visible = false;
};
var myMCL:MovieClipLoader = new MovieClipLoader();
myMCL.loadClip("intro.swf", "introContainer");
myMCL.addListener(myListener);
the loading._visible code is simply to tell the preloader to disappear after the movie is fully loaded. My problem is that the swf starts playing before fully loaded and makes the movie jumpy and non-coherent. Any help would be awesome!!!
How Do I Goto A Frame Only After My Swf Has Fully Loaded?
I'm having a problem... it might be quite simple but my knowledge isn't that great on event listeners (which I think is what's needed)
I have Movie that has a preloader on the 1st Frame and then on the 2nd Frame a swf is loaded using this script...
stop();
tellTarget ("cc") {
loadMovie ("test_1.swf", test_1);
}
gotoAndPlay ("3");
This loads my test_1.swf into the test_1 mc inside the cc mc.
This all works fine.... However what I want to know is how to only gotoAndPlay ("3") after the test_1.swf has been fully loaded?
The idea I'm working with is that... an initial swf (simply an image with a preloader - test_1) would load into the background when the swf is started and then a menu would appear in frame 3 that would allow the user to replace the background swf with button clicks..... But at the moment the menu on frame 3 is loading before the background swf is loaded.
I've been searching for ages but I can't seem to find a thread that deals with this... it could be that I'm looking for the wrong thing.
Any help would be much appreciated - Thanks!
MovieClipLoader Isn't Fully Loaded And Ready
I'm using the movie clip loader to load a swf inside a MovieClip object on my stage. I've added a line of code at the end of my onLoadInit function to send a message to a JavaScript function that it's loaded. Once JavaScript gets this notification, it calls another function in flash that accesses the loaded SWF and tries to do something.
The first time I call the function, it fails (the variable I try to access is undefined)...if I immediately call the function again it works fine.
I can get this to work if I place a 500 millisecond delay in JavaScript, but that's not going to be a solution for my client since each machine may take longer than 1/2 second for whatever flash is doing.
Q: Why isn't the item available after onLoadInit is complete and how do I get around this problem?
Thanks for your help!
Use Childs Library (when Not Fully Loaded)
Hello everyone.
I have a question that is a bit tricky. Why I want to do this is becouse I need such a dynamic solution as posible with fast downloadtime.
- I have a host file that schould preload child files (this is to display what I can load visual).
- In the child files library i have a clip ready to be exportet (it's exported in first frame)
- when my host noticed that the childs second frame is loaded I want to grab the clip from the childs library and attach it in the host. (after this it will load nextone e.g.)
Why can I not get this to work
Is it not posible to get childrens exportet library clips? (have tried to load whole child clip before trying to grab the clip).
Best regards
//Bäcker
Preloader Finishing B4 Fully Loaded.....
Wutsup Doods,
Anyways, having a preloader issue here, It seems that the preloader I have created will only load 1/2 way, then will jump to the site, however the site isn't fully loaded yet. I am wondering what could be the cause of that. I wonder if it is because there are multiple movie clips in the animation or something. this is the script I have been using for the preloader:
__________________________________________________ ___
onClipEvent (load) {
totalBytes =_root.getBytesTotal();
}
onClipEvent (enterFrame) {
loadedBytes =_root.getBytesLoaded();
percentLoaded = Math.round (loadedBytes/totalBytes*100);
gotoAndStop (percentLoaded);
if (loadedBytes ==totalBytes) {
_root.gotoAndPlay ("website");
}
}
__________________________________________________ ___
Play Movie Before Fully Loaded
i was trying to use
if (this._framesloaded == 3) {
this.gotoAndPlay(3);
}
to play my movie before the whole movie is loaded, but it doesnt go to frame 3, it just waits until the whole movie is loaded.
Use Childs Library (when Not Fully Loaded)
Hello everyone.
I have a question that is a bit tricky. Why I want to do this is becouse I need such a dynamic solution as posible with fast downloadtime.
- I have a host file that schould preload child files (this is to display what I can load visual).
- In the child files library i have a clip ready to be exportet (it's exported in first frame)
- when my host noticed that the childs second frame is loaded I want to grab the clip from the childs library and attach it in the host. (after this it will load nextone e.g.)
Why can I not get this to work
Is it not posible to get childrens exportet library clips? (have tried to load whole child clip before trying to grab the clip).
Best regards
//Bäcker
How Can A Play A Not Fully Loaded Movie?
I want a video to basically stream, but I want to import the video in flash and then publish a swf and post it on a site... so when its there it just plays as its being loaded, like a gif kind of. When I do this, it seems the screen is blank until its fully loaded, and then it plays.
Check If A Jpg File Is Fully Loaded
Hi y'all,
I have this picture on my flash site, and it needs to be uploadable by the client, so I need some preloader of some sort to display while the jpg is loading.
I'm loading the jpg with loadMovie. Only want it to display when fully loaded.
Thanks in advance,
Geert
Testing To See If An External Variable Is Fully Loaded
The subject says it all. I need to know when an external variable has finished loading. Maybe i'm doing this wrong, but i'm loading external variables from an asp page (which generated them). This can take several seconds. I need to know when the variable is fully loaded so i can begin processing it (the variables get cut up and mixed around in flash). I've tried testing for 'VarName > ""' but the variable isn't neccesarily fully loaded when this fires, causing the processing to fall over. I've tried putting the load on it's own frame and testing '_framesloaded' on it but that tells me when the frame is loaded, not the variable. If i stretch the movie out (or slow it down) to allow time for the variable to load, then if it loads really quickly the user doesn't get a response for ages. Any ideas?
Preloader Wait Till I'm Fully Loaded?
I've been struggling hard with my first preloader. I'm using a first scene which waits in frame 1 until _root.getBytesLoaded() is equal to total. Then it calls nextScene(). In my second scene I have only 1 mc instance called Engine. This mc loads all the rest of my page dynamically with attachMovie(). So most of my assets are being exported in the linkage settings to be usable by the Engine mc. To be able to test this with my cable modem I added a 2 meg sound file to my movie so that it would take awhile to download.
My problem is that when I publish and upload my movie and then test it with my browser, it seems to load the whole movie (both scenes) before anything happens. Once everything is loaded my preloader (scene1) flys by really fast and it breaks right into Scene2.
My guess is that the exported mc's are getting loaded before scene1 gets loaded?
Help plz!
Craig
How Can I Prevent One Movie From Playing Until The Other Is Fully Loaded?
This is a demo of the web site I am making: http://www.lanstarrz.com/demo4/default.html
The way it works is nav.swf is the main flash movie. It loads up home.swf into position, and when a button in nav is pressed, it loads a new swf file into position.
But what I want to do is sync the two movies. I do not want nav.swf to starrt playing until home.swf is fully loaded. How can I do that?
OnClipEvent (data) Detecting A Fully Loaded SWF ?
Does anyone know how to do the following.
Detect an external swf loading into a different level and have it go to a certain frame while its loading and then to a different frame after its fully loaded.
Thanks!!!
Flash Not Fully Loaded? Hmmm, Check It Out.
I have finished a site with a preloader. Sometimes when folks visit the site, after the movie is loaded it just shows like 2 buttons and the rest is blank. A simple refresh quickly restores this, but I need to know why it doesnt fully load, or seems to fully load but requires a refresh once and a while.
many thanks.
www.lascazuelas-la.com
Javascript Not Working Till The Swf Is Fully Loaded
I have a movie the needs to be played in full for a person to click a "next" button.
At the end of the movie i have an fscommand and in the html file i have javascript that displays a pop up if the movie hasn't been played in full. If it has been played, the next button works.
This all works ok, except if the movie hasn't loaded fully, then the next button can be clicked and ignores the javascript.
Any solutions.. can it be done a better way than I have the code at the moment?
http://www.bbuzzed.cx/irm/2_Weet-Bix_Brett.html
(the next button just goes to a non existing page at the moment)
Don't Play External Swf Until JPEG Is Fully Loaded
Searched tons upon tons of preloader issues and techniques but can't really find the answer I am looking for.
Basically I have one Movie Clip that has a range of images. When I click an image I like it loads an external MC containing a larger version of that image which animates (basically the image 'blows up' or gets bigger). Sounds pretty easy right?
Well all my images are externally loaded from a file (easy to update). So when this external swf movie loads the 'blow up' I want to make sure that the jpeg has fully loaded before the animation starts playing.
All my file sizes are very small but I have preloadered everything so far so that slow connection speeds are catered for. At the moment on the animation effect I am describing above I can't get it right...
I have my Flash movie here if you want to take a look. Once the movie has loaded click on the middle image to see what I am trying to achieve. (rough animation test at the moment...I tweened it funny as a test). Check out: http://www.wests-serve.com/stage2
So how would I go about doing this? Basically I want to make sure that the animation does not start until the external jpeg has loaded. (Otherwise you see the 'picture frame background' for a period and then the jpeg loads in...not nice.
It may not be possible I guess unless the image is 'built in' to the .swf itself? I understand that there would be a slight delay between teh press time and the jpeg loading in...so I would perhaps do a animation that would distract teh user while this all happened...anyway, any ideas?
Thanks in advance to a helpful person
Mucx
Play Event Sound Before Fully Loaded?
hi there,
i presume that this is not possible, and i tried in different ways, but i never read anything that actually said that it's impossible to play an event sound before it's fully loaded.
So i'm hoping that somebody here has an idea!
by the way how come that the sound.position still has a bug in it for streaming sounds???? It has been documented for a few years now, but three versions of flash later, it's still not fixed! Could somebody call mister Flash and tell him to fix this
Javascript Not Working Till The Swf Is Fully Loaded
I have a movie the needs to be played in full for a person to click a "next" button.
At the end of the movie i have an fscommand and in the html file i have javascript that displays a pop up if the movie hasn't been played in full. If it has been played, the next button works.
This all works ok, except if the movie hasn't loaded fully, then the next button can be clicked and ignores the javascript.
Any solutions.. can it be done a better way than I have the code at the moment?
http://www.bbuzzed.cx/irm/2_Weet-Bix_Brett.html
(the next button just goes to a non existing page at the moment)
Holding Control Of External .swf Until Fully Loaded?
Hi, would love help with how to control an external .swf that is not fully loaded (or rather how to stop someone from clicking buttons that effect it oddly). I'm in Flash MX.
My main movie loads an external .swf into a target using: _root.pictar.loadMovie("whatever.swf");
The external .swf is a series of 10 photos, each on a frame.
In my main movie, I then have corresponding thumbnails, which when you click, tell the externally loaded .swf to go to the frame with the full size image on it. Like this:
on thumbnail #2 the action is
on (release) {
_root.pictar.gotoAndStop(2);
}
All works great, except if I click before the external movie is fully loaded I think. If I click a thumbnail too fast, image 2 comes up when I click thumbnail 8. And everything acts screwy.
How can I get around this? Can I disable the thumbnail buttons until my external .swf is fully loaded? If that's the only solution what do I do because I'm using the same target "pictar" each time I'm loading a new external .swf?
The site with this problem is www.gregorygale.com. Maybe that will help. Thanks so much.
How To Replace Embedded Movie When Web Page Is Fully Loaded
I want to initially load very small swf or gif images, wait until the web page is fully loaded, then load the full size movie. What is the best way to do this - some kind of image swap in the web page using an "onload" script, or via actionscript to load a replacement movie?
If I go the actionscript route, can flash determine when the containing web page has fully loaded?
If I go the onload javascript route, does anyone know if the DOM for various browsers can handle changing the src attribute for embed and/or object tags?
Any other good methods to do this? The current problem is that users with low bandwidth sometimes do not see the HTML page render until the swf is done loading. See the pages at www.bvex.com.
Preloader Not Showing Till Movie Fully Loaded
I've made a preloader for my movie (1.5 mbs), but when it is loading online, the screen is blank until the movie is fully loaded and then the preloader blinks by briefy and then goes to the main movie. Why is this happening?
Nick
[MX04] Stroke On Image Isn't Fully Appearing When Loaded
I'm doing a bunch of simple LoadMovie actions for .jpg images into an empty movie clip.
I applied strokes to the .jpgs in photoshop and everything looks fine there, however, when loaded, the right side (of the strokes) on some of the images won't appear. I'm doing a lot of different jpgs this way, some are fine loaded-- others arn't.
This is totally annoying. If i was importing, I'd just make one in flash, and stick it on, but I have to do a LoadMovie.
Any ideas?
How To Stop An External Swf File From Playing Until Fully Loaded
I have a large (25MB) video file that was given to me. It's a swf file that someone created from a quicktime movie. I can't just use this swf file as it needs to fully load before playing. I have created a preloader that loads the external swf and shows a progress of the external swf file. However, the external swf file starts playing. I want to stop the external swf from playing until it fully loads.
AS3 code...
var maskStart:Number = -148;
var maskFinish:Number = 60;
var maskMove:Number = maskFinish - maskStart;
var fileURL:URLRequest = new URLRequest("islandCompaniesCareers.swf");
var myLoader:Loader = new Loader();
myLoader.contentLoaderInfo.addEventListener(Progre ssEvent.PROGRESS,fileLoading);
myLoader.contentLoaderInfo.addEventListener(Event. COMPLETE,fileComplete);
myLoader.load(fileURL);
function fileLoading(event:ProgressEvent):void {
var percent:Number = event.bytesLoaded/event.bytesTotal*100;
logoMask.x = maskStart+ maskMove*percent/100;
//trace(percent);
pcLoaded.text = Math.round(percent) + "%";
if (event.bytesLoaded == event.bytesTotal) {
removeChild(logoMask);
//addChild(myLoader);
}
}
function fileComplete(event:Event):void {
trace("COMPLETE");
addChild(myLoader);
}
here's the test: http://www.islandcompaniesltd.com/me...cl-careers.swf
Please can you help?!
Loaded Swfs And Loaded Flvs
heya all
i'm using this bit of code
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
vidPlayer.theVideo.attachVideo(ns);
ns.play("videos/M1_v5.flv");
to load in and play a video in a swf. works great!
here is where I'm running into a problem, when I'm loading the swf (with above code) into another swf the movie does not play.
Can anyone shed some light on this situation? It's been driving me nuts all morning.
Movie Starts Before It Is Fully Loaded, Look At My Script , Tell Me Whats Wrong.
My preloader doesent work, My movie is like 2.5 MB large, and starts before the movie is 100% loaded which causes misguiding in the buttons in the main page, I have many frames in the preloader and in each frame I have this script:
ifFrameLoaded ("intro", 175) {
gotoAndPlay("preloader", 2);
}
For each scene, what is wrong with my script??
thanks Zain..
Preloading Child Movieclips Individually And Playing Them AFTER They're Fully Loaded
i just want each of my child movieclips to play AFTER they're fully loaded individually. Could somebody please help me out? where did i go wrong here? what did i miss? Please help me out. thank you.
this is what i have right now:
loader_mc._visible = false;
picLoader._visibility = false;
var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
mcLoader.addListener(myListener);
myListener.onLoadProgress = function(target_mc,bytesLoaded,bytesTotal) {
loader_mc._visible = true;
picLoader._visible = true;
var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
loader_mc.bar_mc._xscale = pctLoaded;
if (bytesLoaded >= bytesTotal) {
loader_mc._visible = false;
}
}
btn_1.onRelease = function () {
mcLoader.loadClip("child_mc_01.swf",picLoader);
}
btn_2.onRelease = function () {
mcLoader.loadClip("child_mc_02.swf",picLoader);
}
btn_3.onRelease = function () {
mcLoader.loadClip("child_mc_03.swf",picLoader);
}
|