Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








When A Swf Is Finished, Start Next Swf


Hello there.

I have 4 external swfs that i want to load into 4 different empty movieclips on mainscene.

First I want 1.swf to load and when its finished i want 2.swf to play and after it is finished 3.swf and finally 4.swf.
This is the intro...

On release i want to do the same, but i want to reuse 2.swf and 4.swf which i use as transitions. Until know i worked/used these two functions. But they does’nt seem to work.

function loadmovieClip(playClip, playMc, nextClip, nextMc) {
this[playMc].loadMovie(playClip);
//this i a preloader, of course.
preload(this["playMc"]);
this[nextMc].loadMovie(nextClip);
preload(this["nextMc"]);
}
function controlMc(playMc, nextMc) {
trace("this is "+playMc);
trace("this is "+nextMc);
checker = nextMc;
//_root.nextMc = nextMc;
this[playMc].gotoAndPlay("start");
trace(playMc+" is playing");
this.onEnterFrame = function() {
//trace("currentframe ="+this[playMc]._currentframe);
//trace("enterframe");
if (finishedClip == 60) {
trace(nextMc+" is playing");
//this[playMc]._visible = false;
//this[nextMc].loadMovie(nextClip);
//preload(nextClip);
this[nextMc].gotoAndPlay("start");
trace("hey efter 60"+nextMc);
checker = nextMc;
delete this.onEnterFrame;
}
finishedClip = 0;
//playMc = 0;
//nextMc = 0;
};
}

So on release i want this to happen

Play/load 5.swf -> 2.swf -> 7.swf -> 4.swf

But on another button this might happen..

Play/load 6.swf-> 4.swf-> 8.swf ->2.swf

I need a dynamic function, in which i can play and load a lot of swfs.

I hope that somebody out there can help me..




ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 07-20-2004, 04:25 PM


View Complete Forum Thread with Replies

Sponsored Links:

How To Start Another Animation After One's Finished
Hi Guys,

Mcnoobie here you may say but Action Script is no way my strong point.

Anyway to the question. I was just wondering if there is a way to start a movie clip after one has finished playing so that they are both not running at the same time. I know you can do this with the timeline but this seems like a messy way of doing it and so was wondering if there was a simple way of getting about it.

Any help is appreciated guys

Lewn

View Replies !    View Related
Please Help- Start Movie When Action Finished
Hi all,

My first posting.

First there are 5 mc's on stage,4 images and 1 movie which is a line moving across the stage when mouse moves over any of the 4 movies (images).

My problem is I have anther movie which describes the image and is masked, but i want is the movie to start when the line reaches its destination.


I have this script on each image movie with different loctions for line.

onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse,_root._ymouse)) {
this._parent.line.xSlideTo(150, 0.5);
updateAfterEvent();
}
}
Any suggestions would be great.


Thansk you

View Replies !    View Related
Start Playing Before Finished Loading?
Hi all.. whats the best way when I have a SWF emebdded in a page that it
will begin playing before it finishes loading in the background? Thx

View Replies !    View Related
How Start A Sound When The Prev One Finished?
Flash5
-

hi there
could anybody help me with this sound problem?
what I want to do is assemble a sentence (every word spoken by different people) from different soundfiles.
As I will have many soundfiles, I just want to load the necessary ones (by random) and then asseble the whole thing (while playing).
-
my problem now is (the less important one) on how I could determine if a sound is loaded and (most important) on how the sound has finished, so that the next one could be startet....

thanx a lot
marcel

View Replies !    View Related
Start Level0 Movie After Level1 Finished
In my movie I firstly add an intro swf file into level1 and would like to know when this finishes so that I can then tell it to do the main stuff in level0. At the moment I'm just starting at frame 150 which is the last frame used in the level1 swf but I'm sure there is a better way of doing this?

Can someone help?
Many thanks

View Replies !    View Related
OnMotionFinished- Getting Code To Start Set Num Of Frames BEFORE Motion Finished
Hey,

Wondering if theres a way of using onMotionFinished or something simular to track a tween (created with the tween class) and start the next action BEFORE the motion ends.

I thought about something like this but I don't think it is!
onMotionFinished -1 or something like that.

Ideas chaps?

View Replies !    View Related
Start And Stop Streaming Sounds (start Stopping Currently Playing)
Hi there

I am novice user of flash and have no real AS experience.

What I want to do is..

I have 18 songs from an album and have taken 30 sec from each and down sampled them ready for flash.

I want to be able preview them all from one flash file.
I will be streaming the songs in, so the initial download time is minimal.

With 18 start stop buttons for each one, but because customers are lazy, they are likely just going to click the next play button for the next preview, so I need the play buttons to stop 'this' preview before playing the next with stop control also being a stop control for those who have had enough or are well behaved browsers : )

I hope this makes sense and look forward to hearing from someone.

Cheers

Ian Hill

View Replies !    View Related
Start And Stop Streaming Sounds (start Stopping Currently Playing)
Hi there

I am novice user of flash and have no real AS experience.

What I want to do is..

I have 18 songs from an album and have taken 30 sec from each and down sampled them ready for flash.

I want to be able preview them all from one flash file.
I will be streaming the songs in, so the initial download time is minimal.

With 18 start stop buttons for each one, but because customers are lazy, they are likely just going to click the next play button for the next preview, so I need the play buttons to stop 'this' preview before playing the next with stop control also being a stop control for those who have had enough or are well behaved browsers : )

I hope this makes sense and look forward to hearing from someone.

Cheers

Ian Hill

View Replies !    View Related
How To Delay The Start Of External Swf(start From Say 10th Frame)
I am using the following code to load an external swf.Now I need to start the playing of the swf movie not from frame 1 but from say 10th frame.
Please help

Code:
var myMcl:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();

myListener.onLoadProgress = function(target_mc:MovieClip, loadedBytes, totalBytes) {
//swfToLoad._visible = false;
loadedPercent = Math.floor((loadedBytes/totalBytes)*100);
_root.bar_mc._xscale = loadedPercent;
//trace(bar_mc._xscale);
c.text = loadedPercent+"%";
//trace(loadAnim.percLoaded.text);
spacer.loadMovie("images/loadingss.jpg");




};

myListener.onLoadComplete = function(targetMC:MovieClip) {

swfToLoad._visible = true;
loadAnim._visible = false;
//swfToLoad._width=367;
//swfToLoad._height=255;
}

myMcl.addListener(myListener);
myMcl.loadClip("Jason_500.swf",swfToLoad);

View Replies !    View Related
How Can I Start An External Program And/or Start A File
I've tryed:

on (release) {
fscommand("Exec", "program.exe");
stop();
}


Also I've tryed:

on (release) {
fscommand("Exec", "start.bat");
stop();
}

And in the .bat file I've put this:

@echo off
start file.doc
exit

But this does not seem to work, what Am I doing wrong???

Thanx alot!

View Replies !    View Related
FLV Start Time? Can I Start It Playing 2 Secs In?
Is there a way with actionscript to tell an FLV to start playing 2 seconds into the video. What I have is an FLV that has 2 seconds of black at the beginning, but I don't want that to play.

Or if anyone knows a way to re-encode an flv so that I can get rid of the 1st 2 seconds. I've tried re-encoding it with Riva Encoder but it just gets all screwed up. And the Flash encoder won't even let me add it to the que. Any help would be appreciated.

Thanks,
Lady

View Replies !    View Related
Sound Start Doesn't Start
I've been experiencing this problem. Sound.start() doesn't always start. A lot of times, it does, sometimes, it doesn't start for me. Sometimes it happens even after sound load has just finished. Has anyone experienced the same? any suggestions?





























Edited: 08/24/2007 at 01:26:57 AM by nehcdet

View Replies !    View Related
How To Tell When Something Has Finished?
Hi

Got a problem that is driving me mad and is probably due to my limited knowledge of AS - I need a sort of listening device methinks......

I have an array of words, I pick the next word in the array when a button is pressed and split it into letters that then tell a fruit machine type display to scroll to each letter from a fixed alphabet scroll, what I want to do is to display the possible definitions by calling the do_answers(word); function for this word AFTER the last letter has slotted into place and the word is complete. As it is an alphabet scroll (from z-a) then inevitably this letter is the closest to 'a' no matter what position in the word it is.

Each letter scroller is a movieclip named l1,l2 etc up to l17, 17 being the length of the longest word in the array.

My current main timeline code reads (only 2 words for simplicity here and lots of other little bits cut out) with reset() being called on 'next' button pressing:


Code:
codewords=new Array("FIRST WORD","SECOND WORD");
_global.count=0;
function reset(){
for(i=0;i<17;i++){
_root["l"+i].gotoAndStop(1);
}
if(_root.codewords.length>_global.count){
do_word(_root.codewords[_global.count]);
} else {
do_word("GAME OVER");
}
}
function do_word(word){
wordSplit=word.split("");
for(ch in wordSplit){
//now set the letter this letterbox will stop at
_root["l"+ch].letter=wordSplit[ch];
//now start this letterbox scrolling from frame 2
_root["l"+ch].gotoAndPlay(2);
}
_global.count++;
do_answers(word);
}
function do_answers(ansframe){
_root.answers.gotoAndPlay(ansframe);
}
As you can see the do_answers() call is made after the last letter is set off to do it's scrolling BUT the actual scrolling takes longer than the time the function moves onto the call and the answer options are displayed.

How can I do this anyone?

Thanks

Ali

View Replies !    View Related
Tell If MC Has Finished
How can you tell if an MC has finished playing before you load another?

View Replies !    View Related
When An FLV Has Finished...
Long story short, I HAVE to use the FLVPlayback for my videos to play.. please don't ask why LOL long story..

but when I'm trying to do is find something that will let me know when the FLV has reached its end... is there a way? can't seem to find it.

View Replies !    View Related
Almost Finished
i just finished my biology project and when i go to preview it, it seems to be very dull and weak . how can i spice it up with some special effects and what are some other good ways to make it more interesting and entertaining?

View Replies !    View Related
Mp3 Finished And ....
yow! create one main flash and inner has one mp3 player
one movie clip.
that has this code
AS CODE -----------

stopAllSounds();
musica = new Sound();
musica.loadSound("http://..../blabla.mp3", true);
musica.setVolume = 100;
stop();

END AS CODE -------


This code ok ...
... but i have 2 musics. how do i for when one music end the outher beging?

(:

Thanks yet!

View Replies !    View Related
Almost Finished
i just finished my biology project and when i go to preview it, it seems to be very dull and weak . how can i spice it up with some special effects and what are some other good ways to make it more interesting and entertaining?

View Replies !    View Related
Download Finished?
Hello everyone.


been awhile but I have a question. Is there some way for me to tell programmatically when something is done streaming to the user's browser?

for example if a user clicks a button and that event would load an image somewhere (like into a MC) how can I tell when that image is loaded, and displayed?

TIA

View Replies !    View Related
Site Finished, Go There
I would like to thank all those that help me with Flash over the last 2 weeks. Here is my newly relaunched site, any feedback contact;

capone_adam@hotmail.com

http://www.caponeart.com

Thanks again!

View Replies !    View Related
Finaly Finished
sorry for the off-topic thread, but i would like to thank everyone here in flashkit for helping me build a full site finaly!

http://www.edu.physics.uoc.gr/~ph2376
under the flash section

in Greek though but nevermind

plz don't tell me something is wrong

PS: does everyone deal with the fact that when you load an mp3 (loadSound(mplampla.mp3) and you happen to use a download manager (such as DAP) the program ask you to choose download method (regular-accelerated) for the music? Or is it just me?

View Replies !    View Related
When Finished Loading
I'm looking for a frame actions that'll stop my movie on frame 1! And then goto frame 3 and stop when the entire or most of the movie has fineshed loading?

Thanks,

Mik

View Replies !    View Related
FINISHED SITE. Now What?
This sounds really dumb, but I made a whole site and know I don't know what to do with the .swf file. Do I just at it to a page in an html document? I know my hosting information and all that jazz, I just don't know what the equivalent to an index.html page is in Flash.
Thanks!

View Replies !    View Related
If Finished Then Play?
Hey there
Is there a simple and easy way of playing a movie clip and when that finishers play another one?
What it is, I have 4 buttons when you click on say butt01 it plays mc01 and if u click on butt03 I want it to play the end of mc01 and when that is finished it plays mc03 and if u click butt02 it plays the mc03 then mc02 u know what I mean.
so can any one help
Cheers

ps
the different mc could b just one but different sections on the time line
but01 - 0f to 100f , 101f to 201f etc

View Replies !    View Related
Finished Flash
how do i make my flash so that i can send it to someone and have them watch?

View Replies !    View Related
When A Prototype Has Finished ?
Hi,

I'm wondering how I can check if a prototype has finished, example :


Code:
MovieClip.prototype.resize = function(w, h, speed) {
this._width -= (this._width-w)/speed;
this._height -= (this._height-h)/speed;
if (this.interval_resize) {
clearInterval(this.interval_resize);
}
if (Math.round(this._width) == w && Math.round(this._height) == h) {
this._width = w;
this._height = h;
} else {
this.interval_resize = setInterval(this, "resize", 10, w, h, speed);
}
updateAfterEvent();
};


I want to use this prototype for a photogallery, when a thumbnail is clicked, the border on the photos should resize, when the resizing is done it should start preloading the image ...

At the moment the resizing and preloading happen at the same time..

(ufcourse I can build-in the prototype within the border class, but I prefer not so I can use it for several MC's)

View Replies !    View Related
When Flv Is Finished Open A New Url?
hello!ive got a question...
i got a little flv video which i like to use as intro...and when the movie ends i like to open a new window with url...
but how can i do this...? at the moment i dont know how to do this...
anyone got a hint for me

View Replies !    View Related
Is Caching Finished? AS/JS
I built a portfolio of all my work and I have it preload all full size images into the cache using an AS/JS function I created. Basicaly it creates and applys a javascript function occupied with argumnents/perimeters of image URLs pulled via XML in Flash. (explained below)

1) Flash <-- Image Array XML File
2) getURL("javascript:preload = function(){...}; preload(imageXMLArray);");
3) ( All images in XML Array are now loaded into cache )

Everything works fine, but in addition I want to add the ability to show when the cacheing is complete. My reason for this is that while everything is being cached, the navigation is very choppy, and unreliable. Currently I have a notice that tells you no wait untill everything is cached before navigating. Is there anyway for javascript to read when an image is fully loaded into a cache?

Here it is: http://asphaltjungle.com/leap (Watch your activity window when you go to it)

Thanks!
-joe

View Replies !    View Related
Action Before Flv Has Finished
HI!, i use this code to preload an flv




Code:
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
my_video.attachVideo(stream_ns);
stream_ns.setBufferTime(13);
stream_ns.play("http://www.feedbackestudio.com/esynergy/intro/intro2.flv");
this.createTextField("loaded_txt",10,10,160,22);
var loaded_interval:Number = setInterval(checkBytesLoaded, 500, stream_ns);
function checkBytesLoaded(my_ns:NetStream) {
var pctLoaded:Number = Math.round(my_ns.bytesLoaded / my_ns.bytesTotal * 100);
loaded_txt.text = Math.round(my_ns.bytesLoaded / 1000) + " of " + Math.round(my_ns.bytesTotal / 1000) + " KB loaded (" + pctLoaded + "%)";
progressBar_mc.bar_mc._xscale = pctLoaded;
if (pctLoaded >= 100) {
clearInterval(loaded_interval);
}
}


do you know how to do if i want to load an .html file once the video is ended?

thanks for your help!

View Replies !    View Related
Ive Finished My First Project:)
Hi, I'm thirteen years old and I've recently started reading a book called Game Development with Actionscript. After reading about half of the book I have created a few projects. I tried to practice using random numbers, loops, and arrays and after about 50 hours of constant debugging I've come up with my first game.

The game (along with a rain particle system I made that dims from day to night) can be found here: http://ppgames-movies.com
Please leave comments about the game and the rain, I would really like to hear what proffesionals have to say about them.

-Thanks

View Replies !    View Related
Is The Video Finished?
Im using an instance of the FLV PLayback component, how can I find out if the video is finished so I can then do another function?

Thanks

