XML Menu Loading New SWF W/ Transition Yaa
I've got a dynamic menu using XML. Works great. I've got a movieclip called "content" into which you'd load SWF's and a movieclip called "transition" which fade in and out when you load the new SWF's.
How do I combine the two, because the menu is dynamic from XML I don't know how do address the buttons. Please help me!!
See attached ZIP File.
Thanks.
Ads.
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 09-30-2004, 07:18 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
XML Menu Loading New SWF W/ Transition Yaa
I've got a dynamic menu using XML. Works great.
I've got a movieclip called "content" into which you'd load SWF's and a movieclip called "transition" which fade in and out when you load the new SWF's.
How do I combine the two, because the menu is dynamic from XML I don't know how do address the buttons. Please help me!!
See attached ZIP File.
Thanks.
Ads.
Menu Transition HELP
I made a "test" movie that fades in and out between sections. I got it to fade out when you unload the current movie in order to load up another movie, but the movie that is supposed to load doesn't appear. I included the actionscript below. Thanks for any help.
SCENARIO - You are in an area of the site and you click on the "PROFILE" button. Here is the actionscript for one of my navigation buttons in my main movie.
on (release) {
if (nextMovie != "profile.swf") {
nextMovie = "profile.swf";
_level1.gotoAndPlay("18");
}
}
Here is the actionscript for the movie that would be "unloading" from level1 of the main movie. This is placed in the last frame of the particular movie, so that when the fade out occurs it reaches this action and loads the selected movie.
loadMovieNum(_level0.nextMovie,1);
Menu Transition
I would like to know how the menu transition effects are created in the following two sites...
1. http://www.templatemonster.com/flash...ates/6055.html
2. http://www.templatemonster.com/flash...ates/5912.html
thanks in advance
Transition From Menu
Hi all,
I think this is pretty simple, but I am fairly new to delving further into flash than the basics so I just need a bit of guidance.
I have a semi slideshow presentation, but it is not made with screens. After my main menu, I have a 20 frames or so of an out 'transition'. What I want to know how to do is after someone hits one of the menu buttons the following 20 frames are played, then it skips off to the appropriate frame for the button selected.
Don't know much ActionScript but I can work out logical stuff.
Thanks a lot,
Ollie
P.S I'm using Flash 8 Pro
Transition With A As Menu
Hello !
I'm trying to apply my lessons from the transition tutorial to a menu i found in this forum (i don't remember who made this stuff but it's great !!).
The problem is that i don't know how to manage the as code for the button to the button of this menu.
Mayber someone can just a look and tell me if it's possible ??
Excuse my bad english !
Menu & Transition
Hi. I want to know how can I make a menu and transitions like the ones done in this site.
http://www.0-to-1.com/
Help With XML Menu And Transition..
I'm having a slight problem with triggering a transition using an xml menu. When the first movie loads in the content_mc it works fine... but when you click on a menu item it just loads the content_mc without playing the transition and preloader... in the FLA attached there is a line of code
item.onRelease = function() {
loadMovie(this.myUrl, "content");
};
I'm sure it has something to do with that, not sure how to fix that... the first movie loads using an action handle but i cant seem to call the action when the menu item is clicked..
help if you can hopefully i was clear enough
Transition With A As Menu
Hello !
I'm trying to apply my lessons from the transition tutorial to a menu i found in this forum (i don't remember who made this stuff but it's great !!).
The problem is that i don't know how to manage the as code for the button to the button of this menu.
Mayber someone can just a look and tell me if it's possible ??
Excuse my bad english !
Menu & Transition
Hi. I want to know how can I make a menu and transitions like the ones done in this site.
http://www.0-to-1.com/
Help With XML Menu And Transition..
I'm having a slight problem with triggering a transition using an xml menu. When the first movie loads in the content_mc it works fine... but when you click on a menu item it just loads the content_mc without playing the transition and preloader... in the FLA attached there is a line of code
item.onRelease = function() {
loadMovie(this.myUrl, "content");
};
I'm sure it has something to do with that, not sure how to fix that... the first movie loads using an action handle but i cant seem to call the action when the menu item is clicked..
help if you can hopefully i was clear enough
Actionscripting A Menu Transition?
I have made a short animation which stops half way through, and becomes a menu. When someone clicks a button, I want it to play the rest of the animation, and then go to a certain scene, depending on what button was pressed. I've tried a couple of small actionscripts, using variables, but I guess my actionscript is a little rusty, and I can't make it work. Any suggestions? If you just wanna post a link to a previous thread or a tutorial that's cool.
Thanks in advance.
Actionscripting A Menu Transition?
I have made a short animation which stops half way through, and becomes a menu. When someone clicks a button, I want it to play the rest of the animation, and then go to a certain scene, depending on what button was pressed. I've tried a couple of small actionscripts, using variables, but I guess my actionscript is a little rusty, and I can't make it work. Any suggestions? If you just wanna post a link to a previous thread or a tutorial that's cool.
Thanks in advance.
Theflashblog.com Menu Transition
I'm just curious if someone had made something like the theflashblog.com menu. i love its transitions. id love to know how :lol: is that on xml? :roll:
Smooth Menu Option Transition
I have aquestion. For instance when you click on a menu option it finishes the current menu option and then it begins the new one. And it does this in no specific order. You can click on the first option and then click on the last, and it will finish the first option then start the last. If you can help me I'd appreciate it. Using actionscript.
Smooth Transition + Drop Down Menu
hi there
went through the tutorial: smooth transitions in flash at the following link
hed.swinburne.edu.au/design/tutorials/flash/smooth_transitions/index.php
however, i wanted to add a drop down menu on top of it, the problem is that the menu hides under the loaded content
any reason why?
you can get the files at this address:
evolve-communications.com/files/smooth.7z
kindly let me know, thanks
please help!!
don't forget to add the http://www. in front of the links
How To Make Flash Menu And Content Transition
How to make a menu transition like on this site:
(when visitors mouseover on text menu, the content on the right will fade in fade out (creating a nice page transitions)
the example is
http://www.askdrkoval.com/FLASHSITE/index.html
Is there any ready made software/application that can help to generate this feature?
thanks in advance
Page 2 - Smooth Transition + Drop Down Menu
hi tann
i reuploaded the files as per your kidn request
i think the services button now work, i even created their corresponding dummy swfs
http://www.evolve-communications.com/files/smooth.zip
since the drop down on services were supposed to appear on rollover, i created a movie clip that loaded the drop down menus, where i added the _root.content.loadMovie() function there
must i use the onrollover() function on the services main button?
kindly let me know
thanks
savvy
[FMX04]Help Needed:S Xml Menu And Transition Between External SWFs
HI all!
I am makeing new website for my AAclan.
I am am loading external SWF files into main file from XML created menu.
I want to make TRANSITIONS between loaded files, but this Kiripa tutorial does not work for me since I can not give each button sepparate code. All buttons come from xml.
At the moment If I do all by tutorial all menu buttons start to load same link which and transition works, but yeah I need menu to understand that it must load new swf not that same.
I know it is possible, but I do not know how it is made, so if anyone could help me I would be very happy!
I hope you understood my problem.
Thanx in advance!
Now comes code that needs to be modified :
if (_root.currMovie == undefined) {
_root.currMovie = _root.link[this.i].attributes.url;
_root.Konteiner.loadMovie(link[this.i].attributes.url, "_blank");
} else if (_root.currMovie != link[this.i].attributes.url, "_blank" ) {
if (Konteiner._currentframe >= _root.Konteiner.midframe) {
_root.Konteiner.gotoAndPlay(_root.closing);
}
}
Infinite Menu With Preloader And Transition For Dynamic Files?
Hi Guys,
I have tried to combine the use of 2 tutorials on this site.
Basically, to use the infinite menu as the menu for loading external .swf (as the 2nd tutorial listed below allows).
1. Infinite Menu:
http://www.kirupa.com/developer/mx/infinite.htm
2. Preloader and Transition for Dynamic Files
http://www.kirupa.com/developer/mx/p...transition.htm
My site is so close to completion, but now I am stuck.
Basically the infinite menu (in order to work) has buttons inside 2 movieclips.
Yep! When I press CTRL + ENTER to test, the _root external .swf loads, but if I click the buttons (which react) they do not load external .swf.
Can anyone help please? Please please please lol. I will be most grateful.
CreamClouds
Loading Transition?
Hi!
I'm loading external swf files inside the main stage. I'd like to load them with open/close transition.
Could someone give me a simple example or a link to a tutorial.
Help With Loading Transition
Hi,
I need some help with how to get a transition to load as soon as the movie is started. Right now I can only get it to fire off a button release.
I can't figure out how to get it to fire right away... It's code that was given to me by someone else, so I'm not that familliar with it.
Loading And Transition.
Hi .
Can somone help me understand how the loading , transition and appearence of the different squars on this Site
is it empty mc's triggering each others to load and play an animation on load with some masking effect, or else..
Thank you in advanced.
Loading Into Scrollpane With Transition
Hi,
ok I am trying to learn the lovely effect of transitions. meaning a transition between one content to the next.
I first learnt the basic, by reading through the threads and found this thread
loading/switching sections
Which took me in the right direction. Now I have learnt this I am trying to get this exact same effect (which i have got) to load the content into a scrollpane.
The content being an external swf. could someone maybe check out the above thread and using that code assist me in setting the scrollpane content to the emptyMC (mtClip).
Thanks heaps in advance.
Wolfie
Transition Help-Dynamically Loading .jpg
Transitions between dynamically loaded .jpgs
I have a site where I want to load different images into my flash file and the folloing code works. However the change between photos is abrupt and has an annoying flash of background color as the photos replace each other.
Please help me find a better way to make the transition than the way I have it.
//load the maxImage variable from a text file called ffvars.txt
LoadVariablesNum ("ffvars.txt", 0);
//make a variable called counter
counter = 1;
//dynamically load images named Xmain.jpg every 5 seconds where x is a number then return to the first image when the counter is equal to the maxImage value
setInterval (nextpic, 5000);
function nextpic() {
loadMovie(counter + "main.jpg", "picHolderMC");
counter ++;
if (counter >= maxImage)
counter = 1;
}
Transition Out One Movie Before Loading The Next?
I am in the planning stage for my first all flash site.
I plan on having a menu movie with buttons that load the other movies into the scene.
My question is, if someone is on the Prices page and switches to the Contact page, how can I get the Prices page to play a fadeout animation before loading the Contact page?
I think that instead of the Contact button having an action to load the Contact movie, I have to somehow tell it to play the last 20 frames of the Prices movie and THEN load the Contact movie. But I'm not sure how to do that.
Am I going in the right direction?
thanks
Loading Another Movie With Transition From Old?
Okey, so here is my problem.
I have a "main.swf". And onto this I load external ".swf". But when I load the other ".swf" files I would like them to have a transition from the movie that was already loaded.
So I would like the first movie to unload at one way, then the other movie to load. And so on, with every clip.
Many sites uses this, but now it's time for me to do the same.
I am not new to Flash so feel free to talk "flash" langugage, but in a explaining way so that I will know what i'm really doing!
Seamless Transition When Loading Swf's
I have an individual swf for each page of site.
How do i get the page 2 appear as if it is still the same swf. No split second blank screen. Just nice and smooth.?
Every other site seams 2 manage this?
Any Loading Transition Effect?
Not sure are there any scripts tat hv transition effect when loading a external swf?
or how can i do transition effect when i load an external swf file?
rgds,
Loading A External .SWF For Transition
I have a flash file with a preloader and the content in the timeline. So, when ever the movie loads, it preloads the main content and after goes to the following frame.
I want to integrate an external transition .swf between the preloader and the main content. After the external .swf is done loading, I want it to play the content.
Now: [preload content] -> [content]
What I want: [preload external .swf + content] -> [play external .swf] -> [content]
Is this even possible? I kind of get lost when I have to re-communicate with the main file that the external .swf is done playing and start playing the main content.
Loading Jpg's Then Applying A Transition
I have a loop that loads jpg's into movieclips:
Code:
var maxColumn:Number = 5;
for (var i = 0; i < 15; i++)
{
var rowNum:Number = Math.floor (i / maxColumn);
var mc:MovieClip = createEmptyMovieClip ("mc" + i, i);
// Create a place holder clip to load the external content into
var ph:MovieClip = mc.createEmptyMovieClip ("ph", mc.getNextHighestDepth ());
mc._x = 24 + 44 * (i - rowNum * maxColumn);
mc._y = 24 + 44 * rowNum;
var url:String = "thumbs/image" + i + ".jpg";
out_txt.text += "url = " + url + "
";
// Now load the content into ph rather than mc
ph.loadMovie ("thumbs/image" + i + ".jpg");
mc.onRollOver = function ()
{
this._alpha = 50;
};
}
then I apply an onEnterFrame action to the mc's
Code:
for (var i = 0; i < 15; i++)
{
mc[i].onEnterFrame=elasticScale(mc[i], 100, 200);
};
the elastic scale function looks like this (and it works when tested on a single mc that is originally placed on the stage):
Code:
function elasticScale(tar, accel, convert) {
easeType = mx.transitions.easing.Bounce.easeOut;
var begin = accel;
var end = convert;
var time = .5;
var mc = ball_mc;
elasticXScale = new mx.transitions.Tween(tar, "_xscale", easeType, begin, end, time, true);
elasticyScale = new mx.transitions.Tween(tar, "_yscale", easeType, begin, end, time, true);
//xScale = xScale*accel+(tar-mc._xscale)*convert;
//yScale = yScale*accel+(tar-mc._yscale)*convert;
//mc._xscale += xScale;
//mc._yscale += yScale;
}
How can I apply elasticScale to each mc (or jpg) when it is loaded?
thanks
Loading Bar For External Transition.
Hi there,
i am looking for a loading bar for this kind of transition. Link bellow.
http://www.kirupa.com/developer/mx2004/transitions2.htm
each time i click the button, it should loading the movie with the loading bar containing in the main movie not in the external movie. if some one knows the solution please... help.
Same External Swf Loading On Each Transition
I've been using the transitions between external swfs tutorial here at kirupa to build the site i'm currently working on.
I have 7 menu items and 7 external swfs. Unlike the tutorial example, my nav exists in a separate movie clip. I think I have altered the paths all correctly (first time ActionScripter). My problem is that every time I click a button, the outro for the original MC plays, and the intro for the same MC replays. Basically no matter what button I'm clicking, the original MC just seems to reload and play again.
I've uploaded a zip of my fla and swf files to www.askancecreative.com/images/flash.zip, if any kind soul would like to take a look at it. It's around 1.2mb (I hope that's not too big). A similar question has been posted here before and it seems like the problem is with the actionscript in the final frame of my external swfs. However I couldn't get any of the solutions to work. It could be something to do with my altered paths maybe?
If anyone could help it would be much appreciated.
Jpeg Loading With Transition
I am new to flash programming.
Goal: Create a banner that displays 3 different images that changes over time. Every images is changed after a given interval.
Started with Flash MX
Starting with the sample load_images.fla, I duplicated the movie clip holder to have 3 different set of pictures and added a timed interval to update picture. Then, like the samples, the function _root.onEnterFrame handles the blending of the images.
Upgraded to Flash MX 2004
Since I wanted to add better transition to all the pictures loading, I loaded the project in 2004 and added the line
mx.transitions.TransitionManager.start(img1_mc, {type:mx.transitions.Zoom, direction:0, duration:5, easing:mx.transitions.easing.Bounce.easeOut, param1:empty, param2:empty});
in the updatePict, which is called after a given interval. Next, the onEnterFrame will load the images.
But now, the next time the picture get loaded, the orientation changes and its size is decreasing with every iteration. Why??
I have attached the fla and some images as a zip.
Thanks for the help
Loading Transition Request....
i got my code ready for loading an external swf but i was it load with style with a transiton of some sort can anyone make me a transition effect for when it loads like the swf that is going to load in is real small and takes about 3 seconds to zoom to 100% here is the current code....
ActionScript Code:
mybutton.onRelease = function(){ _root.contents.loadMovie("music.swf"); }
i wud much prefer if u stuck to that code and added transitions into it...thanks
~Dan
Loading Bar For External Transition.
Hi there,
i am looking for a loading bar for this kind of transition. Link bellow.
http://www.kirupa.com/developer/mx2004/transitions2.htm
each time i click the button, it should loading the movie with the loading bar containing in the main movie not in the external movie. if some one knows the solution please... help.
Image Loading/Transition
Hello all.
I'm after making a nice polaroid effect. I have a series of small polaroid movieclips, which when clicked will load their associated pictures into the larger polaroid movieclip. How can I preload something like this? I want to learn how to preload dynamic JPG/SWF's effectively.
While I'm on the same subject is it possible to have the JPG fade in once the JPG has loaded, I'll like it to fade on to the stage the second the preload bar hits 100%.
If there are any tutorials for preloading with transition or any kind souls with an example I could follow then I shall be eternally grateful. Thanks.
Example:
Troubel With Transition While Loading External SWF
So I have my main movie which loads external swf files into an empty MC called container.
What I'm trying to do:
when the user clicks a button to load a new movie into the main section (_root.container) I want the clip to close up like blinds yscale-- ...load the swf in...make sure it's loaded...then open the container back up yscale++
I've been trying everything...and it's coming out completely screwy. I've seen this effect being done before...How do they do it???
thanks,
morgan
Loading External Files With Transition
Does it ever get easier????
I try to buil a photo library. I know how to load a external picture in a MC though loadMovie or getUrl so not there is the problem. The problem is when I try to have between picture an animated MC. So when I click on the 01.jpg, the 01.jpg should first load, then the MCin will play and reveal the picture. When I click to see the 02.jpg then the MCout will play and hide the 01.jpg, load the 02.jpg and then MCin will play and reveal the 2.jpg. And so on.
So, short, I would have a revealing trasition and an hidding trasition between the jpgs, but they have to laod from external fils before the trasition plays.
I tried many tutorials before I got to this forum but or I got different results or I can not make them work.
Thank you for you help
Loading External Swf's With Fade Transition
Hi all,
Thought I would re-post my question phrased a little better ....
I wanted to use this code to construct one SWF that loads up a set of external SWF's that then just play one after each other fading in and out .... The only problem is that this code is asking the user to click on a button to go to the next movie, I dont want ANY user interaction, I just want the movies to play - fade out - new one fades in - over and over!
Can anyone help me with altering this code to make this happen?
Thanks!!!
Here is the original tutorial I followed:
http://www.devx.com/webdev/Article/28142/1954?pf=true
Attach Code
/*
array of possible content to pick from. This article answered a question about swapping loaded SWF files with a transition, but this technique will also work with jpgs, without having to make swf files from them.
*/
swfArray = new Array("red_bird.swf", "chinatown_dragon.swf", "working_beast.swf");
//create two MovieClips that will hold the loaded files
this.createEmptyMovieClip("target1",1)
this.createEmptyMovieClip("target2",2)
//load first movie into clip 1 to start with the first image
target1.loadMovie(swfArray[0]);
//set clip2 alpha to zero so it can fade in
target2._alpha = 0;
//variables that store current clip and current content index
activeTarget = target1;
currentIndex = 0
/*
movie-level enterFrame event handler that will fade down object 1 (if it's alpha is higher than zero), and fade up object 2 (if it's alpha is less than 100)
*/
this.onEnterFrame = function() {
if (obj1._alpha > 0) {
obj1._alpha -= 10;
}
if (obj2._alpha < 100) {
obj2._alpha += 10;
}
//enable trace to watch memory used by each loaded movie. this will illustrate the
// benefits of unloading the faded movie.
//trace("clip1: " + clip1.getBytesTotal() + " clip2: " + clip2.getBytesTotal())
};
//button script that swaps load target focus and loads the next movie
nextButton.onRelease = function() {
//toggles values of object 1 and 2 between clip 1 and clip 2
if (activeTarget == target1) {
obj1 = target1;
obj2 = activeTarget = target2;
} else {
obj1 = target2;
obj2 = activeTarget = target1;
}
//assigns content of object 2 as next item in the content array, unless the
// end of the array has been reached. in this case start over at first item
if (currentIndex < swfArray.length-1) {
currentIndex++
} else {
currentIndex = 0
}
//load content into second clip
obj2.loadMovie(swfArray[currentIndex])
//to reduce possible RAM and performance overhead, add an onEnterFrame
// event handler to object 1 to unload it once it has faded out.
//once the movie has unloaded, delete the onEnterFrame event handler
// to prevent future loads from unloading.
obj1.onEnterFrame = function () {
if (this._alpha <=0 ) {
this.unloadMovie();
delete this.onEnterFrame;
}
}
};
Trouble Loading Swf With Transition Into Root
Hi, I am working on my first flash site - the progress at http://www.pbdesign.pl/test/index.html . However, the problem I have is the following . When you go Portfolio button (02) and next there is the web design button (05). The swf based on the transition of dynamic files tut by Claudio works very well on its own (thanks Recognize, however when I try to load it into the root of the main content (called "obraz" here), it does not work well as you can see. I must be doing something wrong here with AS. I load all other movies with :
on (release) {
loadMovie("films/test.swf",_root.obraz);
}
as in case of 06 button (poligrafia which means print in my most dificult native tonque;-) - and they all work fine. Hmmm, if anyone has a clue please what to do with that, help me.
Thanks
hope my issue is not too silly, I apologize whoever it may concern...
Help With Loading External SWF Transition Tutorial...
Ok everything is working great except when I push a button while another SWF is going through its intro (hasn't yet reached midframe) the swf corresponding with the button pressed doesn't load. This would be a problem if the user had to wait till the transition had to reachthe midframe then click the button but once the button is prematurly clicked, even when the intro stops, the button no longer works. This is the code i have attached to each button:
ActionScript Code:
onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { this.nextFrame(); } else { this.prevFrame(); }}on (release) { if (_root.currMovie == undefined) { _root.currMovie = "cataracts"; _root.contentcontainer.loadMovie("cataracts.swf"); } else if (_root.currMovie != "cataracts") { if (_root.contentcontainer._currentframe >= _root.contentcontainer.midframe) { _root.currMovie = "cataracts"; _root.contentcontainer.play(); _root.contentcontainer.loadMovie("cataracts.swf")} }}
Does anyone have a solution? Thanks.
Mike
Dynamically Loading Image Transition
I have a random picture display. It takes images in another directory, and displays them randomly everytime someone reloads the page. I know how I can make a button trigger it so the user can change the image, but how can I make the new image fade in.
I'm using: mc_name.loadmovie to load the image.
Use AS For Transition Animations Between Loading Swfs?
I'd like to learn how to get smooth transitions between my site pages and I've checked out the tutorial on this site: http://www.kirupa.com/developer/mx2004/transitions.htm
This tutorial has the basic effect I'm looking for but I'd like to know if anyone has a way of making this process even more modular. Specifically, is it possible to create a separate transition intro animation swf (or outro animation swf) that is loaded when the user clicks a button to load the next page. In the above tutorial, the transition animation is added to the beginning and ending of each swf.
If I'm taking the wrong approach here, please let me know. I just really want to get this down so my site pages aren't jolted in and out.
How do some of you create smooth transitions between loading swfs?
Any tips, tutorials, or general advice would be great!
Problem Loading .swfs After Transition
I've created a transition effect in my main timeline so when you click contact for example it uses the following actions -
on (release){
_root.gotoAndPlay ("transition");
}
however after the transition effect there is a keyframe that loads the corresponding file in this case the next frame says
loadMovie ("home.swf","_root.container");
stop();
When my movie starts the first file it loads is home.swf, however if I were to click the home button after the transition has played the home.swf file seems to skip the fade in effects in that movies timeline. I'm stuck.
Can anyone help?
Trouble Loading Swf With Transition Into Root
Hi, I am working on my first flash site - the progress at http://www.pbdesign.pl/test/index.html . However, the problem I have is the following . When you go Portfolio button (02) and next there is the web design button (05). The swf based on the transition of dynamic files tut by Claudio works very well on its own (thanks Recognize, however when I try to load it into the root of the main content (called "obraz" here), it does not work well as you can see. I must be doing something wrong here with AS. I load all other movies with :
on (release) {
loadMovie("films/test.swf",_root.obraz);
}
as in case of 06 button (poligrafia which means print in my most dificult native tonque;-) - and they all work fine. Hmmm, if anyone has a clue please what to do with that, help me.
Thanks
hope my issue is not too silly, I apologize whoever it may concern...
Help With Loading External SWF Transition Tutorial...
Ok everything is working great except when I push a button while another SWF is going through its intro (hasn't yet reached midframe) the swf corresponding with the button pressed doesn't load. This would be a problem if the user had to wait till the transition had to reachthe midframe then click the button but once the button is prematurly clicked, even when the intro stops, the button no longer works. This is the code i have attached to each button:
ActionScript Code:
onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { this.nextFrame(); } else { this.prevFrame(); }}on (release) { if (_root.currMovie == undefined) { _root.currMovie = "cataracts"; _root.contentcontainer.loadMovie("cataracts.swf"); } else if (_root.currMovie != "cataracts") { if (_root.contentcontainer._currentframe >= _root.contentcontainer.midframe) { _root.currMovie = "cataracts"; _root.contentcontainer.play(); _root.contentcontainer.loadMovie("cataracts.swf")} }}
Does anyone have a solution? Thanks.
Mike
Loading Jpegs Into Movieclip, With Transition
Hi
I'm a new poster.
I'm trying to load some jpegs into a movieclip, and have them fade in, and fade out, as you click through the slide show.
I can set up the swf file to load the jpegs, and cycle through the slide show no problem. But what I can't figure out is how to play the movieclip transition before the next jpeg loads.
Basically, I want the first image to fade out completely before the next image is loaded and fades up.
Is there some way to attach a listener or an event handler to a frame in a movieclip? sort of like "if frame 10 (the last frame of the fade out, say) of movieclip X is played, load jpeg, then play frame 1 of movieclip X (the fade up)"?
What happens right now is that when I click the button to go to the next image, the image loads before the movieclip is done playing.
I know it can be done, but it's driving me crazy.
|