# Transitions

**URL:** <https://forum.kirupa.com/t/transitions/23530>\
**Category:** Uncategorized\
**Created:** [June 19, 2003, 3:46am UTC](https://forum.kirupa.com/t/transitions/23530 "2003-06-19T03:46:53Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![blah\_de\_blah](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@blah\_de\_blah](https://forum.kirupa.com/u/blah_de_blah)\
**Post date:** [June 19, 2003, 3:46am UTC](https://forum.kirupa.com/t/transitions/23530/1 "2003-06-19T03:46:53Z")

</div>

I know this questoin has been asked a lot of times, and i sort of get the idea of how to do it. I’ve done a seach but the link with the fla posted by electrongeek isn’t working for some reason so i had no other clue on where to start…

All i know is that at the beginning of the swf’s you need animations for opening the swf, and then at the end closing the swf. But how would you get the closing animations to play thats what i’m not sure of?! thx

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 19, 2003, 4:06am UTC](https://forum.kirupa.com/t/transitions/23530/2 "2003-06-19T04:06:59Z")

</div>

Perhaps this might help you getting the whole transition idea…  
😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 19, 2003, 4:08am UTC](https://forum.kirupa.com/t/transitions/23530/3 "2003-06-19T04:08:38Z")

</div>

ah cool thx i’ll take a look at that

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 19, 2003, 4:09am UTC](https://forum.kirupa.com/t/transitions/23530/4 "2003-06-19T04:09:38Z")

</div>

you’re welcome  
🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 19, 2003, 4:44am UTC](https://forum.kirupa.com/t/transitions/23530/5 "2003-06-19T04:44:26Z")

</div>

well i took a look at it, and theres one part i don’t really understand.

On each link theres the code:  
[AS]  
if (\_root.section != “link1”) {  
[/AS]

and on the first frame  
\_root.section = “welcome”

Therefore doesn’t that mean \_root.section will never equal link 1, or link2 or link3 and will always equal true? So whats the point in this line?

And i’m also not too sure about the

loadMovie (\_root.section+".swf")

i hope you understood what i was saying 🙂  
thx

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 19, 2003, 5:22am UTC](https://forum.kirupa.com/t/transitions/23530/6 "2003-06-19T05:22:57Z")

</div>

The file wasnt mine, i just posted here but lets check it…

First, he assigns a value of “welcome” to the section variable.  
Whenever u click a link, it will assign a new value to the section variable:

-clicking on link1 will assign a value of “link1” to the variable “section” and will load movie1;  
-clicking on link1 will assign a value of “link2” to the variable “section” and will load movie2;  
-clicking on link1 will assign a value of “link3” to the variable “section” and will load movie3;

But before simply loading the new movie, it checks if the current loaded movie is diferent than the new one.  
[AS]  
on (release) {  
if (\_root.section != “link1”) {  
\_root.content.gotoAndPlay(“unload”);  
\_root.section = “link1”;  
\_root.loader.gotoAndPlay(“load”);  
}  
}  
[/AS](This piece of code does the comparison. It checks if the new content u are trying to load is different of the current loaded one)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 19, 2003, 5:29am UTC](https://forum.kirupa.com/t/transitions/23530/7 "2003-06-19T05:29:00Z")

</div>

actually i think i understand that now…thx 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 19, 2003, 5:30am UTC](https://forum.kirupa.com/t/transitions/23530/8 "2003-06-19T05:30:31Z")

</div>

You’re welcome  
🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 19, 2003, 2:47pm UTC](https://forum.kirupa.com/t/transitions/23530/9 "2003-06-19T14:47:18Z")

</div>

I tried the file from Crucial Limit to create transitions between loaded movies, but it does not work when I test it on my site.

When I first click on the first button (that loads link1.swf), the movie does load but then stops (is that because of the stop action on frame one of link1, 2 and 3?)  
However, when I click on on the second button, it briefly appears before being covered by the transition. Same thing for button 3.

Only when all the movies are in the browser’s cache does it work properly.  
Any ideas, suggestions???

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 19, 2003, 6:25pm UTC](https://forum.kirupa.com/t/transitions/23530/10 "2003-06-19T18:25:14Z")

</div>

Can u post the fla so i can check the code?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 19, 2003, 11:21pm UTC](https://forum.kirupa.com/t/transitions/23530/11 "2003-06-19T23:21:11Z")

</div>

Here, I direct people to this thread a lot. It’s kind of the same thing that you are using now, but with if/else statements.  
[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=21414](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=21414)

The fla is called helpforyou and it’s about six posts down.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 19, 2003, 11:25pm UTC](https://forum.kirupa.com/t/transitions/23530/12 "2003-06-19T23:25:13Z")

</div>

The transition topic is very popular here  
🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 20, 2003, 9:52am UTC](https://forum.kirupa.com/t/transitions/23530/13 "2003-06-20T09:52:56Z")

</div>

Or maybe [this thread](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=22412) (scroll down a bit) ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 21, 2003, 4:34am UTC](https://forum.kirupa.com/t/transitions/23530/14 "2003-06-21T04:34:38Z")

</div>

I appreciate everyone’s effort to help me out, but I still can’t get it to work.

Claudio, the file I was talking about is in fact the file you yourself attached at the start of this post: cl\_transitions.zip.  
It doesn’t work for me, nor does it work on the site of the original guy who posted the file, and who uses the technique on his site: [www.cruciallimit.com](http://www.cruciallimit.com).

For example, to access the “contact” section on [cruciallimit.com](http://cruciallimit.com), I had to click once on contact, then click on another section, then go click again on contact. That’s the only way that section – and any other section – would finally load completely!!

Am I the only one to have that problem?

I’ve tried on Safari and Mac Internet Explorer 5.2, no success.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 21, 2003, 10:28am UTC](https://forum.kirupa.com/t/transitions/23530/15 "2003-06-21T10:28:14Z")

</div>

Hmmm works fine here…  
perhaps i should take a look on the code  
:-\