View Replies !    View Related
First Site Is Finished
I just finished me site but I've had to put a warning up because it seems the site takes up a lot of CPU usage and if there are other programs running the animation is all choppy. It's very noticable on a Mac (horrible in Safari so I sugest Chimera)and not as much on the PC. I have no idea how to fix this, every image is optimized as much as possible. Has anyone had this problem before? I'm probably being picky but if somebody wants totake a look at it and it plays bad it really reflects on my work as a designer. Anyway, here's the site http://www.adambacsalmasi.com.

What places do you designers post your sites if you're looking to get some work. Any tips would be great. Enjoy, it's my first site and I got a lot of help from this forum. Thanks all.

View Replies !    View Related
After FLV Has Finished In External Swf
Here's my problem:
I have a photo slideshow which pulls from a xml file.

The first photo is actually a flv file. In the code I dynamically point to a videos.fla file to play the flv.
The flv is also random and each has a different length.

I used the setInterval to go to the next photo after a certain amount of time.
This presents a problem if the flv is not exactly the length of the duration and I end up with a blank stare or cutting off too early. I have tried multiple ways to determine the length of the flv and change the duration for the first video. What would be the best way to accomplish this. I've tried setting _globals and even trying to call the flvplayback component inside the external swf. Here's my code for both files:
Any thoughts or help. A view of the slideshow without the video is at http://www.ciu.edu.








Attach Code

//slideshow.fla
function loadPhotos(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
}
firstImage();
//trace(photos);
} else {
content = "file not loaded!";
}
}
if (this.file != '') {
photos = new XML();
photos.ignoreWhite = true;
photos.onLoad = loadPhotos;
photos.load(this.file);
}
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = loader.getBytesTotal();
loaded = loader.getBytesLoaded();
if (loader._alpha<100) {
loader._alpha += 100;
}
};
function nextImage() {
clearInterval(interval);
if (p<(total-1)) {
p++;
if (loaded == filesize) {
loader._alpha = 0;
if (image[p].substr(-3, 3) == "flv") {
p++;
loader.contentPath = image[p];
//loader.contentPath = "videos.swf?video="+image[p];
} else {
loader.contentPath = image[p];
}
//desc_txt.text = description[p];
loader_num();
}
} else {
p = 0;
if (loaded == filesize) {
loader._alpha = 0;
if (image[p].substr(-3, 3) == "flv") {
p++;
loader.contentPath = image[p];
//loader.contentPath = "videos.swf?video="+image[p];
} else {
loader.contentPath = image[p];
}
//desc_txt.text = description[p];
loader_num();
}
}
}
function prevImage() {
clearInterval(interval);
if (p>0) {
p--;
loader._alpha = 0;
if (image[p].substr(-3, 3) == "flv") {
p = total-1;
loader.contentPath = image[p];
//loader.contentPath = "videos.swf?video="+image[p];
} else {
loader.contentPath = image[p];
}
//desc_txt.text = description[p];
loader_num();
} else {
p = total-1;
loader._alpha = 0;
if (image[p].substr(-3, 3) == "flv") {
p--;
loader.contentPath = image[p];
//loader.contentPath = "videos.swf?video="+image[p];
} else {
loader.contentPath = image[p];
}
//desc_txt.text = description[p];
loader_num();
}
}
function firstImage() {
clearInterval(interval);
if (loaded == filesize) {
loader._alpha = 0;
if (image[0].substr(-3, 3) == "flv") {
current_pos = p+1;
var vidList:Object = new Object();
vidList.complete = function() {
var totaltime = vid.totalTime();
current_pos = p+1;
interval = setInterval(nextImage, totaltime);
};
vid.addEventListener("complete", vidList);
loader.contentPath = "flash/videos.swf?video="+image[0];
} else {
loader.contentPath = image[0];
loader_num();
}
//desc_txt.text = description[0];
}
}
function loader_num() {
current_pos = p+1;
totaltime = 13000;
interval = setInterval(nextImage, totaltime);
//pos_txt.text = current_pos+" / "+total;
}



//videos.fla
this.createTextField("myTxt", 100, 0, 0, 100, 20);
myTxt.autoSize = "left";
if (this.video == undefined) {
myTxt.text = "video is not defined";
} else {
//myTxt.text = this.video;
if (this.myskin == undefined) {
video_player.skin = "/flash/ClearOverPlaySeekMute.swf";
if (this.ahide == undefined) {
video_player.skinAutoHide = true;
} else {
video_player.skinAutoHide = false;
}
} else {
video_player.skin = this.myskin;
if (this.ahide == undefined) {
video_player.skinAutoHide = true;
} else {
video_player.skinAutoHide = false;
}
}

video_player.contentPath = this.video;
_global.vid=video_player;

}

View Replies !    View Related
Go To URL When Animation Is Finished
Hey all... I've set up a little intro/splash page in flash for a website. I have it so that after you click on a category it takes you to that URL, however I want it to wait for the animation to finish before exiting...here's what i have (and i'll explain why the URL isn't being recognized):










Attach Code

_global.filePath = "pages/";

//these are the URLs; they correlate with the order of the navigation
url1 = "gear";
url2 = "specs";
url3 = "pics";
url4 = "rates";
url5 = "custom";
url6 = "contacts";
url7 = "custom";
url8 = "links";

//This loop loops as many times as there are navigation
for (i=0; i < 9; i++){

//here i set up what the links are...this says with in the navBTN the individual buttons are titled sequentially (i.e. btn1, btn2, btn3, etc.)
_root.navBTN["nBtn"+i].link = filePath + _root["url"+i] + ".php";


_root.navBTN["nBtn"+i].onRelease = function() {
new Tween(_root.main, "_x", Regular.easeIn, 0, 850, .3, true);

//if this is with in any function, it no longer recognizes "this", nor does it recognize any variable i set outside the function
getURL(this.link);
}

so, any ideas as to how to make it so it does not go to the URL until the animation above it finishes?

View Replies !    View Related
OnVideo Finished...?
Hi folks.

I was wondering if anyone could help me. I have a Flash presentation which consists of an introduction movie and a main menu. The introduction movie is in the form of FLV file which is being loaded - all in one frame, not embedded video on the timeline. As it's in one frame, I don't know, which functions controls the video status - let's say, I want when the intro finishes playin, to jump into the main menu straightaway.

Similar to action "onLoadInit" but I'm looking for something like OnMovieFinished or so.... dunno how to do that. Right know, I have to have there a button which you need to press after the movie finishes playing in order to get to the main menu.

Any suggestions please?

many thanks
Lubos

p.s - it's for local use only so I wouldn't worry about any streaming or so.





























Edited: 05/18/2007 at 01:00:14 PM by l_u_b_i_007

View Replies !    View Related
Playing A Second Swf When The First One's Finished
I have 2 swf files (the FLA's too) and want one to play then the second. - I'd add the second to the timeline of the first, but the second is a complete site and contains many referenced "gotoandplay" links which would all need changing. So....I really just need a way for the second swf to play after the first one's finished. I tried using the load external movie clip behaviour, but couldn't make it work. Can I use the first swf as a preloader without affecting the timeline on the main swf? I canspare a couple of frames at the start of the second movie for that, but don't know how to set it up - can anyone help?

I also want the custom cursor to remain only in the first swf, and go back to default on the second.

main (second) movie: http://mysticalbillyo.com
first movie: http://mysticalbillyo.com/intro.swf

View Replies !    View Related
.Flv GotoAndStop(2) When Finished?
I have a SWF with a series of frames.

On frame 1 I have a .flv movie which plays when opened. Great but when it gets to the end of the video it stops. How can i jump to the next frame in the swf after the video has finished.

USING AS2 with Flash CS3

Please help. Dan

View Replies !    View Related
Detect When FLV Is Finished
Hi All,
Anyone know of a tutorial or a script/command to detect when an FLV is finished playing, so that I can load up the next FLV?

Thanks.

View Replies !    View Related
When Swf Is Finished Play Next Swf...
Hello there.

I have 4 external swfs that i want to load into 4 different empty movieclips on mainscene.
First i want 1.swf to load and when its finished i want 2.swf to play and after it is finished 3.swf and finally 4.swf.
This is the intro...

On release i want to do the same, but i want to reuse 2.swf and 4.swf which i use as transitions. Until know i worked/used these two functions. But they does’nt seem to work.

function loadmovieClip(playClip, playMc, nextClip, nextMc) {
this[playMc].loadMovie(playClip);
//this i a preloader, of course.
preload(this["playMc"]);
this[nextMc].loadMovie(nextClip);
preload(this["nextMc"]);
}
function controlMc(playMc, nextMc) {
trace("this is "+playMc);
trace("this is "+nextMc);
checker = nextMc;
//_root.nextMc = nextMc;
this[playMc].gotoAndPlay("start");
trace(playMc+" is playing");
this.onEnterFrame = function() {
//trace("currentframe ="+this[playMc]._currentframe);
//trace("enterframe");
if (finishedClip == 60) {
trace(nextMc+" is playing");
//this[playMc]._visible = false;
//this[nextMc].loadMovie(nextClip);
//preload(nextClip);
this[nextMc].gotoAndPlay("start");
trace("hey efter 60"+nextMc);
checker = nextMc;
delete this.onEnterFrame;
}
finishedClip = 0;
//playMc = 0;
//nextMc = 0;
};
}

So on release i want this to happen

Play/load 5.swf -> 2.swf -> 7.swf -> 4.swf

But on another button this might happen..

Play/load 6.swf-> 4.swf-> 8.swf ->2.swf

I need a dynamic function, in which i can play and load a lot of swfs.

I hope that somebody out there can help me..

View Replies !    View Related
Sig- Half Finished
I'm half way through making this sig, and its goin alright. But the only problem is, that when you click on the tab, the text that stretches out is blurred. HELP!
Ive attatched the swf and the fla, so u could either modify it or tell me in words!

View Replies !    View Related
Finished Projects For Example
Please excuse all the messeges. I'm just experiencing some tech. diff. sort of all of a sudden on my first proj.

Is there anyone willing to let me see there finished .fla projects so I can make sure my own paths and AS are straight. If not... is there any resources of this nature.

View Replies !    View Related
When Function Is Finished.
Hi guys,

I don't know if I will explain this properly, but here goes: I have a function:


Code:
function toDo(){
do this......
do something else....
do something else.....
}
When this function is finished doing everything it has to do, I want something else to be done for instance, gotoAndPlay(), but only when everything inside the function is done.

Thnx in advance.

View Replies !    View Related
Detect When An MC Has Finished
Hi there

I have a movie that plays a series of movie clips, it will play a clip, then, once the clip has finished, it will move to frame 2, where it will play another clip, and so on

Is there any way for the root timeline to now when a child movie clip has completed. I currently have the child clips do _root.nextframe, but i would prefer to have all control within the root

many thanks

Jamie

View Replies !    View Related
After Movie Is Finished.....
i was wondering if you can randomly, externally load a movie from a source....but after the movie is completed, load a different one 10-20 seconds later? thanks a lot




-loki

View Replies !    View Related
(almost) FINISHED SITE, What Do You Think?
all i need is some content, and my site redesign will be done
what do you all think
thanks to all you who helped me w/ the as, i really learned a lot doing this
http://www.barbdwyer.com/gumballinterface.swf

View Replies !    View Related
Detect When FLV Is Finished
Hi All,
Anyone know of a tutorial or a script/command to detect when an FLV is finished playing, so that I can load up the next FLV?

Thanks.

View Replies !    View Related
When Swf Is Finished Play Next Swf...
Hello there.

I have 4 external swfs that i want to load into 4 different empty movieclips on mainscene.
First i want 1.swf to load and when its finished i want 2.swf to play and after it is finished 3.swf and finally 4.swf.
This is the intro...

On release i want to do the same, but i want to reuse 2.swf and 4.swf which i use as transitions. Until know i worked/used these two functions. But they does’nt seem to work.

function loadmovieClip(playClip, playMc, nextClip, nextMc) {
this[playMc].loadMovie(playClip);
//this i a preloader, of course.
preload(this["playMc"]);
this[nextMc].loadMovie(nextClip);
preload(this["nextMc"]);
}
function controlMc(playMc, nextMc) {
trace("this is "+playMc);
trace("this is "+nextMc);
checker = nextMc;
//_root.nextMc = nextMc;
this[playMc].gotoAndPlay("start");
trace(playMc+" is playing");
this.onEnterFrame = function() {
//trace("currentframe ="+this[playMc]._currentframe);
//trace("enterframe");
if (finishedClip == 60) {
trace(nextMc+" is playing");
//this[playMc]._visible = false;
//this[nextMc].loadMovie(nextClip);
//preload(nextClip);
this[nextMc].gotoAndPlay("start");
trace("hey efter 60"+nextMc);
checker = nextMc;
delete this.onEnterFrame;
}
finishedClip = 0;
//playMc = 0;
//nextMc = 0;
};
}

So on release i want this to happen

Play/load 5.swf -> 2.swf -> 7.swf -> 4.swf

But on another button this might happen..

Play/load 6.swf-> 4.swf-> 8.swf ->2.swf

I need a dynamic function, in which i can play and load a lot of swfs.

I hope that somebody out there can help me..

View Replies !    View Related
Finished My Nav Menu
I finally finished my dynamic navigation menu and it actually works. I'd like to thank everyone that helped me out. I am also attaching the fla to this post incase anyone wants to see how I did it or wants to use the menu.

I have added a lot of comments to the top explaining what the constants, variables and functions are/do but most of the code I've left un-commented. If you have any questions on how or why I did something let me know.

View Replies !    View Related
Please Help Me With A News Box (almost Finished)
Hi,

I have been searching for days on how to make on of those flash boxes that display news continously and have vertical scrollbars in them. I specifically want it to:
load content from a separate txt file with html on it
display vertical scrollbar
each new item should stay visible for a few seconds (just to be read) and then the next one should come up

So far I have done the first two, but have no idea on how to make it dissappear on it's own and for the scrollbar to display the next item in it's entirety.

See my attempts here:

Scroll done with buttons

Using a textarea component

Thanks in advance,
Alex

edit: I just noticed that the version with the textarea component weights 48 k's ¿?!! I can't use that.

View Replies !    View Related
AAAHHH Just When I Think I'm Finished...HELP
Alrighty now, here is my situation. I designed a flash site... obviously - I'm here. Here's me site link... www.nsomniaweb.com/wideawake.html

Press the Contact button... WHY IS IT GOING BACK TO THE BEGINNING?????? It's not set to. It's set to stop on the 3rd or 4th frame.
It was working before I added the preloader. Now it's all screwy, and I can't figure it out. In case someone will ask, here's the A/S for the preloader....

Preloader is 4 frames long.... Nothing in the first frame.
In the 2nd frame, here's the script;

loadedbytes=getBytesLoaded();
totalbytes=getBytesTotal();
loadedkbytes=Math.ceil (loadedbytes/1024);
totalkbytes=Math.ceil(totalbytes/1024);
if (loadedbytes == totalbytes) {
gotoAndPlay (4);
}
percentage = int(loadedbytes/(totalbytes/100));
loader.gotoAndStop (percentage);


In the third frame;

gotoAndPlay(2);

and no script in the fourth.

What gives???

Do I calculate the total number of frames in the entire movie? There's alot. Or do I go by total bytes? Not quite sure if I have the wrong number in the script.. the number that's there right now, you'll see, is 1024.

View Replies !    View Related
AS3 - How Do I Know RESIZE Is Finished ?
Code:
stage.scaleMode = "noScale";
stage.align = "TL"
stage.showDefaultContextMenu= false;
main_mc.x=Math.floor((stage.stageWidth - main_mc.width)/2);
main_mc.y=Math.floor((stage.stageHeight - main_mc.height)/2);

stage.addEventListener (Event.RESIZE , resized);
function resized (e:Event):void{
var xa:Number;
var ya:Number;
xa=Math.floor((stage.stageWidth - main_mc.width)/2);
ya=Math.floor((stage.stageHeight - main_mc.height)/2);
}
i need to find out somehow when rezise is finished so i can call the easing tween to animate main_mc to where it belongs.How do i tell flash when resize is no longer active do this... ?

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved