How Do I Use LoadMovie And Then Make It Do Somethin Else After It's Finished?
How do I use loadMovie and then make it do something else when it's finished doing it's thing??? I looked on other forum topics and I couldn't find my answer.
I'm new to this actionscripting so please anyone help!!!
I created an empty_mc in my library. I then placed an instant of it on the stage and named it "tester". Then on the Actionscript layer I used this line of code: loadMovie("InfinitLogo2.swf", tester); but after it loads I want to dynamically scale the empty_mc (now it's the "InfinitLogo2.swf") and gotoAndPlay another frame in the current swf (not the InfinitLogo2.swf). How do I do that? Does anyone know?
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 03-26-2005, 08:57 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How Do I Just Make The Finished Ad LINK Somewhere?
I've made a flash ad. It contains no buttons, just a background and some fading text.
How do I make it, the whole ad, link somewhere?
The only thing I can do that works is to create an invisible symbol that covers the entire canvas, put it at the bottom of the document and then add an "on press" behavior that takes it to a website. That works, but seems unnecessarily complicated to me.
Movieclip.loadmovie -> Stopping When Movie Is Finished
well, title is pretty clear i think..
i have loaded some movie in a movieclip and i want it to play and when its finished, to stop
what it does now: play, loop
i dont know how to set a parameter or condition or something to let stop, plz help
grtz !
[CS3] How To Make Preloader Dissapear When Finished?
Ok so... here is a link to my flash just so you can see the problem
http://www.stg2.uniteu.com/lynnens/
I just added the preloader today. How can i make it dissapear when its finished doing its job.
Here is the code I used for the preloader.
Code:
_root.onEnterFrame = function(){
percentage = Math.round((this.getBytesLoaded()/this.getBytesTotal())*100);
progressBar._xscale = percentage;
percentageLoaded.text = percentage + "% Loaded";
if(percentage==100){
delete _root.onEnterFrame;
gotoAndPlay("MovieStart");
}
}
And yes I borrowed the code from a tutorial.
I'm fairly new to flash so try to be a little thorough in your explanations if you can. Thanks.
2 Swfs. Make Second Play After The First Is Finished
I have two separate swfs (they are video files). I want the first one to play to the end then I want the second to load automatically and play with making the the user click a button.
I thought about combining the two swfs into one - but can't find a way to do this. Thought I could put each swf on a different frame - then I would need a command that would automatically advance to the next frame when the swf stopped playing.
Any thoughts would be appreciated.
Make A Movie Appear After A Task Have Finished.
Hi all,
i have a pbs with loading movieclip, maybe i lack of some more script to make it more workable. hope your people here can advise me or help me.
i have two movie clip,
one is redball
another is whiteball.
i have code it tat when onclipevent red ball will slowly vanished.
onClipEvent(load){
value=10;
}
onClipEvent(enterFrame){
this._alpha -= value;
}
after its vanished, the white ball will be loaded and appear after the red ball disappear.
onClipEvent(load){
this.attachMovie("whiteball","whiteballe",1);
this.whiteball._alpha = 0;
}
onClipEvent(enterFrame){
if(redball.alpha == 0){
this.whiteball._alpha = 100;
}else{
this.whiteball._alpha = 0;
}
}
I have also attached the fla file incase your all don't understand what i'm to say.
thxs ya
How To Make Movie Clip Reappear When Anim Finished?
Hello
If you go to
http://www.enhancedwireless.net/Tech...Mechtest.shtml
you'll see a flash 8 animation - it's a work in progress and only has a couple of seconds animation at the moment, but question is if you click "play" it plays fine, but when it's over (wait about 4 or 5 seconds), I can't get it to come back to the original frame with the "play" button appearing...the "play" button is a movie clip and has a fade out on it (courtesy a flashkit member) when main movie rolls, but how do I get this play_mc to re-appear when the animation is over and scripted back to frame 1?
Thanks
KB
Help With Somethin
Hi Guys
i have a quesrion... i uploaded a file to my server...now i can see it fine but none of the other people can. any idea why none of the images are showing up.
here is the link ...
http://www.s87969126.onlinehome.us/INDEX.HTML
Depth Swapping Or Somethin Like That
Here's the deal:
*I have four layers
Layer 1: Backround
Layer 2: Box 1
Layer 3: Box 2
Layer 4: Box 3
Box 1 is in the center, Box 2 is the back left, and Box 3 is in the back right.
If I click a button in box1, lets say [SwitchtoBox2] button, box 1 and box 2 switch places, but in an animation where 2 moves to the left and box 1 then goes where box 2 started from, then box 2 moves to where box 1 started from. So I can't use the On (Release) event, the depth switching has to be automatic. Any ideas?
Here is the Link
If (somethin==#) Problem In Menu
Hi and thanks for taking the time to take a look at this post.
Well...
I'm designing a new layout for my flash site, and a new this I added is fade/enlarge in menus. The problem is that i tried using my novice actionscripting to tell the "box movieclip to goto a certain frame when it zooms in based on which button was pressed on the nav bar. For right now I made a crude solution by eliminating the zooming out, but it ruins the effect's look so i'm ask for help on it now.
On my buttons i have codes like this:
on (release) {
_root.list.gotoAndPlay("close");
(_global.select == 1);
}
and on the zoom in frames i have:
if (_global.select == 1) {
_root.list.box.gotoAndStop("home");
}
if (_global.select == 2) {
_root.list.box.gotoAndStop("movies");
}
What am I doing wrong?
Glowing Text That Goes Forever Till U Click Somethin?
how do i make glowing text that goes forever untill i click a button??? look at this thing i made lol at the end the text glows a little bit but i want it to glow untill someone clicks that button....
My movie
hmmmm ok.... well heres my next question....
u know how like if you have a scene blah blah and something is happening on one side then you want to focus on the other side without both sides showing at the same time? how do i make it so like the background scrolls over without the end of it coming on the to the middle thing.... wait.... i think i know.... just tween it i guess but that means u have to draw outside the middle.... OH and also how do u zoom in on things without having to redraw them i mean like zoom on the person and the scenery and whatever else is in that area??????????????
LoadMovie & _x _y Positions. I Can't Make It?
Hi.
I'm trying the following in order to load a MC in a (x,y) position in the main MC:
code:
loadMovie("externalMC.swf", 0);
_level0._x = 30;
_level0._y = 30;
...but this is not working.
However if I do the following, it works:
code:
loadMovie("externalMC.swf", "target_emptyMC");
_level0._x = 30;
_level0._y = 30;
(but I can't use the "target_emptyMC" method, for that the externalMC (a picture slider) returns me errors...and it doesn't when loading it directly into level0,1,etc.)
I guess I have a typicall path problem, but I can't see it?!
I also tried
code:
loadMovie("externalMC.swf",0);
_root._x = 30;
_root._y = 30;
..without success..
Somebody can help?
Thank you.
Make Some Loadmovie Not Ignored By Proloader
hi folks,
could anybody please give me advice on this:
i want to load some movies into another one but i'd like to make them be preloaded when i preload the container as i want to make 1 preloader telling what action is done at the moment (e.g. loading backgrounds, loading menues, loading sounds,..).
as far as i know "attachMovie" can just work with objects in the same file but the movies i want to load are separate ones; since according to my knowledge loadMovie does not cause a preloading but makes the movie loaded in the moment the command is given i'm a bit at a loss. is there a way to go?
regards
Firegambler
Simple... Yet I Cant Make It Work.. (loadMovie)
I have 2 .swf in the same directory. They are the same size.
start.swf which have 1 button on, on release its supposed to load the second swf.
start.swf:
Code:
on (release) {loadMovie("intro.swf","","GET");
}
It then load the "intro.swf" and everything works smooth.... untill I put both files, in a directory on a webserver. It show the first movie fine, I can press the button and then.. nothing happens.
What do I do wrong?
Many thanks in advance.
[MX] How Come This AttachMovie And LoadMovie Make A Difference
Hi,
I just tried changing my project from loading MC internally to externally and I get a BIG difference.
This is the code I used:
PHP Code:
for (var i = 0; i<num; i++) {
mc = this.createEmptyMovieClip("mc_"+i, i);
mc.loadMovie("image"+((i%12)+1)+".jpg","images"+(i+1),1); //for manu // attach MovieClip from Library.
}
and before it was loadMovie was attachMovie. Is there something I'm missing. Why am I get different results?
Thanks,
LoadMovie About To Make Me Stab Myself With A Fork...
Sorry for the thread title but we're beyond frustration level at this point
I'm working on a music site that consists of a main movie, mp3 player movie, and section content movies. the section SWFs all load into an empty movieclip in the main SWF. I was originally loading the mp3 player SWF into a level but realized it was tough to control from there so i created an empty MC to load that into. Problem is, when i do that it loses all functionality and just sits there.
I realized that it might be a _root actionscript issue so i did some research and discovered the _lockroot property, I set this._lockroot = true for the player and was able to load it in a 1 frame test movie totally functional, it loaded MP3s and all the buttons work. BUT when i used the EXACT same code in my main movie it doesn't work, the player loads but i get no MP3s working and no functionality. I'm clueless and fantastically frustrated as to what this might be, thoughts? my loading code is:
player_spot.loadMovie("player.swf");
where player_spot is the instance name of a blank mc and player.swf is the mp3 player (with _lockroot=true applied). any ideas? i can share the code if need be. thanks.
LoadMovie() Make Loaded Movie Invisible
I have a mc called loader which loads "1.swf"
I want 1.swf to be invisible so I made "loader" not visible
PHP Code:
this.onLoad = function() {
loader.loadMovie("1.swf");
loader._visible = 0;
};
Anyway, 1.swf is visible. What should I do to make it invisible.
Thanks in advance
(Flash5) How Can I Make A LoadMovie Work From Both Button & Next/previous Command?
I have a photographer's portfolio site in the works. I'm using loadMovie connected to thumbail buttons of each photo to show a larger version of the photo. Here is the script:
on (release) {
_root.contents.loadMovie("1ed.swf");
}
Now the photographer would also like to have a next/previous arrow buttons so the user can click through like a slide show. Is there a way to have Flash know what movie is currently loaded and based on that information go to the next or previous?
I don't have the capability to write this, but I'm really good at copy/paste!
Any help or direction to a tutorial would be greatly appreciated.
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
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.
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?
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!
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?
Hi I Am Almost Finished My First
Hi
I am almost finished my first flash site but I would like to add a flash guestbook to finish it. I would like the book to be a full part of the site and not have to call another html page to open it. Is this possible ? My site is based on a kirupa.com tutorial and I would like this to be a self contained swf that can be loaded from my navigation buttons.
I do not know how to begin and my actionsctript skills are limited.
TIA
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
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!
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?
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
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!
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
Finished Flash
how do i make my flash so that i can send it to someone and have them watch?
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)
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
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
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!
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
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
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.
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..
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;
}
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?
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
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
.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
|