Transition Tutorial Problem.
I've been following the transition tutorial on the main site and run into a few problems which I seem to have overcome. For example any text needs to either be embedded using the properties bar or using the library. If anyones stuck I'll post the code.
However the main problem i'm having is loading in an external swf. I;ve created a scrolling gallery that duplicates an instance for each image stored in the array, this works perfectly on its own.
However after you load it into the maininterface with the transition it the scrolling gallery doesn't work, it only shows the mc's without the actionscript affecting them.
I have tried using loadMovieNUM which loads in the scrolling gallery and works but it appears on top of the main interface.
Any help in sorting this would be appreciated and I think should be included in the tutorial.
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 02-19-2004, 05:17 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Transition Tutorial For As 3.0?
so i started my first completely new, from the ground up project since the release of 3.0. i'm a dork, so i was kinda excited to create a new fla file and save 3.0 in the publish settings. so then i got about my business, create a movie clip that i want to use as a button, jump into my actions panel, and give that movie clip instance onRelease, onRollOver, and onRollOut functions. SHABAM!!! spot, we're not in the bahamas any more....
needless to say, 3.0 doesn't work like that. so i tried to fix it from the compiler errors, i needed to create an eventListener. alright, i know how to do that. SHABAM!!! it got aggravating really quick, so then i try to find some documentation to guide me, but i'm finding it hard to find information basically with the idea of "i used to do this, so now what do i do?" anyone know of a tutorial that might help me?
Transition Tutorial
Hi all, I have a question regarding this tutorial http://www.kirupa.com/developer/mx2004/transitions.htm
Does anyone know how I can get the buttons, on entering each section, to display the over state and not be clickable?
Cheers.
The Transition Tutorial
Does that tutorial about transitions on this site work with movies loaded with aniamtion in them? Or does it only work with stand-alone images and such?
Thanks
Looking For A Tutorial For THIS Type Of Transition
Im just starting to learn actionscript and I was hoping someone would have a little feedback on how to do something similar to the transitions on this site.
http://www.jiolahy.it/
Im thinking its just a mask with script repeating a pattern which gradually changes, but i need some input from the experts....
thanks
FDR
Adapting SWF Transition Tutorial For MCs
Hi all,
I'm trying to adapt this tutorial for use with MovieClips in the library, instead of with external SWF (my MCs are small files sizes). I've set the MCs up as per this tute, and done a bit of adaptation to the button MC scripting to use the attachMovie method (I'll explain why in a sec). I have my main FLA set up with my main navigation on the root timelife (one layer per button), and an empty MC on a layer below for my library MCs to get loaded into an empty MC from the navigation. Most of my AS is on an external file, which is as follows:
PHP Code:
// ActionScript file for idx.fla/.swf
// Logo and navigation definitions are global throughout the site
//import com.mosesSupposes.fuse.*;
//ZigoEngine.simpleSetup(Shortcuts,PennerEasing,Fuse);
/* Begin stage resizing code */
// Stage paramaters
Stage.scaleMode = "noScale";
Stage.align = "TL";
// Logo positioning | stationary
logo._x = 40;
logo._y = 40;
// Resize function stage listener for the background
var sListen:Object = new Object();
sListen.onResize = function():Void {
rePosition(bgPhotos);
};
// Resize function for the background
Stage.addListener(sListen);
function rePosition(bgPhotos):Void {
if (Stage.width/Stage.height>bgPhotos._width/bgPhotos._height) {
bgPhotos._width = Stage.width;
bgPhotos._yscale = bgPhotos._xscale;
} else {
bgPhotos._height = Stage.height;
bgPhotos._xscale = bgPhotos._yscale;
}
bgPhotos._x = 0;
bgPhotos._y = 0;
}
contentMonitor = new Object();
contentMonitor.onResize = function() {
_root.contentLoader.newsMC._x = (Stage.width-_root.contentLoader.newsMC._width)-40;
_root.contentLoader.newsMC._y = (Stage.height-364.5)-50;
}
Stage.addListener(contentMonitor);
contentMonitor.onResize();
// Resize function call
_root.bgPhotos.onLoad = function(){
setSize(Stage.width,Stage.height);
bgPhotos.my_ssp.loadImageNumber("0");
}
// Main navigation
frontTrigger.onRelease = function() {
bgPhotos.my_ssp.loadImageNumber("0");
}
profileTrigger.onRelease = function() {
bgPhotos.my_ssp.loadImageNumber("1");
}
worksTrigger.onRelease = function() {
bgPhotos.my_ssp.loadImageNumber("2");
}
detailsTrigger.onRelease = function() {
bgPhotos.my_ssp.loadImageNumber("3");
I've also got actions attach to the MCs I'm using for buttons in the main nav. One example is:
PHP Code:
on (release) {
if (_root.contentLoader.currMovie == undefined) {
_root.contentLoader.currMovie = "newsMC";
_root.contentLoader.attachMovie("newsMC", "newsMC", 0);
_root.contentLoader.newsMC._x = (Stage.width-_root.contentLoader.newsMC._width)-40;
_root.contentLoader.newsMC._y = (Stage.height-364.5)-50;
}
else if (_root.contentLoader.currMovie != "newsMC") {
if (_root.contentLoader._currentframe >=contentLoader.midframe) {
_root.contentLoader.currMovie = "newsMC"
_root.contentLoader.currMovie.play();
}
}
}
Now, the reason I'm using the attachMovie method is because of an earlier issue I was having with my dynamic slideshow in the bgPhotos movieclip and the alignment of the MCs I want to call with transitions. Because those MCs aren't aligned top-left (in fact, they're bottom-right), the attachMovie method was the only one I tried that finally succeeded in accomplishing the repositioning on browser resize.
Anyway, the problem is this: clicking on the nav links will call whatever MC it is and place it correctly on the stage inside its empty movieclip. However, that's where it stops. clicking another link won't advance the clip's animation past the mid-frame, thus loading up the next one. At first I thought it was a path issue, but all attempts to play with paths turned up nil.
Any ideas on what I could be doing wrong?
On a side note, I find that when I do load up one of those MCs, the animations are pretty slow, despite the fact I have the FLA set to 30 fraps. Is it because something is getting cached and not being unloaded? Any thoughts on a solution to that would be appreciated, too.
Cheers!
Good Transition Tutorial...
Does anyone know or can point me in a direction where there are some good script for a load movie or load level transition in which you click the button...and then it fades to black and the new movie fades in...ya know which kind...I didn't know what to search for...thanks in advance...
Transition Tutorial Problem.
I've been following the transition tutorial on the main site and run into a few problems which I seem to have overcome. For example any text needs to either be embedded using the properties bar or using the library. If anyones stuck I'll post the code.
However the main problem i'm having is loading in an external swf. I;ve created a scrolling gallery that duplicates an instance for each image stored in the array, this works perfectly on its own.
However after you load it into the maininterface with the transition it the scrolling gallery doesn't work, it only shows the mc's without the actionscript affecting them.
I have tried using loadMovieNUM which loads in the scrolling gallery and works but it appears on top of the main interface.
Any help in sorting this would be appreciated and I think should be included in the tutorial.
Flaw With Transition Tutorial
Hi I have been using Voetsjabba's transition tutorial, its very good but i've been testing it with my own website and there is a serious problem.
If you try running voetsjabba's transition example, it works fine, however try this
click on section 1 button,
now (whilst the transition movie for section 1 playing hit section 2 button )
nothing happens, you may argue that this is meant to happen, but the main problem is that if you try hitting the section 2 button whilst everything has stopped nothing will happen, it will stay on the current movie.
Try the example and you'll find out.
However there must be a solution to this problem, the following is the code used for the buttons,
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "temp";
content.loadMovie("temp.swf");
} else if (_root.currMovie != "temp") {
if (content._currentframe>=content.midframe) {
_root.currMovie = "temp";
content.play();
}
}
}
There must be a way where u can alter this code so that everytime a button is pressed something will definately happen.
I'd be grateful for help.
Voetsjoeba Transition Tutorial
HI i was having a problem wit this tutorial, well not the tutorial but i took a bit of a diffrent approach.
I put my buttons inside a movieclip, not i figure out i had to g back and but_.root on container.
know my problem is is that it reloads the same swf.
i have it load home.swf on frame enter,
but then i click ot change it will play thru the midframe but then it will reload the same swf
any one have had this issue?
Preloader And Transition Tutorial
I'm having difficulty with one of these tutorials: http://www.kirupa.com/developer/mx/p...transition.htm
iii. Click the transition layer. Double Click on the transition movie clip. Then select the frame 1 of the actions layer. Press F9 or go to Window | Actions. Copy and paste the following code into the Actions dialogue box: _root.section = "profile.swf";
iv. Click on the frame 9 of the actions layer. Press F9 or go to Window | Actions. Copy and paste the following code into the Actions dialogue box:
loadMovie(_root.section, _root.content);
stop();
v. Click on the frame 24 of the actions layer. Press F9 or go to Window | Actions. Copy and paste the following code into the Actions dialogue box:
stop();
I don't understand how this is supposed to work. If I click on the transition layer & double click on the transition move clip, nothing happens, then selecting frame 1 of the actions layer and pressing F9 brings up the actions for the actions layer. Which in the completed tutorial, it shows that the code does not go there.
I hope someone can understand what I mean. I've been examining both the partial source and completed source trying to get it to work, but to no avail.
Problem With Transition Tutorial Help Please
Ok, i'm following these two tutorials....
http://www.kirupa.com/developer/mx2004/transitions2.htm
and
http://www.kirupa.com/developer/mx20...ton_effect.htm
Now, i've assigned the code on the transitions tutorial onto the button, so it looks like so..
Code:
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
this.onPress = function(){
if (_root.currMovie == undefined) {
_root.currMovie = "portfolio";
container.loadMovie("portfolio.swf");
} else if (_root.currMovie != "portfolio") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "portfolio";
container.play();
}
}
}
Now, when i click on the movieclip/button, it wont transition, the about.swf just stays on the page. What am I doing wrong here?
Question About Transition Tutorial
I'm getting a weird error message when I test my button. Here is the code I'm using on my main buttons, substituting the section name of course.
code:
on (rollOver) {
this.gotoAndPlay("over");
}
on (rollOut) {
this.gotoAndPlay("out");
}
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "extra";
//refer to _root
_root.contents.loadMovie("extra.swf");
} else if (_root.currMovie != "extra") {
//refer to _root
if (_root.contents._currentframe >= contents.midframe) {
_root.currMovie = "extra";
//refer to _root
_root.contents.play();
}
}
}
This is the error message I get.
Error opening URL "file:///C|/Documents%20and%20Setting.../undefined.swf"
Does any one have any Ideas on why it's looking for 'undefined.swf'?
Tutorial: Transition Between External .swf
i followed your tutorial and everything works fine - but what if i have an external swf that has not only 1 midframe, but more? is there a way to use your tutorial with "midframes"?
Transition Tutorial On Site.
Im tried doing the transition tutorials thats avaliblew here at kirupa, but doesn't work out.
I tried download the file and copypasting the code and still doesnt work. Yes i changed instance names and swf names.
My problem is that when I add the action to my button, it keeps loading the movie that loaded at first.
Any quick help would be apreciated.
Thanks.
Steve.
A Little Change In Transition Tutorial, Can You? :)
Hi everyone and thx for your attention.
I'm workin on a little site and i had follow this tutorial about transition for dynamic files on kirupa (transition for dynamic files).
This is the link at the site i'm doing :
link
And that is the question :
How can i do to have the transition animation closed in the start of the site and then decide to open it clicking on the 4 buttons i got?
I don't want to see it open immediately but only when i'll click on the buttons.
I've searched inside the forum but i didn't found what i'd like to want, also i'm an actionscript rookie...
Can you help me plz?
Cya! and thx
Supadiri
Transition Tutorial Question - Sorry
Hi people...
I have an external swf called "home". On the "home" stage is a button, and when this button is clicked, im wanting it to play a movieclip on the Flash document the container resides in (index.swf).
The movieclip has an instance of "background".
Can this be done?
Cheers
Preloader Transition Tutorial Help
Ok, newb here, got the tutorial working no problem (tutorial link) and understand it all (I think) but I made my own swf just to test and saved over the gallery.swf that came with the tutorial, and now the animation wont load when I press the gallery button, it just opens to a yellow screen. The swf just had a line of text on it - I can't see it, but I can select it. The other two buttons still work.
What have I done wrong? Do I need to do something special to the new swf file to get it to load properly into the main swf file?
Cheers!
Flaw With Transition Tutorial
Hi I have been using Voetsjabba's transition tutorial, its very good but i've been testing it with my own website and there is a serious problem.
If you try running voetsjabba's transition example, it works fine, however try this
click on section 1 button,
now (whilst the transition movie for section 1 playing hit section 2 button )
nothing happens, you may argue that this is meant to happen, but the main problem is that if you try hitting the section 2 button whilst everything has stopped nothing will happen, it will stay on the current movie.
Try the example and you'll find out.
However there must be a solution to this problem, the following is the code used for the buttons,
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "temp";
content.loadMovie("temp.swf");
} else if (_root.currMovie != "temp") {
if (content._currentframe>=content.midframe) {
_root.currMovie = "temp";
content.play();
}
}
}
There must be a way where u can alter this code so that everytime a button is pressed something will definately happen.
I'd be grateful for help.
Voetsjoeba Transition Tutorial
HI i was having a problem wit this tutorial, well not the tutorial but i took a bit of a diffrent approach.
I put my buttons inside a movieclip, not i figure out i had to g back and but_.root on container.
know my problem is is that it reloads the same swf.
i have it load home.swf on frame enter,
but then i click ot change it will play thru the midframe but then it will reload the same swf
any one have had this issue?
Preloader And Transition Tutorial
I'm having difficulty with one of these tutorials: http://www.kirupa.com/developer/mx/p...transition.htm
iii. Click the transition layer. Double Click on the transition movie clip. Then select the frame 1 of the actions layer. Press F9 or go to Window | Actions. Copy and paste the following code into the Actions dialogue box: _root.section = "profile.swf";
iv. Click on the frame 9 of the actions layer. Press F9 or go to Window | Actions. Copy and paste the following code into the Actions dialogue box:
loadMovie(_root.section, _root.content);
stop();
v. Click on the frame 24 of the actions layer. Press F9 or go to Window | Actions. Copy and paste the following code into the Actions dialogue box:
stop();
I don't understand how this is supposed to work. If I click on the transition layer & double click on the transition move clip, nothing happens, then selecting frame 1 of the actions layer and pressing F9 brings up the actions for the actions layer. Which in the completed tutorial, it shows that the code does not go there.
I hope someone can understand what I mean. I've been examining both the partial source and completed source trying to get it to work, but to no avail.
Problem With Transition Tutorial Help Please
Ok, i'm following these two tutorials....
http://www.kirupa.com/developer/mx2004/transitions2.htm
and
http://www.kirupa.com/developer/mx20...ton_effect.htm
Now, i've assigned the code on the transitions tutorial onto the button, so it looks like so..
Code:
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
this.onPress = function(){
if (_root.currMovie == undefined) {
_root.currMovie = "portfolio";
container.loadMovie("portfolio.swf");
} else if (_root.currMovie != "portfolio") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "portfolio";
container.play();
}
}
}
Now, when i click on the movieclip/button, it wont transition, the about.swf just stays on the page. What am I doing wrong here?
A Comprehensive Transition Tutorial?
Hello!
I've been using Flash MX for a good while and I'm used to masking with shape/motion tween. I think that it's safe to assume that a transition can be made using a shape tween with a mask for the IN - effect and reversing the frames for the OUT - effect. The problem is that I don't know how to code these transitions in between the different sections of a site.
Lets assume tha asite has four different sections and respectively four different buttons : Main, Info, Portfolio and Contacts for example. The Main page would open with a transition and when you'd click any of the remaining buttons you'd get a closing transion that is unique for the Main section and after that move to a different section that also has its unique opening and closing transitons.
I think it would be wise to make each section into a different movieclip (so 4 different mc's in a single .fla) that holds both of the transitions and the content. I'd really appriciate if someone would take the time and help me out with this, (because I know there are a lot of advanced Flash users lurking around here in US).
- nasu
Percentage Preload And Transition Tutorial
Is it possible to apply a preloader with a progress bar and the percentage display on the transition effect instead of just having a animation and "loading".
I'm using a modified version a tutorial i found here, here's the code of the preloader :
ActionScript Code:
bytes_loaded = Math.round(this.getBytesLoaded());bytes_total = Math.round(this.getBytesTotal());getPercent = bytes_loaded/bytes_total;this.loadBar._width = getPercent*this.loadBarBorder._width;this.loadText = Math.round(getPercent*100)+"%";this.loadingClip.gotoAndStop(Math.round(getPercent*19)+1);if (getPercent == 1) { this.gotoAndStop(3);}
My question is where to put this script and the preloader animation
Here's the two files (i'll put them into file) :
Voet's Transition Tutorial Problem
i have my main swf that everything loads into. then there are a bunch of other swf's that load into it. most of them work but there is one that when you click on the button it reloads the main swf. then when you click on it again it works. i have been kicking myself in the *** for 2 days with this. why won't it work?
EDIT: i forgot to mention that everything works fine on my computer. the problem only occurs when i upload the site. i am also using the same exact movie except for the content. *sigh* i am frustrated.
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
Expanding On The Kirupa Transition Tutorial
Hi all,
I've been messing about with this transition tutorial but have come across a problem that the tut doesn't really cover :-
Here's the tut: http://www.kirupa.com/developer/mx2004/transitions.htm
On the example here when you click on other buttons while the current movie is playing, the buttons have no effect until the timeline gets to the section of action script that tells the main swf what movie to play next according to the users button selection.
The movies that I have made range from about 150k to 200k per section but the obvious problem is that the user has to wait until the current movie has loaded and played out before the button press has any effect.
I tried making the AS frame that contains the _root.container.loadMovie(_root.currMovie+".swf"); range right across the timeline hoping that this would take into account the button presses before the current movie has finished, but it just messes up completely.
Does anyone know a work around here? I could really use the help!
TIA.
Question With The External Swf Transition Tutorial
Just found the site...I was thrilled to find the Transitions between External SWFs ....its very helpful...however...I am one of those poor souls who doesn't have their buttons on the main timeline...I have my buttons contained within movieclips...as they have rollon and rollout animations....so the scripts don't work right.... Kirupa says, "If your buttons are not located on the main timeline, you will have to change the path to the container movieclip." However, because I have absolutely no programming experience, I dont know what he means. How do I change the path to the container movieclip? I have the blank movieclip "container" on my main timeline...so what do I need to do in the script for the button to have the appropriate path?
Sorry for my ignorance...but I would greatly appreciate any help!
TIA
P
Transition For Dynamic Files (tutorial)
Hi there,
I used the transition for dynamic files tutorial and it works great.
http://www.kirupa.com/developer/mx/preloader_transition.htm
I only have a problem...
Cause it is dynamic i'm not able to use normal text, bgcolor and scrollable textfields in the external swf's and I want to...
How can I solve that problem??
Thanx a lot!
Transition Tutorial: Is It Possible To Load A Swf Into A Loaded Swf?
I am working with the transitions tutorial: http://www.kirupa.com/developer/mx2004/transitions.htm
Here is a link to the modified example im working on.
http://www.pixelvector.com/temp/tut/
If you are familiar with this tutorial you will see this is familiar. Main movie checks to see if the specific section is at "midframe" if its not it waits and does nothing, then once you have transitioned to midframe and stopped it, click on the next section will then transition out and load the next movie. I am tring to do a little variation of it.
ok we have mainmovie2004.swf which has 4 buttons. Each button, section1, section2, section3, and section4 all load specific movies to "container" on the main timeline. Section1 button loads section1.swf, Section2 button loads section2.swf...etc. Well I have placed another set of buttons in each section (just section1 and 2 for example sake). Each button loads a specific movie into container_small (yeah I know it doesnt follow camelCode but thats the least of my concerns). I have been messing around with the code and I am able to get Section1 to load, then when I click on the first pink button in section1 it loads section1.1 which is (section1_1.swf). When I click on the next button it just reloads the same section no matter what. The other sections work because when you load section1 and click on any pink button the corresponding swf loads just doesnt ever transition out. The tree would like like this: {mainmovie2004.swf[section1.swf(section1_1.swf)]}.
I think the problem is the last frame of each sub section has an action that will load the next section. I need to get the path correct.
_root.container_small.loadMovie(_root.currMovie+". swf")
Now when I am click inside section1.swf its tring to load the next subsection into the container in section1.swf which is container_small, which is neither in the "_root." or "this.".
What would be the proper pathing?
Forgive me for my ignorance, I'm still learnin me some actionscripting
Thanks
Paul
AS Trouble With Kirupas Transition Tutorial
Hi,
Hope to find a bit of help out there.
I always use the transitions I've learned from this site when building a Flah-site. Loading .swf's into an empty movie-clip.
I'm making a new site for the place I work, and I decided to take things a bit further (not that anything is really advanced - but for me it's apparently a bit hard to grasp)
You can see the site here: http://www.armedrob.dk/s/fireball/
The trouble is in the "work" section. After some clicking something goes wrong. The menu disapears - and my main move goes into some kind of autoplay. I load a swf into an empty movieclip(container) in my main movie, in that swf there's a submenu that loads another swf into an empty movieclip(holder). I can't seem to find where the error is, but it must be there somewhere...
Would really like some help here - I'm totally stuck...
If any of my flash files or code could help you solve this just ask and I will post it...
Thanks in advance.
Simon
Percentage Preload And Transition Tutorial
Is it possible to apply a preloader with a progress bar and the percentage display on the transition effect instead of just having a animation and "loading".
I'm using a modified version a tutorial i found here, here's the code of the preloader :
ActionScript Code:
bytes_loaded = Math.round(this.getBytesLoaded());bytes_total = Math.round(this.getBytesTotal());getPercent = bytes_loaded/bytes_total;this.loadBar._width = getPercent*this.loadBarBorder._width;this.loadText = Math.round(getPercent*100)+"%";this.loadingClip.gotoAndStop(Math.round(getPercent*19)+1);if (getPercent == 1) { this.gotoAndStop(3);}
My question is where to put this script and the preloader animation
Here's the two files (i'll put them into file) :
Voet's Transition Tutorial Problem
i have my main swf that everything loads into. then there are a bunch of other swf's that load into it. most of them work but there is one that when you click on the button it reloads the main swf. then when you click on it again it works. i have been kicking myself in the *** for 2 days with this. why won't it work?
EDIT: i forgot to mention that everything works fine on my computer. the problem only occurs when i upload the site. i am also using the same exact movie except for the content. *sigh* i am frustrated.
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
Expanding On The Kirupa Transition Tutorial
Hi all,
I've been messing about with this transition tutorial but have come across a problem that the tut doesn't really cover :-
Here's the tut: http://www.kirupa.com/developer/mx2004/transitions.htm
On the example here when you click on other buttons while the current movie is playing, the buttons have no effect until the timeline gets to the section of action script that tells the main swf what movie to play next according to the users button selection.
The movies that I have made range from about 150k to 200k per section but the obvious problem is that the user has to wait until the current movie has loaded and played out before the button press has any effect.
I tried making the AS frame that contains the _root.container.loadMovie(_root.currMovie+".swf"); range right across the timeline hoping that this would take into account the button presses before the current movie has finished, but it just messes up completely.
Does anyone know a work around here? I could really use the help!
TIA.
Question With The External Swf Transition Tutorial
Just found the site...I was thrilled to find the Transitions between External SWFs ....its very helpful...however...I am one of those poor souls who doesn't have their buttons on the main timeline...I have my buttons contained within movieclips...as they have rollon and rollout animations....so the scripts don't work right.... Kirupa says, "If your buttons are not located on the main timeline, you will have to change the path to the container movieclip." However, because I have absolutely no programming experience, I dont know what he means. How do I change the path to the container movieclip? I have the blank movieclip "container" on my main timeline...so what do I need to do in the script for the button to have the appropriate path?
Sorry for my ignorance...but I would greatly appreciate any help!
TIA
P
Tween/Transition Class Tutorial
FYI
MM - DEVNET Using the Tween and Transition Classes in Flash MX 2004 by Jen deHaan.
http://www.macromedia.com/devnet/mx/...ing_print.html
Tutorial: Preloader And Transition For Dynamic Files
Hey Guys, I was working on the Tutorial Preloader and Transition for Dynamic Files , and I got the tutorial to work, but I was trying to apply it with a site I'm working on, it won't work. Any Idea? I have attached the .fla I was working on
http://www.geocities.com/ejbatu1/eNew.fla
Modification To The Transition Tutorial On Kirupa.com. Help Needed...please :(
, well this is gonna be a long big essay. So lets start.
http://www.kirupa.com/developer/mx2004/transitions.htm
I used this tutorial to make a nice menu. I got some ideas by searching this forum. Finally came up with this (check the attached .fla) ...
Allright, now umm...its really hard to explain. But i gotta explain this.
Please Check the attached fla to get the idea of what I am talking here. You will notice that there are 3 buttons in the MAIN MENU. 1) Home 2) News 3) Forums.
For the SUBMENU : I put 3 more buttons inside the forums_mc (look in the library) on frame 61. The buttons are 1) EXT MC 1 , 2) EXT MC 2, 3) EXT MC 3. I want to use these buttons to load external swf. I want to use the same logic used in the transition tutorial to make the intro and outro transitions. In addition to that, if I press any button on the MAIN MENU, the externally loaded swf should play outro transition and also collapse the SUBMENU. BUT (this is important) , if I press any button in the SUB MENU (like the button EXT MC 2) , then outro transition should play in the ext swf, but the SUB MENU SHOULD NOT PLAY THE OUTRO ANIMATION (which we want to do, when pressing any button on MAIN MENU).
Also the externally loaded swf should load in the emptycontainer movieclip inside the FORUMS_MC clip.
So, got any ideas how to do this ??? Please look the attached files. The above discription will only make sense if you see the .fla and other files attached.
I tried my best to do this, but could not succeed. Also, i asked many friends, but they are not able to do this...I am pretty sure that Masters like POM and Voetsjoeba, scotty and many others will be able to solve this problem. I think its pretty easy for you guys
Thanks in advance. I appreciate your help.
Tutorial: Preloader/transition/dynamic Files
Hello there
I am using a customised version of the preloader and transition for dynamic files to load a 30sec swf animation that I have made.
The preloader looks great and loads the animation.swf. The problem is that it starts playing before it has totally loaded - underneath the transition animation. When the preloader transition clip opens, the movie is already half way through.
I'm sure there is a bit of script that can stop it playing until it has totally loaded or that makes it start when the transition animation opens but I don't know how to do it. Please would you help me to do this?
ps. if you explain it like i'm a 5yr old that would help!
Thanks very much!
manda
New Question Regarding Claudio's Tutorial, The Preloader And Transition One
Yes, I know. This tutorial has been covered many times before, but I have a new problem. I followed Claudio's tutorial...
http://www.kirupa.com/developer/mx/p...transition.htm
...and modified it according to my needs, and worked fine. Then, I wanted to make a preloader for it, so I found this thread, and followed Icio's suggestions, and worked:
http://www.kirupa.com/forum/showthre...lete+preloader
But, I still have that same old problem, that the external swf's animation plays underneath the loading bar before it finishes loading. The script that handles it, is inside the "loading" movieclip that Icio made. How can it be modified to work properly with an animated external swf? By the way, I know very little Actionscript (that's why I can't figure it out ).Thanks.
SMOOTH TRANSITION TUTORIAL - PATH ISSUE - HELP
Hi there
I'm using the tutorial found here to transition smoothly between my external swfs. This method calls the swfs into a container, called location, on stage. However, I have 2 problems:
1. The method in the tutorial only shows how to to do it from the mainline, which I am not doing.
2. My navigation is already in a container, called container, which I am unsure of how this will affect the path.
Quickly, home.swf is loading image1.swf into a container (called location) on stage. Image1.swf contains my menu. The menu will not call the relevant swf's when clicked. I know it's a path issue, but I am fairly code illiterate and could desperately use someone else's eyes on this for 3 minutes to let me know what and where the path needs to change to...
PLEASE DOWNLOAD THE FILES (3 MEGS) FROM MY SERVER... too large for upload here. Download them at http://www.moggey.com/help.zip
I've included the two fla's I am using, plus the relevant swf's that would be called were the navigation working properly.
If someone would be kind enough to take a quick look at my button A/S it would be soo appreciated!
THANK YOU IN ADVANCE!
Wade
Senocular Tutorial Question - Preloading + Transition
Hello,
To make it easy, go on http://www.senocular.com/flash/tutorials/preloading/
Take a look at Example 6 and dowload the source file : load_images_page_trans.zip
http://www.senocular.com/flash/tutor...page_trans.zip
The code is not very long or complex. What I want to do it to make a movie clip load right at the beginning of this. Currently I can only preload movieclips by clicking a button ( onPress or onRelease ).
I also tried to put on frame 1:
startPreload("load/anymovieclip.swf");
And also:
_root.onEnterFrame.startPreload("load/anymovieclip.swf");
How can I preload a clip on start?
Thanks!
( the senocular forum is not so active, why I'm posting here )
Image Transition In Kirupa Gallery Tutorial
I worked through the Kirupa Gallery with Thumbnails tutorial. I am a novice, but quick learner. I would like to change the gallery so that when I click on a thumbnail, the large pictures also scroll into place--like this gallery: http://www.digicrafts.com.hk/components/fc_galerie.php
I imagine I have to change both the script that displays the large images, and the the thumbnail portion.
Thanks!
Preloader And Transition For Dynamic Files TUTORIAL
can anyone help me plz...
i want to add a load bar with percentage while preloading the external files with the transition. i guess it will be quite simple i am just new in flash and i m working my way around it.
tnx in advance
tutorial page:
http://www.kirupa.com/developer/mx/p...transition.htm
[FMX04]Note On External SWF Transition Tutorial
Hello everyone,
First post. I was just going through Voetsjoeba's tutorial on making transitions between external swf's < http://www.kirupa.com/developer/mx2004/transitions2.htm >, which contained this note:
"If your buttons are not located on the main timeline, you will have to change the path to the container movieclip. In this example the buttons are located on the main timeline, therefore 'container' targets the container movieclip correctly. Though, if they are not on the main timeline, you must change container to the appropriate path."
I was wondering if anyone could elaborate on this. That is, how the path to the container movieclip would need to be changed in this situation. Apologies if the question is too vague.
Thanks!
sjnair
Transition Between External Swfs Tutorial Tweak
My transition scripting is based off of the tutorial "Transitions Between External SWFs" by Voetsjoeba.
How can I make the main nav buttons change the current SWF being loaded if they are pressed during the intro phase before the current SWF reaches midframe? The problem I have is the user has to wait for the externally loading SWF to reach midframe before the main navigation buttons will work.
Here is the AtionScript on the main nav buttons.
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "AboutUs";
container.loadMovie("AboutUs.swf");
} else if (_root.currMovie != "AboutUs") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "AboutUs";
container.play();
}
}
}
Thanks in Advance.
Preloader And Transition For Dynamic Files Tutorial
I have followed the tutorial and everything works great, in tutorial fla. When I try to apply the tutorial to a new fla, I cannot get the "opening" to work, the swf's are loading because when I click on a new button, I can see them briefly under the transition, but my transition won't open after load.
Its probably a stupid mistake, I don't know where it could be, I've scoured all the actionscript for typos, I would think it would be in the actions for the content mc, but now I'm just frustrated.
Thanks......
|