# Prob with \_alpha in external swfs

**URL:** https://forum.kirupa.com/t/prob-with--alpha-in-external-swfs/57681
**Category:** flash
**Created:** [July 15, 2004, 9:00am UTC](https://forum.kirupa.com/t/prob-with--alpha-in-external-swfs/57681 "2004-07-15T09:00:06Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Axios](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@Axios](https://forum.kirupa.com/u/Axios)
#### Post date: [July 15, 2004, 9:00am UTC](https://forum.kirupa.com/t/prob-with--alpha-in-external-swfs/57681/1 "2004-07-15T09:00:06Z")

</div>

Hiya!

Please bear with while I try to explain this!! 🙂

I have a main flash file which has 2 blank container mc’s one loads the external navigation swf, the other loads the external content swf. I have another invisible mc off the main stage which contains the actionscript transition for the page content.

When I press a button on the navigation is sets a variable \_global.newpage it then tells the transition to go to the frame “fade out” where I have this script…

```auto
onEnterFrame = function() {
        this._parent.pagecontent._alpha = this._parent.pagecontent._alpha + (0 - this._parent.pagecontent._alpha)/3;
		}

```

the next frame is then

```auto
if (this._parent.pagecontent._alpha>=1) {
	this.gotoAndPlay("fadeout")
}

```

So once it has faded out completely, the movies goes on to this frame where it loads the \_global.newpage variable & should set the alpha of the page to 100%…

```auto
loadMovie(_global.newpage, _parent.pagecontent);
_parent.pagecontent._alpha=100;

```

But the problem is, it doesnt! It loads the new page, fades it on to about 20% alpha then dissapears!

Anyone got any ideas? Please help!

Thanks in advance, Jen 🙂

---

<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: [July 16, 2004, 8:25am UTC](https://forum.kirupa.com/t/prob-with--alpha-in-external-swfs/57681/2 "2004-07-16T08:25:37Z")

</div>

Go on!! Someone help! Pleeeeeaaaase??!?

---

<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: [July 16, 2004, 11:18am UTC](https://forum.kirupa.com/t/prob-with--alpha-in-external-swfs/57681/3 "2004-07-16T11:18:11Z")

</div>

Can you post your fla('s)?

scotty(-:

---

<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: [July 16, 2004, 11:27am UTC](https://forum.kirupa.com/t/prob-with--alpha-in-external-swfs/57681/4 "2004-07-16T11:27:40Z")

</div>



---

<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: [July 16, 2004, 11:57am UTC](https://forum.kirupa.com/t/prob-with--alpha-in-external-swfs/57681/5 "2004-07-16T11:57:01Z")

</div>

Ooooh ta scotty!!

Here are my fla’s - I had to strip them right down to get them under 70k!

I included the pages that Im loading in as swfs as they are not the problem.

Muchos appreciation if you can help dude!

Cheers, Jen 🙂

---

<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: [July 16, 2004, 12:47pm UTC](https://forum.kirupa.com/t/prob-with--alpha-in-external-swfs/57681/6 "2004-07-16T12:47:51Z")

</div>

The problems were in your transitions mc. I’ve changed the setup a little and I think it’s working now:)  
If you have questions, just ask;)

scotty(-:

---

<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: [July 16, 2004, 1:04pm UTC](https://forum.kirupa.com/t/prob-with--alpha-in-external-swfs/57681/7 "2004-07-16T13:04:26Z")

</div>

Scotty,

You are an 👼!!! Thank you so much! I have no idea what the code you used means, but Im sure thats because my actionscript is very basic.

Thanks again!!

Jen :}

---

<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: [July 16, 2004, 1:15pm UTC](https://forum.kirupa.com/t/prob-with--alpha-in-external-swfs/57681/8 "2004-07-16T13:15:06Z")

</div>

Oh no!!!

I have replaced the transition mc in my file, and put the code into all the other buttons & now I have to double click the other buttons for the transition to happen! Any ideas? Sorry to be a pain!!!

Jen :puzzle:

---

<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: [July 16, 2004, 3:53pm UTC](https://forum.kirupa.com/t/prob-with--alpha-in-external-swfs/57681/9 "2004-07-16T15:53:15Z")

</div>

Oh no :lol:  
can you post your main.fla/upload it?

scotty(-:

---

<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: [July 19, 2004, 8:51am UTC](https://forum.kirupa.com/t/prob-with--alpha-in-external-swfs/57681/10 "2004-07-19T08:51:36Z")

</div>

OK, here goes!

Why are you only permitted to upload 70k files?

I really appreciate you taking time out to help me!

Cheers,  
Jen 🙂

---

<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: [July 19, 2004, 11:33am UTC](https://forum.kirupa.com/t/prob-with--alpha-in-external-swfs/57681/11 "2004-07-19T11:33:55Z")

</div>

Here are the fla’s. I think the bug was in transition mc, the delete onEnterFrame… Now, after the pic has loaded, it goes back to frame 1, when it’s called the enterframe exists again:)  
Also changed the AS in navigation.fla, it’s all commented, if you have question, just ask;)

scotty(-:

---

<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: [July 19, 2004, 12:03pm UTC](https://forum.kirupa.com/t/prob-with--alpha-in-external-swfs/57681/12 "2004-07-19T12:03:43Z")

</div>

Hi Scotty!

Thanks so much for that! You are a star!! I want to get really good at actionscript, I suppose it just takes time, learning it all, right?

Thanks again! Have a fun Monday!

Jen 🙂

---

<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: [July 19, 2004, 1:20pm UTC](https://forum.kirupa.com/t/prob-with--alpha-in-external-swfs/57681/13 "2004-07-19T13:20:58Z")

</div>

no problem:thumb:

Learning actionscript takes some time, but you’ll find great examples/tuts here on kirupa (and off course other sites/forums) which will let you learn it quickly;)

scotty(-:
