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




Help With Voetsjoeba's Transitions Tutorial Needed



When I use Voetsjoeba's (I hope I spelt that right) Transitions tutorial and follow all the instructions (far as I can tell) i get a code error message that says:
Code:
**Error** Scene=Scene 1, layer=Layer 2, frame=22:Line 1: Operator '+' must be followed by an operand _root.container.loadMovie(_root.currMovie+”.swf”);
This is in the .swf to be loaded, not the site with the butons and stuff. Can someone please help me?



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 05-12-2004, 09:20 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Help With Voetsjoeba's Transitions Tutorial Needed
When I use Voetsjoeba's (I hope I spelt that right) Transitions tutorial and follow all the instructions (far as I can tell) i get a code error message that says:


Code:

**Error** Scene=Scene 1, layer=Layer 2, frame=22:Line 1: Operator '+' must be followed by an operand
_root.container.loadMovie(_root.currMovie+”.swf”);
This is in the .swf to be loaded, not the site with the butons and stuff.

Can someone please help me?

Transitions Between External SWFs - Voetsjoeba Tutorial
hi there, im pretty new when it comes ta flash so please forgive me.

I have followed through this tutorial: http://www.kirupa.com/developer/mx2004/transitions.htm

And I can get it to work when the buttons are on the main scene, but I want my buttons to be in a movie clip within the scene. I then follow the tutorial again but I get the following message:

Scene=Scene 1, Layer=actions new, Frame=3: Line 1: Operator '=' must be followed by an operand
_root.currMovie = “work”;

hope that makes sense...., what Is it im doin wrong?

Thanks, keljnr.

Transitions Between External SWFs - Voetsjoeba Tutorial
hi there, im pretty new when it comes ta flash so please forgive me.

I have followed through this tutorial: http://www.kirupa.com/developer/mx2004/transitions.htm

And I can get it to work when the buttons are on the main scene, but I want my buttons to be in a movie clip within the scene. I then follow the tutorial again but I get the following message:

Scene=Scene 1, Layer=actions new, Frame=3: Line 1: Operator '=' must be followed by an operand
_root.currMovie = “work”;

hope that makes sense...., what Is it im doin wrong?

Thanks, keljnr.

HELP NEEDED WITH TRANSITIONS BETWEEN EXTERNAL SWF TUTORIAL
basically for my website in my main fla, i have some buttons which when pressed work fine, however i have one button which is a mc as it is a sub menu buton, this does not work like the others, i no this is because the others are buttons and this is a MC, so i wanted to ask anyone, what i need to change in the following AS which is for a button to make it work for a MC?

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "design";
container.loadMovie("design.swf");
} else if (_root.currMovie != "design") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "design";
container.play();
}
}
}

Fading Grid Tutorial, I Can't Figure It Out Other Transitions Needed
Hi guys, this is my first post and I'm very new to Flash. I tried to do the tutorial, I thought I followed it to the T and I can't figure out what's wrong. Nothing happens when I run it. I don't quite understand what I'm supposed to do here:

Quote:





Originally Posted by http://www.kirupa.com/developer/mx/fadegrid2.htm


Create a new layer, give it the name border and select the rectangle tool. Now, roughly draw a border around the image. The width, height and position will be set through ActionScipt, so you can place it anywhere and give it any size you want.




How do I draw the border using a rectangle? Do I draw a rectangle over my image, do I draw multiple rectangles around my image, I DON'T UNDERSTAND!

Sorry, I've spent the past 2 hours trying to do this and nothing works. I'm also curious, why didn't Voetsjoeba release the .fla?

I also need to try out some other masking transitions, but I am baffled. I've tried to modify the fade britney.fla to fit a shorter and wider image, but I can't get the circles to move any further.

I'm sorry if this post is kind of random, I'm just going looney because I can't figure any of this stuff out.

Thanks in advance! Great site BTW!

Transitions Between External Swfs Voetsjoeba
greetings, i followed the tutorial by Voetsjoeba about Transitions between external swfs. i applied it to my own .fla and am having fair success. the problem i'm having is that the buttons work and transition correctly, but every button reloads the same external .swf. i can't find whats keeping each button from loading its external file. if i switch the external file that loads first. then all buttons load that clip.

my main stage has an embedded movie clip called mc_opening. the container is on frame 25 until the end. an animation runs until frame 64 where this code is placed.

stop();
_root.currMovie = "home";
container.loadMovie(_root.currMovie+".swf");

this loads the home page right off.

also on this frame are all the buttons. there are 6 buttons total. each button launches a new external .swf to be loaded in the container. this is the code we'll use the video btn.

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "video";
container.loadMovie("video.swf");
} else if (_root.currMovie != "video") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "video";
container.play();
}
}
}

you press the video button and the home.swf slides away, but instead of the video.swf loading the home button slides in. the in the output monitor the code seems to be showing that it is working properly.

the code on say the video buttons external file is this

action 1 midframe=22
action 2 stop();
action 3 _root.container.loadMovie(_root.currMovie+".swf")

its close. someone 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?

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?

Help Needed - Transitions
Hello,

I want to create a similar effect to the one used on this web-site of the background:

http://www.jamelia.com/

Is there a simple way of doing this by using Actionscript without animating...if so how?

Thank you!

Tutorial For Transitions
I did a search on this site and a couple of others but never really found what I was looking for.
Im looking for a decent tutorial on how to make smooth flowing transitions.
Like the one on this site for example.
http://www.log2e.com/flash/en_index.html

If you click on his different buttons, the scene below flows away and the next one flows in.
I am sorta guessing the "flow out" is done in the same time line and same .swf file. That I can do, I think. But what I dont really know, is the script thats assigned to the button to make the next scene (depending on the button pushed) "flow in"?
I just learned about "loadmovie", which Im getting the hang of slowly, but this causes my current scene to dissapeer and the the next one to start. not very smooth

hmmmmm, just thought about something.. if I put a script into the button to finish the current movie (flow out), then start the one based on the button you selected, this could work right?
Hmmmm, need to do some searching for that kind of script

The Transitions Tutorial
I went through the transitions turtorial, but I needed to change the script from having my loaded movies going into a container, to loading on a level with loadMovieNum....I thought I had changed all the appropriate things...but it never worked, and I've been screwing around with it aaalllll day and have made a complete mess of it..I have my midframe set in the external swfs, and the command to load the new swf in my last frame of each swf, but now, I've come so far with this script that I don't know what I've done....if anyone could have a look at this mess and tell me what I've done wrong, I would really appreciate it:


ActionScript Code:
on (release) {    _global.peter = "Discography2";    trace(_global.peter)    trace(_global.currMovie)    trace(_global.midframe)     if (_global.currMovie == undefined) {        _global.currMovie =_global.peter;        trace(_global.currMovie)        loadMovieNum(_global.currMovie+".swf", 3);    }else if (_level3._currentframe>=_global.midframe && _global.currMovie != undefined) {        trace("ok")        trace(_global.midframe)        _level3.gotoAndPlay(_global.midframe+1);    }}


I'm lost, and this is a tad above my head, but I usually like a challenge, lest it ends with me pulling my hair out!!

thanks,
Adam

Transitions Tutorial
Hi there.
I've not much experience in making swfs and would appreciate any help about this trasitions tutorial; [http://www.kirupa.com/developer/mx20...sitions2.html]
I can't manage with the 2nd part... [The SWF]
Maybe someone has done it before(?)
I don't know how to create intro animation.

Best regards.
Kerazyt.

Transitions Tutorial
Hi there.
I've not much experience in making swfs and would appreciate any help about this trasitions tutorial; [http://www.kirupa.com/developer/mx20...sitions2.html]
I can't manage with the 2nd part... [The SWF]
Maybe someone has done it before(?)
I don't know how to create intro animation.

Best regards.
Kerazyt.

Mx.transitions.Tween [Help Needed]
I am so confused on what's going on here. Can someone take a look at my FLA and let me know what you think the problem is. I've been looking at this for so long I know its right there but I can't see it. If you open it up then run it you'll see 4 columns. The last 2 have all the movieClips in place and are ready to go. Here's the problem:

if you roll over either of them you get some things popping up using the mx.transitions. And when you roll off it does the same but going back down. The problem happens when you roll off before the first transition completes. If you do that, the down transition starts but it ends up where the up transition ends. I'm sure this sounds strange, that's why I added the FLA for reference.

Any help would be great, like I said I'm so lost right now as to why this is happening.

Thanks

Transitions Tutorial...with A Twist
Hello everyone,
I've made a few threads about this and didn't get any responses. I'm getting a lot closer to where I want with this but I've run into a bit of a snag. I'm using the "transitions" tutorial with a media player. Instead of having a seperate button for each section or song, I have one button that when pushed will load the next section. I'm not sure how to go about applying this code to what I have already.

The buttons (red and blue) I have in the file now are not supposed to be there. I want the user to only have to click on the next button in order to go to the next section. I'm thinking I need to add an array possibly?

I'm really a newbie with actionscript so if someone could please help me, I would REALLY really appreciate it. I've been having trouble with this for quite a while and it's giving me a headache.

Thanks in advance

zip file - www.beneaththesky.com/player_concept2.zip

Flash MX Transitions Tutorial
Hey, I'm trying to implement these transitions using MX 2004. I tried compiling the tutorial files and they worked, but when I use my own (slightly adapted) version it sticks after the closing animation.

I've attached my index file, you can use dummies for the linked .swf's if you wanna have a look. I really need help on this, I've pretty much copied the tutorial word for word and it won't work.

Thanks.

Help With External SWF Transitions Tutorial
Hello!

My name is Rene. I'm using this tutorial to build a Photographer's Gallery, and I made some slight modifications - and I need a little advice.

Instead of the one external swf getting loaded that we see in the example, I have (2).

One is the actual portfolios, each one a seperate swf. The other is the navigation (thumbnails that open the different portfolios).

Basically, the nav and the first portfolio load when you open the site. Then a user will be able to click on a thumbnail to see the other portfolios.

The code on the button is this;

on (release) {
container.loadMovie("Group2Gallery.swf");
container.play();
}

Where "container" is the name of the instance empty movie clip where it gets loaded and "Group2Gallery.swf" is the movie to be loaded.

The error I get is this;

Target not found: Target="container" Base="_level0.container2"
Target not found: Target="container" Base="_level0.container2"
Where "container2" is the empty movie clip where the Nav is loaded.



Thank you in advance for your help...

[MX] Help With 'transitions Between Extrnal SWF' Tutorial - Please
Hey everyone,

The tuorial is here - http://www.kirupa.com/developer/mx2004/transitions2.htm

I am usong the tutorial model to make a gallery section which has different image sets that I want to transition between. I went through the tutorial and got everything to work, BUT - when I load the movies into another parent movie, the buttons don't work properly. Whichever image set I load first is the only image set that loads; both buttons load whichever set I chose first.

Should the script in the tutorial work even if I load it into another movie? Do I need tochange references? I am using Flash MX. I really put some time into banging my head against a wall on this trying to figure out what I was doing wrong so I finally posted, I hope you can help-

Thanks
Krishna

I uploaded the SWFs and FLAs here http://mrkrishna.com/flash/swfs.zip
movie is the main parent movie
images is the gallery movie that controls the transition movie, it loades into 'movie'. WHen you run just the 'images.swf', increase the window size to the right to reveal the buttons
images1 and images 2 are the image sets that load into images

thanks again

Still Stumped: Transitions Tutorial
Hi,

I can get everything working fine with the transitions tutorial as-is. However, I'm trying to do something a little different. Basically, instead of having the buttons as they are in the tut -- sitting still on the main timeline -- I've put together a SWF with the buttons internally, that animates the buttons, scrolling with the _xmouse variable. The idea is to get something like this working:

http://ideaspora.net/newgrey.html

So that, when you click on each button, the menu disappears and a subsection fades in to take its place.

I have basically set the main timeline up to be a placeholder with background graphics and the "container" movie clip. The menu of buttons is the equivelant of "section1" in the tutorial, it's loaded automatically when the main timeline loads. Each subsection -- or, each area that a button represents -- will be the equivelant of "section2," "section3," and so on.

The code in the tutorial is broken by my setup because I've changed the path to the "container." However, I can't for the life of me seem to work out the proper, new path.

Here is the code as it appears in the tutorial:


Code:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "section2";
container.loadMovie("section2.swf");
} else if (_root.currMovie != "section2") {
if (container._currentframe>= container.midframe) {
_root.currMovie = "section2";
container.play();
}
}
}
Here is one example I've tried that doesn't work:


Code:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "section2";
_root.container.loadMovie("section2.swf");
} else if (_root.currMovie != "section2") {
if (container._currentframe>= container.midframe) {
_root.currMovie = "section2";
container.play();
}
}
}
However, this "kinda" works:


Code:
on (release) {
_root.container.loadMovie("section2.swf");
}
It at least loads "section2.swf" into the "container" movie on the main timeline. But of course, it does so without the desired transition.

Any chance I could get some help on this would be greatly appreciated. I've asked here before and haven't gotten a response -- hopefully I haven't broken any forum rules and I apologize if I did.

- jim

Problem With Transitions Tutorial
I have been studying the Transition between external swf tutorial and for some reason I can't get it to work properly.

I followed the tutorial to the letter but somethings not functioning correctly.
For those familiar with it I've create my main fla file in which my elements animate and are placed on the screen. Once there I include the actionscript

_root.currMovie = "welcome"; container.loadMovie(_root.currMovie+".swf");
which as the tutorial says, this is when I want my movie to open. Now when it comes time for that to execute, nothing happens. All my files are in the same directory, no sub-folders or anything.

I've created my welcome.fla and exported it as .swf with all the action scripts indicated and I'm just puzzled now.

thanks.

Transitions Between External Swf's Tutorial
Great tutorial, works excellent. My only issue is how to do this on multiple levels? I'm trying to get an external swf open within an external swf. I know this probably isn't necessary but it does keep the site easily managed and very dynamic.

It works on the main swf, and if i test it on the the linked page it works as well, just not together. I orginally thought that maybe it was the conflicting container names/variables so I made sure to change those. Maybe the solution would be to use a common container?

Please download my sample fla here: http://www.cgrobot.com/murata.zip
(note, not all linked swf's are included, just enough to get the point across. The issue is with the sub-menu within "Information").
To see an online version: http://www.cgrobot.com/ethosweb/ethos.html

Thank you!

Transitions Btwn SWF's Tutorial
I just went through this tutorial b/c i had been linking separate SWF files together as HTML files which did not look smooth. The transitions don't seem to be working now though. The file isn't loading. I noticed the Tutorial is based on Flash MX but i'm using Flash 8...would the script need to change? I'm really not sure what I did wrong.

On Transitions Tutorial And Variables
Hi Folks,

New to actionscript and attempting to get a handle on variables. I am spending time on the tutorial at http://www.kirupa.com/developer/mx2004/transitions2.htm

I found this whole tutorial very enlightening and I am exploring some concepts with it.

I am perplexed. On the first button there is some actionscript. I modified it as follows:

on (release)
{
if (_root.currMovie == undefined)
{
_root.currMovie = "section1";
container.loadMovie("section1.swf");
trace(_root.currMovie );
trace (container.midframe);
} else if (_root.currMovie != "section1")
{
if (container._currentframe >= container.midframe) {
_root.currMovie = "section1";
container.play();
}}}

Notice I added two traces. The first trace printed out what I expected "section1.swf'(without the double quotes). But I expected container.midframe to print out 78 which it did not. I assume section1.swf(where midframe was assigned a value) was loaded onto the main page,played and hence assigned the value of 78 to midframe.

Can someone explain to me what concepts I am missing here and where I can go learn those concepts.

All the best,
Libman

On Transitions Tutorial And Variables
Hi Folks,

New to actionscript and attempting to get a handle on variables. I am spending time on the tutorial at http://www.kirupa.com/developer/mx2004/transitions2.htm

I found this whole tutorial very enlightening and I am exploring some concepts with it.

I am perplexed. On the first button there is some actionscript. I modified it as follows:

on (release)
{
if (_root.currMovie == undefined)
{
_root.currMovie = "section1";
container.loadMovie("section1.swf");
trace(_root.currMovie );
trace (container.midframe);
} else if (_root.currMovie != "section1")
{
if (container._currentframe >= container.midframe)
{
_root.currMovie = "section1";
container.play();
}}}

Notice I added two traces. The first trace printed out what I expected "section1.swf'(without the double quotes). But I expected container.midframe to print out 78 which it did not. I assume section1.swf(where midframe was assigned a value) was loaded onto the main page,played and hence assigned the value of 78 to midframe.

Can someone explain to me what concepts I am missing here and where I can go learn those concepts?

All the best,
Libman

Transitions Tutorial...with A Twist
Hello everyone,
I've made a few threads about this and didn't get any responses. I'm getting a lot closer to where I want with this but I've run into a bit of a snag. I'm using the "transitions" tutorial with a media player. Instead of having a seperate button for each section or song, I have one button that when pushed will load the next section. I'm not sure how to go about applying this code to what I have already.

The buttons (red and blue) I have in the file now are not supposed to be there. I want the user to only have to click on the next button in order to go to the next section. I'm thinking I need to add an array possibly?

I'm really a newbie with actionscript so if someone could please help me, I would REALLY really appreciate it. I've been having trouble with this for quite a while and it's giving me a headache.

Thanks in advance

zip file - www.beneaththesky.com/player_concept2.zip

Flash MX Transitions Tutorial
Hey, I'm trying to implement these transitions using MX 2004. I tried compiling the tutorial files and they worked, but when I use my own (slightly adapted) version it sticks after the closing animation.

I've attached my index file, you can use dummies for the linked .swf's if you wanna have a look. I really need help on this, I've pretty much copied the tutorial word for word and it won't work.

Thanks.

Help With External SWF Transitions Tutorial
Hello!

My name is Rene. I'm using this tutorial to build a Photographer's Gallery, and I made some slight modifications - and I need a little advice.

Instead of the one external swf getting loaded that we see in the example, I have (2).

One is the actual portfolios, each one a seperate swf. The other is the navigation (thumbnails that open the different portfolios).

Basically, the nav and the first portfolio load when you open the site. Then a user will be able to click on a thumbnail to see the other portfolios.

The code on the button is this;

on (release) {
container.loadMovie("Group2Gallery.swf");
container.play();
}

Where "container" is the name of the instance empty movie clip where it gets loaded and "Group2Gallery.swf" is the movie to be loaded.

The error I get is this;

Target not found: Target="container" Base="_level0.container2"
Target not found: Target="container" Base="_level0.container2"
Where "container2" is the empty movie clip where the Nav is loaded.



Thank you in advance for your help...

[MX] Help With 'transitions Between Extrnal SWF' Tutorial - Please
Hey everyone,

The tuorial is here - http://www.kirupa.com/developer/mx2004/transitions2.htm

I am usong the tutorial model to make a gallery section which has different image sets that I want to transition between. I went through the tutorial and got everything to work, BUT - when I load the movies into another parent movie, the buttons don't work properly. Whichever image set I load first is the only image set that loads; both buttons load whichever set I chose first.

Should the script in the tutorial work even if I load it into another movie? Do I need tochange references? I am using Flash MX. I really put some time into banging my head against a wall on this trying to figure out what I was doing wrong so I finally posted, I hope you can help-

Thanks
Krishna

I uploaded the SWFs and FLAs here http://mrkrishna.com/flash/swfs.zip
movie is the main parent movie
images is the gallery movie that controls the transition movie, it loades into 'movie'. WHen you run just the 'images.swf', increase the window size to the right to reveal the buttons
images1 and images 2 are the image sets that load into images

thanks again

Transitions Between External SWFs Tutorial...
Hi all,

I can do the tutorial and it work absolutley fine.

But for my purposes, the actions don't work, if my buttons themselves are within movie clips. I need to animate my buttons which load the external swf's. Is there a simple solution?

Cheers,
Ian

Transitions Between External SWFs Tutorial
Hi gang
I tried this tutorial found here:
http://www.kirupa.com/developer/mx2004/transitions.html

Here's my problem. I followed the tutorial to a T and all the buttons work fine, the transition works fine BUT the only thing that happens is that the SAME section keeps loading no matter what button I press!?!

So say I have three sectiosn "About" "Sports" and "Fun" when I click the About button the "about" SWF comes about, when I click the "Sports" button the "ABOUT" SWF comes on and when I click the "Fun" button the "ABOUT" section comes on.

What's interesting is that if I press "Sports" first, the "Sports" SWF comes on for all three buttons... and if I press "FUN" first, then the "Fun" SWF comes on for all three buttons...

Has anyone experienced this? I am using Flash MX if it makes any difference.

Cheers

Help With Transitions Between External SWFs Tutorial...
Hello everyone. I have completed the following tutorial and found it to be very helpful and useful.

http://www.kirupa.com/developer/mx2004/transitions.htm

I do not know actionscript yet, but I am learning a lot as I go along. I am hoping that someone can help me add on to this tutorial in order to achieve a simple effect. Basically I would like to know how to make it so that when you click on a certain button and that particular section loads, then I would like to be able to swap that button in the navigation with a graphic that would look just like the button but be a different color (or whatever) and would actually be a graphic symbol (wouldn't be a button anymore). This would visually indicate to the user which page they were on and would also prevent them from clicking a button of a section that they were already in. Hopefully this makes sense and I am describing what I want to accomplish accurately. If not, let me know and I'll try to do better. Any help anyone could offer would be greatly appreciated.

Thanks!

Fes

Kirupa Transitions Tutorial Question
http://www.kirupa.com/developer/mx2004/transitions2.htm

I really want to use this but unfortionatly my navigation has buttons in aother MC. Anyone know how I can still use this and not have all my buttons on the same level.

Here is the action script from the button:

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "section2";
container.loadMovie("section2.swf");
} else if (_root.currMovie != "section2") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "section2";
container.play();
}
}
}


Cheers

Transitions Between External SWFs Tutorial
I am trying to use this tutorial (http://www.kirupa.com/developer/mx2004/transitions.htm) to create some smooth transitions on a site I am currently working on. So far I have not been able to make it work even doing things exactly as they are described in the tutorial. But what I would like to do is use .loadClip instead of loadMovie to load my .swf's. I think I have the correct code in the first frame of the root movies timeline:

_root.currMovie = "2fbp_home";

var containerLoad:MovieClipLoader = new MovieClipLoader();
containerLoad.loadClip (_root.currMovie+".swf",_root.container);

stop();

What I needed help with is what the correct code would be for my buttons to load new sections and what I would need in the last frame of the timeline for the .swf's I'm loading. I've tried everything I know to try and have had no luck so if anyone can shed some light on this I would appreciate it.

Thanks,
Chris

Proeloader & Transitions Tutorial Question
Hi there!!, i want to make a loadbar for this example, but i just can't figure out how can i start!! any sugestion?

Transitions Between External SWFs Tutorial
Hi I Have a Question... (sorry My english)
If the code to call a external is:

Code:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "MOVIE1";
container.loadMovie("MOVIE1.swf");
} else if (_root.currMovie != "MOVIE1") {
if (container._currentframe>=container.midframe) {
_root.currMovie = "MOVIE1";
container.play();
}
}
}
Now, my Problem...
Now... In that MOVIE1.SWF, I have a button. And I have to call from that movie, this movie---> "MOVIE2.SWF" in the container...

How it would be the code?
Pleasee....

Transitions Between External SWFs Tutorial
After doing the Transitions between External SWFs tutorial I'm having some issues. Now I followed the tutorial exactly and had no problem if the buttons were located on the main timeline but ran into problems once I moved them into a movieclip.

I have them inside a movieclip with the instance name of "menu" which is located on the main timeline. I've placed the following code on the buttons and have had no success.


Code:
on (release) {

if (_root.currMovie == undefined) {

_root.currMovie = "gallery";
_root.container.loadMovie("gallery.swf");
} else if (_root.currMovie != "gallery") {
if (_root.container._currentframe >= _root.container.midframe) {

_root.currMovie = "gallery";
_root.container.play();

}

}

}
And also tried


Code:
on (release) {

if (_root.currMovie == undefined) {

_root.currMovie = "gallery";
_root.menu.container.loadMovie("gallery.swf");
} else if (_root.currMovie != "gallery") {
if (_root.menu.container._currentframe >= _root.menu.container.midframe) {

_root.currMovie = "gallery";
_root.menu.container.play();

}

}

}
I know it's a simple error. any help would be greatful

Transitions Between External SWFs Tutorial
Hello! I am kinda new to this flash thing. I was following this tutorial and I get everything to work untill I go to click on a button to see the outro. The problem I am having is that I don't have the right root to the "container". My buttons are NOT on the main timeline. My button is in a movie clip called "link3_mc". The container is on the main timeline called "Scene 1". What would I change in the code for the button to know the right path where the container is at? How do I change the path?


ActionScript Code:
on (release) { if (_root.currMovie == undefined) { _root.currMovie = "main"; container.loadMovie("main.swf"); } else if (_root.currMovie != "main") { if (container._currentframe >= container.midframe) { _root.currMovie = "main"; container.play(); } } }

This is the tutorial page... http://www.kirupa.com/developer/mx2004/transitions2.htm

I would appreciate any help! Thanks so much...

Transitions With External Swfs Tutorial Help
Ok now i am using that tutorial for a website i am making but on the seperate swfs with the animations i have an action i want a picture to do i want it too do a pop up. so i did all the code and stuff for it and tested it and it worked. in that swf but when i went back too the main swf it doesnt work. it seems you cant put any other actions in the transition swf thing? help? here is the tutorial

http://www.kirupa.com/developer/mx2004/transitions2.htm

? About Transitions Between External SWFs Tutorial
http://www.kirupa.com/developer/mx2004/transitions2.htm

I want to make an alteration on the tutorial and was hoping for a little assistance.

I want the menu to also be a separate swf. Which is fine I have got that far simply enough. However, I'd like to animate the menu as well, giving it a transition as well before the other swfs do their transitions.

I am guessing setInterval is going to come into play here but I am a little unsure about syntax and whatnot.

Anyone have any ideas?

Thank you very much in advance.

Spootneek.

External Swf Transitions Tutorial Question—Help Please?
Instead of using button instances on my site, I'm using movie clips as buttons from the tutorial on gotoandlearn.com instead. How would I change the actionscript to make the movieclip load?


Code:
b1.onRelease = function(){
if (_root.currMovie == undefined) {
_root.currMovie = "about_me";
container.loadMovie("about_me.swf");
} else if (_root.currMovie != "about_me") {
if (container._currentframe >=
container.midframe) {
_root.currMovie = "about_me";
container.play();
}
}

}
After adding the bolded to the AS, I get the following error when I test the movie:
**Error** Scene=Scene 1, layer=buttons, frame=1:Line 1: Statement must appear within on/onClipEvent handler
b1.onRelease = function(){

Obviously I'm a newb and I'm trying to learn as I create my site... I don't know what to add or where. Anyone willing to help? TIA!

Using The Transitions Tutorial But Having Problems With Preloader
hey guys, good day!

i've just read and followed Voetsjoeba's tutorial on page transitions, and it worked perfectly! well.. except for my preloader... i'm currently using flash 8 by the way.. anyway.. my preloaders work perfectly on each external swf, it's just that it doesn't SHOW when the external swf's are called.. i've played around with the code already.. and found out that this line is what's preventing it from showing normally:

_root.currMovie = "welcome";
container.loadMovie(_root.currMovie+".swf");

i've placed that in the last actions frame of my main movie to have welcome.swf load after the navigation bar elements have loaded... the welcome.swf plays its intro and outro perfectly, but the preloader just does not show up anymore... i've changed the code to:

loadMovie("welcome.swf");

and that made the preloader show up perfectly again.. but if use this code, calling the other swf's will be impossible, because they all share the "_root.currMovie" and "container.loadMovie"... how can i go about this?

anyway.. here's my preloader code:

midframe = 126;
stop();
loadingBar._xscale = 1;
var loadingCall:Number = setInterval(preloadSite, 50);
function preloadSite():Void {
var siteLoaded:Number = Math.round((_root.getBytesLoaded()/1024)*100)/100;
var siteTotal:Number = Math.round((_root.getBytesTotal()/1024)*100)/100;
var percentage:Number = Math.round(siteLoaded/siteTotal*100);
loadingBar._xscale = percentage;
percentClip.percentDisplay.text = percentage + "%";
percentClip._x = loadingBar._x + loadingBar._width;
bytesDisplay1.text = siteLoaded + " Kb";
bytesDisplay2.text = siteTotal + " Kb";
if (siteLoaded >= siteTotal) {
clearInterval(loadingCall);
gotoAndPlay(2);
}
}

(that's taken from welcome.swf)

can you guys help out? any suggestion/advice will be greatly appreciated. thanks in advance!

Greg

ActionScript Change On Transitions Tutorial
In the tutorial Transitions Between External SWFs-- http://www.kirupa.com/developer/mx2004/transitions.htm --can anyone tell me how to eliminate JUST the horizontal transition that moves the movie in and out so it just loads the movie normally (no midframe, just a container). I believe this is the script that needs to be altered:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "work";
container.loadMovie("work.swf");
} else if (_root.currMovie != "work") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "work";
container.play();
}
}
}
Thanks for any help.

Transitions Between External Swf Tutorial Issue
Hi,
This is my first post...so let me know if I should be doing something different!
I have been working with this tutorial ¨Transitions between external swfs¨ from kirupa.com. I downloaded the zip and then tried to modify it with my own external swfs...worked fine as long as the swfs I swapped in were simple. But when I tried it with swfs that included galleries or any other kind of interactivity it seemed to break down. Made me wonder if I need to modify something additional when working with these kinds of slightly more complex swfs...
Does anyone have an answer for this? I can post what I am doing if that helps...
M

Transitions Between External SWFs Tutorial...
Hi all,

I can do the tutorial and it work absolutley fine.

But for my purposes, the actions don't work, if my buttons themselves are within movie clips. I need to animate my buttons which load the external swf's. Is there a simple solution?

Cheers,
Ian

Transitions Between External SWFs Tutorial
Hi gang
I tried this tutorial found here:
http://www.kirupa.com/developer/mx2004/transitions.html

Here's my problem. I followed the tutorial to a T and all the buttons work fine, the transition works fine BUT the only thing that happens is that the SAME section keeps loading no matter what button I press!?!

So say I have three sectiosn "About" "Sports" and "Fun" when I click the About button the "about" SWF comes about, when I click the "Sports" button the "ABOUT" SWF comes on and when I click the "Fun" button the "ABOUT" section comes on.

What's interesting is that if I press "Sports" first, the "Sports" SWF comes on for all three buttons... and if I press "FUN" first, then the "Fun" SWF comes on for all three buttons...

Has anyone experienced this? I am using Flash MX if it makes any difference.

Cheers

Help With Transitions Between External SWFs Tutorial...
Hello everyone. I have completed the following tutorial and found it to be very helpful and useful.

http://www.kirupa.com/developer/mx2004/transitions.htm

I do not know actionscript yet, but I am learning a lot as I go along. I am hoping that someone can help me add on to this tutorial in order to achieve a simple effect. Basically I would like to know how to make it so that when you click on a certain button and that particular section loads, then I would like to be able to swap that button in the navigation with a graphic that would look just like the button but be a different color (or whatever) and would actually be a graphic symbol (wouldn't be a button anymore). This would visually indicate to the user which page they were on and would also prevent them from clicking a button of a section that they were already in. Hopefully this makes sense and I am describing what I want to accomplish accurately. If not, let me know and I'll try to do better. Any help anyone could offer would be greatly appreciated.

Thanks!

Fes

Kirupa Transitions Tutorial Question
http://www.kirupa.com/developer/mx2004/transitions2.htm

I really want to use this but unfortionatly my navigation has buttons in aother MC. Anyone know how I can still use this and not have all my buttons on the same level.

Here is the action script from the button:

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "section2";
container.loadMovie("section2.swf");
} else if (_root.currMovie != "section2") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "section2";
container.play();
}
}
}


Cheers

Transitions Between External SWFs Tutorial
I am trying to use this tutorial (http://www.kirupa.com/developer/mx2004/transitions.htm) to create some smooth transitions on a site I am currently working on. So far I have not been able to make it work even doing things exactly as they are described in the tutorial. But what I would like to do is use .loadClip instead of loadMovie to load my .swf's. I think I have the correct code in the first frame of the root movies timeline:

_root.currMovie = "2fbp_home";

var containerLoad:MovieClipLoader = new MovieClipLoader();
containerLoad.loadClip (_root.currMovie+".swf",_root.container);

stop();

What I needed help with is what the correct code would be for my buttons to load new sections and what I would need in the last frame of the timeline for the .swf's I'm loading. I've tried everything I know to try and have had no luck so if anyone can shed some light on this I would appreciate it.

Thanks,
Chris

Proeloader & Transitions Tutorial Question
Hi there!!, i want to make a loadbar for this example, but i just can't figure out how can i start!! any sugestion?

Copyright © 2005-08 www.BigResource.com, All rights reserved